/* Vector — "Precision" design layer (December 2026).
   Loaded after styles.css. It re-skins the app without changing behaviour:
   - tokens: Obsidian & Volt Citron palette, Clash Grotesk display + Switzer interface type, tight radii
   - the calibrated rail (.rail, .rest-rail): the app's signature progress element
   - Today hero, active workout, rest timer, then the shared components used by every other screen.
   Citron (--accent) is reserved for primary actions, the current state, filled rail segments and records. */

/* ---------- tokens ---------- */
:root {
  --bg: #151714; --surface: #22261F; --surface-2: #2A2F26; --sunk: #1B1D19;
  --line: #2F342B; --line-2: #3F4638;
  --text: #F2F1E8; --muted: #A3AC9A; --faint: #868E7E;
  --accent: #D7F45B; --accent-ink: #151714; --accent-soft: rgba(215,244,91,.10); --accent-line: rgba(215,244,91,.45);
  --good: #6EC9B4; --good-soft: rgba(110,201,180,.12);
  --warn: #F2994A; --warn-soft: rgba(242,153,74,.12);
  --err: #EF6A5A; --err-soft: rgba(239,106,90,.12);
  --mid: #D9B86A;
  --p: #8FB4CC; --c: #D9B86A; --f: #B7A0C8;
  --plan: #C9CDBF; --plan-soft: rgba(242,241,232,.05); --miss: #EF6A5A; --miss-soft: rgba(239,106,90,.12); --info: #8FB4CC; --info-soft: rgba(143,180,204,.12);
  --bm-base: #2C3128; --bm-off: #3A4035; --bm-gap: var(--surface); --bm-line: rgba(242,241,232,.05);
  --tabbar-bg: #151714; --hover: #30362C; --zone: rgba(242,241,232,.08);
  --note-ink: #E6F5A8; --warn-ink: #F7BE8C; --info-ink: #C3D7E4; --miss-ink: #F5A79C; --wheel-fade: rgba(27,29,25,0); --tip-bg: #10120F;
  --fig-near: #737C68; --fig-mid: #5B6352; --fig-far: #3C4235; --fig-rim: #D2D8C2; --fig-edge: #1B1D19; --fig-hair: #262A22; --fig-shoe: #262A22; --fig-sole: #D7DACB;
  --fig-steel: #A9B09C; --fig-steel-lt: #D4D8C8; --fig-gear: #2E332A; --fig-gear-far: #252922; --fig-floor: #3F4638; --fig-band: #D9B86A; --fig-trx: #D9B86A;
  --fig-ball: #353B30; --fig-mat: #30352B; --fig-hl: #D7F45B; --fig-shadow: rgba(0,0,0,.42);
  --r: 10px; --r-sm: 6px; --r-xs: 3px;
  --font-d: 'Clash Grotesk', 'Switzer', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-b: 'Switzer', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-base: 1rem; --text-lg: 1.25rem; --text-xl: 1.75rem; --text-hero: clamp(2.125rem, 1.7rem + 2vw, 2.75rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tab-h: 66px;
  color-scheme: dark;
}
html[data-theme=light] {
  --bg: #F2F1E8; --surface: #FBFAF4; --surface-2: #E9E8DC; --sunk: #ECEBE0;
  --line: #DCDBCD; --line-2: #C5C4B4;
  --text: #151714; --muted: #535A4B; --faint: #6B7262;
  --accent: #5E7010; --accent-ink: #151714; --accent-soft: rgba(94,112,16,.10); --accent-line: rgba(94,112,16,.45);
  --good: #23806D; --good-soft: rgba(35,128,109,.11);
  --warn: #B85F12; --warn-soft: rgba(184,95,18,.11);
  --err: #B83A2B; --err-soft: rgba(184,58,43,.10);
  --mid: #A98128;
  --p: #3F7393; --c: #A98128; --f: #7D5E94;
  --plan: #535A4B; --plan-soft: rgba(21,23,20,.04); --miss: #B83A2B; --miss-soft: rgba(184,58,43,.10); --info: #3F7393; --info-soft: rgba(63,115,147,.10);
  --bm-base: #D9D8CB; --bm-off: #C3C4B5; --bm-gap: var(--surface); --bm-line: rgba(0,0,0,.05);
  --tabbar-bg: #F2F1E8; --hover: #E2E1D4; --zone: rgba(21,23,20,.07);
  --note-ink: #3F4B07; --warn-ink: #8A4508; --info-ink: #24506B; --miss-ink: #8E2B1F; --wheel-fade: rgba(242,241,232,0); --tip-bg: #FBFAF4;
  --fig-near: #B3B8A5; --fig-mid: #9DA28E; --fig-far: #858B77; --fig-rim: #F8F7F0; --fig-edge: #ECEBE0; --fig-hair: #474E40; --fig-shoe: #363C31; --fig-sole: #F2F1E8;
  --fig-steel: #4A5142; --fig-steel-lt: #2E332A; --fig-gear: #C3C6B6; --fig-gear-far: #D2D4C6; --fig-floor: #C5C4B4; --fig-band: #B88A2E; --fig-trx: #A98128;
  --fig-ball: #D2D4C6; --fig-mat: #D9D8CB; --fig-hl: #94B020; --fig-shadow: rgba(21,23,20,.14);
  color-scheme: light;
}

/* ---------- base type ---------- */
body { font-family: var(--font-b); font-size: var(--text-base); line-height: 1.5; letter-spacing: 0; font-feature-settings: 'ss01' 0; }
h1, h2, .prset, .rest-main b, .wstat b, .macros b { font-family: var(--font-d); }
h1 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
h2 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; }
.num, b.num, .val, .setn, .prev, .macros b, .rest-main b, .wstat b, .abar-r b, .exlist .num, .bars b, .rail-cap { font-variant-numeric: tabular-nums lining-nums; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--text-xs); font-weight: 500; color: var(--muted); }
.label { font-weight: 600; }
.small { font-size: var(--text-xs); }
.muted { color: var(--muted); }
.empty { color: var(--muted); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.ic { stroke-width: 1.6; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
html[data-theme=light] .card, html[data-theme=light] .excard { box-shadow: none; }
.card.link:hover { border-color: var(--line-2); }
.note { border-radius: var(--r-sm); background: var(--accent-soft); color: var(--note-ink); border-left: 2px solid var(--accent); display: flex; gap: 8px; align-items: flex-start; }
.note > .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.note.warn { background: var(--warn-soft); color: var(--warn-ink); border-left-color: var(--warn); }
.note.good { background: var(--good-soft); color: var(--good); border-left-color: var(--good); }
.note.link { display: flex; }

/* ---------- controls ---------- */
.btn { min-height: 46px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 600; letter-spacing: 0; transition: background .12s, border-color .12s, transform .08s var(--ease); }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.975); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #E3FA7E; }
.btn.primary:active { background: #C6E244; }
html[data-theme=light] .btn.primary { background: #151714; color: #D7F45B; border-color: #151714; }
html[data-theme=light] .btn.primary:hover { background: #2A2F26; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { background: var(--err-soft); border-color: rgba(239,106,90,.4); color: var(--err); }
.btn.big { min-height: 56px; font-size: var(--text-base); font-weight: 600; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: var(--text-xs); }
.iconbtn { border-radius: var(--r-sm); width: 44px; height: 44px; }
.iconbtn.sm { width: 36px; height: 36px; }
.pill { border-radius: var(--r-xs); padding: 3px 8px; background: var(--surface-2); color: var(--muted); font-weight: 500; }
.pill.good { background: var(--good-soft); color: var(--good); }
.chip { border-radius: var(--r-sm); padding: 9px 12px; background: transparent; border: 1px solid var(--line-2); font-weight: 500; color: var(--muted); }
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.modes button { border-radius: var(--r-sm); min-height: 40px; border-color: var(--line-2); font-weight: 600; }
.modes button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
html[data-theme=light] .modes button.on { background: var(--text); color: var(--bg); }
.seg { border-radius: 8px; background: var(--sunk); border-color: var(--line); padding: 3px; gap: 3px; }
.seg button { border-radius: 5px; font-weight: 600; min-height: 42px; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.opt { border-radius: var(--r-sm); }
.opt.on { border-color: var(--accent-line); background: var(--accent-soft); }
.field input:not([type=checkbox]):not([type=file]), .field select, textarea, .inp { border-radius: var(--r-sm); background: var(--sunk); border-color: var(--line-2); }
textarea { padding: 12px; font-size: var(--text-sm); width: 100%; color: var(--text); }
.inp { background: var(--sunk); }
.linkbtn { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; font-weight: 500; }
.linkbtn:hover { text-decoration-color: var(--accent); }
.pbar, .bar { border-radius: 1px; background: var(--line); }
.pbar i, .bar i { border-radius: 1px; }
.dot { border-radius: 1px; width: 14px; height: 6px; }

/* ---------- the calibrated rail ---------- */
.rail { display: flex; align-items: flex-end; gap: 3px; height: 12px; }
.rail i { flex: 1 1 0; min-width: 3px; height: 6px; background: var(--line-2); border-radius: 1px; transition: background .25s var(--ease), height .25s var(--ease); }
.rail i.on { background: var(--accent); }
.rail i.cur { height: 12px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.rail i.skip { background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 5px); }
.rail i.pr { height: 12px; background: var(--accent); }
.rail .rg { flex: 0 0 7px; align-self: stretch; position: relative; }
.rail .rg::after { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.rail-cap { display: flex; justify-content: space-between; gap: var(--s3); color: var(--muted); margin-top: -4px; }

/* ---------- tab bar and header ---------- */
.tabbar { background: var(--tabbar-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--line); box-shadow: none; }
.tab { color: var(--muted); font-weight: 500; font-size: .75rem; position: relative; gap: 4px; }
.tab .ic { width: 22px; height: 22px; }
.tab.on { color: var(--text); }
.tab.on::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--accent); }
.tab.on .ic { color: var(--accent); }
html[data-theme=light] .tab.on .ic { color: var(--text); }
.top { margin-bottom: 0; }
.top h1 { font-size: var(--text-xl); }
.top .eyebrow { margin-bottom: 2px; }
.today-top h1.date { font-family: var(--font-b); font-size: var(--text-base); font-weight: 600; letter-spacing: 0; color: var(--text); }
.view { gap: var(--s3); }

/* ---------- Today: hero ---------- */
.hero { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.hero::before { content: ''; position: absolute; left: -1px; top: 18px; width: 3px; height: 30px; background: var(--accent); border-radius: 0 1px 1px 0; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: var(--text-xs); color: var(--muted); }
.hero-meta .num { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 500; }
.hero-meta .ic { width: 15px; height: 15px; color: var(--muted); }
.hero-meta .when.late { color: var(--warn); }
.hero .sessname { display: flex; align-items: center; gap: 6px; margin-top: -6px; }
.hero .sessname h2 { font-size: var(--text-hero); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.hero .sessname .iconbtn { color: var(--faint); }
.hero-sub { color: var(--muted); font-size: var(--text-sm); margin-top: -6px; }
.hero .rail { margin-top: 2px; }
.hero .sessgrid { grid-template-columns: 1fr 96px; align-items: start; gap: 12px; }
.hero .sessmap .bodymap { max-width: 96px; }
.exlist li { padding: 10px 0; border-bottom-color: var(--line); font-size: var(--text-sm); align-items: baseline; }
.exlist .exn { font-weight: 500; }
.exlist .exn::before { color: var(--faint); font-size: .75rem; margin-right: 12px; }
.exlist .num { color: var(--muted); font-size: var(--text-xs); }
.exlist .finli .exn::before { content: '+'; }
.ssb { font-family: var(--font-b); font-size: .7rem; padding: 1px 4px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); font-weight: 600; }
.herogo { gap: 10px; }
.herogo .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.setup { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setup > summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.setup > summary::-webkit-details-marker { display: none; }
.setup-v { font-size: var(--text-sm); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup[open] > summary .linkbtn { color: var(--muted); }
.setup-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 14px; }
.setup-body > .small.muted { margin-top: 4px; }
.hero-alt { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-alt .btn { flex: 1 1 auto; }
.hero .sessacts { margin-top: -6px; }
.hero .sessacts .btn { padding: 0 8px; }
.hero.done-card::before { background: var(--good); }
.guestnote { align-items: center; }

/* Today: secondary items read as a list, not a stack of floating cards */
.todaylist { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: var(--s2); }
.todaylist > .card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 2px; }
.todaylist > .card.link:hover { background: transparent; }
.todaylist > .card.link:hover h3, .todaylist > .card.link:hover .label { color: var(--accent); }
html[data-theme=light] .todaylist > .card.link:hover h3 { color: var(--text); text-decoration: underline; }
.todaylist .bodymap { max-width: 300px; margin: 0 auto; }
.weeknote { padding: 0 2px; }

/* ---------- body maps: citron marks today's targets, teal = recovered ---------- */
.mz.s-ok, .legend i.s-ok { fill: var(--good); background: var(--good); }
.mz.s-mid, .legend i.s-mid { fill: var(--mid); background: var(--mid); }
.mz.s-low, .legend i.s-low { fill: var(--warn); background: var(--warn); }
.mz.s-hit, .legend i.s-hit { fill: var(--accent); background: var(--accent); }
.mz.s-hit2 { fill: rgba(215,244,91,.38); }
html[data-theme=light] .mz.s-ok, html[data-theme=light] .legend i.s-ok { fill: #4FAE98; background: #4FAE98; }
html[data-theme=light] .mz.s-mid, html[data-theme=light] .legend i.s-mid { fill: #D3A847; background: #D3A847; }
html[data-theme=light] .mz.s-low, html[data-theme=light] .legend i.s-low { fill: #DE7A32; background: #DE7A32; }
html[data-theme=light] .mz.s-hit, html[data-theme=light] .legend i.s-hit { fill: #A9C430; background: #A9C430; }
html[data-theme=light] .mz.s-hit2 { fill: rgba(169,196,48,.4); }
.legend i { border-radius: 1px; }

/* ---------- active workout ---------- */
.view.workout { gap: 14px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.wtop { background: var(--bg); padding: 12px 0 10px; border-bottom: 1px solid var(--line); align-items: center; }
.wtop h1 { font-size: 1.5rem; }
.wname svg { color: var(--faint); }
.wstat { gap: 2px; }
.wstat b { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; color: var(--text); }
.wprog { display: flex; flex-direction: column; gap: 8px; }
.wprog b { color: var(--text); font-weight: 600; }
.wrail { height: 14px; }
.wrail i { height: 7px; }
.wrail i.cur, .wrail i.pr { height: 14px; }
.wview { margin-top: 2px; }
.expnav .btn { min-height: 40px; }
.exdot::after { border-radius: 1px; width: 10px; height: 4px; margin: -2px 0 0 -5px; }
.exdot.done::after { background: var(--accent); opacity: .55; }
.exdot.on::after { background: var(--accent); width: 18px; height: 4px; margin: -2px 0 0 -9px; }
.exdot.skip::after { background: var(--faint); }

.excard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 14px; gap: 12px; }
.excard.complete { border-color: var(--line); }
.excard.complete .exhead h3::after { content: ' — done'; color: var(--muted); font-family: var(--font-b); font-weight: 500; font-size: var(--text-sm); }
.exhead { padding: 0; }
.exhead h3 { font-family: var(--font-d); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.1; margin: 4px 0 6px; }
.suggest { background: var(--sunk); border-radius: var(--r-sm); color: var(--muted); border-left: 2px solid var(--line-2); }
.suggest.up { background: var(--accent-soft); color: var(--note-ink); border-left-color: var(--accent); }
.suggest.down { background: var(--warn-soft); color: var(--warn-ink); border-left-color: var(--warn); }
.cuebox { background: var(--sunk); border-radius: var(--r-sm); padding: 12px; }
.lastperf, .lastnote { padding-left: 2px; }

/* set table: big targets, current row edged in citron, done rows recede with a filled check */
.sethead, .setrow { grid-template-columns: 34px minmax(0, 1fr) 80px 72px 56px; gap: 6px; }
.sethead { color: var(--faint); font-size: .75rem; font-weight: 500; }
.setrow { position: relative; padding: 3px 0; border-radius: var(--r-sm); transition: background .2s var(--ease), opacity .2s; }
.setrow .setn { height: 52px; font-weight: 600; color: var(--muted); }
.setrow .prev { font-size: var(--text-xs); color: var(--faint); }
.val { height: 52px; border-radius: var(--r-sm); background: var(--sunk); border: 1px solid var(--line-2); font-size: 1.125rem; font-weight: 600; transition: border-color .12s, background .12s; }
.val:hover { border-color: var(--muted); }
.val:active { background: var(--surface-2); }
.val.ph { color: var(--faint); font-weight: 500; }
.tick { height: 52px; border-radius: var(--r-sm); background: transparent; border: 1.5px solid var(--line-2); color: var(--faint); transition: background .15s var(--ease), border-color .15s, color .15s, transform .1s; }
.tick:active { transform: scale(.94); }
.tick .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.setrow.cur { background: var(--accent-soft); box-shadow: none; outline: 0; }
.setrow.cur::before { content: ''; position: absolute; left: -14px; top: 3px; bottom: 3px; width: 3px; background: var(--accent); border-radius: 0 1px 1px 0; }
.setrow.cur .setn { color: var(--text); }
.setrow.cur .val { border-color: var(--accent-line); background: var(--bg); }
.setrow.cur .tick { border-color: var(--accent); color: var(--accent); }
.setrow.done { background: transparent; }
.setrow.done .val { background: transparent; border-color: transparent; color: var(--muted); }
.setrow.done .setn { color: var(--faint); }
.tick.on { background: var(--surface-2); border-color: var(--surface-2); color: var(--text); }
html[data-theme=light] .tick.on { background: var(--text); border-color: var(--text); color: #D7F45B; }
.exhead .linkbtn { white-space: nowrap; }
html[data-theme=light] .setrow.cur::before { background: var(--text); }
html[data-theme=light] .setrow.cur .tick { border-color: var(--text); color: var(--text); }
.setrow.done .tick.on { animation: setlock .32s var(--ease); }
@keyframes setlock { 0% { transform: scale(.86); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.prtag { position: absolute; right: -6px; top: -2px; font-size: .625rem; font-weight: 700; line-height: 1; padding: 3px 4px; border-radius: 2px; background: var(--text); color: var(--bg); letter-spacing: .02em; pointer-events: none; }
.setrow.t-w .setn { color: var(--p); } .setrow.t-d .setn { color: var(--f); } .setrow.t-f .setn { color: var(--warn); }
.calc { font-size: var(--text-xs); color: var(--muted); }
.csbtn { min-height: 60px; font-size: 1.0625rem; }
.csbtn .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.exfoot .btn { min-height: 40px; }
.rpe { gap: 4px; }
.rpe button { width: 40px; height: 40px; border-radius: var(--r-sm); border-color: var(--line-2); font-weight: 600; }
.rpe button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.wfoot .btn.primary.big { min-height: 58px; }

/* rest timer: a bottom panel you can read at arm's length, with a depleting calibrated rail */
.rest { align-items: stretch; justify-content: flex-start; width: min(528px, calc(100% - 16px)); bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 14px 12px; box-shadow: 0 -12px 32px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 10px; }
.rest:not(.show) { visibility: hidden; padding: 0; border: 0; }
.rest.show { visibility: visible; }
html[data-theme=light] .rest { box-shadow: 0 -8px 24px rgba(21,23,20,.12); }
.rest-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.rest-k { font-size: var(--text-xs); font-weight: 600; color: var(--accent); }
.rest.held .rest-k { color: var(--muted); }
.rest-next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-align: right; }
.rest-main { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.rest-main b { font-size: clamp(3.5rem, 2.6rem + 4vw, 4.5rem); font-weight: 500; line-height: .9; letter-spacing: -0.03em; color: var(--text); }
.rest.held .rest-main b { color: var(--muted); }
.rest.ending .rest-main b { color: var(--accent); }
.rest-adj { display: flex; gap: 6px; }
.rest-adj .btn { min-width: 64px; min-height: 52px; font-size: var(--text-base); font-variant-numeric: tabular-nums; }
.rest-rail { position: relative; height: 14px; background: var(--line); border-radius: 1px; overflow: hidden; }
.rest-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 1)); transition: transform .2s linear; }
.rest-rail::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 2px), var(--surface-2) calc(100% / var(--n) - 2px) calc(100% / var(--n))); }
.rest.held .rest-rail i { background: var(--muted); }
.rest-pre { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px; }
.rest-pre .chip { padding: 8px 11px; flex: none; }
.rest-ctl { display: flex; gap: 6px; justify-content: flex-start; }
.rest-ctl .btn { min-height: 52px; flex: 0 0 auto; padding: 0 16px; }
.rest-ctl .btn.primary { flex: 1 1 auto; }
.rest-pre .chip { min-height: 36px; }
.rest-ctl .btn .ic { width: 18px; height: 18px; }
.rest-ctl .btn.primary .ic { fill: currentColor; }

/* minimised workout bar */
.abar { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: hidden; }
.abar-r b { color: var(--text); font-family: var(--font-b); font-weight: 600; }
.abar-r span { color: var(--accent); }
.abar-p { height: 3px; }
.abar-p i { background: var(--accent); }

/* personal record: quiet, exact, citron */
.prpop-bg { background: rgba(10,11,9,.7); }
.prpop-card { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: none; padding-top: 0; }
.prpop-card::before { content: ''; display: block; height: 4px; margin: 0 -16px 18px; background: var(--accent); }
.prconf, .prspark, .prtrophy { display: none; }
.prstage { height: 112px; margin-bottom: 4px; }
.prstage .prmoku { width: 96px; height: 112px; }
.prpop-card .eyebrow { color: var(--text); font-weight: 600; }
.prpop-card .eyebrow .ic { color: var(--accent); }
html[data-theme=light] .prpop-card .eyebrow .ic { color: var(--text); }
.prset { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- sheets, toast, summary ---------- */
.sheet-bg { background: rgba(10,11,9,.66); }
.sheet-body { background: var(--surface); border-color: var(--line-2); border-radius: 14px 14px 0 0; }
.sheet-body::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -6px auto 10px; }
.toast { border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-weight: 500; box-shadow: none; }
.macros { gap: 0; }
.macros > div { padding: 2px 10px; border-left: 1px solid var(--line); }
.macros > div:first-child { border-left: 0; padding-left: 0; }
.summary .macros > div:first-child { padding-left: 10px; }
.macros b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.summary h2 { font-size: var(--text-xl); }
.summary .num.big, b.num.big { font-family: var(--font-d); font-weight: 500; font-size: 2.25rem; letter-spacing: -0.02em; }

/* ---------- charts, bars, tables ---------- */
.bar { height: 6px; }
.bars b { font-weight: 500; }
.tbl th { font-weight: 500; color: var(--muted); }
.subtabs { margin-bottom: 4px; }

/* ---------- library and guides ---------- */
.lib.ex { border-radius: var(--r-sm); }
.lib.ex h3 { font-weight: 600; }
.figbox, .exthumb, .thumb { border-radius: var(--r-sm); }

/* ---------- small screens and desktop ---------- */
@media (min-width: 700px) {
  body, html[data-theme=light] body { background: var(--bg); }
}
@media (min-width: 900px) {
  .app { max-width: 600px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 12px; }
  .view.workout .wtop { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .tabbar { max-width: 600px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-width: 360px) {
  .sethead, .setrow { grid-template-columns: 30px minmax(0, 1fr) 70px 62px 50px; }
  .rest-adj .btn { min-width: 54px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .prstage .prmoku { animation: none; }
}

/* ---------- progress: answers before charts ---------- */
.answers { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ans { padding: 14px 2px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ans .q { font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.ans .a { display: grid; grid-template-columns: 7.25rem 1fr; align-items: baseline; gap: 12px; }
.ans .a b { font-family: var(--font-d); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.ans .a b.up { color: var(--accent); }
.ans .a span { font-size: var(--text-sm); color: var(--muted); }
.stats .stat { border-radius: var(--r-sm); }
.stats .stat b { font-family: var(--font-d); font-weight: 500; }

/* personal bests use the signature colour */
.note.prnote { background: var(--accent-soft); color: var(--text); border-left-color: var(--accent); }
.note.prnote .ic { color: var(--accent); }
.pill.prp { background: var(--accent); color: var(--accent-ink); font-weight: 600; display: inline-flex; width: auto; }
html[data-theme=light] .pill.prp { background: var(--text); color: #D7F45B; }
html[data-theme=light] .note.prnote .ic { color: var(--text); }

/* sentence-case labels everywhere */
.wlabel, .figbox figcaption, .rest-ring span, .rest-c span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.wlabel { color: var(--muted); font-size: var(--text-xs); }
.wheelwrap { border-radius: var(--r-sm); background: var(--sunk); }
.wheelwrap::before { border-radius: var(--r-xs); border-color: var(--accent-line); }
.wheelwrap::after { background: linear-gradient(var(--sunk), var(--wheel-fade) 36%, var(--wheel-fade) 64%, var(--sunk)); }
html[data-theme=light] .wheelwrap::after { background: linear-gradient(var(--sunk), rgba(236,235,224,0) 36%, rgba(236,235,224,0) 64%, var(--sunk)); }
input[type=checkbox], input[type=radio], .chk input, .toggle input, .check input, .optrow input { accent-color: var(--text); }

/* ---------- loading, empty and error states ---------- */
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.boot-mark { font-family: var(--font-d); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.boot-rail { width: 120px; }
.boot-rail i { animation: bootfill 1.4s var(--ease) infinite; }
.boot-rail i:nth-child(2) { animation-delay: .12s; } .boot-rail i:nth-child(3) { animation-delay: .24s; } .boot-rail i:nth-child(4) { animation-delay: .36s; } .boot-rail i:nth-child(5) { animation-delay: .48s; }
@keyframes bootfill { 0%, 100% { background: var(--line-2); } 35%, 65% { background: var(--accent); } }
.empty { color: var(--muted); }
p.empty::before { content: ''; display: block; width: 66px; height: 6px; margin-bottom: 10px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 14px); }
.note.err, .note.error { background: var(--err-soft); color: var(--miss-ink); border-left-color: var(--err); }

/* ---------- 2.2: warm-up, replace, drills, ingredients, meal reasons ---------- */
.exhead .exname { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.exhead .exname h3 { margin: 0; }
.swapbtn { min-height: 34px; padding: 0 10px; border-color: var(--line-2); color: var(--text); font-weight: 600; }
.swapbtn .ic { width: 15px; height: 15px; }
.warmbtn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--accent-line); background: var(--accent-soft); color: var(--text); transition: background .12s, transform .08s var(--ease); }
.warmbtn:active { transform: scale(.985); }
.warmbtn > .ic { color: var(--accent); width: 20px; height: 20px; }
.warmbtn > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.warmbtn b { font-weight: 600; }
html[data-theme=light] .warmbtn > .ic { color: var(--text); }
.warmrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.warmrow .small { margin-right: 4px; }
.warmrow .chip { display: inline-flex; align-items: center; gap: 6px; }
.warmrow .chip .ic { width: 14px; height: 14px; }
.drillcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.drillcard.cool { border-left-color: var(--good); }
.drills { list-style: none; counter-reset: dr; display: flex; flex-direction: column; }
.drills li { counter-increment: dr; border-bottom: 1px solid var(--line); }
.drills li:last-child { border-bottom: 0; }
.drills .linkrow { min-height: 44px; font-size: var(--text-sm); }
.drills .linkrow > span:first-child::before { content: counter(dr); display: inline-block; width: 22px; color: var(--faint); font-size: .75rem; font-variant-numeric: tabular-nums; }
.warmdone { display: flex; align-items: center; gap: 6px; }
.warmdone .ic { color: var(--accent); width: 16px; height: 16px; }
.ingbtn { justify-content: flex-start; }
.inglist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.inglist li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.inglist li.nomatch select { border-color: var(--warn); }
.ingrow { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.ingrow select { min-width: 0; width: 100%; min-height: 46px; padding: 0 10px; border-radius: var(--r-sm); background: var(--sunk); border: 1px solid var(--line-2); color: var(--text); font-size: var(--text-sm); }
.ingg input { text-align: right; min-height: 44px; }
.mealwhy, .mealgap { display: flex; align-items: flex-start; gap: 6px; color: var(--note-ink); }
.mealwhy .ic, .mealgap .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent); }
html[data-theme=light] .mealwhy .ic, html[data-theme=light] .mealgap .ic { color: var(--text); }
.mealgap { padding: 8px 10px; border-radius: var(--r-sm); background: var(--accent-soft); }
.versionline { margin-top: 4px; color: var(--faint); }

/* ---------- 2.3: body map and measuring figure ---------- */
:root { --bm-base-a: #3E4537; --bm-base-b: #2A2F26; --bm-off: #464E3F; --bm-gap: #1F221C; }
html[data-theme=light] { --bm-base-a: #C9CCBC; --bm-base-b: #B4B8A6; --bm-off: #BDC1AF; --bm-gap: #F2F1E8; }
.bm-base { fill: url(#bmgrad); }
.bm-hair, .ms-hair { fill: var(--fig-hair); pointer-events: none; }
html[data-theme=light] .bm-hair { fill: var(--fig-hair); }
.bm-rim { display: none; }
.mz { stroke: var(--bm-gap); stroke-width: 1; }
.mfig svg { filter: none; max-width: 160px; }
.ms-tape path { stroke: var(--fig-hl); stroke-width: 1.1; stroke-dasharray: 2.4 2; fill: none; opacity: .5; }
.ms-tape circle { fill: var(--fig-hl); opacity: .6; }
.ms-tape.on path { opacity: 1; stroke-dasharray: none; }
.ms-tape.on circle { opacity: 1; }

/* ---------- 2.4: jet-lag planner ---------- */
.jlrow { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.jlrow:first-of-type { border-top: 0; }
.jlk { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.jlk .ic { width: 15px; height: 15px; }
.jlday { padding: 12px 0; border-top: 1px solid var(--line); }
.jlday.today { border-left: 3px solid var(--accent); padding-left: 10px; }
.jlprefs summary { cursor: pointer; padding: 10px 0; list-style: none; }
.jlprefs summary::-webkit-details-marker { display: none; }
.jlbtn { margin: -4px 0 8px; }
.jlcard .jlrow { grid-template-columns: 9rem 1fr; }

/* 2.4 — friends leaderboard, link codes, watch steps */
.socboard { display: grid; gap: 10px; margin: 6px 0 14px; }
.socrank { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.socrank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, rgba(242,241,232,.08)); }
.socrank li.me b { color: var(--accent); }
.socrank .rk { width: 22px; text-align: right; color: var(--muted, #A3AC9A); font-variant-numeric: tabular-nums; }
.socbar { height: 4px; border-radius: 2px; background: var(--surface-2, rgba(242,241,232,.07)); margin-top: 6px; overflow: hidden; }
.socbar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s ease; }
.socrank li:not(.me) .socbar i { background: var(--muted, #A3AC9A); opacity: .55; }
.soccode { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 6px 0 12px; border-radius: 14px; background: var(--surface-2, rgba(242,241,232,.05)); }
.soccode b { font-size: 28px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.watchcode b { font-size: 36px; color: var(--accent); }
.steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--muted, #A3AC9A); }
#watchsheet ul.list { list-style: none; padding: 0; margin: 0 0 12px; }
#watchsheet ul.list li { padding: 10px 0; border-top: 1px solid var(--line, rgba(242,241,232,.08)); }
#watchsheet ul.list li > div { display: grid; }
@media (prefers-reduced-motion: reduce) { .socbar i { transition: none; } }
.socadd { align-items: stretch; margin-bottom: 8px; }
.socadd .field { margin: 0; }
.socadd #soc-add { text-transform: uppercase; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
#watchsheet h2, #socsheet h2 { margin-bottom: 8px; }
.watchbody { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 8px; } .watchbody .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; } .watchbody b { color: var(--text); font-weight: 600; }
.ourawl { list-style: none; padding: 0; margin: 8px 0 4px; }
.ourawl li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ourawl li span { color: var(--muted); }
/* 2.8 setup: several questions on one screen */
.q2 { font-size: 1.05rem; font-weight: 600; margin: 4px 0 6px; }
.obsep { height: 1px; background: var(--line); margin: 22px 0 18px; }
.weekstrip .wd { min-width: 0; }
.weekstrip .wd span { font-size: 0.68rem; line-height: 1.25; word-break: normal; overflow-wrap: normal; }
.weekstrip .wd { padding-left: 2px; padding-right: 2px; }
.autoready { display: flex; gap: 6px; align-items: flex-start; } .autoready .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.wgap { padding: 8px 0; border-top: 1px solid var(--line); } .wgap:first-of-type { border-top: 0; } .wgap .chips { margin-top: 4px; }
.cardiocard.complete { opacity: .8; }
.cdweek { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.cdweek li { display: flex; gap: 10px; align-items: baseline; }
.cdweek li b { width: 34px; flex: none; }
.cdweek li.today b { color: var(--accent); }
.cdweek li.done span:first-of-type { text-decoration: line-through; opacity: .7; }
.cdtimer { margin: 12px 0; }
.coachnow, .coachstep { margin: 10px 0 14px; }
.coachstep { padding: 12px; border-radius: 12px; background: var(--surface2, rgba(127,127,127,.08)); }
.coachstep h3 { margin: 2px 0 6px; }
.coachpicks { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.coachpicks li span { display: block; }
.coachlist { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.coachlist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coachnote p { margin: 0 0 8px; }
.coachcard h3 { margin: 2px 0 4px; }
.wgap .linkbtn { margin-left: 6px; font-weight: 500; }
.chip.lo { border-color: var(--warn, #c98a3a); }
.chip.hi { border-color: var(--bad, #c0533a); }
.coachcard .coachlist li.done span { opacity: .65; }
.coachcard .coachlist li .ic { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--good, #4a8); }
.goalrows { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.goalrows li { display: flex; gap: 10px; align-items: flex-start; }
.goalrows li p { margin: 2px 0; }
.goalrows li .btn { margin-top: 4px; }
.gdot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--line); }
.gdot .ic { width: 13px; height: 13px; }
.gdot.good { background: var(--good, #4a8); color: #fff; } .gdot.warn { background: var(--warn, #c98a3a); color: #fff; } .gdot.bad { background: var(--bad, #c0533a); color: #fff; }
.avsheet > .btn, .awsheet > .btn, .center > .btn.big { margin-top: 22px; }
.avsheet > p.small:last-of-type { margin-bottom: 4px; }
.notebtn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 13px; }
.notebtn .ic { width: 15px; height: 15px; }
.notebtn.has { border-color: var(--accent); color: var(--accent); }
.exnotebox { display: grid; gap: 6px; margin: 8px 0; padding: 10px; border-radius: 12px; background: var(--surface2, rgba(127,127,127,.08)); }
.exnotebox .ic, .lastnote .ic { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.exnotebox .exnote { width: 100%; }
.lastnote { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 6px 0; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); }
.kitrow { border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; }
.kitrow > summary { list-style: none; padding: 10px 12px; cursor: pointer; }
.kitrow > summary::-webkit-details-marker { display: none; }
.kitrow > summary > span { display: grid; gap: 2px; }
.kitbody { padding: 0 12px 12px; display: grid; gap: 8px; }
#kitsec { margin: 8px 0 4px; }
#kitsec select { min-height: 40px; }
.edittoday { margin-top: 8px; }
.tedit, .tadd { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 4px; }
.tedit li, .tadd li { display: flex; align-items: center; gap: 6px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tedit li.off b { opacity: .5; }
.tedit .iconbtn[disabled] { opacity: .25; }
.ghostbtn { visibility: hidden; }
.svinp { width: 130px; }
.svinp input { text-align: center; }
.batchnote { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
#mlby { margin: 8px 0; }
#updbanner { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 14px; background: var(--card, #1d201b); border: 1px solid var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
#updbanner > div:first-child { display: grid; gap: 2px; } #updbanner span { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { #updbanner { left: auto; width: 420px; bottom: 20px; } }
.btn.strava { background: #fc4c02; color: #fff; border-color: #fc4c02; font-weight: 600; }
/* ---------- monthly report ---------- */
#report { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--bg); padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom)); }
body.reporting { overflow: hidden; }
.rbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.rpage { max-width: 760px; margin: 14px auto; padding: 22px 20px; background: #fff; color: #16181a; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.rpage h1 { font-size: 26px; margin: 2px 0 2px; color: #16181a; }
.rpage h2 { font-size: 15px; margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid #e3e5e1; color: #16181a; }
.rlogo { font-weight: 800; letter-spacing: .02em; color: #4d6b2f; margin: 0; }
.rsub { color: #5d6360; margin: 0; }
.rtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 8px; }
.rtile { padding: 10px; border-radius: 10px; background: #f3f5f0; display: grid; gap: 1px; }
.rtile b { font-size: 19px; color: #16181a; } .rtile span { font-size: 12px; color: #5d6360; } .rtile em { font-style: normal; font-size: 11px; color: #4d6b2f; }
.rtable { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.rtable th { text-align: left; font-weight: 600; color: #5d6360; padding: 4px 6px; border-bottom: 1px solid #e3e5e1; }
.rtable td { padding: 5px 6px; border-bottom: 1px solid #f0f1ee; } .rtable td.up { color: #2e7d32; } .rtable td.down { color: #b23c17; }
.rnote { color: #4a504c; font-size: 13px; margin: 6px 0; }
.rphotos { display: flex; gap: 10px; } .rphotos figure { margin: 0; flex: 1; } .rphotos img { width: 100%; border-radius: 10px; } .rphotos figcaption { font-size: 12px; color: #5d6360; text-align: center; }
.rfocus { background: #f3f5f0; border-radius: 12px; padding: 4px 14px 10px; margin-top: 14px; } .rfocus h2 { border-top: 0; }
.rfoot { margin-top: 18px; font-size: 11px; color: #8a908c; text-align: center; }
.ractions { max-width: 760px; margin: 0 auto; padding: 0 16px; display: grid; gap: 10px; }
.reportlink { margin-bottom: 10px; }
@media (max-width: 420px) { .rtiles { grid-template-columns: repeat(2, 1fr); } .rpage { margin: 10px; padding: 18px 14px; } }
@media print {
  body.reporting > *:not(#report) { display: none !important; }
  body.reporting #report { position: static; overflow: visible; background: #fff; padding: 0; }
  #report .noprint { display: none !important; }
  .rpage { margin: 0; max-width: none; border-radius: 0; padding: 0; }
  .rpage section { break-inside: avoid; }
  @page { margin: 14mm; }
}
.ddot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ddot.d-g { background: #4caf6a; } .ddot.d-y { background: #e0b03c; } .ddot.d-o { background: #e0743c; }
.vbadge { display: inline-flex; vertical-align: -2px; color: var(--good, #4caf6a); } .vbadge .ic { width: 14px; height: 14px; }
.fbadges { margin: 2px 0 6px; } .pill.dens { gap: 4px; }
.dxlist { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.dxlist li { display: flex; gap: 8px; align-items: center; }
.dxlist li > div { display: grid; gap: 3px; min-width: 0; }
.dxlist select { width: 100%; min-height: 38px; }
#dxtext { min-height: 54px; resize: vertical; }
