/* Set on desktop. Brief 5 §9: the phone's palette, type and edges at a tighter density. No radii, no shadows. */
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62.5% 125%; }
@font-face { font-family: "Archivo Narrow"; src: url("/fonts/ArchivoNarrow.ttf") format("truetype"); font-weight: 400 700; }

:root {
  --paper: #d9d6ce; --ink: #191917; --accent: #b8f24a; --hair: #c2beb4; --muted: #5d5b54;
  --raised: #cfccc3; --ink2: #2a2a27; --dark-hair: #3a3a36; --dark-muted: #a8a49a; /* Brief 7 §4.6: text on the ink rail, 4.5:1 and up */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif; --narrow: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Brief 16 §1: a fixed frame at 936×602 and up, never a scrolling page; every column that can outgrow it scrolls on its own. */
html, body { height: 100%; overflow: hidden; }
body { background: var(--paper); color: var(--ink); font: 14px/1.35 var(--sans); min-width: 936px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; text-align: left; }
button:disabled { opacity: .4; cursor: default; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; }
input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
hr { border: 0; border-top: 1px solid var(--dark-hair); }

.cap { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.cap.dim { color: var(--dark-muted); }
.topbar .cap, .addbar .cap { color: var(--dark-muted); }
.sub { font-size: 12px; color: var(--muted); }
.sub.big { font-size: 16px; color: var(--ink); }
.display { font-family: var(--narrow); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.display.sm { font-size: 24px; }
.name { font-size: 14px; }
.meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.empty { padding: 20px; color: var(--muted); font-size: 13px; max-width: 46em; }
.hint { font-size: 11px; color: var(--muted); line-height: 1.4; }
.tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .12em; padding: 3px 6px; border: 1px solid var(--ink); white-space: nowrap; }
.tag.up { background: var(--ink); border-color: var(--ink); color: var(--paper); }   /* Brief 16 §4.5: a gain is ink with paper text */

/* Brief 20 §1–§2: the header spans the window, the view fills the width beneath it, and the width the sidebar held
   goes to the right-hand rail. Each rail is a base with a minimum, so every view holds at 936 with nothing scrolling. */
.app { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30.6vw, 440px); grid-template-rows: auto auto auto minmax(0, 1fr); height: 100vh; min-height: 602px; overflow: hidden; }
/* Brief 16 §2.2: the session view's columns: exercise list, then the log pane holding its own two scrollers. */
.app.session { grid-template-columns: clamp(168px, 19vw, 290px) minmax(0, 1fr); }
.topbar { grid-column: 1 / -1; grid-row: 1; }
.head { grid-column: 1 / -1; grid-row: 2; }
.addbar { grid-column: 1 / -1; grid-row: 3; }
.centre, .board { grid-column: 1; grid-row: 4; overflow-y: auto; min-height: 0; }
.panel, .log { grid-column: 2; grid-row: 4; overflow-y: auto; min-height: 0; border-left: 1px solid var(--hair); }
.log { overflow: hidden; display: flex; }
.logcol { flex: 1 1 200px; min-width: 0; overflow-y: auto; }
/* Brief 20A §2: the same 440 / 300 as every other rail, no ceiling, and on the same curve as the grid ones so the
   edge is in the same place in every view at every width (a flat 440 base would hold 440 here while the rest sat at 300). */
.entrycol { flex: 0 1 clamp(300px, 30.6vw, 440px); min-width: 300px; overflow-y: auto; background: var(--ink); border-left: 3px solid var(--ink); }

/* The header (Brief 20 §1) */
/* §1.1: 89px of ink, everything in it bottom-aligned; the tab row starts 24px after the wordmark. */
/* Brief 22 §5: 24px either side of the tab group is the header's own gap (amends the 30px this rule held before). */
.topbar { background: var(--ink); color: var(--paper); height: 89px; display: flex; align-items: flex-end; gap: 24px; padding: 0 28px; }
.topbar .brand { flex: none; font-family: var(--narrow); font-weight: 700; font-size: 27px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; padding-bottom: 14px; }
/* Brief 22 §5: the tab group never shrinks (a fixed min-content box); the status strip is what gives way. */
.tabs { display: flex; align-items: flex-end; gap: 26px; flex: none; padding-bottom: 14px; }
.tab { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--dark-muted); white-space: nowrap; }
.tab.on { color: var(--paper); }
/* §1.3: the mark. 13×9 cells, 2px accent border, 4px apart, the last hollow. An inactive tab keeps the empty row so no label moves. */
/* Zero width so the mark never sets the tab: GYMS's three squares are wider than its label, and in flow they would push every tab to its right when GYMS opens. */
.mark { display: flex; gap: 4px; height: 9px; width: 0; font-style: normal; }
/* Brief 20A §1.1: flex: none, or the zero-width row above shrinks each landscape cell to 4px and the mark reads as a meter. */
.mark i { display: block; flex: none; width: 13px; height: 9px; box-sizing: border-box; border: 2px solid var(--accent); background: var(--accent); }
.mark i.hollow { background: none; }
/* §1.4: the status line and the chip, 10px apart and 8px off the bottom (amends Brief 20 §1.4's 16px). */
/* Brief 22 §5: min-width: 0 so this box (and the status inside it) can shrink below its content once the fixed
   tabs and account chip have taken what they need. */
