:root{--bg:#f6f6f8;--surface:#fff;--surface-2:#f0f0f4;--text:#15161a;--muted:#6b6f7b;--line:#14161e14;--accent:#5b5ff0;--danger:#e5484d;--radius:16px;--shadow:0 1px 2px #0f11190a, 0 4px 16px #0f11190a;--tabbar-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Inter,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0e0f13;--surface:#17181e;--surface-2:#20222a;--text:#ececf1;--muted:#8d91a0;--line:#ffffff12;--accent:#7c80ff;--shadow:none}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}body{overscroll-behavior-y:none;min-height:100dvh}body.no-scroll{overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}button:disabled{opacity:.4;cursor:default}svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;width:20px;height:20px}a{color:var(--accent);text-decoration:none}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}main{max-width:640px;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 88px);margin:0 auto}.page{padding:calc(env(safe-area-inset-top) + 16px) 16px 0}.page-head{justify-content:space-between;align-items:flex-start;gap:12px;margin:8px 0 18px;display:flex}.page-head h1{letter-spacing:-.02em;margin:2px 0 6px;font-size:30px;line-height:1.1}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:13px;font-weight:600}.sub{color:var(--muted);margin:0;font-size:15px}.notes{white-space:pre-wrap;color:var(--muted);margin:8px 0 0;font-size:14px}.crumbs{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:4px;font-size:14px;display:flex}.crumbs .icon-btn{margin-left:-8px}.icon-btn{width:40px;height:40px;color:var(--muted);border-radius:12px;place-items:center;display:grid}.icon-btn:active{background:var(--surface-2)}.ghost-btn{background:var(--surface-2);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:8px 14px;font-size:14px;font-weight:600;display:inline-flex}.primary-btn{background:var(--accent);color:#fff;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:11px 16px;font-weight:600;display:inline-flex}.danger-btn{width:100%;color:var(--danger);background:color-mix(in srgb, var(--danger) 10%, transparent);border-radius:12px;margin-top:18px;padding:12px;font-weight:600}.link{color:var(--accent);font-weight:500}.link.strong,.strong{font-weight:700}.link.danger,.danger{color:var(--danger)}.small{font-size:13px}.muted{color:var(--muted)}.gap{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row-actions{flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 20px;display:flex}.section{margin-bottom:22px}.section-head{justify-content:space-between;align-items:center;margin:0 4px 8px;display:flex}.section-head h2{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);align-items:center;gap:8px;margin:0;font-size:13px;font-weight:700;display:flex}.section.danger .section-head h2{color:var(--danger)}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card+.card{margin-top:10px}.card.pad{padding:14px}.stack{flex-direction:column;gap:12px;display:flex}.empty{color:var(--muted);margin:0 4px;padding:6px 0;font-size:14px}.day-group h3{margin:14px 4px 6px;font-size:14px;font-weight:600}.day-group:first-of-type h3{margin-top:0}.done-toggle{margin:10px 4px;display:block}.skeleton{border-radius:var(--radius);background:linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);background-size:200% 100%;height:220px;margin-top:60px;animation:1.2s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.row{border-top:1px solid var(--line);cursor:pointer;align-items:center;gap:12px;min-height:52px;padding:12px 14px;display:flex}.row:first-child{border-top:0}.row:active:not(.static){background:var(--surface-2)}.row.static{cursor:default}.row.compact{min-height:44px;padding:8px 14px}.row-main{flex:1;min-width:0}.row-title{overflow-wrap:anywhere;font-size:16px;line-height:1.3}.kind-project .row-title,.kind-list .row-title{font-weight:600}.row.done .row-title{color:var(--muted);text-decoration:line-through}.row-icon{place-items:center;width:26px;display:grid}.row-icon svg{width:22px;height:22px}.row-bar{border-radius:4px;align-self:stretch;width:4px;margin:2px 11px}.row-chevron{color:var(--muted);opacity:.6}.meta{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.chip{background:var(--surface-2);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;border-radius:999px;align-items:center;gap:4px;max-width:100%;padding:2px 8px;font-size:12px;display:inline-flex;overflow:hidden}.chip svg{width:13px;height:13px}.chip.icon-only{padding:2px 6px}.chip.danger{color:var(--danger);background:color-mix(in srgb, var(--danger) 12%, transparent)}.chip.strong{color:var(--accent);background:color-mix(in srgb, var(--accent) 14%, transparent);font-weight:600}.chip.prio.p3{color:#e5484d;background:#e5484d21}.chip.prio.p2{color:#d97706;background:#f59e0b26}.chip.prio.p1{color:#2563eb;background:#3b82f621}.dot{border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.dot.big{width:10px;height:10px}.progress{background:var(--surface-2);border-radius:4px;height:4px;margin-top:8px;overflow:hidden}.progress i{border-radius:4px;height:100%;transition:width .3s;display:block}.progress.big{height:6px;margin:-6px 0 16px}.check{border:2px solid color-mix(in srgb, var(--c) 70%, var(--muted));border-radius:50%;flex-shrink:0;place-items:center;width:26px;height:26px;transition:background .15s;display:grid}.check.square{border-radius:7px}.check svg{stroke:#fff;stroke-width:2.6px;opacity:0;width:14px;height:14px}.check.on{background:var(--c);border-color:var(--c)}.check.on svg{opacity:1}.check:active{transform:scale(.9)}.event{border-top:1px solid var(--line);cursor:pointer;align-items:stretch;gap:12px;padding:12px 14px;display:flex}.event:first-child{border-top:0}.event-time{font-variant-numeric:tabular-nums;flex-direction:column;width:44px;padding-top:1px;font-size:14px;font-weight:600;display:flex}.event-time small{color:var(--muted);font-size:12px;font-weight:400}.event-bar{border-radius:4px;width:4px}.event-main{flex:1;min-width:0}.habit-strip{scrollbar-width:none;gap:10px;margin:0 -16px 22px;padding:2px 16px;display:flex;overflow-x:auto}.habit-strip::-webkit-scrollbar{display:none}.habit-strip .habit{background:var(--surface);box-shadow:var(--shadow);border-radius:var(--radius);min-width:150px;padding:10px 12px 10px 10px}.habit{align-items:center;gap:10px;display:flex;position:relative}.habit-ring{flex-shrink:0;width:48px;height:48px;position:relative}.habit-ring svg{width:48px;height:48px;transform:rotate(-90deg)}.habit-ring .track{stroke:var(--surface-2);stroke-width:5px}.habit-ring .fill{stroke:var(--accent);stroke-width:5px;transition:stroke-dashoffset .3s}.habit.done .habit-ring .fill{stroke:#10b981}.habit-ring:active{transform:scale(.94)}.habit-emoji{place-items:center;font-size:20px;display:grid;position:absolute;inset:0}.habit-text{flex-direction:column;min-width:0;font-size:13px;display:flex}.habit-text strong{font-size:15px}.habit-text span{color:var(--muted);white-space:nowrap}.habit-undo{background:var(--surface-2);width:26px;height:26px;color:var(--muted);border-radius:50%;margin-left:auto;font-size:16px;line-height:1}.habit.large .habit-ring,.habit.large .habit-ring svg{width:60px;height:60px}.habit.large .habit-emoji{font-size:24px}.habit-card{padding:14px}.habit-card-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.habit-card-top .habit{flex:1}.heat{grid-template-columns:repeat(7,22px);gap:5px;margin-top:14px;display:grid}.heat i{background:var(--accent);border-radius:6px;width:22px;height:22px}.heat i.hit{background:#10b981}.week{grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:20px;display:grid}.week-day{background:var(--surface);box-shadow:var(--shadow);border-radius:14px;flex-direction:column;align-items:center;gap:2px;padding:8px 0;display:flex}.week-day small{color:var(--muted);text-transform:uppercase;font-size:11px}.week-day strong{font-size:18px}.week-day.today strong{color:var(--accent)}.week-day.on{background:var(--accent)}.week-day.on small,.week-day.on strong{color:#fff}.dots{gap:3px;height:6px;display:flex}.dots i{border-radius:50%;width:5px;height:5px}.week-day.on .dots i{opacity:.8;background:#fff!important}.search,.inline-add input,.field input,.field select,.field textarea,.title-input,.capture-input,.login input{border:1px solid var(--line);background:var(--surface);border-radius:12px;outline:none;width:100%;padding:11px 12px;font-size:16px}.search{background:var(--surface-2);border-color:#0000;margin-bottom:18px}.field input:focus,.field select:focus,.field textarea:focus,.title-input:focus,.inline-add input:focus,.capture-input:focus{border-color:var(--accent)}.inline-add{gap:8px;margin-bottom:14px;display:flex}.inline-add input{flex:1}.field{flex-direction:column;gap:6px;min-width:0;margin-bottom:14px;display:flex}.field>span{color:var(--muted);font-size:13px;font-weight:600}.field small{color:var(--muted);font-size:12px}.field input:disabled,.field select:disabled{opacity:.5}.field 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% - 16px),calc(100% - 11px);background-repeat:no-repeat;background-size:5px 5px;padding-right:28px}.grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.grid-emoji{grid-template-columns:72px 1fr;gap:10px;display:grid}.grid-emoji input:first-child{text-align:center}.title-input{background:0 0;border:0;margin-bottom:6px;padding:14px 2px;font-size:20px;font-weight:600}.toggle{align-items:center;gap:10px;margin:2px 0 6px;font-size:15px;display:flex}.toggle input{width:20px;height:20px;accent-color:var(--accent)}.segmented{background:var(--surface-2);border-radius:12px;gap:2px;padding:3px;display:flex}.segmented button{color:var(--muted);border-radius:9px;flex:1;padding:8px 6px;font-size:14px;font-weight:600}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.days{gap:6px;display:flex}.days button{aspect-ratio:1;background:var(--surface-2);max-width:44px;color:var(--muted);border-radius:50%;flex:1;font-weight:700}.days button.on{background:var(--accent);color:#fff}.plain{background:0 0;border:0;outline:none;flex:1;min-width:0;padding:4px 0;font-size:16px}.colour{background:0 0;border:0;border-radius:50%;width:28px;height:28px;padding:0;overflow:hidden}.colour::-webkit-color-swatch-wrapper{padding:0}.colour::-webkit-color-swatch{border:0;border-radius:50%}.error{color:var(--danger);font-size:14px}.sheet-backdrop{z-index:50;background:#05060a73;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);border-radius:22px 22px 0 0;flex-direction:column;width:100%;max-width:640px;max-height:92dvh;animation:.22s cubic-bezier(.2,.9,.3,1) up;display:flex}.sheet-handle{background:var(--line);border-radius:3px;width:40px;height:5px;margin:8px auto 0}.sheet-head{grid-template-columns:1fr auto 1fr;align-items:center;padding:10px 16px;display:grid}.sheet-head>:last-child{justify-self:end}.sheet-head>:first-child{justify-self:start}.sheet-body{padding:4px 16px calc(24px + env(safe-area-inset-bottom));overflow-y:auto}@keyframes up{0%{opacity:0;transform:translateY(40px)}}@keyframes fade{0%{opacity:0}}.capture-input{resize:none;font-size:18px}.preview{background:var(--surface);border-radius:12px;margin-top:12px;padding:12px}.preview-title{font-weight:600}.hints p{color:var(--muted);font-size:14px;line-height:1.45}.example-list{flex-wrap:wrap;gap:6px;display:flex}.example{background:var(--surface);border:1px dashed var(--line);color:var(--muted);border-radius:999px;padding:6px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.capture-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;display:flex}.fab{right:max(18px,50% - 302px);bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);background:var(--accent);color:#fff;width:58px;height:58px;box-shadow:0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent);z-index:20;border-radius:50%;place-items:center;display:grid;position:fixed}.fab svg{stroke-width:2.4px;width:28px;height:28px}.fab:active{transform:scale(.94)}.tabbar{height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--line);z-index:10;justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar a{max-width:160px;color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:600;display:flex}.tabbar a svg{width:24px;height:24px}.tabbar a.active{color:var(--accent)}.login{text-align:center;flex-direction:column;justify-content:center;gap:12px;max-width:340px;min-height:100dvh;margin:0 auto;padding:24px;display:flex}.login img{border-radius:18px;margin:0 auto}.login h1{margin:6px 0 12px}.ghost-btn.wide{justify-content:center;width:100%;margin-top:8px;padding:12px}.plan-summary{margin-bottom:14px}.plan-summary-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.plan-summary-top>div{flex-direction:column;gap:2px;display:flex}.plan-summary strong{font-size:17px}.pct{color:var(--muted);font-variant-numeric:tabular-nums;font-size:22px;font-weight:700}.pct.full{color:#10b981}.stack-bar{background:var(--surface-2);border-radius:6px;height:8px;margin:12px 0 8px;display:flex;overflow:hidden}.stack-bar i{height:100%;display:block}.legend{color:var(--muted);flex-wrap:wrap;gap:4px 12px;margin-bottom:4px;font-size:12px;display:flex}.legend span{align-items:center;gap:5px;display:inline-flex}.now-card{border-left:4px solid var(--c);flex-direction:column;gap:8px;margin-bottom:14px;display:flex}.now-card .eyebrow{color:var(--c)}.now-title{font-size:20px}.now-card .progress{margin:0 0 4px}.info-strip{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.info-strip .chip{padding:4px 10px;font-size:13px}.timeline{margin:8px 0 26px;position:relative}.hour{border-top:1px solid var(--line);position:absolute;left:0;right:0}.hour span{width:44px;color:var(--muted);background:var(--bg);font-variant-numeric:tabular-nums;font-size:11px;position:absolute;top:-8px;left:0}.gap-slot{border:1.5px dashed color-mix(in srgb, var(--muted) 35%, transparent);color:var(--muted);border-radius:10px;justify-content:flex-start;align-items:flex-start;padding:4px 8px;font-size:12px;display:flex;position:absolute;left:52px;right:4px;overflow:hidden}.gap-slot span{align-items:center;gap:4px;display:inline-flex}.gap-slot svg{width:13px;height:13px}.gap-slot:active{background:var(--surface-2)}.tl{border-radius:10px;gap:6px;padding:6px 9px;font-size:13px;display:flex;position:absolute;overflow:hidden}.tl strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.25;display:block;overflow:hidden}.tl span{opacity:.8;white-space:nowrap;text-overflow:ellipsis;font-size:12px;display:block;overflow:hidden}.tl.short{align-items:center;padding:2px 8px}.tl.short .tl-text{align-items:baseline;gap:8px;min-width:0;display:flex}.tl.block{background:color-mix(in srgb, var(--c) 18%, var(--surface));border-left:4px solid var(--c);cursor:pointer;box-shadow:var(--shadow)}.tl.block .tl-text{flex:1;min-width:0}.tl.block.done{background:color-mix(in srgb, var(--c) 8%, var(--surface))}.tl.block.done strong{color:var(--muted)}.tl.block.skipped{opacity:.45}.tl.block.skipped strong{text-decoration:line-through}.tl.block.live{outline:2px solid var(--c);outline-offset:1px}.tl.fixed{background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--surface)) 0 8px, color-mix(in srgb, var(--c) 7%, var(--surface)) 8px 16px);border-left:4px solid var(--c);flex-direction:column;gap:0}.tl-actions{align-self:flex-start;gap:4px;display:flex}.tl-actions button{background:var(--surface);width:26px;height:26px;color:var(--muted);border-radius:8px;font-size:13px;font-weight:700}.tl.short .tl-actions{align-self:center}.now-line{background:var(--danger);z-index:2;pointer-events:none;height:2px;position:absolute;left:46px;right:0}.now-line i{background:var(--danger);border-radius:50%;width:10px;height:10px;position:absolute;top:-4px;left:-5px}.len-pick{background:var(--surface-2);border-radius:9px;gap:2px;padding:2px;display:flex}.len-pick button{color:var(--muted);border-radius:7px;padding:4px 8px;font-size:12px;font-weight:600}.len-pick button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.quick-durations{flex-wrap:wrap;gap:6px;margin:-4px 0 14px;display:flex}.quick-durations .example{font-family:inherit}.now-next{text-align:left;grid-template-columns:1.3fr 1fr;gap:12px;width:100%;margin-bottom:22px;display:grid}.now-next>div{flex-direction:column;gap:3px;min-width:0;display:flex}.now-next strong{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;font-size:16px;display:flex;overflow:hidden}.now-next .eyebrow{font-size:11px}.plan-cta{text-align:left;border:1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent);flex-direction:column;gap:4px;width:100%;margin-bottom:22px;display:flex}.plan-cta strong{color:var(--accent);font-size:16px}.notice{color:#059669;background:#10b98124;border-radius:12px;padding:10px 12px;font-size:14px;font-weight:600}.pad-x{margin:0;padding:10px 14px}.mini-toggle{color:var(--muted);white-space:nowrap;align-items:center;gap:4px;font-size:12px;display:inline-flex}.tabbar a{max-width:130px}
