/* COACH wing — Arctic Light. Light surface, never a cave (House UI ruling).
   Sized for the gym: sweaty hands, one thumb, glanceable mid-set. Touch targets are
   44px minimum and nothing important is behind a tap-and-confirm. */

:root {
  color-scheme: light;
  --bg:#F4EEE2; --panel:#FBF7EF; --line:#DCD2C0; --ink:#241E16; --muted:#6E6353;
  --gold:#B8912F; --warm:#C77A2E; --flag:#F3E7CE;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,ui-sans-serif,system-ui,sans-serif;
  -webkit-text-size-adjust:100%; }
#app { max-width:640px; margin:0 auto; padding:16px 16px 48px; }

.bar { display:flex; align-items:baseline; gap:12px; border-bottom:1px solid var(--line);
  padding-bottom:10px; margin-bottom:14px; }
h1 { margin:0; font-size:22px; letter-spacing:-.01em; }
.block { color:var(--muted); font-size:13px; }
h2 { font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted);
  margin:22px 0 8px; font-weight:600; }

.rows { display:flex; flex-direction:column; gap:8px; }
.row { display:flex; align-items:center; gap:12px; width:100%; min-height:52px;
  padding:10px 12px; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; text-align:left; font:inherit; color:inherit; }
.tick { cursor:pointer; }
.tick .box { flex:0 0 26px; height:26px; border:2px solid var(--line); border-radius:7px;
  display:grid; place-items:center; font-size:16px; color:var(--gold); }
.tick.done { background:#F7F1E4; border-color:var(--gold); }
.tick.done .box { border-color:var(--gold); }
.txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.lbl { font-size:15px; }
.dose { font-size:12px; color:var(--muted); }

.lift .slots { margin-left:auto; display:flex; gap:6px; }
.slot { width:62px; min-height:44px; text-align:center; font:inherit; font-size:15px;
  background:#fff; border:1px solid var(--line); border-radius:9px; color:inherit; }
.slot:focus { outline:2px solid var(--gold); outline-offset:1px; }

.headline { margin:6px 0 10px; font-size:15px; }
.rule, .stop { font-size:13px; color:var(--muted); margin:10px 0 0; }
.stop { border-left:3px solid var(--warm); padding-left:10px; }

/* Flags and the withheld mark share one form: a named slot that is honest about
   what it does not know. An empty slot must never read as a quiet success. */
.flag, .mark { background:var(--flag); border:1px solid var(--line); border-radius:12px;
  padding:12px; margin:14px 0; }
.flag-k { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--muted); margin-bottom:4px; font-weight:700; }
.flag p, .mark p { margin:0; font-size:14px; }
.brieftext { white-space:pre-wrap; font-size:15px; line-height:1.5; }

.tabs { display:flex; gap:8px; margin-bottom:8px; }
.tabs button { flex:1; min-height:44px; font:inherit; font-size:14px; background:var(--panel);
  border:1px solid var(--line); border-radius:10px; color:var(--muted); }
.tabs button.on { background:#fff; color:var(--ink); border-color:var(--gold); font-weight:600; }

.gate { display:flex; flex-direction:column; gap:10px; padding:20px 0; }
.gate input { min-height:48px; padding:0 12px; font:inherit; font-size:16px; background:#fff;
  border:1px solid var(--line); border-radius:10px; }
.gate button { min-height:48px; font:inherit; font-size:16px; background:var(--gold);
  color:#fff; border:0; border-radius:10px; font-weight:600; }
.lede { margin:0; font-size:15px; }
.note { font-size:13px; color:var(--muted); margin:0; }

/* The warm dot: "not yet on the Stack". Never a silent optimistic write —
   he always knows whether the Stack has it. */
.status { min-height:20px; font-size:13px; color:var(--muted); margin:16px 0 0; text-align:center; }
.status.warm { color:var(--warm); }
.status.warm::before { content:"● "; }

/* THE MARK — the best of each movement, from resolved ledger state. */
.markrows { display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.markrow { display:flex; align-items:baseline; gap:10px; font-size:14px; }
.markrow .lbl { text-transform:capitalize; }
.markrow .best { margin-left:auto; font-weight:700; color:var(--gold); font-variant-numeric:tabular-nums; }

.gate button.secondary { background:transparent; color:var(--muted); border:1px solid var(--line); font-weight:400; }