.topright { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-bottom: 8px; min-width: 0; }
.topright .status { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.acct { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; padding: 6px 9px; border: 2px solid #46443d; color: var(--paper); }
.acct.on { border-color: var(--accent); }
/* Header */
/* Brief 7 §4.1: exactly 89px in every view, the title scaling instead of wrapping. */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; height: 89px; padding: 0 22px 12px; border-bottom: 3px solid var(--ink); }
.head > div { min-width: 0; }
.head h1 { font-family: var(--narrow); font-weight: 700; font-size: clamp(22px, 2.3vw, 32px); line-height: 1; letter-spacing: -.01em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head .cap { color: var(--muted); }
.head .stats { display: flex; gap: 26px; text-align: right; }
.head .stats b { display: block; font-family: var(--narrow); font-weight: 700; font-size: 22px; line-height: 1; margin-top: 4px; }
.head .stats .cap { color: var(--muted); }
.head .acts { display: flex; gap: 8px; }

/* Buttons and chips */
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-align: center; color: var(--ink); background: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.wide { display: block; width: 100%; }
.addbar .btn { border-color: var(--accent); }
.chips { display: flex; gap: 6px; }
.chips.wrap { flex-wrap: wrap; }
.chip { padding: 7px 12px; border: 1px solid var(--hair); font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--ink); background: var(--paper); white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }   /* Brief 16 §4.4: selection on paper is ink */
.chip.sec { background: var(--paper); border: 2px solid var(--ink); padding: 6px 11px; color: var(--ink); }   /* secondary: ink outline, ·2 */
.addbar .chip { background: var(--ink); border-color: var(--dark-hair); color: var(--paper); }
.addbar .chip.on { background: var(--paper); border-color: var(--paper); color: var(--ink); }   /* Brief 16 §4.2: selection on ink is paper */

/* Add bar (§4.2, §6) */
.addbar { background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 12px 22px 14px; min-height: 82px; }   /* 89 to 171, the card's band (Brief 7 §4.3) */
.addbar label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Brief 17 §5: bases sized so the four controls hold one row at 936 (the button used to wrap under them at the floor). */
.addbar label:first-child { flex: 1 1 160px; max-width: 300px; }
.addbar label:nth-child(2) { flex: 1 1 130px; }
.addbar label.grow { flex: 1 1 200px; }
.addbar .cap { color: var(--dark-muted); }
/* Brief 17 §5: the four controls are 42px border-box with centred content, so the row shares one bottom edge. */
.addbar input { background: var(--ink2); border: 1px solid var(--dark-hair); color: var(--paper); padding: 0 10px; font-size: 13px; height: 42px; box-sizing: border-box; }
.addbar input::placeholder { color: var(--dark-muted); }
.addbar .btn { height: 42px; padding: 0 16px; white-space: nowrap; box-sizing: border-box; display: inline-flex; align-items: center; }
.addbar .chips { height: 42px; align-items: stretch; }
.addbar .chip { padding: 0 10px; display: inline-flex; align-items: center; box-sizing: border-box; }
.addbar .dd-btn { height: 42px; box-sizing: border-box; }
/* Brief 17 §6.2: the USED BEFORE menu under the name field, styled like the movement dropdown; the field's border goes accent while it is open. */
.namefield { position: relative; }
.namefield.open input { border-color: var(--accent); }
.sg-menu { position: absolute; left: 0; min-width: 100%; width: max-content; max-width: 360px; top: 100%; z-index: 6; background: var(--ink); border: 2px solid var(--accent); border-top: 0; max-height: 260px; overflow-y: auto; }
.sg-head { padding: 8px 10px 4px; font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--dark-muted); white-space: nowrap; }
.sg-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 8px 10px; font-size: 13px; color: var(--paper); white-space: nowrap; }
.sg-row em { font-style: normal; font-size: 11px; color: var(--dark-muted); white-space: nowrap; text-align: right; }
.sg-row:hover { background: var(--ink2); }

/* The built dropdown (§4.3) */
.dd { position: relative; }
.dd-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; background: var(--ink2); border: 1px solid var(--dark-hair); color: var(--paper); font-size: 13px; }
.dd-btn i { font-style: normal; color: var(--paper); font-size: 11px; }
.dd.open .dd-btn { border-color: var(--paper); }
.dd-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--ink); border: 1px solid var(--paper); max-height: 320px; overflow-y: auto; }
.dd.open .dd-menu { display: block; }
.dd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; font-size: 13px; color: var(--paper); }
.dd-row em { font-style: normal; white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--dark-muted); }
.dd-row em.none { color: var(--paper); }
.dd-row.on { background: var(--paper); color: var(--ink); }
.dd-row.on em { color: var(--ink); }
.dd-row:hover:not(.on) { background: var(--ink2); }

