:root{color-scheme:dark;--bg: #0a0e17;--surface: #121826;--surface-2: #182033;--surface-3: #212b43;--line: #243049;--text: #eef2f8;--muted: #97a2ba;--faint: #66728c;--ink: #e4ebf7;--accent: #c6f24e;--accent-soft: rgba(198, 242, 78, .13);--accent-ink: #0a0e17;--danger: #ff8a80;--radius: 18px;--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;--day: var(--accent)}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1,h2,h3,h4,p,dl,dd,figure{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.up{color:var(--accent);font-weight:600}.down{color:var(--danger);font-weight:600}.app{max-width:640px;margin:0 auto;padding:0 16px calc(100px + env(safe-area-inset-bottom))}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 0 12px;background:linear-gradient(var(--bg) 72%,rgba(10,14,23,0))}.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:.02em;text-transform:uppercase}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-size:17px}.sync{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);padding:6px 11px;border-radius:99px;background:var(--surface);border:1px solid var(--line);white-space:nowrap}.sync i{width:7px;height:7px;border-radius:50%;background:var(--faint)}.sync[data-s=saved] i{background:var(--accent)}.sync[data-s=saving] i,.sync[data-s=loading] i{background:#f2df5b;animation:pulse .9s infinite alternate}.sync[data-s=offline] i,.sync[data-s=error] i{background:var(--danger)}.day-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:6px 0 22px}.day-chip{position:relative;min-height:58px;border-radius:14px;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:8px 2px 6px;transition:background .15s ease,border-color .15s ease}.day-chip:before{content:"";position:absolute;top:6px;width:16px;height:3px;border-radius:2px;background:var(--day)}.day-chip-n{font-family:var(--display);font-weight:700;font-size:21px;line-height:1.1;margin-top:4px}.day-chip-next{font-size:9.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.day-chip.is-on{background:var(--day);border-color:transparent;color:var(--accent-ink)}.day-chip.is-on:before{background:#0a0e174d}.day-chip.is-on .day-chip-next{color:#0a0e17b8}.day-head{margin-bottom:18px}.eyebrow{font-family:var(--display);font-weight:600;text-transform:uppercase;letter-spacing:.14em;font-size:13px;color:var(--day)}.day-head h1{font-family:var(--display);font-weight:700;font-size:clamp(34px,9.5vw,46px);line-height:.98;text-transform:uppercase;margin-top:4px;text-wrap:balance}.day-meta{display:flex;align-items:center;gap:10px 14px;margin-top:16px;flex-wrap:wrap}.date-field{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.date-field input{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 10px;min-height:38px;color:var(--text);color-scheme:dark}.done-count{margin-left:auto;font-size:13px;color:var(--muted)}.done-count b{color:var(--text)}.progress{height:4px;background:var(--surface-2);border-radius:4px;margin-top:12px;overflow:hidden}.progress i{display:block;height:100%;background:var(--day);border-radius:4px;transition:width .4s ease}.cards{display:flex;flex-direction:column;gap:12px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:border-color .2s ease}.card.is-done{border-color:#c6f24e66}.card-head{display:flex;align-items:flex-start;gap:2px;padding:12px 6px 12px 12px}.card-open{flex:1;min-width:0;display:flex;gap:14px;align-items:center;background:none;border:0;padding:0;text-align:left;border-radius:12px}.card-info{display:block;min-width:0}.card-tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:5px}.num{font-family:var(--display);font-weight:700;font-size:15px;color:var(--muted);flex:none}.num:before{content:"#";opacity:.55}.tag{font-size:10.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:3px 7px;border-radius:6px;background:var(--surface-3);color:var(--muted)}.tag-prog{background:var(--accent-soft);color:var(--accent)}.tag-swap{background:#62a8fa26;color:#93c3ff}.tag-on{background:var(--accent);color:var(--accent-ink)}.card-title{display:block;font-size:16.5px;font-weight:600;line-height:1.25;text-wrap:balance}.scheme{display:block;color:var(--muted);font-size:13.5px;margin-top:3px}.scheme b{color:var(--text);font-weight:600}.icon-btn{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;border:0;background:transparent;color:var(--muted)}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn svg{width:21px;height:21px}.fig{position:relative;flex:none;display:block;border-radius:12px;background:var(--surface-2);overflow:hidden}.fig i{position:absolute;top:7%;right:7%;bottom:7%;left:7%;background:var(--ink);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.fig-xs{width:64px;height:64px}.fig-sm{width:84px;height:84px}.fig-lg{width:min(100%,340px);aspect-ratio:1;margin:0 auto;border-radius:20px}.fig-anim .fig-a{animation:fig-a 3.2s ease-in-out infinite}.fig-anim .fig-b{animation:fig-b 3.2s ease-in-out infinite}@keyframes fig-a{0%,38%{opacity:1}50%,88%{opacity:0}to{opacity:1}}@keyframes fig-b{0%,38%{opacity:0}50%,88%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.fig-anim .fig-a,.fig-anim .fig-b{animation:none}.fig-anim .fig-b{opacity:0}}.fig-empty{display:grid;place-items:center;color:var(--faint)}.fig-empty svg{width:42%;height:42%}.log{border-top:1px solid var(--line);padding:10px 12px 12px}.log-top{display:flex;justify-content:space-between;gap:4px 10px;font-size:12.5px;color:var(--muted);margin-bottom:8px;flex-wrap:wrap}.log-top b{color:var(--text);font-weight:600}.log-controls{display:flex;gap:8px}.stepper{flex:1;min-width:0;display:flex;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}.stepper:focus-within{border-color:var(--muted)}.stepper button{width:46px;height:48px;flex:none;border:0;background:none;color:var(--muted);display:grid;place-items:center}.stepper button svg{width:20px;height:20px}.stepper button:active{color:var(--text)}.stepper input{flex:1;min-width:0;width:100%;background:none;border:0;text-align:right;font-family:var(--display);font-weight:700;font-size:27px;padding:0 4px 0 0;outline:none}.stepper .unit{flex:1;font-family:var(--display);font-size:17px;font-weight:600;color:var(--muted)}.save{flex:none;min-width:112px;height:50px;border-radius:12px;border:0;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:15px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.save svg{width:18px;height:18px}.save:disabled{opacity:.4}.save.is-saved{background:var(--accent-soft);color:var(--accent);opacity:1}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:center;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#0a0e17e0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line)}.tab{flex:1;max-width:304px;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:14px;border:0;background:transparent;color:var(--muted);font-weight:600}.tab svg{width:21px;height:21px}.tab.is-on{background:var(--surface-2);color:var(--text)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#03060cb3;display:flex;align-items:flex-end;justify-content:center;animation:fade .2s ease}.sheet{width:100%;max-width:640px;max-height:94dvh;background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:24px 24px 0 0;display:flex;flex-direction:column;animation:rise .26s cubic-bezier(.2,.8,.2,1)}@media(min-width:700px){.sheet-backdrop{align-items:center;padding:24px}.sheet{border-radius:24px;border-bottom:1px solid var(--line);max-height:90dvh}}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:10px 8px 10px 20px;border-bottom:1px solid var(--line)}.sheet-head h2{font-family:var(--display);font-weight:600;text-transform:uppercase;letter-spacing:.1em;font-size:15px;color:var(--muted)}.sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:18px 20px calc(28px + env(safe-area-inset-bottom))}.sheet-lead,.lead{color:var(--muted);font-size:14px;margin-bottom:14px}.detail-media{display:flex;flex-direction:column;align-items:center}.frames{display:flex;gap:10px;justify-content:center;margin-top:10px}.frames figure{text-align:center;font-size:11.5px;color:var(--muted)}.frames figcaption{margin-top:4px}.detail-tags{margin-top:18px}.detail-title{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:32px;line-height:1.02;text-wrap:balance}.note{margin-top:12px;font-size:13px;color:#ecc97c;background:#ecc97c17;border-radius:10px;padding:9px 11px}.note-prog{color:var(--text);background:var(--accent-soft)}.note-prog b{color:var(--accent)}.howto{display:grid;gap:8px;margin:16px 0}.howto div{background:var(--surface-2);border-radius:12px;padding:10px 12px}.howto dt{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:2px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-weight:600;cursor:pointer}.btn svg{width:18px;height:18px}.btn:disabled{opacity:.45}.btn-wide{width:100%}.btn-primary{background:var(--accent);color:var(--accent-ink);border-color:transparent}.section-title{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:21px;letter-spacing:.02em;margin:28px 0 12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{background:var(--surface-2);border-radius:14px;padding:10px 12px;min-width:0}.stat span{display:block;font-size:10.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.stat b{display:block;font-family:var(--display);font-size:25px;font-weight:700;line-height:1.15;white-space:nowrap}.chart{display:block;width:100%;height:auto;margin-top:14px}.chart .grid{stroke:var(--line);stroke-width:1}.chart .axis{fill:var(--faint);font-size:10px;font-family:var(--font)}.chart .area{fill:var(--accent-soft)}.chart .line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.chart .pt{fill:var(--surface);stroke:var(--accent);stroke-width:2}.chart .pt-up{fill:var(--accent)}.chart .val{fill:var(--text);font-size:11px;font-weight:600;text-anchor:middle;font-family:var(--font)}.hist-list{list-style:none;margin:14px 0 0;padding:0}.hist-list li{display:flex;align-items:center;gap:10px;min-height:54px;border-bottom:1px solid var(--line)}.hist-date{flex:1;color:var(--muted);font-size:14px}.hist-w{display:inline-flex;align-items:center;gap:6px;font-family:var(--display);font-weight:700;font-size:21px;color:var(--text);background:none;border:0;border-radius:10px;padding:4px 6px}.hist-w svg{width:15px;height:15px;color:var(--faint)}.hist-w:hover{background:var(--surface-2)}.hist-edit{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;padding:6px 0}.hist-input{width:88px;min-height:42px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:0 10px;color:var(--text);font-family:var(--display);font-weight:700;font-size:21px;text-align:right}.hist-edit .unit{font-family:var(--display);font-weight:600;color:var(--muted)}.hist-hint{margin-top:10px;font-size:12.5px;color:var(--faint)}.badge{font-size:11.5px;padding:3px 8px;border-radius:99px;white-space:nowrap}.badge.up{background:var(--accent-soft)}.badge.down{background:#ff8a801f}.del{flex:none;min-width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:10px;background:none;color:var(--faint)}.del svg{width:18px;height:18px}.del.is-armed{color:var(--danger);background:#ff8a801f;padding:0 12px;font-size:13px;font-weight:600}.empty{color:var(--muted);font-size:14px;background:var(--surface);border:1px dashed var(--line);border-radius:14px;padding:14px}.sheet .empty{background:var(--surface-2)}.options{list-style:none;margin:0;padding:0;display:grid;gap:10px}.option{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px;border:1px solid var(--line);background:var(--surface-2)}.option .fig{background:var(--surface-3)}.option.is-current{border-color:#c6f24e8c;background:linear-gradient(var(--accent-soft),var(--accent-soft)),var(--surface-2)}.option-info{flex:1;min-width:0}.option-info h4{font-size:15px;font-weight:600;line-height:1.25}.option-info p{font-size:12.5px;color:var(--muted);margin-top:2px}.option-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}.btn-small{min-height:40px;padding:0 16px;border-radius:10px;border:0;background:var(--text);color:var(--bg);font-weight:700;font-size:14px}.link-btn{background:none;border:0;color:var(--muted);font-size:12.5px;text-decoration:underline;text-underline-offset:3px;padding:6px 4px}.check{width:40px;height:40px;display:grid;place-items:center;color:var(--accent)}.check svg{width:24px;height:24px}.add-btn{margin-top:14px}.form{display:grid;gap:14px;margin-top:16px;padding:14px;border-radius:16px;border:1px dashed var(--line)}.form-title{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:19px}.field{display:grid;gap:6px}.field>span{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.input{width:100%;min-height:48px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:0 12px;color:var(--text);font-size:16px}.img-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;max-height:290px;overflow-y:auto;padding:2px}.img-pick{display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px 2px 6px;border:2px solid transparent;border-radius:14px;background:none;color:var(--muted);font-size:10.5px;line-height:1.2;text-align:center}.img-pick span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.img-pick.is-on{border-color:var(--accent);color:var(--text)}.form-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.page-title{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:clamp(38px,11vw,48px);line-height:1;margin:8px 0 18px}.timeline{list-style:none;margin:0;padding:0;display:grid;gap:8px}.timeline button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px}.tl-date{flex:none;width:42px;font-family:var(--display);font-weight:600;font-size:15px;color:var(--muted)}.tl-main,.track-main{flex:1;min-width:0;display:block}.tl-title,.track-title{display:block;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tl-sub,.track-sub{display:block;font-size:12.5px;color:var(--muted)}.tl-delta{flex:none;font-family:var(--display);font-weight:700;font-size:21px;color:var(--accent)}.day-section-title{display:flex;align-items:center;gap:10px}.dot{width:10px;height:10px;border-radius:50%;background:var(--day);flex:none}.tracks{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.tracks li+li{border-top:1px solid var(--line)}.track{width:100%;display:flex;align-items:center;gap:12px;background:none;border:0;padding:12px 14px;min-height:64px;text-align:left}.spark{flex:none;width:72px;height:28px}.spark path{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.spark circle{fill:var(--accent)}.track-delta{flex:none;width:48px;text-align:right;font-family:var(--display);font-weight:700;font-size:19px;color:var(--faint)}.track-delta.up{color:var(--accent)}.track-delta.down{color:var(--danger)}.backup-actions{display:flex;gap:8px;flex-wrap:wrap}.credits{color:var(--faint);font-size:12px;margin-top:32px}@media(max-width:380px){.fig-sm{width:72px;height:72px}.save{min-width:96px}.stepper button{width:40px}.spark{display:none}}.streak{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:22px 18px 20px;border-radius:var(--radius);background:linear-gradient(var(--accent-soft),transparent),var(--surface);border:1px solid rgba(198,242,78,.35);margin-bottom:10px}.streak-n{font-family:var(--display);font-weight:700;font-size:72px;line-height:.9;color:var(--accent)}.streak-label{font-family:var(--display);font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:14px;color:var(--muted)}.streak-sub{margin-top:8px;font-size:13px;color:var(--muted);max-width:34ch}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.week-day{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0 10px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}.week-wd{font-size:11px;font-weight:600;color:var(--muted)}.week-dot{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:2px solid var(--line);color:var(--accent-ink)}.week-dot svg{width:16px;height:16px}.week-num{font-family:var(--display);font-weight:600;font-size:13px;color:var(--faint)}.week-day.is-on .week-dot{background:var(--accent);border-color:var(--accent)}.week-day.is-today{border-color:var(--muted)}.week-day.is-future{opacity:.45}.cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:26px 0 10px}.cal-head h2{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:21px}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.cal-wd{text-align:center;font-size:11px;font-weight:600;color:var(--faint);padding-bottom:4px}.cal-day{aspect-ratio:1;display:grid;place-items:center;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:14px;font-weight:600}.cal-day.is-weekend{background:transparent;color:var(--faint)}.cal-day.is-missed{border-style:dashed;border-color:#ff8a8059}.cal-day.is-on{background:var(--accent);border-color:transparent;color:var(--accent-ink)}.cal-day.has-load{background:var(--day);color:var(--accent-ink)}.cal-day.is-today{outline:2px solid var(--text);outline-offset:1px}.cal-day:disabled{opacity:.3}.cal-legend{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--muted)}.cal-legend li{display:flex;align-items:center;gap:7px}.lg{width:13px;height:13px;border-radius:4px;flex:none}.lg-load{background:#62a8fa}.lg-check{background:var(--accent)}.lg-missed{border:1px dashed rgba(255,138,128,.6)}.day-tools{display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap}.chip-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:13.5px;font-weight:600}.chip-btn svg{width:18px;height:18px}.chip-btn.is-on{background:var(--accent);color:var(--accent-ink);border-color:transparent}.reorder-list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.reorder-row{display:flex;align-items:center;gap:10px;padding:8px 6px 8px 10px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.reorder-row .fig{background:var(--surface-2)}.pos{flex:none;width:22px;text-align:center;font-family:var(--display);font-weight:700;font-size:20px;color:var(--day)}.reorder-info{flex:1;min-width:0;display:block}.reorder-name{display:block;font-size:14.5px;font-weight:600;line-height:1.25}.reorder-actions{display:flex;flex:none}.icon-btn:disabled{opacity:.25}@keyframes rise{0%{transform:translateY(28px);opacity:0}}@keyframes fade{0%{opacity:0}}@keyframes pulse{to{opacity:.35}}
