:root{--bg:#fff;--surface:#f7f7f5;--hover:#f1f1ef;--text:#1f1f1e;--muted:#787774;--faint:#b4b3af;--line:#ebebe9;--line-strong:#d9d8d5;--ink:#111;--ink-text:#fff;--ink-hover:#2b2b2b;--accent:#2383e2;--accent-soft:#e8f1fc;--success:#2e9d5b;--pr:#d9822b;--danger:#e03e3e;--toast-action:#7ab8ff;--radius:14px;--ease-out:cubic-bezier(.2, .8, .2, 1);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#191919;--surface:#202020;--hover:#2a2a2a;--text:#ececea;--muted:#9b9a97;--faint:#5f5e5b;--line:#2d2d2d;--line-strong:#3d3d3d;--ink:#ececea;--ink-text:#191919;--ink-hover:#d4d4d2;--accent:#4a9eff;--accent-soft:#1f2d3d;--success:#3fbf74;--pr:#f0a04b;--danger:#ff6b6b;--toast-action:#1a6fc4}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}html,body{background:var(--bg);color:var(--text);margin:0}body{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;overscroll-behavior-y:none;font-family:Inter,-apple-system,BlinkMacSystemFont,SF Pro Text,sans-serif;font-size:16px;line-height:1.45}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:0;padding:0}h1{letter-spacing:-.03em;margin:0;font-size:2rem;font-weight:700;line-height:1.15}h2{letter-spacing:-.01em;margin:0;font-size:1.15rem;font-weight:600}.screen{max-width:560px;min-height:100dvh;padding:calc(env(safe-area-inset-top) + 1.5rem) 1.25rem calc(env(safe-area-inset-bottom) + 6rem);margin:0 auto}.screen.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding-bottom:3rem;display:flex}.head{margin-bottom:1.25rem}.head-row-flex{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.muted{color:var(--muted);margin:.25rem 0 0;font-size:.95rem}.screen.center .muted{margin-bottom:1.5rem}.faint-line,.empty-note{color:var(--faint);margin:.25rem 0 .75rem;font-size:.9rem}.empty-note{text-align:center;margin-top:2rem}.error{color:var(--danger);margin:0 0 .75rem;font-size:.9rem}.stack{flex-direction:column;gap:.5rem;width:100%;max-width:320px;display:flex}.eyebrow{letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin:0 0 .2rem;font-size:.72rem;font-weight:600}.splash{letter-spacing:-.03em;color:var(--faint);font-size:1.6rem;font-weight:700;animation:1.2s ease-in-out infinite pulse}.sync-line{background:var(--surface);color:var(--muted);text-align:center;border-radius:999px;margin:0 0 .75rem;padding:.35rem .75rem;font-size:.8rem}.skel{background:linear-gradient(90deg, var(--surface) 0%, var(--hover) 50%, var(--surface) 100%);background-size:200% 100%;border-radius:12px;animation:1.2s linear infinite shimmer}.btn{background:var(--bg);border:1px solid var(--line-strong);border-radius:12px;min-height:48px;padding:0 1.1rem;font-size:1rem;font-weight:500;transition:transform .1s,opacity .15s,background .15s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.35}.btn.primary{background:var(--ink);border-color:var(--ink);color:var(--ink-text)}.btn.primary:disabled{opacity:.3}.btn.ghost{color:var(--muted);border-color:#0000}.btn.big{width:100%;min-height:54px;margin-top:1rem;font-size:1.05rem;font-weight:600}.btn.danger,.actions .danger{color:var(--danger)}.btn.danger-btn{background:var(--danger);border-color:var(--danger);color:#fff}.input{border:1px solid var(--line-strong);background:var(--bg);width:100%;min-height:48px;color:var(--text);font:inherit;border-radius:12px;outline:none;padding:0 .9rem;font-size:16px;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--muted);box-shadow:0 0 0 3px var(--line)}.input.search{background:var(--surface);border-color:#0000}.icon-btn{width:44px;height:44px;color:var(--muted);border-radius:10px;flex:none;place-items:center;font-size:1.4rem;display:grid}.icon-btn:active{background:var(--hover)}.icon-btn.sm{width:40px;height:40px;font-size:1.1rem}.icon-btn:disabled{opacity:.3}.pr{background:var(--pr);color:#fff;letter-spacing:.04em;vertical-align:middle;border-radius:5px;margin-left:.35rem;padding:0 .3rem;font-size:.6rem;font-weight:700;line-height:1.5;display:inline-block}.hero{background:var(--surface);border-radius:18px;margin-bottom:1.25rem;padding:1.25rem}.hero h2{letter-spacing:-.02em;font-size:1.6rem;font-weight:700}.hero-list{color:var(--muted);margin:.35rem 0 0}.hero-when{color:var(--faint);margin:.2rem 0 0;font-size:.85rem}.tpl-list{margin:0;padding:0;list-style:none}.tpl{text-align:left;border-radius:12px;justify-content:space-between;align-items:center;gap:.75rem;width:100%;padding:.85rem .75rem;display:flex}.tpl:active{background:var(--hover)}.tpl-main{flex-direction:column;min-width:0;display:flex}.tpl-main span{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;overflow:hidden}.tpl-when{color:var(--faint);white-space:nowrap;font-size:.8rem}.start-actions{flex-direction:column;gap:.5rem;margin-top:1.5rem;display:flex}.story-wrap{z-index:5;background:var(--bg);padding:env(safe-area-inset-top) 1.25rem .25rem;margin:0 -1.25rem .5rem;position:sticky;top:0}.wk-head{align-items:center;gap:.5rem;min-height:52px;display:flex}.wk-title{text-align:left;flex-direction:column;flex:1;align-items:flex-start;min-width:0;display:flex}.wk-title strong{letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:1.2rem;overflow:hidden}.wk-title span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.85rem}.finish-btn{background:var(--accent-soft);height:36px;color:var(--accent);border-radius:999px;padding:0 .9rem;font-size:.9rem;font-weight:600}.finish-btn:active{transform:scale(.96)}.rest-pill{height:36px;color:var(--accent);font-variant-numeric:tabular-nums;animation:pop-in .25s var(--ease-out);background:linear-gradient(90deg, var(--accent-soft) calc(var(--p,0) * 100%), var(--surface) 0);border-radius:999px;padding:0 .85rem;font-size:.9rem;font-weight:600}.rest-pill.over{background:var(--accent);color:#fff;animation:1s ease-in-out infinite pulse}.rest-big{letter-spacing:-.03em;text-align:center;font-variant-numeric:tabular-nums;margin:.75rem 0;font-size:3.5rem;font-weight:700}.rest-bar{background:var(--line);border-radius:3px;height:6px;overflow:hidden}.rest-bar i{background:var(--accent);height:100%;transition:width .25s linear;display:block}.rest-actions{grid-template-columns:1fr 1fr;gap:.5rem;margin-top:1.25rem;display:grid}.story{scrollbar-width:none;gap:4px;display:flex;overflow-x:auto}.story::-webkit-scrollbar{display:none}.story-seg{flex:1 0 14px;align-items:center;height:32px;display:flex}.story-seg .track{background:var(--line-strong);border-radius:3px;width:100%;height:5px;transition:height .15s;display:block;position:relative;overflow:hidden}.story-seg .track i{background:var(--ink);transition:width .3s var(--ease-out), background .3s;border-radius:3px;position:absolute;top:0;bottom:0;left:0}.story-seg.full .track i{background:var(--success)}.story-seg.cur .track{height:8px;box-shadow:0 0 0 2px var(--accent)}.story-seg.add{flex:0 0 28px;justify-content:center}.story-seg.add .track.plus{background:var(--surface);width:22px;height:22px;color:var(--muted);border-radius:50%;place-items:center;font-size:1rem;line-height:1;display:grid}.story-seg.add.cur .track.plus{height:22px;color:var(--accent)}.story-meta{color:var(--muted);justify-content:space-between;align-items:center;min-height:32px;font-size:.85rem;display:flex}.story-meta button{color:var(--accent);padding:.4rem 0 .4rem 1rem;font-weight:500}.pager{scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;align-items:flex-start;margin:0 -1.25rem;display:flex;overflow-x:auto}.pager::-webkit-scrollbar{display:none}.page{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 100%;min-width:0;padding:0 1.25rem}.add-page{flex-direction:column;align-items:center;gap:.75rem;padding:3rem 0;display:flex}.add-page .muted{margin:0}.card{background:var(--surface);border-radius:var(--radius);margin-bottom:1rem;padding:1rem .75rem .75rem}.card-head{justify-content:space-between;align-items:flex-start;gap:.5rem;margin:-.25rem -.25rem .25rem 0;padding:0 .25rem;display:flex}.card-title{min-width:0;padding-top:.3rem}.card-title .faint-line{margin:.1rem 0 0}.set-grid{grid-template-columns:1.6rem minmax(0,1fr) 3.9rem 3.9rem 2.75rem;align-items:center;gap:6px;display:grid}.set-head{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:.5rem .4rem .3rem;font-size:.68rem;font-weight:600}.set-head span:first-child,.set-head span:nth-child(n+3){text-align:center}.set-row{border-radius:10px;min-height:52px;padding:4px .4rem;font-weight:600;transition:background .25s}.set-row.done{background:color-mix(in srgb, var(--success) 11%, transparent)}.set-n{text-align:center;font-variant-numeric:tabular-nums;position:relative}.set-n .pr{margin:0;position:absolute;top:-12px;left:50%;transform:translate(-50%)}.prev{color:var(--faint);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:400;overflow:hidden}.cell{background:var(--bg);width:100%;height:44px;color:var(--text);text-align:center;font:inherit;font-variant-numeric:tabular-nums;border:0;border-radius:10px;outline:none;min-width:0;font-size:1.1rem;font-weight:600;transition:box-shadow .15s,background .25s}.cell::placeholder{color:var(--faint);font-size:.85rem;font-weight:400}.cell:focus{box-shadow:0 0 0 2px var(--accent)}.set-row.done .cell{background:0 0}.set-row.done .cell:focus{background:var(--bg)}.check{background:var(--bg);width:44px;height:44px;color:var(--faint);border:1.5px solid var(--line-strong);border-radius:12px;place-items:center;transition:background .2s,color .2s,border-color .2s,transform .1s;display:grid}.check:active{transform:scale(.9)}.check.on{background:var(--success);border-color:var(--success);color:#fff}.set-row.pop .check{animation:check-pop .35s var(--ease-out)}.set-row.pop{animation:.6s ease-out row-flash}.add-set{width:100%;min-height:44px;color:var(--muted);border-radius:10px;margin-top:.25rem;font-size:.95rem;font-weight:500}.add-set:active{background:var(--hover)}.next-chip{background:var(--bg);width:100%;min-height:48px;color:var(--accent);border-radius:12px;justify-content:space-between;align-items:center;margin-top:.5rem;padding:0 1rem;font-weight:600;transition:background .25s,color .25s;display:flex}.next-chip:active{transform:scale(.98)}.next-chip.ready{background:var(--ink);color:var(--ink-text)}.suggestion{text-align:left;border-radius:10px;width:100%;min-height:48px;padding:0 .75rem}.suggestion:active{background:var(--hover)}.suggestion.create{color:var(--accent);font-weight:500}.suggestion.pick{justify-content:space-between;align-items:center;display:flex}.suggestion.pick.on{background:var(--accent-soft);color:var(--accent);font-weight:500}.sheet-back{z-index:30;background:#00000059;transition:opacity .2s;animation:.25s ease-out fade-in;position:fixed;inset:0}.sheet-back.out{opacity:0}.sheet{z-index:31;background:var(--bg);max-width:560px;max-height:88dvh;padding:0 1.25rem calc(env(safe-area-inset-bottom) + 1rem);animation:sheet-in .32s var(--ease-out);border-radius:20px 20px 0 0;outline:none;flex-direction:column;margin:0 auto;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 30px #00000026}.sheet-grab{touch-action:none;cursor:grab;flex:none;justify-content:center;align-items:center;height:22px;margin:0 -1.25rem;display:flex}.sheet-grab span{background:var(--line-strong);border-radius:3px;width:36px;height:5px}.sheet-head{align-items:center;gap:.25rem;margin-bottom:.5rem;display:flex}.sheet-head h2{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.sheet-body{overscroll-behavior:contain;flex:1;min-height:0;margin:.5rem -.25rem 0;padding:0 .25rem;overflow-y:auto}.sheet-done{flex:none;width:100%;margin-top:.75rem}.sheet-wide{width:100%;margin-top:.75rem}.sheet .error{margin:.5rem 0 0}.sheet-actions{flex-direction:column;gap:.25rem;margin-top:.75rem;display:flex}.name-form{flex-direction:column;gap:.5rem;margin-top:.75rem;display:flex}.actions{flex-direction:column;margin:0 -.25rem;display:flex}.actions button{text-align:left;border-radius:10px;min-height:52px;padding:0 .75rem;font-weight:500}.actions button:active{background:var(--hover)}.list{margin:0;padding:0;list-style:none}.list-label{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:1.25rem 0 .35rem;padding:0 .25rem;font-size:.7rem;font-weight:600}.sheet .list-label{margin-top:.75rem;padding:0 .75rem}.ov-row{background:var(--bg);border-radius:10px;align-items:center;display:flex}.ov-row.cur{background:var(--surface)}.ov-row.dragging{z-index:2;background:var(--bg);position:relative;box-shadow:0 8px 24px #0000002e;transition:none!important}.ov-main{text-align:left;flex-direction:column;flex:1;justify-content:center;align-items:flex-start;min-width:0;min-height:56px;padding:0 .5rem;display:flex}.ov-name{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-weight:500;overflow:hidden}.ov-count{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:.85rem;overflow:hidden}.ov-count.full{color:var(--success)}.grip{width:36px;height:56px;color:var(--faint);touch-action:none;cursor:grab;flex:none;place-items:center;display:grid}.toast{left:50%;bottom:calc(env(safe-area-inset-bottom) + 76px);z-index:40;background:var(--ink);width:max-content;max-width:calc(100% - 32px);color:var(--ink-text);animation:toast-in .28s var(--ease-out);border-radius:14px;align-items:center;gap:1rem;padding:.75rem 1rem;font-size:.95rem;font-weight:500;transition:opacity .2s,transform .2s;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #0003}.toast.out{opacity:0;transform:translate(-50%,12px)}.toast.pr{background:var(--pr);color:#fff}.toast.error{background:var(--danger);color:#fff}.toast button{color:var(--toast-action);padding:.25rem 0;font-weight:700}.toast.pr button,.toast.error button{color:#fff;text-decoration:underline}.stat-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stat-grid.four{grid-template-columns:repeat(2,1fr);margin-top:1.25rem}.stat-grid>div{background:var(--surface);border-radius:12px;flex-direction:column;min-width:0;padding:.75rem;display:flex}.stat-grid span{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-size:.68rem;font-weight:600}.stat-grid strong{letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1.3rem}.stat-grid small{color:var(--muted);font-size:.8rem;font-weight:500}.summary{margin-bottom:.5rem}.summary .list-label{padding:0}.sum-row{border-top:1px solid var(--line);font-variant-numeric:tabular-nums;justify-content:space-between;gap:1rem;padding:.6rem 0;display:flex}.sum-row span:last-child{color:var(--muted);white-space:nowrap}.sum-row .pr{margin:0 .35rem 0 0}.ex-pick{border-radius:var(--radius);background:var(--surface);text-align:left;width:100%;color:var(--accent);justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;display:flex}.ex-pick:active{background:var(--hover)}.ex-pick-main{min-width:0;color:var(--text);flex-direction:column;display:flex}.ex-pick-main strong{white-space:nowrap;text-overflow:ellipsis;font-size:1.1rem;overflow:hidden}.ex-pick-main span{color:var(--muted);font-size:.85rem}.filters{justify-content:space-between;align-items:center;gap:.75rem;margin:.9rem 0 1.25rem;display:flex}.seg{background:var(--surface);border-radius:10px;flex:1;padding:3px;display:flex}.seg.small{flex:none}.seg button{height:34px;color:var(--muted);border-radius:8px;flex:1;padding:0 .8rem;font-size:.85rem;font-weight:500;transition:background .15s,color .15s}.seg button.active{background:var(--bg);color:var(--accent);box-shadow:0 1px 3px #0000001f}.readout{flex-direction:column;margin-bottom:.5rem;display:flex}.readout .big{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:2.2rem;font-weight:700;line-height:1.1}.readout small{color:var(--muted);letter-spacing:0;font-size:1rem;font-weight:500}.readout .sub{color:var(--muted);font-size:.9rem}svg{-webkit-user-select:none;user-select:none;display:block}.axis{fill:var(--faint);font-size:12px}.hist-row{border-top:1px solid var(--line);border-radius:10px;margin:0 -.5rem;padding:.7rem .5rem;transition:background .2s}.hist-row.sel{background:var(--accent-soft);border-top-color:#0000}.hist-top{align-items:center;gap:.25rem;display:flex}.hist-top>span{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:auto;font-size:.85rem}.hist-sets{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem;display:block}.cal-nav{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.cal{text-align:center;grid-template-columns:repeat(7,1fr);row-gap:4px;display:grid}.dow{color:var(--faint);padding-bottom:4px;font-size:.75rem;font-weight:600}.day{font-variant-numeric:tabular-nums;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;height:46px;font-weight:500;transition:background .15s;display:flex;position:relative}.day.today{color:var(--accent);font-weight:700}.day.sel{background:var(--hover)}.day.has:after{content:"";background:var(--accent);border-radius:50%;width:5px;height:5px;position:absolute;bottom:6px}.day-head{margin:1.5rem 0 .5rem}.day-head .muted{margin-top:.1rem}.day-group{border-top:1px solid var(--line);flex-direction:column;gap:2px;padding:.7rem 0;display:flex}.day-group span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.95rem}.setting-line{margin:0;padding:.25rem 0}.setting-line.warn{color:var(--danger);font-size:.9rem}.tabbar{z-index:10;padding:.4rem 1rem calc(env(safe-area-inset-bottom) + .3rem);background:color-mix(in srgb, var(--bg) 85%, transparent);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--line);justify-content:center;gap:0;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar button{max-width:160px;color:var(--faint);flex-direction:column;flex:1;align-items:center;gap:2px;padding:.35rem 0;font-size:.7rem;font-weight:500;transition:color .15s;display:flex}.tabbar button.active{color:var(--accent)}.tabbar button:active svg{transform:scale(.9)}@keyframes sheet-in{0%{transform:translateY(100%)}}@keyframes fade-in{0%{opacity:0}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,16px)}}@keyframes pop-in{0%{opacity:0;transform:scale(.85)}}@keyframes check-pop{0%{transform:scale(.6)}60%{transform:scale(1.15)}to{transform:scale(1)}}@keyframes row-flash{0%{background:color-mix(in srgb, var(--success) 30%, transparent)}}@keyframes pulse{50%{opacity:.6}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
