:root{--bg: #FFFFFF;--surface: #F7F7F7;--text: #222222;--text-muted: #717171;--border: #DDDDDD;--grid: #EBEBEB;--accent: #1D1D1B;--up: #008A05;--down: #C13515;--nav-h: 64px;--cta-h: 52px;--gutter: 24px;color-scheme:light;font-family:-apple-system,SF Pro Text,Inter,sans-serif;font-size:16px;line-height:1.4;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);overscroll-behavior-y:none}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left)}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.4}input,textarea{font:inherit;font-size:16px;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:12px;width:100%}input:focus,textarea:focus{outline:2px solid var(--text);outline-offset:-1px}h1{font-size:28px;font-weight:600;margin:0}h2{font-size:18px;font-weight:600;margin:0}h3{font-size:22px;font-weight:600;margin:0}h4{font-size:14px;font-weight:500;color:var(--text-muted);margin:16px 0 0}p{margin:0}.muted{color:var(--text-muted);font-size:14px}.pad{padding:0 var(--gutter)}.error{color:var(--down);font-size:14px}.bad{color:var(--down)}.app main{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px)}.screen{max-width:640px;margin:0 auto}.top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:16px var(--gutter) 8px;position:sticky;top:0;background:var(--bg);z-index:5}.top h1+.muted{display:block;margin-top:2px}.badge{font-size:12px;font-weight:500;color:var(--text-muted);white-space:nowrap}.badge.warn{color:var(--text)}.badge.ok:first-letter{color:var(--up)}.tabs{position:fixed;bottom:0;left:0;right:0;display:flex;background:var(--bg);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:20}.tabs button{flex:1;height:var(--nav-h);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:500;color:var(--text-muted)}.tabs button.on{color:var(--accent)}.card{background:var(--bg);border:1px solid var(--border);border-radius:12px;margin:16px var(--gutter);padding:16px}details.card summary{font-weight:600;min-height:24px;list-style-position:inside}.check{display:flex;gap:12px;align-items:flex-start;min-height:48px;padding:12px 0 0}.check input{width:22px;height:22px;margin:0;accent-color:var(--text);flex-shrink:0}.check>span{display:flex;flex-direction:column}.cue-muted{font-size:14px;color:var(--text-muted)}.rules{margin:8px 0 0;padding-left:20px;color:var(--text-muted);font-size:14px}.rules li+li{margin-top:4px}.global-cue{padding:0 var(--gutter);font-size:16px;font-weight:500}.weekbar{display:flex;gap:16px;padding:8px var(--gutter) 0;font-size:14px;color:var(--text-muted)}.weekbar b{color:var(--text);font-weight:600}.primary,.secondary,.danger{min-height:var(--cta-h);border-radius:8px;font-weight:600;font-size:16px;padding:0 16px;width:100%}.primary{background:var(--accent);color:#fff}.secondary{background:var(--bg);color:var(--text);border:1px solid var(--text)}.danger{background:var(--bg);color:var(--down);border:1px solid var(--down)}.big{min-height:var(--cta-h)}.ghost{padding:8px 12px;min-height:44px;font-weight:600;text-decoration:underline;text-underline-offset:3px}.ghost.small{min-height:36px;padding:4px 8px;font-size:14px}.start-buttons{display:flex;flex-direction:column;gap:8px;padding:8px var(--gutter) 16px}.start-buttons .secondary{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px}.start-buttons small{font-weight:400;font-size:12px;color:var(--text-muted)}.sticky-cta{position:sticky;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));z-index:15;background:var(--bg);padding:12px var(--gutter);box-shadow:0 -1px 8px #00000014;margin-top:8px;display:flex;flex-direction:column;gap:8px}.app main{padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom))}.superset{border-left:2px solid var(--text);margin:16px var(--gutter) 16px calc(var(--gutter) - 8px)}.superset .card{margin:8px 0 8px 6px}.superset-label{font-size:12px;font-weight:500;color:var(--text-muted);padding:0 8px}.ex.done{background:var(--surface)}.ex-head{display:flex;gap:12px;align-items:flex-start}.ex-label{min-width:28px;height:28px;display:grid;place-items:center;font-weight:600;font-size:14px;border:1px solid var(--border);border-radius:999px;padding:0 6px;margin-top:1px}.ex-title{flex:1;display:flex;flex-direction:column;gap:2px}.key-cue{color:var(--accent);font-size:14px;font-weight:500}.icon{width:32px;height:32px;border-radius:999px;border:1px solid var(--border);font-size:14px;font-weight:600;font-family:Georgia,serif;font-style:italic;flex-shrink:0;color:var(--text-muted)}.cues{background:var(--surface);border-radius:8px;padding:12px 16px;margin-top:12px;font-size:14px;display:flex;flex-direction:column;gap:6px;animation:reveal .18s ease-out}.md-list{margin:0;padding-left:18px}.md-list li+li{margin-top:4px}.stop{color:var(--down);font-weight:500}.last{margin-top:12px;color:var(--text-muted);font-size:14px}.hint{margin-top:8px;color:var(--up);font-weight:600;font-size:14px}.hint.bad{color:var(--down)}.logged{list-style:none;padding:0;margin:12px 0 0}.logged li{display:flex;align-items:center;gap:8px;color:var(--text-muted);font-variant-numeric:tabular-nums;min-height:40px;border-bottom:1px solid var(--grid);animation:reveal .18s ease-out}.logged li span{width:20px;text-align:center;font-size:14px}.logged li .tick{font-style:normal;font-size:14px}.logged li b{flex:1;font-weight:500}.setrow{margin-top:12px}.setrow-main{display:flex;gap:8px;align-items:center}.chip{background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:6px 12px;min-height:36px;font-size:14px}.warm-toggle{min-width:36px;min-height:36px;padding:0 8px;font-weight:600;color:var(--text-muted);flex-shrink:0}.warm-toggle.on{border-color:var(--text);color:var(--text)}.stepper{display:flex;align-items:stretch;background:var(--surface);border-radius:8px;flex:1;min-width:0}.step{width:40px;min-height:52px;font-size:22px;line-height:1;flex-shrink:0;display:flex;align-items:center;justify-content:center}.step-value{flex:1;min-width:0;min-height:52px;display:flex;align-items:center;justify-content:center}.step-value .num{display:inline-flex;align-items:baseline;gap:2px;font-size:24px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.step-value small{font-size:12px;font-weight:500;color:var(--text-muted)}.step-input{flex:1;min-width:0;text-align:center;padding:4px;font-size:24px;font-weight:600;border:0;background:transparent}.save{width:52px;min-height:52px;border-radius:8px;border:1px solid var(--text);font-size:22px;font-weight:600;flex-shrink:0}.save.accent{background:var(--accent);border-color:var(--accent);color:#fff}.repeat{margin-top:8px;width:100%;min-height:48px;border-radius:8px;border:1px solid var(--border);font-weight:600;font-size:14px}.skipped{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions{padding:0 var(--gutter) 16px}.restbar{display:flex;align-items:center;min-height:48px;padding:0 4px 0 16px;border:1px solid var(--border);border-radius:8px;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}.restbar span{flex:1}.restbar.over{border-color:var(--text)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:30;display:flex;align-items:flex-end}.sheet{background:var(--bg);width:100%;max-height:88vh;border-radius:12px 12px 0 0;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);animation:reveal .2s ease-out}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:16px var(--gutter) 0}.sheet-body{overflow-y:auto;padding:8px var(--gutter) 24px;display:flex;flex-direction:column;gap:16px}.list-item{display:block;width:100%;text-align:left;padding:14px 0;min-height:48px;border-bottom:1px solid var(--grid)}.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:14px;color:var(--text-muted)}.field label b{color:var(--text);font-size:16px}.field input[type=range]{padding:0;height:32px;accent-color:var(--text);border:0}.seg{display:flex;gap:8px}.seg button{flex:1;min-height:48px;border:1px solid var(--border);border-radius:8px;font-weight:600}.seg button.on{border-color:var(--text);background:var(--text);color:#fff}.hist{display:flex;flex-direction:column;gap:4px}.hist-head{display:flex;justify-content:space-between;align-items:center}.hist-head b:before{content:"";display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:8px;vertical-align:middle;border:1.5px solid var(--text)}.hist.tpl-A .hist-head b:before{background:#222}.hist.tpl-B .hist-head b:before{background:#717171;border-color:#717171}.login{max-width:360px;margin:18vh auto 0;padding:0 var(--gutter);display:flex;flex-direction:column;gap:16px}.login h1{font-size:28px}@keyframes reveal{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.back{width:40px;height:40px;margin-left:-8px;font-size:24px;line-height:1;flex-shrink:0;display:flex;align-items:center;justify-content:center}.top-title{flex:1;min-width:0}.resume{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 2 * var(--gutter));text-align:left;border-color:var(--text)}.resume>span:first-child{display:flex;flex-direction:column;gap:2px}.resume>span:last-child{font-size:24px}.logged-edit{flex:1;text-align:left;font-weight:500;color:inherit;min-height:40px}button.hist{display:flex;width:calc(100% - 2 * var(--gutter));text-align:left}.field-row{display:flex;gap:8px}.field-row .field{flex:1;min-width:0}.field-row input{padding:10px 8px;font-size:15px}.edit-ex{display:flex;flex-direction:column;margin-top:8px}.set-item{display:flex;gap:8px;align-items:center;padding:10px 0;min-height:44px;font-variant-numeric:tabular-nums}.set-item .edit-link{margin-left:auto;text-decoration:underline}.step-value{overflow:hidden}.restbar{white-space:nowrap;font-size:20px}.restbar .ghost{font-size:15px;padding:8px 10px}@media(max-width:400px){:root{--gutter: 16px}.card{padding:14px 12px}.setrow-main{gap:6px}.step{width:30px;font-size:20px}.step-value .num{font-size:20px}.step-value small{font-size:11px}.warm-toggle{min-width:28px;padding:0 4px}.save{width:48px}}.streak{margin-top:4px}.streak b{color:var(--text)}.cal{padding:12px}.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cal-head b{font-size:16px;text-transform:none}.cal-nav{width:44px;height:44px;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.cal-wd{text-align:center;font-size:12px;font-weight:500;color:var(--text-muted);padding:4px 0}.cal-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;min-height:48px;padding-top:6px;border-radius:8px;font-size:15px;font-variant-numeric:tabular-nums}.cal-day.out{color:#bbb}.cal-day.today>span:first-child{font-weight:700;text-decoration:underline;text-underline-offset:3px}.cal-day.sel{outline:1.5px solid var(--text);outline-offset:-1.5px}.dots{display:flex;gap:3px;min-height:7px}.dot{display:inline-block;width:7px;height:7px;border-radius:999px;background:#222}.dot-B{background:#717171}.dot-MICRO,.dot-—{background:transparent;border:1.5px solid #222}.dot-meas{border-radius:1px;background:var(--accent);width:6px;height:6px}.cal-legend{display:flex;gap:14px;justify-content:center;font-size:12px;margin-top:10px}.cal-legend span{display:inline-flex;align-items:center;gap:4px}.day h3{font-size:18px;margin-top:8px}.day h3:first-letter{text-transform:uppercase}.chart{position:relative;margin-top:8px}.chart svg{display:block;overflow:visible}.chart .axis{font-size:11px;fill:var(--text-muted);font-variant-numeric:tabular-nums}.chart-empty{padding:16px 0}.tip{position:absolute;top:-6px;transform:translate(-50%,-100%);background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:6px 10px;font-size:13px;display:flex;flex-direction:column;align-items:center;pointer-events:none;white-space:nowrap;box-shadow:0 2px 8px #00000014;z-index:2}.tip b{font-size:15px;font-variant-numeric:tabular-nums}.tip span{color:var(--text-muted)}.multiples{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;margin-top:12px}.multiple-head{display:flex;justify-content:space-between;font-size:14px;margin-bottom:4px}.multiple-head b{font-variant-numeric:tabular-nums}.minibars-tip{display:block;font-size:11px;min-height:14px;margin-top:2px}.ex-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.ex-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}.trend{font-weight:600;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.trend-up,.up{color:var(--up)}.trend-down{color:var(--down)}.trend-flat{color:var(--text-muted)}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0 8px}.stat-row>div{display:flex;flex-direction:column;gap:2px}.stat-row b{font-size:18px;font-variant-numeric:tabular-nums}.big-num{font-size:28px!important;font-weight:600;line-height:1.1}.tbl{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.tbl th{text-align:left;font-weight:500;color:var(--text-muted);padding:6px 4px;border-bottom:1px solid var(--border)}.tbl td{padding:8px 4px;border-bottom:1px solid var(--grid)}.chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px}.chip.on{background:var(--text);color:#fff;border-color:var(--text)}.notice{border-color:var(--text);font-weight:500}.card h2+.muted{margin-top:2px}.readout{display:flex;gap:8px;align-items:baseline;font-size:13px;min-height:20px;margin-top:4px;font-variant-numeric:tabular-nums}.readout b{font-size:15px}.readout span{color:var(--text-muted)}.coach{display:flex;flex-direction:column;gap:2px;width:calc(100% - 2 * var(--gutter));text-align:left;border-color:var(--text)}.coach b{font-size:16px}.coach-link{display:block;margin:0 0 4px}.note{border-bottom:1px solid var(--grid);padding-bottom:12px}.note.unread .note-head b:before{content:"● "}.note-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.note-body{margin-top:6px;font-size:15px;display:flex;flex-direction:column;gap:6px}.reminder{display:flex;flex-direction:column;gap:2px;width:calc(100% - 2 * var(--gutter));text-align:left}.reminders .card{margin-top:8px;margin-bottom:8px}.top-right{display:flex;align-items:center;gap:4px}.icon-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-right:-8px}.settings-sec{display:flex;flex-direction:column;gap:8px;padding-bottom:8px;border-bottom:1px solid var(--grid)}.settings-sec h4{margin:0;color:var(--text);font-size:16px;font-weight:600}.key-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.setrow-main{gap:6px}.setrow-main .stepper{flex:1 1 0}.setrow-main .stepper.wide{flex:1.4 1 0}.step{width:28px;font-size:20px}.step-value{container-type:inline-size;overflow:hidden;padding:0 2px}.step-value .num{font-size:clamp(16px,46cqi,24px);white-space:nowrap}.stepper.wide .step-value .num{font-size:clamp(14px,28cqi,26px)}.step-value small{font-size:11px}.step-input{font-size:20px}.warm-toggle{min-width:30px;padding:0 6px}.save{width:48px}