/* Gym list (§4.5): two proportional columns; the selected piece bleeds past the row padding. */
.centre .filter { padding: 12px 22px 6px; }
/* Brief 20 §1: the gyms moved off the sidebar into the view they belong to, a chip row above the day chips with the add form on its end. */
.gymrow { display: flex; align-items: stretch; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.gymrow .chips { flex-wrap: wrap; }
.gymrow .addgym { display: flex; gap: 6px; }
.gymrow .addgym input { width: 108px; border: 1px solid var(--hair); background: var(--paper); padding: 0 9px; font-size: 11px; height: 100%; min-height: 28px; }
.gymrow .addgym button { width: 28px; border: 1px solid var(--hair); text-align: center; font-size: 14px; color: var(--ink); }
.eq { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); padding: 0 22px 30px; }   /* Brief 7 §4.5 */
.eq .mv { padding: 11px 12px 11px 0; border-top: 1px solid var(--hair); }
.eq .pieces { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.eq .piece { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; font-size: 13px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.eq .piece:last-child { border-bottom: 0; }
.eq .piece span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq .piece b { font-family: var(--narrow); font-weight: 700; font-size: 15px; flex: none; }
.stepchoice { border-top: 1px solid var(--hair); padding-top: 12px !important; }
.stepchoice .hint { margin-top: 6px; }
.eq .piece.on { background: var(--ink); color: var(--paper); box-shadow: 8px 0 0 var(--ink), -8px 0 0 var(--ink); }
.eq .piece.none { color: var(--muted); }

/* Panel (§4.6, §5, §6, §7) */
/* Brief 16 §4.3: pane bands are paper with a muted caption and a 2px ink rule; MUSCLES THIS WEEK keeps its ink band. */
.panel .strip { background: var(--paper); color: var(--muted); padding: 0 24px; font-size: 10px; font-weight: 700; letter-spacing: .16em; border-bottom: 2px solid var(--ink); }
.panel .strip { display: flex; justify-content: space-between; align-items: center; height: 36px; box-sizing: border-box; }   /* Brief 18 §2 */
.panel .strip.ink { background: var(--ink); color: var(--paper); border-bottom: 0; }
.panel .strip span + span { opacity: .55; }
.panel .pad { padding: 12px 24px; }   /* Brief 20 §2: the extra width is room to breathe */
.panel .pad + .pad { padding-top: 0; }
.panel .sub { margin-top: 4px; }
.panel .sub + .cap { margin-top: 12px; }
.panel .cap { margin-bottom: 4px; }
.panel .display { margin: 4px 0 2px; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 44px; margin-top: 4px; }
.bars i { flex: 1; background: var(--raised); min-height: 4px; }
.bars i.accent { background: var(--ink); }   /* Brief 16 §4.5: the latest bar is ink */
.chart-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; } /* Brief 15A: the chart's slot below two sessions */
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--hair); font-size: 12px; width: 100%; color: var(--ink); }
.row span { color: var(--muted); }
.row b { font-family: var(--narrow); font-weight: 700; font-size: 14px; text-align: right; }
.row.link:hover { background: var(--raised); }
.row.link span { color: var(--ink); }
.row.none span { color: var(--muted); }
.row.ex { align-items: center; padding: 9px 16px; }
.row.ex .name { font-size: 13px; }
.row.ex .exname { flex: 1; min-width: 0; }   /* Brief 23 §2.4: the name takes the squeeze and wraps */
.tags { display: flex; gap: 4px; flex: none; margin-left: auto; }
.rows.bygym .cap { padding: 10px 16px 2px; color: var(--muted); }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border-top: 1px solid var(--hair); padding-top: 12px !important; }
.setting { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; align-items: center; }
.setting .cap { grid-column: 1 / 3; margin: 0; color: var(--muted); }
.setting input { border: 1px solid var(--hair); padding: 6px 8px; font-family: var(--narrow); font-size: 15px; font-weight: 700; width: 100%; min-width: 0; background: var(--paper); }
.setting input::placeholder { color: var(--hair); }
.setting .na { flex: none; font-size: 9px; font-weight: 700; letter-spacing: .12em; border: 1px solid var(--hair); padding: 7px 7px; color: var(--muted); }
.setting .na.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.panel .rename { width: 100%; border: 1px solid var(--hair); padding: 8px 10px; font-size: 12px; background: var(--paper); }
/* Brief 7 §2: notes read as text; the editor is a three-row textarea with a 2px ink border. */
.panel .notesrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.panel .notesrow .cap { margin: 0; }
.panel .btn.sm { padding: 6px 10px; font-size: 9px; }
.panel textarea.notes { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 0; padding: 8px 10px; font: inherit; font-size: 12px; line-height: 1.4; background: var(--paper); color: var(--ink); resize: vertical; }
.panel textarea.notes:focus { outline: 0; }
.panel .notes-text { font-size: 12px; line-height: 1.4; white-space: pre-wrap; }
.panel .notes-empty { font-size: 12px; color: var(--muted); }
.panel .actions { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 12px !important; display: flex; flex-direction: column; gap: 8px; }
.panel .actions .btn { display: block; width: 100%; }
/* Brief 18 §3: the name field is the height of a movement row (64px) with its top on the first row's top, so the two
   tinted boxes share both edges across the divider; padding is horizontal only. */
