:root{--bg:#f1f4f2;--surface:#fff;--fg:#16201b;--muted:#5b6a62;--line:#d9e1dc;--accent:#0b6b5d;--accent-fg:#fff;--accent-soft:#dcf0ea;--warn:#9a5a00;--warn-soft:#fbecd2;--danger:#b3261e;--danger-soft:#fbe3e0;--work:#d9730d;--work-fg:#fff;--work-soft:#fde8d2;--fin:#1f63c6;--fin-fg:#fff;--fin-soft:#dde9fb;--flag-orange:#e8590c;--font-display:"Space Grotesk", system-ui, sans-serif;--font-body:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0e1411;--surface:#17201c;--fg:#e7efea;--muted:#94a69d;--line:#2a3731;--accent:#4fc4ad;--accent-fg:#07211b;--accent-soft:#19332c;--warn:#f0b95a;--warn-soft:#3a2c12;--danger:#f2877f;--danger-soft:#3b1b18;--work:#ffa24c;--work-fg:#2a1600;--work-soft:#3d2812;--fin:#7fb0ff;--fin-fg:#0b1a33;--fin-soft:#172a45;--flag-orange:#ff922b;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}[hidden]{display:none!important}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--fg);font-family:var(--font-body);padding-top:max(20px, env(safe-area-inset-top,0px));padding-bottom:calc(48px + env(safe-area-inset-bottom,0px));padding-left:max(16px, env(safe-area-inset-left,0px));padding-right:max(16px, env(safe-area-inset-right,0px));-webkit-tap-highlight-color:transparent;margin:0;font-size:16px;line-height:1.4}.app{flex-direction:column;gap:16px;max-width:560px;margin:0 auto;display:flex}.view{flex-direction:column;gap:16px;display:flex}h1,h2,h3{font-family:var(--font-display);text-wrap:balance;margin:0}h1{letter-spacing:-.01em;font-size:26px;font-weight:700}h2{font-size:22px;font-weight:700}h3{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-size:13px;font-weight:600}.top{justify-content:space-between;align-items:center;gap:12px;display:flex}.top .titles{min-width:0}.sub{color:var(--muted);font-variant-numeric:tabular-nums;margin:0;font-size:14px}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{border:1px solid var(--line);background:var(--surface);border-radius:10px;min-height:44px;padding:0 16px;font-weight:500}.btn.primary{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);font-weight:600}.btn.quiet{color:var(--muted);background:0 0;border-color:#0000;padding:0 10px}.btn.danger{color:var(--danger)}.btn.confirm{background:var(--danger);color:#fff;border-color:var(--danger)}.btn:disabled{opacity:.6;cursor:default}.back{color:var(--accent);align-self:flex-start;padding-left:0;font-weight:600}.gear{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;place-items:center;display:grid}.gear svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.attention{background:var(--warn-soft);border:1px solid var(--warn);border-radius:12px;flex-direction:column;gap:4px;padding:12px 14px;display:flex}.attention strong{color:var(--warn);font-family:var(--font-display)}.attention button{text-align:left;border:0;border-top:1px solid var(--line);background:0 0;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:6px 0;display:flex}.attention button span:first-child{overflow-wrap:anywhere}.attention button span:last-child{color:var(--muted);text-align:right;flex-shrink:0;font-size:13px}.inline-form{gap:8px;display:flex}.inline-form input{flex:1;min-width:0}input[type=text],input[type=email],input[type=password],input[type=datetime-local],input[type=time],select,textarea{border:1px solid var(--line);background-color:var(--surface);border-radius:10px;width:100%;min-height:44px;padding:0 12px;font-size:16px}textarea{resize:vertical;padding:10px 12px;font-size:14px}input::placeholder,textarea::placeholder{color:var(--muted)}.field{flex-direction:column;gap:4px;min-width:0;display:flex}.field label{color:var(--muted);font-size:12px}.row{flex-wrap:wrap;gap:8px;display:flex}.plist{flex-direction:column;gap:12px;display:flex}.pcard{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.phdr{text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;min-height:56px;padding:10px 14px 10px 16px;display:flex}.phdr .pname{font-family:var(--font-display);overflow-wrap:anywhere;flex:1;min-width:0;font-size:18px;font-weight:700}.phdr .pmeta{color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:13px}.phdr .pmeta .late{color:var(--danger)}.phdr .chev{color:var(--muted);font-size:22px;line-height:1}.phrow{align-items:center;display:flex}#plist .phdr,#plist .tasks li,#open li{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.tasks li.lifted{outline:2px dashed var(--accent);outline-offset:-2px;background:var(--accent-soft);border-top-color:#0000;border-radius:10px}.tasks li.lifted>*{visibility:hidden}.tasks li.lifted+li{border-top-color:#0000}.task-ghost{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 6px;list-style:none}.task-ghost li{border-top:0}#plist .phdr img{-webkit-user-drag:none;pointer-events:none}#plist.sorting .tasks,#plist.sorting .empty,.drag-ghost .tasks,.drag-ghost .empty{display:none}#plist.sorting .pcard.lifted{border:2px dashed var(--accent);background:var(--accent-soft)}#plist.sorting .pcard.lifted>*{visibility:hidden}.drag-ghost{z-index:50;pointer-events:none;transform-origin:50%;opacity:.95;margin:0;position:fixed;top:0;left:0;box-shadow:0 12px 32px #0000004d}.drag-ghost .phrow{transform:scale(1.02)}body:has(.drag-ghost){-webkit-user-select:none;user-select:none;cursor:grabbing}.phrow .phdr{flex:1;width:auto;min-width:0;padding-right:4px}.fold{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;flex:0 0 44px;margin-right:8px;font-size:18px;line-height:1}.pcard .tasks{border-top:1px solid var(--line);padding:0 8px 6px 4px}#reuse{flex-direction:column;gap:8px;display:flex}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--line);background:var(--surface);border-radius:22px;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:0 14px 0 8px;font-weight:500;display:inline-flex}.chip span:last-child{overflow-wrap:anywhere;text-align:left}.chip[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.chip .thumb{border-radius:8px;flex-basis:28px;width:28px;height:28px;font-size:14px}.txtbtn{font:inherit;color:inherit;text-align:left;-webkit-text-decoration:inherit;text-decoration:inherit;overflow-wrap:anywhere;cursor:text;background:0 0;border:0;margin:0;padding:0}.task-rename{flex-direction:column;flex:1;gap:8px;min-width:0;padding:8px 4px;display:flex}.pcard .empty{padding:10px 12px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:16px;padding:16px;display:flex}.phead{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.phead .titles{flex:120px;min-width:0}.phead .titles h2{overflow-wrap:anywhere}.phead .actions{flex-wrap:wrap;gap:4px;display:flex}.progress{background:var(--accent-soft);border-radius:3px;height:6px;overflow:hidden}.progress i{background:var(--accent);height:100%;display:block}.thumb{background:var(--accent-soft);width:40px;height:40px;color:var(--accent);font-family:var(--font-display);border-radius:10px;flex:0 0 40px;place-items:center;font-size:18px;font-weight:700;display:grid;overflow:hidden}.thumb img{object-fit:contain;background:#fff;width:100%;height:100%;display:block}.thumb.lg{border-radius:14px;flex-basis:56px;width:56px;height:56px;font-size:24px}.logo-btn{background:0 0;border:0;border-radius:14px;flex:none;padding:0;position:relative}.logo-btn .plus{background:var(--accent);width:22px;height:22px;color:var(--accent-fg);border:2px solid var(--surface);border-radius:50%;place-items:center;font-size:14px;line-height:1;display:grid;position:absolute;bottom:-4px;right:-4px}.sharebox{background:var(--accent-soft);border-radius:12px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.sharebox .code{font-family:var(--font-display);letter-spacing:.18em;color:var(--accent);-webkit-user-select:all;user-select:all;margin:0;font-size:30px;font-weight:700}.task-form{flex-direction:column;gap:8px;display:flex}.due-row{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.due-row .field{flex:200px}ul{margin:0;padding:0;list-style:none}.tasks li{border-top:1px solid var(--line);align-items:flex-start;gap:4px;display:flex}.tasks li:first-child{border-top:0}.check{flex:0 0 44px;place-items:center;width:44px;height:44px;display:grid;position:relative}.check input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.check .box{border:2px solid var(--muted);border-radius:7px;place-items:center;width:24px;height:24px;display:grid}.check input:checked+.box:after{content:"";border:2px solid;border-width:0 2px 2px 0;width:6px;height:11px;transform:rotate(45deg)translate(-1px,-1px)}.check input:focus-visible+.box{outline:2px solid var(--accent);outline-offset:2px}.check.work input:checked+.box{background:var(--work);border-color:var(--work)}.check.work input:checked+.box:after{border-color:var(--work-fg)}.check.fin input:checked+.box{background:var(--fin);border-color:var(--fin)}.check.fin input:checked+.box:after{border-color:var(--fin-fg)}.check-gap{flex:0 0 44px;width:44px}.arch{width:44px;height:44px;color:var(--fin);background:0 0;border:0;flex:0 0 44px;place-items:center;font-size:20px;line-height:1;display:grid}.arch svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linejoin:round;stroke-linecap:round;width:20px;height:20px}.dacts{flex-shrink:0;gap:2px;display:flex}.tasks li.ghead{border-top:1px solid var(--line);align-items:center;margin-top:10px;padding-top:4px}.tasks li.ghead:first-child{border-top:0;margin-top:0}.tasks li.ghead+li{border-top-color:#0000}.gfold{text-align:left;min-width:0;min-height:40px;color:var(--accent);background:0 0;border:0;flex:1;align-items:center;gap:6px;padding:0 6px;display:flex}.gfold .caret{width:14px;color:var(--muted);flex:none;font-size:13px}.gfold .gname{overflow-wrap:anywhere;font-size:15px;font-weight:700}.gfold .gcount{background:var(--accent-soft);min-width:22px;color:var(--accent);text-align:center;font-variant-numeric:tabular-nums;border-radius:10px;flex:none;padding:1px 7px;font-size:12px;font-weight:600}.gbtn{width:40px;height:40px;color:var(--muted);background:0 0;border:0;flex:0 0 40px;font-size:16px}.tasks li.ghead.gdone{padding:8px 6px 4px}.ghead.gdone .gname{letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:700}.tasks li.in-group{margin-left:18px;position:relative}.tasks li.in-group:before{content:"";background:var(--accent);opacity:.35;border-radius:1px;width:2px;position:absolute;top:4px;bottom:4px;left:-10px}.task-ghost li.in-group{margin-left:0}.task-ghost li.in-group:before{display:none}div.gfold{cursor:default}.gloose .gfold .gname{color:var(--muted)}.gloose .gfold .gcount{background:var(--line);color:var(--muted)}.tasks li.gloose-top,.gsorting>li[data-id],.gsorting>li.gdone,.gsorting>li.gnew{display:none}.tasks.gsorting>li.gloose-top{display:flex}.gsorting>li.ghead{border-top:1px solid var(--line);margin-top:4px}.group-form{flex:1;align-items:center;gap:6px;padding:6px 0;display:flex}.group-form input{flex:1;min-width:0}#tarchWrap{margin-top:8px}#tarch{margin-top:6px}.body{flex-direction:column;flex:1;gap:4px;min-width:0;padding:10px 0;display:flex}.body .txt{overflow-wrap:anywhere}.badge{background:var(--accent-soft);color:var(--accent);font-variant-numeric:tabular-nums;border-radius:10px;align-self:flex-start;padding:2px 8px;font-size:12px;font-weight:600}.badge.today{background:var(--warn-soft);color:var(--warn)}.badge.late{background:var(--danger-soft);color:var(--danger)}.badge.plain{color:var(--muted);background:0 0;padding:0;font-weight:400}.del{width:44px;height:44px;color:var(--muted);background:0 0;border:0;flex:0 0 44px;font-size:22px;line-height:1}#archiveWrap{flex-direction:column;gap:12px;display:flex}#toggleArchive{align-self:flex-start;padding-left:0}.arow{gap:8px;padding:0 12px 12px 16px;display:flex}.top .acts{flex-shrink:0;align-items:center;gap:4px;display:flex}.mv{width:44px;height:44px;color:var(--accent);background:0 0;border:0;border-radius:10px;flex:0 0 44px;font-size:18px;line-height:1}.mv:disabled{opacity:.3;cursor:default}.flag{width:44px;height:44px;color:var(--muted);background:0 0;border:0;flex:0 0 44px;place-items:center;display:grid}.flag svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;width:20px;height:20px}.flag.red{color:var(--danger)}.flag.orange{color:var(--flag-orange)}.flag.custom{color:var(--accent)}.flag.red svg,.flag.orange svg,.flag.custom svg{fill:currentColor}.uflag.custom,.fp.custom{color:var(--accent)}.fp.custom[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.flag-edit{flex-direction:column;flex:1;gap:10px;min-width:0;padding:10px 4px;display:flex}.flag-edit .txt{overflow-wrap:anywhere;margin:0;font-weight:600}.row.hours .field{flex:140px}select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);background-position:calc(100% - 18px),calc(100% - 13px);background-repeat:no-repeat;background-size:5px 5px;padding-right:32px}.uflag{color:var(--danger);vertical-align:-3px;margin-right:6px;display:inline-flex}.uflag.orange{color:var(--flag-orange)}#flagsTitle .uflag{vertical-align:-1px}#flagsTitle .uflag svg{width:20px;height:20px}.sumleft{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.fchips{gap:6px;display:inline-flex}.fchip{font-variant-numeric:tabular-nums;background:0 0;border:1px solid;border-radius:16px;align-items:center;gap:4px;min-height:32px;padding:0 10px 0 8px;font-size:14px;font-weight:600;display:inline-flex}.fchip svg,.fp svg{fill:currentColor;stroke:currentColor;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;width:14px;height:14px}.fchip.red{color:var(--danger)}.fchip.orange{color:var(--flag-orange)}.flag-pick{gap:5px;display:flex}.flag-pick .fp{flex:auto;justify-content:center;min-width:0;padding:0 6px}.flag-pick .fp svg{flex:none;width:12px;height:12px}.fp{border:1px solid var(--line);background:var(--surface);min-height:36px;color:var(--muted);white-space:nowrap;border-radius:18px;align-items:center;gap:4px;padding:0 9px;font-size:13px;font-weight:500;display:inline-flex}.fp.orange{color:var(--flag-orange)}.fp.red{color:var(--danger)}.fp[aria-pressed=true]{background:var(--accent-soft);color:var(--fg);border-color:currentColor;font-weight:600}.fp.orange[aria-pressed=true]{background:var(--work-soft);color:var(--flag-orange)}.fp.red[aria-pressed=true]{background:var(--danger-soft);color:var(--danger)}.uflag svg{fill:currentColor;stroke:currentColor;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;width:15px;height:15px}.tasks li.is-done{background:var(--fin-soft);border-radius:10px}.tasks li.is-working{background:var(--work-soft);border-radius:10px}.tasks li.is-done+li,.tasks li+li.is-done,.tasks li.is-working+li,.tasks li+li.is-working{border-top-color:#0000}.is-done .txt{color:var(--fin);text-decoration:line-through}.dhead{justify-content:space-between;align-items:center;display:flex}.summary-row{min-height:44px;margin-top:-12px}.summary-row .btn{margin-right:-10px}.empty{color:var(--muted);margin:0;padding:8px 0;font-size:15px}.note{color:var(--muted);margin:0;font-size:13px}.sect{border-top:1px solid var(--line);flex-direction:column;gap:8px;padding-top:16px;display:flex}.sect .btn{align-self:flex-start}.icons{flex-wrap:wrap;gap:8px;display:flex}.itile{cursor:pointer;background:0 0;border:2px solid #0000;border-radius:14px;width:52px;height:52px;padding:0;overflow:hidden}.itile img{border-radius:12px;width:100%;height:100%;display:block}.itile[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--surface) inset}.itile.add{border:1.5px dashed var(--line);color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:18px;line-height:1;display:flex}.itile.add span{font-size:10px}#widgetOut{flex-direction:column;gap:8px;display:flex}#widgetOut[hidden]{display:none}.steps{color:var(--muted);flex-direction:column;gap:4px;margin:0;padding-left:20px;font-size:13px;display:flex}.steps strong{color:var(--fg);font-weight:600}#widgetText{font-family:ui-monospace,Menlo,monospace;font-size:11px}.edit-side,.edit-main{display:contents}@media (width>=900px){body{padding-top:32px;padding-left:32px;padding-right:32px}.app{max-width:1400px}h1{font-size:30px}#auth,#settings{width:100%;max-width:560px;margin:0 auto}#home .plist{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));align-items:start;gap:16px;display:grid}#home .attention,#projectForm,#reuse{max-width:720px}#edit{width:100%;max-width:1200px;margin:0 auto}.edit-panel{grid-template-columns:minmax(320px,400px) 1fr;align-items:start;gap:32px;padding:24px;display:grid}.edit-side,.edit-main{flex-direction:column;gap:16px;min-width:0;display:flex}.edit-side{position:sticky;top:24px}.edit-main{border-left:1px solid var(--line);padding-left:32px}.edit-panel .due-row{flex-direction:column;align-items:stretch}.edit-panel .due-row .field{flex:none}}.pbadge{background:var(--accent-soft);color:var(--accent);vertical-align:1px;white-space:nowrap;border-radius:9px;align-items:center;gap:3px;margin-left:6px;padding:1px 6px;font-size:12px;font-weight:600;display:inline-flex}.pbadge svg,.ptile svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linejoin:round;width:13px;height:13px}body.noscroll{overflow:hidden}.sheet-wrap{z-index:60;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet-wrap[hidden],.viewer[hidden]{display:none}.sheet{background:var(--surface);width:100%;max-width:560px;max-height:88vh;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;flex-direction:column;gap:12px;display:flex;overflow-y:auto;box-shadow:0 -8px 30px #00000040}.sheet-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sheet-head h2{font-family:var(--font-display);margin:0;font-size:20px}.sheet-head .sub{color:var(--muted);margin:2px 0 0;font-size:13px}.sheet h3{margin:4px 0 0}.photos{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.ptile{aspect-ratio:1;border:1px solid var(--line);background:var(--bg);color:var(--muted);border-radius:12px;place-items:center;padding:0;font-size:13px;display:grid;position:relative;overflow:hidden}.ptile img{object-fit:cover;width:100%;height:100%;display:block}.ptile.add{border:2px dashed var(--accent);color:var(--accent);background:var(--accent-soft);align-content:center;gap:6px;font-weight:600}.ptile.add svg{width:26px;height:26px}.ptile.busy span{animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.4}}.viewer{z-index:70;padding:env(safe-area-inset-top,0px) 0 0;background:#000;flex-direction:column;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.viewer img{object-fit:contain;max-width:100%;max-height:calc(100% - 84px)}.vbar{padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px));justify-content:space-between;gap:12px;display:flex;position:absolute;bottom:0;left:0;right:0}.vbar .btn.danger{background:#ffffff1a}@media (width>=900px){.sheet-wrap{align-items:center}.sheet{border-radius:18px}}#toasts{z-index:80;padding:12px max(16px, env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px));pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;bottom:0;left:0;right:0}.toast{pointer-events:auto;background:var(--fg);width:100%;max-width:520px;color:var(--bg);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex;box-shadow:0 6px 24px #00000040}.toast button{color:inherit;background:0 0;border:0;min-height:36px;padding:0 8px;font-weight:600}@media (prefers-reduced-motion:no-preference){.toast{animation:.2s ease-out rise}@keyframes rise{0%{opacity:0;transform:translateY(8px)}}}
