:root{--bg:#f6f3ee;--surface:#fffdf9;--surface-2:#efebe3;--text:#2b2a28;--muted:#6f6a62;--line:#e4ded3;--accent:#4f8a83;--accent-strong:#3f736d;--accent-soft:#dcebe8;--on-accent:#fff;--shadow:0 8px 30px #3c321e24;--radius:16px;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#1c1d1c;--surface:#262826;--surface-2:#30332f;--text:#ece8e0;--muted:#a19b90;--line:#3a3d38;--accent:#6fb0a8;--accent-strong:#86c2ba;--accent-soft:#2a3d3a;--on-accent:#12211f;--shadow:0 8px 30px #00000080}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);margin:0;font-size:16px;line-height:1.45}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--muted)}.app{max-width:640px;min-height:100dvh;margin:0 auto;padding-bottom:120px}.top{z-index:10;background:var(--bg);padding:env(safe-area-inset-top) 16px 12px;position:sticky;top:0}.top-inner{padding-top:8px}.brand-row{justify-content:space-between;align-items:center;min-height:44px;display:flex}.brand{letter-spacing:.01em;color:var(--muted);margin:0;font-size:15px;font-weight:600}.capture{align-items:center;gap:8px;display:flex;position:relative}.capture input{border:1.5px solid var(--line);border-radius:var(--radius);background:var(--surface);flex:1;min-width:0;height:52px;padding:0 52px 0 16px}.capture input::placeholder{color:var(--muted)}.capture input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.capture input.has-counter{padding-right:100px}.counter{color:var(--muted);pointer-events:none;font-size:.75rem;position:absolute;top:50%;right:52px;transform:translateY(-50%)}.slash-hint{color:var(--muted);opacity:.7;pointer-events:none;font-size:.75rem;display:none;position:absolute;top:50%;right:52px;transform:translateY(-50%)}@media (hover:hover) and (pointer:fine){.slash-hint{display:block}.capture input:focus~.slash-hint{display:none}}.add-btn{width:44px;height:44px;color:var(--accent);background:0 0;border:0;border-radius:12px;place-items:center;padding:0;display:grid;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.add-btn:hover{background:var(--accent-soft)}.add-btn svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.capture.cued input{border-color:var(--accent);animation:.9s ease-out cue-glow}@keyframes cue-glow{0%{box-shadow:0 0 0 5px var(--accent-soft)}to{box-shadow:0 0 #0000}}.btn{border:1.5px solid var(--line);background:var(--surface);border-radius:14px;min-height:48px;padding:0 20px;font-weight:550;transition:background .15s,transform .1s}.btn:hover:not(:disabled){background:var(--surface-2)}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.primary:hover:not(:disabled){background:var(--accent-strong)}.btn.outline{border-color:var(--accent);color:var(--accent-strong);background:0 0}.btn.outline:hover:not(:disabled){background:var(--accent-soft)}.btn.quiet{color:var(--muted);background:0 0;border-color:#0000;min-height:44px;padding:0 12px;font-weight:500}.btn.quiet:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-btn{min-width:44px;min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:12px;font-size:1.3rem;line-height:1}.icon-btn:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-btn:disabled{opacity:.3;cursor:default}.icon-btn.sm{min-width:40px;font-size:1rem}.content{padding:4px 16px 0}.segmented{background:var(--surface-2);border-radius:14px;gap:4px;padding:4px;display:inline-flex}.segmented button{min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;padding:0 18px;font-weight:550}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.area-filter{align-items:center;gap:20px;margin:4px 0 16px;display:flex}.area-filter button{min-height:44px;box-shadow:none;color:var(--muted);background:0 0;border:0;border-radius:0;padding:0;font-size:14px}.area-filter button.on{color:var(--text);text-decoration:underline;-webkit-text-decoration-color:var(--accent);text-decoration-color:var(--accent);text-underline-offset:6px;font-weight:600;text-decoration-thickness:2px}.list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.list>li+li{border-top:1px solid var(--line)}.row{text-align:left;width:calc(100% + 24px);min-width:0;min-height:56px;color:var(--text);background:0 0;border:0;border-radius:0;flex-direction:column;justify-content:center;gap:3px;margin-inline:-12px;padding:12px;transition:background-color .15s,transform .1s;display:flex}.row:hover,.row:focus-visible{background:color-mix(in srgb, var(--accent-soft) 45%, transparent);border-radius:8px}.row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.row.fresh{border-radius:8px;animation:2s ease-out glow}.row:active{transform:scale(.995)}.row-item{position:relative}.row.has-check{padding-left:44px}.row.selected{background:color-mix(in srgb, var(--accent-soft) 70%, transparent);border-radius:8px}.row-title{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:500;line-height:1.35;overflow:hidden}.row.mode-done .row-title{color:var(--muted)}.row-meta{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;line-height:1.35;display:block;overflow:hidden}.row-meta>span+span:before{content:" · ";white-space:pre}.row-meta .next{color:inherit}.tag{color:inherit;font-size:inherit;background:0 0;border-radius:0;padding:0}.pinned{margin:0 0 20px}.pinned .list{margin-bottom:0}.group-h{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 2px;font-size:11px;font-weight:600}.empty{text-align:center;color:var(--muted);padding:48px 24px}.empty p{max-width:28ch;margin:0 auto;font-size:1.05rem}.foot{margin-top:24px}.foot-line{color:var(--muted);flex-wrap:wrap;align-items:center;font-size:13px;display:flex}.foot-line button{min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:0;padding:0 4px;font-size:13px}.foot-line button:hover{color:var(--text)}.foot-line>:first-child{padding-left:0}.foot-line button[aria-expanded=true]{color:var(--text);text-decoration:underline;-webkit-text-decoration-color:var(--accent);text-decoration-color:var(--accent);text-underline-offset:6px;font-weight:600;text-decoration-thickness:2px}.foot-sep{padding:0 6px}.foot .list{margin-top:4px}.row-check{z-index:1;background:0 0;border:0;border-radius:12px;place-items:center;width:44px;height:44px;padding:0;display:grid;position:absolute;top:50%;left:-12px;transform:translateY(-50%)}.row-check .circle{border:1.5px solid var(--muted);opacity:.8;border-radius:50%;place-items:center;width:20px;height:20px;transition:background .15s,border-color .15s,opacity .15s;display:grid}.row-check:hover .circle{border-color:var(--accent);opacity:1}.row-check .circle svg{fill:none;width:14px;height:14px;stroke:var(--on-accent);stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20px}.row-check.on .circle{background:var(--accent);border-color:var(--accent);opacity:1;animation:.45s ease-out pop}.row-check.on .circle svg{stroke-dashoffset:0;transition:stroke-dashoffset .25s ease-out}.row-item{transition:opacity .25s ease-out}.row-item.fading{opacity:0}.menu{position:relative}.menu-pop{z-index:20;background:var(--surface);border:1px solid var(--line);min-width:160px;box-shadow:var(--shadow);border-radius:14px;flex-direction:column;padding:6px;display:flex;position:absolute;top:100%;right:0}.menu-pop button{text-align:left;background:0 0;border:0;border-radius:10px;min-height:44px;padding:0 14px}.menu-pop button:hover{background:var(--surface-2)}.backdrop{z-index:30;background:#1e1c186b;justify-content:center;align-items:flex-end;animation:.2s ease-out fade;display:flex;position:fixed;inset:0}.backdrop.confirm{z-index:40;align-items:center;padding:16px}.panel{background:var(--surface);outline:none;width:100%}.panel.sheet{max-height:92dvh;box-shadow:var(--shadow);border-radius:24px 24px 0 0;flex-direction:column;padding:8px 0 0;animation:.25s ease-out slide-up;display:flex;overflow:hidden}.panel.confirm{max-width:400px;box-shadow:var(--shadow);border-radius:20px;padding:24px;animation:.18s ease-out pop-in}.confirm-title{margin:0 0 8px;font-size:1.15rem}.confirm-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.sheet-grab{background:var(--line);border-radius:4px;width:40px;height:4px;margin:4px auto 8px}@media (width>=700px){.backdrop.sheet{align-items:center;padding:24px}.panel.sheet{border-radius:24px;max-width:560px;animation:.2s ease-out pop-in}.sheet-grab{display:none}}.detail{flex-direction:column;flex:1;min-height:0;display:flex}.sheet-head{flex:none;align-items:flex-start;gap:4px;padding:4px 12px 8px 20px;display:flex}.head-main{flex:1;min-width:0}.detail-body{flex:1;min-height:0;padding:4px 20px 16px;overflow-y:auto}.detail-foot{padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-direction:column;flex:none;gap:8px;max-height:50%;display:flex;overflow-y:auto}.title-input{resize:none;background:0 0;border:1.5px solid #0000;border-radius:12px;width:calc(100% + 8px);margin-left:-8px;padding:6px 8px;font-size:1.25rem;font-weight:600;line-height:1.3;display:block;overflow:hidden}.title-input:hover{border-color:var(--line);background:var(--surface-2)}.title-input:focus{border-color:var(--accent);background:var(--field-bg,var(--bg));outline:none}.meta{color:var(--muted);margin:0;font-size:.85rem}.label{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:20px 0 6px;font-size:11px;font-weight:600;display:block}.detail-body>:first-child .label,.detail-body>section:first-child>.label{margin-top:8px}section>.label{margin-top:12px}.note-input{resize:none;background:0 0;border:1.5px solid #0000;border-radius:12px;width:calc(100% + 16px);min-height:44px;margin-left:-8px;padding:10px 8px;line-height:1.45;display:block;overflow:hidden}.note-input::placeholder{color:var(--muted)}.note-input:hover{border-color:var(--line)}.note-input:focus{border-color:var(--accent);background:var(--field-bg,var(--bg));box-shadow:0 0 0 3px var(--accent-soft);outline:none}.date-input{border:1.5px solid var(--line);background:var(--field-bg,var(--bg));border-radius:12px;padding:10px 12px}.date-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.area-opts{gap:20px;display:flex}.area-opts button{min-height:44px;color:var(--muted);background:0 0;border:0;padding:0;font-size:14px}.area-opts button.on{color:var(--text);text-decoration:underline;-webkit-text-decoration-color:var(--accent);text-decoration-color:var(--accent);text-underline-offset:6px;font-weight:600;text-decoration-thickness:2px}.all-done{background:var(--accent-soft);color:var(--accent-strong);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px 6px 14px;font-size:.92rem;display:flex}.btn.sm{min-height:44px;padding:0 16px}.steps{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.step{background:var(--surface);align-items:center;gap:2px;display:flex;position:relative}.step.dragging{z-index:2;box-shadow:var(--shadow);border-radius:12px}.step-title{background:0 0;border:1.5px solid #0000;border-radius:12px;flex:1;min-width:0;min-height:44px;padding:0 8px}.step-title:hover{border-color:var(--line)}.step-title:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.step.next .step-title{font-weight:500}.step.done .step-title{color:var(--muted);text-decoration:line-through;-webkit-text-decoration-color:var(--line);text-decoration-color:var(--line)}.next-chip{background:var(--accent-soft);color:var(--accent-strong);letter-spacing:.02em;border-radius:999px;flex:none;padding:2px 8px;font-size:11px;font-weight:600}.step-controls{background:linear-gradient(to right, transparent, var(--surface) 20px);opacity:0;pointer-events:none;align-items:center;padding-left:20px;transition:opacity .12s;display:flex;position:absolute;top:0;bottom:0;right:0}.step:hover .step-controls,.step:focus-within .step-controls,.step.dragging .step-controls{opacity:1;pointer-events:auto}.step:hover .next-chip,.step:focus-within .next-chip{opacity:0}.handle{cursor:grab;touch-action:none}.handle svg{fill:currentColor;width:16px;height:16px}.add-step-row{width:100%;min-height:44px;color:var(--muted);text-align:left;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:flex}.add-step-row:hover:not(.editing){color:var(--text)}.add-step-row .plus{text-align:center;width:44px;color:var(--accent);font-size:1.3rem;line-height:1}.add-step-row input{border:1.5px solid var(--accent);background:0 0;border-radius:12px;flex:1;min-width:0;min-height:44px;padding:0 8px}.add-step-row input:focus{box-shadow:0 0 0 3px var(--accent-soft);outline:none}.done-steps{margin-top:4px}.check{cursor:pointer;place-items:center;min-width:44px;min-height:44px;display:grid;position:relative}.check input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.box{border:2px solid var(--muted);border-radius:8px;place-items:center;width:24px;height:24px;transition:background .15s,border-color .15s;display:grid}.box svg{fill:none;width:16px;height:16px;stroke:var(--on-accent);stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20px}.check input:checked+.box{background:var(--accent);border-color:var(--accent)}.check input:checked+.box svg{stroke-dashoffset:0;transition:stroke-dashoffset .25s ease-out}.check input:focus-visible+.box{outline:3px solid var(--accent);outline-offset:2px}.step.pop .box{animation:.45s ease-out pop}.step.pop{border-radius:12px;animation:.7s ease-out glow}.actions{flex-direction:column;gap:8px;display:flex}.action-row{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.done-btn{min-height:48px;padding:0 28px}@media (width<=480px){.action-row{gap:4px}.done-btn{padding:0 18px}.action-row .btn.quiet{padding:0 8px}}.note{color:var(--muted);margin:0 4px;font-size:.85rem}.resting{background:var(--accent-soft);color:var(--accent-strong);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px 10px 16px;font-weight:550;display:flex}.app.wide{align-items:flex-start;padding-bottom:80px;transition:max-width .25s;display:flex}.app.wide.split{max-width:1040px}.app.wide .col-left{flex:0 0 100%;min-width:0;transition:flex-basis .25s}.app.wide.split .col-left{flex-basis:420px}.side{border-left:1px solid var(--line);--field-bg:var(--surface);flex-direction:column;flex:1 1 0;min-width:0;height:100dvh;animation:.25s ease-out fade;display:flex;position:sticky;top:0}.side .sheet-head{padding-top:20px}.snooze{flex-wrap:wrap;gap:8px;padding:4px 0 8px;display:flex}.chip{border:1.5px solid var(--accent);min-height:44px;color:var(--accent-strong);background:0 0;border-radius:999px;padding:0 16px;font-weight:550}.chip:hover{background:var(--accent-soft)}.date-input{min-height:44px}.toast-region{left:0;right:0;bottom:calc(16px + env(safe-area-inset-bottom));z-index:60;pointer-events:none;justify-content:center;padding:0 16px;display:flex;position:fixed}.toast{pointer-events:auto;background:var(--text);max-width:480px;color:var(--bg);box-shadow:var(--shadow);border-radius:16px;align-items:center;gap:12px;padding:12px 16px;animation:.25s ease-out toast-in;display:flex;position:relative}.toast-undo{min-width:44px;min-height:44px;color:var(--accent);background:0 0;border:0;border-radius:10px;margin:-8px -8px -8px 0;padding:0 12px;font-weight:650}@media (prefers-color-scheme:light){.toast-undo{color:#8fd3c9}}.toast.celebrate .glow{pointer-events:none;border:2px solid var(--accent);opacity:0;border-radius:22px;animation:1.1s ease-out ring;position:absolute;inset:-6px}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:.6;transform:translateY(40px)}to{opacity:1;transform:none}}@keyframes pop-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}@keyframes toast-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.3)}to{transform:scale(1)}}@keyframes glow{0%{background:var(--accent-soft)}to{background:0 0}}@keyframes ring{0%{opacity:.8;transform:scale(.94)}to{opacity:0;transform:scale(1.06)}}@media (prefers-reduced-motion:reduce){.capture.cued input{box-shadow:0 0 0 3px var(--accent-soft);animation:none}.row.fresh{background:var(--accent-soft);animation:none}*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.menu-pop{max-width:min(300px,100vw - 32px)}.menu-status{border-bottom:1px solid var(--line);color:var(--muted);flex-direction:column;gap:2px;min-width:220px;margin-bottom:4px;padding:8px 14px 10px;font-size:.85rem;line-height:1.35;display:flex}.menu-status-email{text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;overflow:hidden}.menu-account{border-bottom:1px solid var(--line);flex-direction:column;margin-bottom:4px;padding-bottom:4px;display:flex}.menu-account .menu-status{border-bottom:0;margin-bottom:0;padding-bottom:4px}.menu-account .menu-status-email{color:var(--text);font-size:.85rem}.menu-pop button.menu-quiet{color:var(--muted);font-size:.9rem}.sync-input{border:1.5px solid var(--line);background:var(--bg);border-radius:12px;width:100%;min-height:48px;padding:10px 12px}.sync-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.sync-input.code{letter-spacing:.3em;font-variant-numeric:tabular-nums;font-size:1.3rem}.sync-note{color:var(--muted);margin:10px 0 0;font-size:.9rem}.sync-links{flex-wrap:wrap;gap:4px;margin:8px 0 0 -14px;display:flex}.sync-links .btn{min-height:44px;padding:0 14px;font-size:.9rem}