.panel input.title { width: 100%; border: 1px solid var(--hair); background: var(--raised); padding: 0 12px; height: 64px; box-sizing: border-box; font-family: var(--narrow); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.panel .pad.mvhead { padding-top: 0; }
.caprow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.caprow .cap { margin: 0; white-space: nowrap; }
.cap.tight { letter-spacing: .08em; font-size: 8px; }

/* Today (§5) */
.centre.today { padding: 16px 22px 30px; }
.centre.today > .cap { color: var(--muted); margin-bottom: 6px; }
.week { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
/* Brief 18 §4: the count is a baseline row of three spans (count, slash, goal) that cannot break, never squeezed by the bars
   or the line beside it. */
.week .display { font-size: clamp(34px, 3.6vw, 48px); display: flex; align-items: baseline; gap: 10px; flex: none; white-space: nowrap; }
.wbars { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.wbars i { flex: none; width: 18px; background: var(--raised); min-height: 4px; }
.wbars i.accent { background: var(--ink); }
.week .sub { padding-bottom: 4px; }
/* Brief 17 §3.1: one column; the start action is a bar across the bottom of the box, inside its border, never beside the pickers. */
.upnext { display: flex; flex-direction: column; border: 3px solid var(--ink); margin-bottom: 22px; }
.upnext .left { min-width: 0; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.upnext .left .cap { color: var(--muted); }
.upnext .left .display { font-size: clamp(26px, 3.9vw, 46px); }   /* Brief 17 §3.2 */
.upnext .left .sub { margin-top: -4px; }
/* Brief 17 §3.2: 10px chips with .1em tracking and 6/10 padding so the three gyms hold one row at the floor. */
.upnext .chip, .upnext .chips.wrap .chip { background: var(--paper); font-size: 10px; letter-spacing: .1em; padding: 6px 10px; }
.upnext .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.upnext .chips { flex-wrap: nowrap; }
.upnext .go { background: var(--accent); border-top: 3px solid var(--ink); padding: 12px 18px 13px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--ink); width: 100%; }
.upnext .go .cap { font-size: 10px; color: var(--ink); flex: none; }
.upnext .go .display { font-size: 28px; flex: none; }
/* The sub line sits at the row's right; where the row is too narrow for all three it takes its own line, still right-aligned (the brief's figure). */
.upnext .go .sub { color: var(--ink); flex: 1 1 auto; text-align: right; min-width: 0; }
.lasts { display: flex; flex-direction: column; }
/* Brief 17 §3.4: 9px rows with a 70px day column at 21px. */
.last { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--hair); }
.last b { font-family: var(--narrow); font-weight: 700; font-size: 21px; }
.last span { font-size: 12px; color: var(--muted); }
.last i { font-style: normal; }
/* Brief 17 §3.3: the rail is its own column (288px, 216 minimum) whose header and legend stay put; only the rows scroll. */
/* Brief 20A §2: every rail is one width, set on .app above; nothing is per-view any more. */
.panel.musclerail { display: flex; flex-direction: column; overflow: hidden; }
.panel.musclerail .strip, .panel.musclerail .legend { flex: none; }
.panel.musclerail .strip { padding-left: 24px; padding-right: 24px; }
.panel.musclerail .muscles { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.muscles { display: flex; flex-direction: column; }
/* Brief 15: squares you can count, one per set, primary filled and secondary hollow, wrapping on their own line. */
.muscle { display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 4px 10px; align-items: flex-start; padding: 10px 24px 8px; border-top: 1px solid var(--hair); }
.muscle span { font-size: 12px; }
.muscle b { font-family: var(--narrow); font-weight: 700; font-size: 15px; text-align: right; line-height: 1; }
.muscle b.zero { color: #7d7a71; }
.muscle em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; }
.muscle .sq { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 3px; }
.muscle .sq i, .legend i { display: block; width: 11px; height: 8px; background: var(--ink); box-sizing: border-box; }
.muscle .sq i.s, .legend i.s { background: var(--paper); border: 2px solid var(--ink); }
.legend { display: flex; align-items: center; gap: 8px; padding: 10px 24px; border-top: 1px solid var(--hair); font-size: 9px; white-space: nowrap; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.legend i.s { margin-left: 10px; }

/* Movements (§6) */
.mvlist { display: flex; flex-direction: column; padding: 0 22px 30px; }
.mvrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 0 12px; height: 64px; box-sizing: border-box; border-top: 1px solid var(--hair); color: var(--ink); }   /* Brief 18 §3: 64px */
.mvrow span { font-size: 11px; color: var(--muted); flex: none; }
.mvrow.on { background: var(--raised); }

/* History (§7): minmax tracks so nothing overflows (§9). */
.table { display: flex; flex-direction: column; padding: 0 22px 30px; }
.thead, .trow { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(90px, 1.6fr) minmax(60px, 1fr) minmax(80px, auto); gap: 12px; align-items: center; padding: 9px 12px; }
/* Brief 18 §2: the column-label row and the panel kicker are both 36px bands with their content centred, so the two
   panes start on one line either side of the divider; padding no longer sets either height. */
.thead { border-bottom: 1px solid var(--ink); padding: 0 12px; height: 36px; box-sizing: border-box; }
.thead .cap { color: var(--muted); font-size: 10px; margin: 0; }
.thead b { text-align: right; }
.trow { width: 100%; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--ink); }
.trow span { color: var(--muted); }
.trow b { text-align: right; font-size: 12px; }
.trow.on { background: var(--raised); }

/* Session (§8) */
.board .strip { background: var(--paper); color: var(--muted); padding: 10px 22px 8px; font-size: 10px; font-weight: 700; letter-spacing: .16em; border-bottom: 2px solid var(--ink); }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 11px 22px; border-bottom: 1px solid var(--hair); color: var(--ink); }
.brow.on { background: var(--raised); }
.log .pad { padding: 14px 24px 10px; display: flex; flex-direction: column; gap: 8px; }
.log h2 { font-family: var(--narrow); font-weight: 700; font-size: 24px; line-height: 1; }
/* Brief 14 §2.1: the band leaves accent; raised ground with the same ink rule as the first-time block. */
.lasttime { background: #c9c5bb; margin: 0 24px; padding: 10px 14px 12px; border-bottom: 3px solid var(--ink); }
.lasttime .cap.dim { color: var(--muted); }
/* Brief 13 §6: no history is a block in the last-time slot on the raised ground with an ink rule under it: never accent, never ink. */
.firsttime { margin: 0 24px; padding: 10px 14px 12px; background: #c9c5bb; border-bottom: 3px solid var(--ink); }
.firsttime .cap { color: var(--muted); margin-bottom: 4px; }
.firsttime b { display: block; font-family: var(--narrow); font-weight: 700; font-size: 30px; line-height: 1.05; color: var(--ink); }
/* Brief 13 §3.3: the equipment dropdown, 300px in the log header, its list floating over the log. */
.log .pad.loghead { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 16px; }
/* Brief 22 §2: the NOTE chip on the settings line, and the note itself opened directly under it. */
.notechip { display: inline-block; margin-left: 8px; padding: 3px 7px; vertical-align: middle; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.notechip.open { background: var(--accent); color: var(--ink); }   /* accent always carries ink text, never paper */
.notebox { margin-top: 8px; padding: 10px 14px; background: #c9c5bb; border-left: 6px solid var(--ink); font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.eqdd { position: relative; width: 300px; max-width: 48%; flex: none; }
.eqtrig { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border: 2px solid var(--ink); background: var(--raised); text-align: left; }
.eqtrig .cap { margin: 0; color: var(--muted); }
.eqtrig .name { flex: 1 1 auto; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqtrig .caret { font-size: 11px; color: var(--ink); }
.eqlist { position: absolute; top: 48px; left: 0; right: 0; z-index: 5; background: var(--paper); border: 2px solid var(--ink); }
.eqopt { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; }
.eqopt.on { background: var(--ink); color: var(--paper); }
.eqopt.on .cap { color: var(--paper); margin: 0; }
/* Brief 8 §5: the band's lines are figures read from a rack, not captions. */
/* Brief 16 §1.6 spirit: the figures scale with the window so the log column at the 936 floor still reads as one line. */
.lasttime b { display: block; font-family: var(--narrow); font-weight: 700; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.1; margin-top: 2px; }
.lasttime .warmline { font-family: var(--narrow); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.1; margin-top: 4px; color: var(--ink); }
/* Brief 8 §5: warm-up, working sets and the entry block stack in one column capped at 620px, in the phone's order. */
.stack { display: flex; flex-direction: column; gap: 18px; padding: 16px 24px 30px; }
.stack .cap { margin-bottom: 8px; }
.noneyet { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--hair); background: var(--paper); }
.stepper button { flex: none; width: 30px; height: 38px; text-align: center; font-family: var(--narrow); font-size: 20px; color: var(--ink); }
.stepper input, .stepper b { flex: 1 1 0; width: 0; min-width: 0; text-align: center; font-family: var(--narrow); font-weight: 700; font-size: 20px; height: 38px; background: none; }
.stepper.sm button { width: 26px; height: 30px; font-size: 16px; }
.stepper.sm input { font-size: 15px; height: 30px; }
.stepper.xs { border: 0; }
.stepper.xs button { width: 26px; height: 26px; font-size: 16px; }
.stepper.xs b { font-size: 15px; height: 26px; line-height: 26px; flex: none; width: 26px; }
.target { display: flex; align-items: center; gap: 6px; }
.target .cap { margin: 0; color: var(--muted); }
/* Brief 13 §1.1: one list. Warm-ups outlined on paper (W1, W2), working sets on the raised ground (SET 1, SET 2). */
/* Brief 14 capture: every row on paper over a hairline, the kind told by the label and the warm-up's muted figures. */
.srow { display: grid; grid-template-columns: 96px 1fr auto 28px; align-items: center; gap: 8px; padding: 8px 0 8px 0; border-bottom: 1px solid var(--hair); }
.srow.warmup { background: transparent; }
.srow.warmup b { color: var(--muted); }
.srow b { font-family: var(--narrow); font-weight: 700; font-size: 20px; }
.srow b i { font-style: normal; color: var(--muted); }
.srow.on b i { color: var(--dark-muted); }
/* Brief 14 §4: the last three sessions on this machine, under the box after a 22px gap. */
.onthis { margin-top: 22px; border-top: 3px solid var(--ink); padding-top: 10px; }
.onthis .caprow { margin-bottom: 4px; }
.onthis .caprow .cap { white-space: normal; }
.caplink { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.caplink:hover { color: var(--ink); }
.mrow { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.mrow .cap { margin: 0; font-size: 11px; color: var(--muted); white-space: nowrap; }
.mrow .cap:last-child { font-size: 10px; }
.mrow b { font-family: var(--narrow); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.1; color: var(--ink); }
.srow .reps { font-family: var(--narrow); font-size: 15px; color: var(--muted); }
.srow .edit { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--muted); padding: 4px 6px; }
.srow.on { background: var(--ink); color: var(--paper); }
.srow.on .cap, .srow.on .reps { color: var(--paper); }
.srow.on .editing { color: var(--dark-muted); padding: 4px 6px; }
.srow.on .del { color: var(--dark-muted); }
.entry .save { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
/* Brief 16 §2.4: where the numbers came from, 11px muted under the action. */
.entry .source { font-size: 11px; line-height: 1.4; color: #6d6a61; margin-top: 4px; }
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--paper); }
.eq .piece.on b, .eq .piece.on span { color: var(--paper); }
/* The account view: one column of blocks, no panel, the same rhythm as the phone's account screen. */
/* Brief 16 §7: two columns; the left keeps its blocks, the right holds the two global settings behind a hairline. */
.centre.account { grid-column: 1; padding: 8px 22px 30px; }
.centre.account .block { max-width: 560px; }
.settings-col { grid-column: 2; grid-row: 4; overflow-y: auto; border-left: 1px solid var(--hair); padding: 24px 26px 30px; min-width: 0; }
.settings-col .cap { color: var(--muted); margin-bottom: 14px; }
.setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.setrow > span { min-width: 0; }   /* Brief 17 §8 figure: the label wraps ahead of the stepper at the floor */
.setrow .dur { flex: none; }
.setrow .chip { padding: 7px 12px; }
.settings-col .hint { margin-top: 16px; font-size: 12px; line-height: 1.45; }
.dur.goal button { width: 34px; height: 30px; font-size: 18px; }
.dur.goal b { min-width: 44px; font-size: 20px; }
.centre.account .block { padding: 16px 0; }
.centre.account .cap { margin-bottom: 6px; }
.centre.account .cap.synced { margin: 6px 0 0; color: var(--muted); }
.centre.account .display { margin: 6px 0 4px; }
.centre.account .stats { display: flex; gap: 56px; flex-wrap: wrap; }
.centre.account .stats .cap { margin-bottom: 4px; }
/* Brief 17 §8: identity, sign-out and the figures as one 3px ink block; SIGN OUT on the address row, wrapping under it when narrow. */
.idblock { border: 3px solid var(--ink); max-width: 560px; margin-top: 16px; }
.idrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 18px; }
.idrow .idtext { min-width: 0; }
.idrow .addr { font-size: 17px; color: var(--ink); margin: 2px 0 4px; word-break: break-all; }
.idrow .cap.synced { margin: 0; color: var(--muted); }
.centre.account .btn.signout { width: auto; padding: 10px 16px; border: 2px solid var(--ink); flex: none; }
.idstats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.idstats > div { padding: 12px 18px 14px; border-left: 1px solid var(--hair); }
.idstats > div:first-child { border-left: 0; }
.idstats .cap { margin-bottom: 4px; color: var(--muted); }
.idstats .display { font-size: 28px; margin: 0; }
.del { flex: none; width: 28px; height: 28px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
/* Brief 16 §2.3: the entry panel is the right column, not a sticky block: ink, 18/18/22 padding, 14px gap. */
.entry { background: var(--ink); color: var(--paper); padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.entry .caprow { margin: 0; }
/* Brief 13 §1.2: the two-segment kind switch; selected is accent on ink, the other muted on nothing. */
.entry .kind { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border: 1px solid var(--dark-hair); }
.entry .kind button { height: 40px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--dark-muted); text-align: center; }
.entry .kind button.on { background: var(--paper); color: var(--ink); }   /* Brief 16 §4.2: selection on ink is paper */
/* Brief 16 §2.3: weight on its own row at 30px with −/+ at 14px side padding; full and half reps share the row below at 23px. */
.entry .steppers { display: flex; flex-direction: column; gap: 12px; }
.entry .reprow { display: flex; gap: 8px; }
.entry .scol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.entry .scol .stepper { width: 100%; }
.entry .scol .stepper button { flex: none; }
.entry .stepper { border-color: var(--dark-hair); background: var(--ink2); }
.entry .stepper button { color: var(--paper); width: auto; padding: 0 14px; }
.entry .stepper input { color: var(--paper); font-size: 23px; height: 44px; }
.entry .scol.weight .stepper input { font-size: 30px; height: 52px; }
.entry .scol.weight .stepper button { height: 52px; }
.entry .reprow .stepper button { height: 44px; }

/* Brief 8 §1: seven date chips, a weekday over the date. */
.dates { display: flex; gap: 6px; }
.date { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); text-align: center; }
.date span { font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.date b { font-family: var(--narrow); font-weight: 700; font-size: 19px; line-height: 1; }
.date.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }   /* Brief 16 §4.4 */
.upnext .logline { margin-top: -2px; }
/* Brief 24A §3.2: the ALREADY LOGGED card under the chips. */
.upnext .logged { display: flex; flex-direction: column; }
.upnext .lhead { background: var(--ink); color: var(--paper); padding: 10px 14px 9px; border-top: 3px solid var(--ink); }
.upnext .lhead .cap { color: var(--accent); font-size: 10px; }
.upnext .lhead .sub { color: var(--paper); margin-top: 2px; }
.upnext .lrow { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 14px; border-top: 3px solid var(--ink); color: var(--ink); text-align: left; }
.upnext .lrow.accent { background: var(--accent); height: 44px; }
.upnext .lrow.accent .display { font-size: 22px; }
.upnext .lrow.quiet { background: var(--paper); height: 34px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.upnext .lrow.quiet .arrow { color: var(--muted); }
.upnext .go.quiet { background: var(--paper); }
/* Brief 8 §2.7: the history panel's edit state. */
.panel .titlerow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel .titlerow .btn { flex: none; padding: 9px 14px; }
.panel .titlerow .btn.accent { background: #c9c5bb; border-color: #c9c5bb; }   /* Brief 16 §4.5: the DONE toggle is raised ground, not accent */
/* Brief 16 §6.2–6.3: the muscle line, with the chip grid behind EDIT. */
.panel .musclesec { border-top: 1px solid var(--hair); padding-top: 12px !important; }
.panel .musclesec .caprow { align-items: center; }
.panel .musclesec .cap.tight { display: block; margin: 0 0 8px; }
.muscleline { font-size: 13px; line-height: 1.4; }
.muscleline.dim { color: var(--muted); }
.panel .histdate { border-top: 1px solid var(--hair); padding-top: 12px !important; }
.panel .histdate .dates { margin-bottom: 10px; }
.panel .gymline { font-size: 12px; line-height: 1.4; color: var(--muted); }
/* Brief 22 §1.1: the delete button at the foot of the edit panel — destructive, so a muted outline, never accent, never ink. */
.btn.danger { margin-top: 14px; border: 2px solid var(--hair); color: var(--muted); background: none; font-size: 11px; letter-spacing: .14em; }
/* Brief 11 §3.4: the duration stepper under the date chips, 5 minutes a step, NOT SET at zero. */
.panel .durrow { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.panel .durrow .cap { margin: 0; }
.dur { display: flex; align-items: center; gap: 8px; }
.dur button { width: 40px; height: 34px; padding: 0; text-align: center; line-height: 1; border: 2px solid var(--ink); background: var(--paper); font-family: var(--narrow); font-size: 20px; color: var(--ink); }
.dur b { min-width: 86px; text-align: center; font-family: var(--narrow); font-weight: 700; font-size: 22px; }
/* Brief 11 §1: the app's one modal. Paper card, 3px ink border, hard edges, no shadow; DELETE is ink, never accent. */
.ground { position: fixed; inset: 0; z-index: 20; background: rgba(25, 25, 23, 0.72); display: flex; align-items: center; justify-content: center; }
.card { width: 380px; max-width: calc(100vw - 64px); background: var(--paper); border: 3px solid var(--ink); padding: 22px; }
.card .cap { margin: 0; }
.card .ctitle { margin: 8px 0 0; }
.card .cline { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.card .cbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.card .btn { padding: 13px 10px; border-width: 2px; }
.btn.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.row.ex .del { margin-left: 4px; }
.hsets { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 12px; }
.hrow { display: flex; align-items: center; background: var(--raised); }
.hrow .pick { flex: 1; min-width: 0; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 8px 6px 8px 10px; color: var(--ink); }
.hrow b { font-family: var(--narrow); font-weight: 700; font-size: 18px; }
.hrow .reps { font-family: var(--narrow); font-size: 15px; color: var(--muted); }
.hrow .del { margin-right: 4px; }
.hrow.on { background: var(--ink); color: var(--paper); }
.hrow.on .cap, .hrow.on .reps, .hrow.on .pick { color: var(--paper); }
.hrow.on .del { color: var(--dark-muted); }
.hblock { background: var(--ink); color: var(--paper); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.hblock > .cap { margin: 0; }
.hfields { display: flex; gap: 8px; }
.hfield { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hfield input { width: 100%; min-width: 0; height: 40px; text-align: center; font-family: var(--narrow); font-weight: 700; font-size: 20px; color: var(--paper); background: var(--ink2); border: 1px solid var(--dark-hair); }
.hfield.half input { border-color: var(--dark-muted); }
.hblock .save { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.panel .forgot { border-top: 1px solid var(--hair); padding-top: 12px !important; }
.panel .forgot .rows { margin-top: 8px; }
.panel .forgot .row b { font-size: 9px; letter-spacing: .14em; }

/* The gate (Brief 20 §3): the rack against the top left, the name and sentence on the floor, the button on their baseline. */
.gate { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: var(--paper); padding: 56px 64px 64px; }
.rack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rk { display: flex; gap: 12px; }
.rk i { display: block; width: 54px; height: 40px; box-sizing: border-box; border: 4px solid var(--paper); background: var(--paper); }
.rk i.hollow { background: none; }
.rk.accent i { border-color: var(--accent); background: var(--accent); }
.rk.accent i.hollow { background: none; }
.gate-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.gate-mark { font-family: var(--narrow); font-weight: 700; font-size: clamp(56px, 7vw, 88px); line-height: .9; letter-spacing: .06em; color: var(--accent); }
.gate-line { font-size: 15px; color: var(--dark-muted); margin-top: 18px; max-width: 30em; }
.gate-btn { flex: none; padding: 20px 40px; font-size: 13px; letter-spacing: .14em; }

/* Sign-in (loading and error notes) */
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--ink); color: var(--paper); text-align: center; padding: 40px; }
.signin .wordmark { font-family: var(--narrow); font-weight: 700; font-size: 28px; letter-spacing: .3em; }
.signin p { font-size: 14px; }
.signin .sub { color: var(--dark-muted); max-width: 40em; }
.stepchoice .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Brief 9 §2: the browser-icon picker. Six 80px swatches in two rows of three, 12px corners, the chosen one ringed
   in 3px ink 3px outside its edge with its caption in full ink. A click applies at once. */
.centre.account .icons .cap { margin-bottom: 14px; }
/* Brief 17 §7.4: three 74px tiles in one row; the chosen one ringed 3px ink at 3px offset. */
.swatches { display: grid; grid-template-columns: repeat(3, 74px); gap: 22px 26px; }
.swatch { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; font: inherit; }
.swatch img { display: block; width: 74px; height: 74px; border-radius: 12px; box-sizing: border-box; }
.swatch.on img { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.swatch .cap { margin: 0; color: var(--muted); font-size: 9px; }
.swatch.on .cap { color: var(--ink); }
.iconnote { margin-top: 16px; max-width: 520px; }

/* Brief 10 §4.1: the history panel's rows carry this session's sets in ink over the previous session's, muted. */
.panel .row.ex .meta.now { color: var(--ink); }
.panel .row.ex .meta.before { color: var(--muted); }

/* Brief 21 §2.1: History's two tabs beside the title, 2px ink borders sharing one edge, ink on the open one. */
.head .htitle { display: flex; align-items: center; gap: 16px; }
.seg { display: flex; flex: none; }
.seg button { font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 7px 14px; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }
/* §2.2: GROUP in 130px, then three equal week columns; a 32px header, 44px rows, 12x12 chips 3px apart that wrap
   inside their column. */
.mweeks { display: flex; flex-direction: column; }
.mwhead, .mwrow { display: grid; grid-template-columns: 130px repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 22px; align-items: center; }
.mwhead { flex: none; height: 32px; box-sizing: border-box; border-bottom: 2px solid var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }
.mwhead span:last-child { color: var(--ink); }
.mwrow { flex: none; width: 100%; height: 44px; box-sizing: border-box; border-bottom: 1px solid var(--hair); text-align: left; color: var(--ink); }
.mwrow.on { background: var(--raised); }
.mwrow .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwrow .wk { display: flex; flex-wrap: wrap; gap: 3px; align-content: center; min-width: 0; }
.mwrow .wk i { display: block; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ink); background: var(--ink); }
.mwrow .wk i.s { background: transparent; }
.mwrow .wk .none { color: var(--muted); font-size: 12px; }
/* §2.3: the rail's kicker band is the list header's twin, so the two rules meet on one line. */
.panel.mrail { display: flex; flex-direction: column; }
.mband { flex: none; height: 32px; box-sizing: border-box; display: flex; align-items: center; padding: 0 24px; border-bottom: 2px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.mrail .pad > .cap { color: var(--muted); margin: 4px 0 12px; }
.mbars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; }
.mbar { display: flex; flex-direction: column; justify-content: flex-end; height: 158px; }
.mbar i { display: block; box-sizing: border-box; border: 2px solid var(--ink); background: var(--paper); }
.mbar i.stub { border: 0; background: var(--ink); }
.mbar i.now { background: var(--accent); }
.mbar i.now.stub { background: var(--ink); }
.mbar span { margin-top: 6px; text-align: center; font-size: 9px; font-weight: 700; color: var(--muted); }
.mlines { border-top: 1px solid var(--hair); padding-top: 12px !important; }
.mline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 12px; }
.mline b { font-family: var(--narrow); font-weight: 700; font-size: 15px; white-space: nowrap; }
.mrail .pad:last-child { border-top: 1px solid var(--hair); padding-top: 14px; }
.msrc .mline { border-bottom: 1px solid var(--hair); padding: 7px 0; }
.mnone { font-size: 12px; color: var(--muted); }

/* Brief 24: Claude sets the muscle groups. The marker in the label's muted colour one size down; ASK CLAUDE styled as EDIT;
   the key row built like the goal row, with the ink SAVE whose text is the only accent in the feature (§2.4). */
.musclesec .cap .by { font-size: 8px; color: var(--muted); letter-spacing: .14em; }
.caprow-btns { display: flex; gap: 6px; flex: none; }
.keyrow { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.keylabel { font-size: 14px; margin-bottom: 10px; }
.keyform { display: flex; gap: 6px; }
.keyform input { flex: 1; min-width: 0; height: 34px; box-sizing: border-box; padding: 0 10px; font-size: 12px; background: #c9c5bb; border: 1px solid var(--hair); color: var(--ink); }
.keyform input::placeholder { color: var(--muted); }
.btn.ink { background: var(--ink); color: var(--accent); border-color: var(--ink); height: 34px; padding: 0 14px; display: inline-flex; align-items: center; }
.btn.ink[disabled] { color: var(--paper); }
.keysaved { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.keysaved .masked { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.settings-col .keysaved .cap.keystatus { margin: 4px 0 0; color: var(--muted); }
.settings-col .keysaved .cap.keystatus.bad { color: var(--ink); }
.keyrow .hint { margin-top: 10px !important; }
.settings-col .hint.keyerr { color: var(--ink); font-weight: 600; }
/* Brief 25 §2: with a plan, the band holds the plan card and the last-time card in a snapping track, plan first; both
   take the taller one's height (one grid row), and the band's bottom padding becomes the dot row (12px + 11px). */
.band { background: #c9c5bb; margin: 0 24px; border-bottom: 3px solid var(--ink); }
.band .track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.band .track::-webkit-scrollbar { display: none; }
.band .bcard { scroll-snap-align: start; padding: 10px 14px 0; min-width: 0; }
.band .cap.dim { color: var(--muted); }
.band .bcard b { display: block; font-family: var(--narrow); font-weight: 700; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.1; margin-top: 2px; }
.band .bcard b.first { font-size: 30px; line-height: 1.05; margin-top: 4px; }
.band .warmline { font-family: var(--narrow); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.1; margin-top: 4px; color: var(--ink); }
.band .planhead { display: flex; align-items: center; gap: 8px; }
.band .planhead .cap { margin: 0; font-size: 11px; }
.band .planhead .rest { margin-left: auto; }
.plantag { background: var(--ink); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .14em; line-height: 1; padding: 3px 6px; }
.band .dots { display: flex; justify-content: center; height: 23px; padding-bottom: 5px; }
.band .dot { width: 30px; height: 18px; display: flex; align-items: center; justify-content: center; }
.band .dot i { display: block; width: 18px; height: 4px; background: #a8a49a; }
.band .dot.on i { background: var(--ink); }
