*{box-sizing:border-box}body{margin:0;background:#faf8f2;color:#21442f;font-family:Arial,sans-serif}main{max-width:1050px;margin:auto;padding:28px 24px 120px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}header b{font-size:27px}header span{font-size:13px;color:#77816c;max-width:120px;line-height:1.6}h1{font-size:36px;letter-spacing:-1px;margin:26px 0}h2{font-size:26px;margin:0 0 20px}h3{margin-top:28px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #95ac74;outline-offset:3px}.layout{display:grid;grid-template-columns:1.2fr 1fr;gap:35px;align-items:center}.wheel{position:relative;aspect-ratio:1;width:100%}.wheel canvas{display:block;width:100%;height:100%}.sector{position:absolute;transform:translate(-50%,-50%);width:24%;border:0;background:none;color:#29432f;font-weight:700;font-size:clamp(14px,2vw,20px);padding:12px;line-height:1.3}.sector[aria-pressed=true]{color:#112d1b}.center{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;text-align:center;pointer-events:none;font-size:19px;font-weight:700;line-height:1.2}.hint{color:#77806f;font-size:15px;text-align:center;line-height:1.7}.detail{border:1px solid #dcded2;border-radius:24px;background:#fffdf8;padding:24px}.detail h2{text-align:center}.scores{display:grid;grid-template-columns:repeat(2,1fr);padding:14px;border:1px solid #e2e3d8;border-radius:14px}.scores>div{text-align:center;color:#63725b;font-size:14px}.scores strong{display:block;color:#26492e;font-size:40px;margin-top:9px}.scores>div+div{border-right:1px solid #dce0d1}.primary{width:100%;border:0;border-radius:14px;background:#284f34;color:white;padding:16px;font-weight:700;font-size:18px;margin:16px 0 8px}.primary:hover{background:#3b6242}.step{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #e3e5d9;color:#33482f;line-height:1.6}.step input{width:22px;height:22px;accent-color:#345e39;flex-shrink:0}.step.done span{color:#7d8973;text-decoration:line-through}#add{margin-top:22px}#add>label{font-size:14px}.add-row{display:flex;gap:8px;margin-top:8px}.add-row input{min-width:0;flex:1;border:1px solid #d6dccd;border-radius:11px;padding:12px;background:white}.add-row button{border:0;border-radius:11px;background:#e4ead8;padding:10px;color:#345431}footer{margin-top:28px;text-align:center;color:#7b8474;font-size:12px;line-height:1.6}nav{position:fixed;bottom:0;left:0;right:0;border-top:1px solid #dce0d4;background:#faf8f2f5;display:flex;justify-content:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:12px;backdrop-filter:blur(10px)}nav button{max-width:200px;flex:1;border:0;background:transparent;border-radius:14px;padding:14px;color:#607255}nav .active{background:#e2e9d6;color:#21442d;font-weight:700}#status{font-size:14px;color:#718065;min-height:20px}.list-section{padding:24px 0;border-bottom:1px solid #dde2d4}.triple{grid-template-columns:repeat(3,1fr)}details{margin-top:20px;font-size:14px;color:#65745b}.empty{text-align:center;padding:40px;color:#77816c}dialog{border:1px solid #dbe0cf;border-radius:22px;background:#fffdf8;width:min(440px,95vw);padding:26px;color:#23452d}dialog::backdrop{background:#233a2b66;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{margin:0}.dialog-head button{border:0;background:#edf0e5;padding:10px;border-radius:8px;color:#355231}dialog label{display:block;margin:30px 0}output{float:left;font-size:24px;font-weight:700}input[type=range]{display:block;width:100%;margin-top:20px;accent-color:#315a38;direction:ltr}@media(max-width:650px){main{padding:24px 18px 110px}.layout{display:block}h1{font-size:30px;margin:18px 0}.sector{font-size:15px;padding:4px}.detail{padding:20px}.center{font-size:16px}header b{font-size:23px}.hint{margin:8px 0 20px}.scores strong{font-size:34px}}

@media(display-mode:standalone){main{padding-top:calc(24px + env(safe-area-inset-top))}}

/* Score controls own touch only on the line/points; empty wheel space still scrolls. */
.wheel-graph{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.score-line{fill:#315a3820;stroke:#254c32;stroke-width:7;stroke-linejoin:round;stroke-linecap:round;pointer-events:stroke;touch-action:none;cursor:grab}
.score-point{pointer-events:all;touch-action:none;cursor:grab;outline:none}
.point-hit{fill:transparent;stroke:none}.point-dot{fill:#315a38;stroke:#fffdf8;stroke-width:5}
.score-point text{font:700 28px Arial,sans-serif;fill:white;pointer-events:none;user-select:none}
.score-point.unset .point-dot{fill:#fffdf8;stroke:#6e865c;stroke-dasharray:5 4;stroke-width:3}
.score-point.unset text{fill:#4e6c43}.score-point:focus-visible .point-dot{stroke:#182e1e;stroke-width:8}
.sector{z-index:3;font-size:clamp(11px,1.6vw,16px);padding:5px;width:24%;line-height:1.25}
.center{inset:auto;left:38%;top:38%;width:24%;height:24%;border:0;border-radius:50%;background:#faf8f2;color:#21442f;z-index:4;pointer-events:auto;font-size:clamp(12px,1.6vw,18px)}
.center:hover{background:#edf1e4}.wheel-help{font-size:14px}.wheel-help span{font-size:12px}
#wheel-live{display:block;float:none;min-height:24px;text-align:center;font-size:15px;font-weight:700;color:#315a38}
#reflection p{line-height:1.8;font-size:16px}
@media(max-width:650px){.sector{font-size:12px}.center{font-size:14px}}

.score-line-hit{fill:none;stroke:transparent;stroke-width:64}

.previous-line{fill:none;stroke:#a66b43;stroke-width:5;stroke-dasharray:14 10;stroke-linejoin:round;pointer-events:none}
.comparison-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px;color:#66755c;font-size:12px;line-height:1.7;margin:12px 0}
.comparison-legend span{display:inline-flex;align-items:center;gap:7px}.comparison-legend span::before{content:"";display:inline-block;width:24px;border-top:3px solid #254c32}
.comparison-legend .legend-previous::before{border-top:2px dashed #a66b43}

/* Personal notes stay outside wheel hit targets. */
.motivation{max-width:640px;margin:0 auto 24px}.note-top,.note-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#63725b;font-size:14px;line-height:20px}.note-top{margin-bottom:12px}.earned,.achievement-summary{display:inline-flex;align-items:center;gap:8px}.earned svg,.achievement-summary svg,.reward-picker svg{width:24px;height:24px;flex-shrink:0;color:#886324}.personal-note{background:#fff3d5;border:1px solid #e6d6ab;border-radius:16px;padding:24px;box-shadow:0 8px 24px #5e55280d;animation:note-arrive 500ms cubic-bezier(.22,1,.36,1)}.personal-note p{margin:0;text-wrap:pretty;overflow-wrap:anywhere}.note-area{color:#746544;font-size:14px;line-height:20px}.note-text{color:#35462d;font-size:24px;line-height:32px;font-weight:700;margin:8px 0 12px!important}.note-kind{color:#71674e;font-size:14px;line-height:20px}.note-done{margin-top:16px;min-height:44px;border:0;border-radius:8px;padding:8px 12px;background:#345537;color:#fff;font-size:16px;line-height:24px;font-weight:600}.note-controls{margin-top:8px}.note-controls button{border:0;background:transparent;color:#3a5735;min-height:44px;padding:8px 12px;border-radius:8px}.note-controls button:hover{background:#e8ecdf}.note-empty{background:#f0efe3;box-shadow:none}.task-row{padding-bottom:8px}.task-row .step{border-bottom:0;margin-bottom:0;min-height:44px}.task-row .step span{overflow-wrap:anywhere;min-width:0}.task-row .step.done span{color:#56614e}.reward-picker{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}.reward-picker button{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:8px 12px;border:1px solid #d9dfcf;border-radius:8px;background:#fffdf8;color:#5a654e;font-size:14px;line-height:20px}.reward-picker button[aria-pressed=true]{background:#fff0c4;border-color:#b79a55;color:#5e481c;font-weight:700}.reward-picker button:hover{background:#f5edd6}.note-done:hover{background:#476b42}.note-done:active,.reward-picker button:active{transform:scale(.98)}.achievement-summary{font-size:16px;line-height:24px;color:#6d572d}.motivation button:focus-visible,.reward-picker button:focus-visible{outline:3px solid #607e47;outline-offset:3px}@keyframes note-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:650px){.personal-note{padding:16px}.note-text{font-size:20px;line-height:28px}.note-done{width:100%}.note-controls{justify-content:center}}@media(prefers-reduced-motion:reduce){.personal-note{animation:none}}

.task-date{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 16px;color:#64715a;font-size:14px;line-height:20px}.task-date input{min-width:0;max-width:100%;min-height:44px;border:1px solid #d6dccd;border-radius:8px;padding:8px 12px;background:#fffdf8;color:#33482f}.task-date span{font-size:12px}#add>.task-date{margin-top:12px}.note-due{font-size:14px;line-height:20px;color:#4a6139;margin-top:8px!important;font-weight:700}.note-due.overdue{color:#865322}.task-row{border-bottom:1px solid #e3e5d9}

.push-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#edf0e4;border:1px solid #d7dfcc;border-radius:16px;padding:16px;margin:16px 0;color:#345031}.push-card strong{font-size:16px;line-height:24px}.push-card p{font-size:14px;line-height:20px;margin:8px 0 0;text-wrap:pretty}.push-card button{min-height:44px;border:1px solid #c4d0b8;border-radius:8px;padding:8px 12px;background:#fffdf8;color:#31512f}.push-card button:disabled{opacity:.6;cursor:wait}.push-card [hidden]{display:none}.push-card button:hover{background:#e1e8d5}

[hidden]{display:none!important}.account-bar{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:14px;line-height:20px;color:#607255}.account-bar button,.auth-panel button:not(.primary){min-height:44px;padding:8px 12px;border:1px solid #d4ddca;border-radius:8px;background:#edf0e4;color:#345031}.auth-panel{max-width:520px;margin:24px auto;background:#fffdf8;border:1px solid #dcded2;border-radius:16px;padding:24px}.auth-panel h1{font-size:30px;line-height:36px}.auth-panel p{font-size:16px;line-height:24px;text-wrap:pretty}.auth-panel label{display:block;margin:16px 0;color:#40543a;font-size:16px;line-height:24px}.auth-panel input{display:block;width:100%;min-height:44px;margin-top:8px;padding:12px;border:1px solid #c9d4bd;border-radius:8px;background:white;color:#21442f;font-size:16px}.auth-panel label span{display:block;margin-top:8px;color:#64715a;font-size:14px}.auth-panel input[type=email],.auth-panel input[type=password],#auth-recovery{direction:ltr;text-align:left}#auth-switches{display:flex;gap:8px;flex-wrap:wrap}#recovery-output{white-space:pre-wrap;overflow-wrap:anywhere;direction:ltr;text-align:left;background:#f1efdf;padding:16px;border-radius:8px;user-select:all}#recovery-panel button{margin:8px 0}
