/* Selkirk Stone paint formulas — shared styles.
   Same look as the paint line app: tablet = header bar + scrolling screen of big touch tiles;
   TV = header (type, profile, color, pallets) over the formula table, sized from the TV's own width (--u = 1% of width).
   Single light theme in Selkirk Stone brand colors, by design (factory floor + TV). */
:root {
  --green: #395040;
  --green-press: #2a3c30;
  --tan: #c2b199;
  --tan-tint: #f5f1ea;
  --tan-press: #e6ddcf;
  --red: #754841;
  --red-press: #5c3833;
  --charcoal: #2f3436;
  --bg: #ffffff;
  --fg: #1c241f;
  --muted: #4f5a52;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Roboto", "Segoe UI", sans-serif;
  color-scheme: light;
}
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
button:focus-visible, select:focus-visible { outline: 4px solid var(--fg); outline-offset: 3px; }

.mark-stone {
  display: inline-block; flex: none; width: 1.1em; height: 1.1em; border-radius: .12em;
  background: linear-gradient(var(--green) 0 30%, var(--bg) 30% 36%, var(--tan) 36% 64%, var(--bg) 64% 70%, var(--red) 70%);
}

/* ================= TABLET REMOTE ================= */
.tab { height: 100%; display: flex; flex-direction: column; overflow: hidden; position: relative; background: var(--bg); font-size: 20px; user-select: none; }
.tab .bar {
  flex: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--tan-tint); border-bottom: 5px solid var(--green);
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.tab .brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; min-height: 72px; }
.tab .back, .tab .home {
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .04em;
  min-height: 72px; padding: 0 26px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
}
.tab .back { background: var(--green); color: #fff; border: 0; }
.tab .back:active { background: var(--green-press); }
.tab .back .arrow { font-size: 34px; line-height: 1; }
.tab .home { background: var(--bg); color: var(--fg); border: 3px solid var(--tan); margin-left: auto; }
.tab .home:active { background: var(--tan-press); }
.tab .pills { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tab .pill, .tab .ontv {
  display: flex; flex-direction: column; justify-content: center; min-height: 58px;
  padding: 4px 12px; border-radius: 8px; border: 2px solid var(--tan); background: var(--bg);
}
.tab .pill small, .tab .ontv small { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tab .pill b, .tab .ontv b { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.tab .ontv { border-color: var(--green); background: #e9efea; }
.tab .ontv small { color: var(--green); }

.tab-main {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 18px;
  padding-block: 20px 28px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.tab h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.tab h1 .h1-line { display: block; color: var(--muted); font-size: .72em; }
.tab .prompt { margin: 0; color: var(--muted); font-size: 22px; font-weight: 600; }

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tiles.big { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); flex: 1; }
.tile {
  font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--fg); background: var(--tan-tint); border: 3px solid var(--tan); border-radius: 12px;
  min-height: 100px; padding: 14px 18px; text-align: left; cursor: pointer; line-height: 1.1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tile::after { content: "›"; font-size: 46px; color: var(--green); line-height: 1; }
.tile.soon { color: var(--muted); background: var(--bg); }
.tile.soon::after { content: "Soon"; font-size: 15px; font-family: var(--body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 2px solid var(--tan); border-radius: 6px; padding: 4px 8px; }
.tiles.big .tile { font-size: 64px; font-weight: 800; min-height: 220px; justify-content: center; }
.tiles.big .tile::after { display: none; }
.tile:active { background: var(--tan-press); }
/* "Soon" tag sits in the corner so long names keep the full width */
.tile { position: relative; }
.tile.soon::after { position: absolute; top: 6px; right: 6px; font-size: 12px; padding: 2px 6px; }
.tile.soon { padding-top: 24px; }

.empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 3px dashed var(--tan); border-radius: 12px; padding: 40px 20px; text-align: center;
}
.empty p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 50px; text-transform: uppercase; letter-spacing: .04em; }
.empty span { color: var(--muted); font-size: 22px; }
.empty.small p { font-size: 40px; }

/* pallet quantity: three sheet buttons + a half-pallet stepper */
.qtybar { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.qty-presets { display: flex; gap: 14px; flex: 1 1 420px; }
.qty {
  flex: 1; min-height: 110px; border-radius: 12px; cursor: pointer; border: 3px solid var(--green);
  background: var(--bg); color: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.qty b { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1; }
.qty span { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .12em; }
.qty:active { background: var(--tan-press); }
.qty.on { background: var(--green); color: #fff; }
.stepper { display: flex; align-items: stretch; gap: 10px; flex: 0 1 auto; }
.step {
  width: 110px; min-height: 110px; border-radius: 12px; cursor: pointer; border: 3px solid var(--red);
  background: var(--bg); color: var(--red); font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1;
}
.step:active { background: var(--tan-press); }
.step:disabled { opacity: .35; cursor: default; }
.step-val { min-width: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid var(--tan); border-radius: 12px; background: var(--tan-tint); padding: 0 10px; }
.step-val b { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1; }
.step-val span { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .12em; color: var(--muted); }

/* formula on the tablet */
.tab-fm { border: 3px solid var(--tan); border-radius: 12px; overflow: hidden; }
.tab-fm-cols, .tab-fm-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 18px; }
.tab-fm-cols { background: var(--green); color: #fff; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .1em; text-transform: uppercase; }
.tab-fm-cols span:nth-child(n+2) { text-align: right; }
.tab-fm-row { border-top: 2px solid var(--tan-tint); }
.tab-chip {
  display: block; text-align: center; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  border-style: solid; line-height: 1.05; font-size: 30px; padding: 12px 8px; border-width: 3px; border-radius: 8px;
}
.tab-fm-val { text-align: right; white-space: nowrap; }
.tab-fm-val b { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; }
.tab-fm-val i { font-style: normal; font-weight: 700; font-size: 20px; color: var(--muted); margin-left: 8px; }
.tab-fm-foot { padding: 12px 18px; border-top: 3px solid var(--tan); background: var(--tan-tint); font-size: 20px; font-weight: 600; color: var(--muted); }
.tab-fm-foot em { display: block; margin-top: 4px; font-style: normal; font-weight: 800; color: var(--red); }

@media (max-width: 700px) {
  .tab h1 { font-size: 34px; }
  .tiles.big .tile { font-size: 46px; min-height: 140px; }
  .tab .home { margin-left: 0; }
  .qty b, .step-val b { font-size: 46px; }
  .tab-fm-val b { font-size: 40px; }
}

/* Update button (tablet home screen) */
.tab .home.update .spin { font-size: 30px; line-height: 1; color: var(--green); }
.tab .home.update:disabled { opacity: .7; }

/* Clear TVs (inside the "On TV now" box on menu screens) */
.tab .ontv { flex-direction: row; align-items: center; gap: 14px; padding-right: 6px; }
.tab .clear-tv {
  min-height: 52px; padding: 0 16px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .05em;
  background: var(--bg); color: var(--red); border: 3px solid var(--red);
}
.tab .clear-tv.armed { background: var(--red); color: #fff; }
.tab .clear-tv:active { background: var(--tan-press); }
.tab .ontv > div { display: flex; flex-direction: column; min-width: 0; }

/* ================= TV DISPLAY ================= */
.tv { --u: 9.6px; --k: 1; position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); cursor: none; user-select: none; }
.tv * { cursor: none; }
.tv-frame { height: 100%; display: flex; flex-direction: column; }

/* header: type, profile, color and pallets, always visible, big */
.tv-top {
  --nk: 1; flex: none; display: flex; align-items: stretch; gap: calc(var(--u) * 1.2);
  padding: calc(var(--u) * .8) calc(var(--u) * 1.4); border-bottom: calc(var(--u) * .45) solid var(--tan); overflow: hidden;
}
.hb { flex: 0 1 auto; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: calc(var(--u) * .4) calc(var(--u) * 1.2); border-radius: calc(var(--u) * .7); border: calc(var(--u) * .3) solid var(--tan); background: var(--tan-tint); }
.hb.grow { flex: 1 1 auto; }
.hb small { font-weight: 700; font-size: calc(var(--u) * 1.15 * var(--nk)); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.hb b { font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 4.4 * var(--nk)); letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; white-space: nowrap; overflow: hidden; }
.hb.pal { flex: none; width: calc(var(--u) * 10.5); box-sizing: border-box; align-items: center; text-align: center; padding-inline: 0; background: var(--green); border-color: var(--green); color: #fff; }
.hb.pal small { color: #dfe8e1; }
.hb.pal b { font-size: calc(var(--u) * 5.6 * var(--nk)); }

/* formula table */
.fm { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: calc(var(--u) * 1) calc(var(--u) * 1.4) calc(var(--u) * .8); gap: calc(var(--u) * .6); }
.fm-cols, .fm-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: calc(var(--u) * 1.4); }
.fm-cols { flex: none; padding: calc(var(--u) * .5) calc(var(--u) * 1.2); background: var(--charcoal); color: #fff; border-radius: calc(var(--u) * .6); font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 2.2); letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.fm-cols span:nth-child(n+2) { text-align: right; }
.fm-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.fm-row { flex: 1 0 auto; padding: calc(var(--u) * .4 * var(--k)) calc(var(--u) * 1.2); border-bottom: calc(var(--u) * .15) solid var(--tan); }
.fm-row:last-child { border-bottom: 0; }
.fm-chip {
  display: block; text-align: center; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05;
  border-style: solid; font-size: calc(var(--u) * 4 * var(--k)); padding: calc(var(--u) * .7 * var(--k)) calc(var(--u) * .5); border-width: calc(var(--u) * .3); border-radius: calc(var(--u) * .7);
}
.fm-val { text-align: right; white-space: nowrap; }
.fm-val b { font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 7.4 * var(--k)); line-height: 1; }
.fm-val i { font-style: normal; font-weight: 700; font-size: calc(var(--u) * 2 * var(--k)); color: var(--muted); margin-left: calc(var(--u) * .6); }
.fm-foot { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: calc(var(--u) * 2); font-weight: 700; font-size: calc(var(--u) * 1.9); color: var(--muted); line-height: 1.2; padding-top: calc(var(--u) * .4); border-top: calc(var(--u) * .3) solid var(--tan); }
.fm-foot em { flex: none; font-style: normal; font-weight: 800; color: var(--red); }
.tv.dev .too-long { outline: calc(var(--u) * .4) solid #c0261d; outline-offset: calc(var(--u) * -.4); }
.tv.dev .too-long::after { content: "TOO LONG"; position: absolute; right: 0; bottom: 0; background: #c0261d; color: #fff; font-weight: 700; font-size: calc(var(--u) * 1.4); padding: calc(var(--u) * .3) calc(var(--u) * .8); }

.tv-idle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 1.6); text-align: center; padding: calc(var(--u) * 3); position: relative; }
.tv-idle .mark { display: flex; align-items: center; gap: calc(var(--u) * 1); font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 2.6); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.tv-idle-line { font-size: calc(var(--u) * 2.4); font-weight: 600; color: var(--muted); }

.tv-offline {
  display: none; position: absolute; left: calc(var(--u) * 1.2); bottom: calc(var(--u) * 1.2);
  background: var(--charcoal); color: #fff; font-weight: 700; font-size: calc(var(--u) * 1.1); letter-spacing: .06em;
  padding: calc(var(--u) * .4) calc(var(--u) * .9); border-radius: 99px; opacity: .85;
}
.tv.offline .tv-offline { display: block; }

.dev-picker { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 8px; align-items: center; background: #fff; border: 2px solid #c0261d; border-radius: 8px; padding: 6px 8px; font: 700 14px var(--body); color: #c0261d; z-index: 5; }
.dev-picker, .dev-picker * { cursor: default; }
.dev-picker select { font: 600 16px var(--body); max-width: 50vw; }

/* ===== Pre-blends ===== */
.qty.size { min-height: 130px; }
.qty.size b { font-size: 50px; letter-spacing: .04em; text-transform: uppercase; }
.qty.size:disabled { opacity: .4; cursor: default; border-style: dashed; }
.qty.size:disabled b { color: var(--muted); }
.qty.size span { font-size: 15px; }
.tab-fm.pb .tab-fm-cols, .tab-fm.pb .tab-fm-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.tab-fm.pb .tab-fm-cols span:nth-child(n+2) { text-align: right; }
.tab-chip.base { background: var(--tan-tint); color: var(--fg); border-color: var(--tan); }
.tab-chip.pig { background: #fff; color: var(--fg); border-color: var(--charcoal); }
.tab-chip em, .fm-chip em { font-style: normal; font-weight: 700; font-size: .55em; letter-spacing: .12em; color: var(--muted); vertical-align: middle; margin-right: .25em; }
.tab-fm-row.total { background: var(--tan-tint); border-top: 3px solid var(--green); }
.tab-chip.total { background: var(--green); color: #fff; border-color: var(--green); }
.fm.pb .fm-cols, .fm.pb .fm-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.fm.pb .fm-cols span:nth-child(n+2) { text-align: right; }
.fm-chip.base { background: var(--tan-tint); color: var(--fg); border-color: var(--tan); }
.fm-chip.pig { background: #fff; color: var(--fg); border-color: var(--charcoal); }
.fm-row.fm-total { border-top: calc(var(--u) * .3) solid var(--green); border-bottom: 0; background: var(--tan-tint); border-radius: calc(var(--u) * .6); }
.fm-chip.total { background: var(--green); color: #fff; border-color: var(--green); }
.hb.pal.size { width: calc(var(--u) * 24); }
.hb.pal.size b { font-size: calc(var(--u) * 4.4 * var(--nk)); }
/* pigment codes are printed exactly as on the sheet (TiO2, not TIO2) */
.tab-chip.pig, .fm-chip.pig { text-transform: none; }
.tab-chip em, .fm-chip em { text-transform: uppercase; }

/* ===== TRACK USAGE (same look as the paint line app's REQUEST REVISION) ===== */
.tab-head { display: flex; align-items: flex-start; gap: 16px; }
.tab-head h1 { flex: 1; min-width: 0; }
.revise-btn {
  flex: none; min-height: 64px; padding: 0 22px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--bg); color: var(--red); border: 3px solid var(--red);
}
.revise-btn .pen { font-size: 26px; line-height: 1; }
.revise-btn:active { background: #f3e9e7; }
.revise-btn.live { background: var(--red); color: #fff; }

.rv-overlay { position: absolute; inset: 0; z-index: 20; background: rgba(20, 24, 21, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.rv-overlay input { user-select: text; -webkit-user-select: text; }
.rv-box { width: min(860px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--bg); border-radius: 14px; overflow: hidden; border: 4px solid var(--red); }
.rv-head { flex: none; display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--red); color: #fff; }
.rv-head small { display: block; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.rv-head b { font-family: var(--display); font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.rv-cancel { margin-left: auto; flex: none; min-height: 60px; padding: 0 24px; border-radius: 10px; border: 0; cursor: pointer; background: #fff; color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .05em; }
.rv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 4px; }
.rv-body section { padding: 10px 0 12px; }
.rv-body section + section { border-top: 2px solid var(--tan-tint); }
.rv-body h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
.rv-body h2 span { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.rv-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-opt { min-height: 64px; padding: 0 24px; border-radius: 10px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; background: var(--tan-tint); color: var(--fg); border: 3px solid var(--tan); }
.rv-opt.on { background: var(--green); border-color: var(--green); color: #fff; }
.rv-name { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; padding: 12px 14px; font: 600 22px var(--body); color: var(--fg); background: #fff; border: 3px solid var(--tan); border-radius: 10px; }
.rv-name[hidden] { display: none; }
.rv-name:focus, .rv-weight:focus { outline: none; border-color: var(--green); }
.rv-foot { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-top: 2px solid var(--tan-tint); }
.rv-hint { color: var(--muted); font-size: 18px; font-weight: 600; flex: 1; min-width: 0; }
.rv-send { margin-left: auto; min-height: 68px; padding: 0 40px; border-radius: 10px; border: 0; cursor: pointer; background: var(--green); color: #fff; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .06em; }
.rv-send:disabled { background: #c9cfca; color: #fff; cursor: default; }
.rv-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px 28px; text-align: center; }
.rv-done b { font-family: var(--display); font-size: 48px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.rv-done.queued b, .rv-done.preview b { color: var(--fg); }
.rv-done.failed b { color: var(--red); }
.rv-done p { margin: 0; font-size: 22px; color: var(--muted); max-width: 40ch; }
.rv-done .rv-send { margin: 10px 0 0; }
/* weights, pallets and the running summary */
.rv-weight { width: 280px; max-width: 70%; box-sizing: border-box; padding: 8px 14px; font: 800 56px var(--display); letter-spacing: .02em; text-align: right; color: var(--fg); background: #fff; border: 3px solid var(--tan); border-radius: 10px; }
.rv-unit { font-style: normal; font: 700 26px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 12px; }
.rv-calc { margin: 10px 0 0; min-height: 1.3em; font: 800 28px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.rv-step { display: inline-flex; align-items: stretch; gap: 10px; }
.rv-step button { width: 96px; min-height: 84px; border-radius: 12px; cursor: pointer; border: 3px solid var(--red); background: var(--bg); color: var(--red); font: 800 60px var(--display); line-height: 1; }
.rv-step button:active { background: var(--tan-press); }
.rv-step div { min-width: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid var(--tan); border-radius: 12px; background: var(--tan-tint); }
.rv-step b { font: 800 52px var(--display); line-height: 1; }
.rv-step span { font: 700 16px var(--display); letter-spacing: .12em; color: var(--muted); }
.rv-sum { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.rv-sum small { display: block; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-sum b { font: 800 34px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.rv-ago { margin-left: 8px; font-size: 18px; font-weight: 600; color: var(--muted); }
.rv-quit { min-height: 60px; padding: 0 18px; border-radius: 10px; cursor: pointer; background: var(--bg); color: var(--red); border: 3px solid var(--red); font: 800 20px var(--display); letter-spacing: .05em; }
.rv-quit.armed { background: var(--red); color: #fff; }

/* preview page only: what lands on Devon's requests page */
.rq-card { background: #fff; border: 3px solid var(--tan); border-left: 10px solid var(--red); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rq-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 16px; color: var(--muted); }
.rq-meta b { color: var(--fg); font-size: 18px; }
.rq-instr { font: 800 24px var(--display); letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.rq-reason { align-self: flex-start; font: 700 16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); border-radius: 6px; padding: 2px 8px; }
.rq-note { margin: 2px 0 0; font-size: 19px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ===== Track usage: several colors ===== */
.rv-wlist { display: flex; flex-direction: column; gap: 8px; }
.rv-none { margin: 0; color: var(--muted); font-size: 20px; font-weight: 600; }
.rv-wrow { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: center; gap: 6px 16px; padding: 4px 0; }
.rv-chip { display: block; text-align: center; font: 800 26px var(--display); letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; border-style: solid; border-width: 3px; border-radius: 8px; padding: 10px 8px; }
.rv-wfield { display: flex; align-items: center; justify-content: flex-end; }
.rv-wrow .rv-weight { width: 220px; font-size: 44px; padding: 4px 12px; max-width: none; }
.rv-was { grid-column: 1; font-size: 17px; font-weight: 600; color: var(--muted); text-align: center; }
.rv-calc { grid-column: 2; margin: 0; min-height: 1.3em; font: 800 21px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--green); text-align: right; }
@media (max-width: 700px) { .rv-wrow { grid-template-columns: 1fr; } .rv-wfield, .rv-calc { justify-content: flex-start; text-align: left; } }

/* ===== Concrete color only (no paint) ===== */
.tv-idle.nopaint { gap: calc(var(--u) * 1.2); }
.np-where { font: 700 calc(var(--u) * 2.2) var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.np-color { font: 800 calc(var(--u) * 9) var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink, #1c211e); line-height: 1; }
.np-line { font: 800 calc(var(--u) * 4.6) var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--red); border: calc(var(--u) * .3) solid var(--red); border-radius: calc(var(--u) * 1); padding: calc(var(--u) * 1) calc(var(--u) * 3); }
.empty.np p { color: var(--red); }
