/* Gratwick Casting Panel — Casting Call Ecosystem cinematic skin.
   Dark base / gold / live-red, broadcast feel. Plain CSS (no build step),
   shared by index.html (live show) and pipeline.html (funnel).

   ALL styling lives here as classes so the CSP can keep style-src free of
   'unsafe-inline' — app.js / pipeline.js use class names only, never inline
   style="" or style:.

   Palette mirrors the in-app casting surface (src/screens/casting/castingTheme.ts).
   Fonts loaded from Google Fonts in the HTML <head>:
     Anton          — caps labels / section titles
     Fraunces       — display italic serif headlines
     JetBrains Mono — mono meta / ids
     Inter          — body
*/

:root {
  --bg: #0c0b08;
  --panel: #100e09;
  --card: #0c0c0c;
  --line: rgba(242, 236, 224, 0.10);
  --line-soft: rgba(242, 236, 224, 0.06);
  --text: #f2ece0;
  --dim: rgba(242, 236, 224, 0.62);
  --dimmer: rgba(242, 236, 224, 0.45);
  --gold: #c9a962;
  --gold-bright: #f5c518;
  --red: #ff2a1f;
  --red-2: #e1261c;
  --red-text: #ff8079;
  --red-wash: rgba(225, 38, 28, 0.12);
  --red-border: rgba(225, 38, 28, 0.34);
  --up: #12b86b;
  --blue: #3b82f6;

  --radius: 12px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-caps: "Anton", "Inter", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(201, 169, 98, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(12, 11, 8, 0.92) 100%);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: -1px;
  text-shadow: 0 0 18px rgba(201, 169, 98, 0.45);
}
.brand-name {
  font-family: var(--font-caps);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

.root {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

.loading { color: var(--dim); padding: 48px 0; text-align: center; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background:
    linear-gradient(180deg, rgba(242, 236, 224, 0.015), transparent 40%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card .sub { color: var(--dim); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
label {
  display: block;
  font-family: var(--font-caps);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 8px;
}
input[type="text"], input[type="password"], input[type="email"], input[type="url"],
input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"],
textarea, select {
  width: 100%;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 13px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--dimmer); }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}
/* Custom select chevron (gold) so dropdowns match the panel, not the OS */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23c9a962' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
/* Dark-theme date/time picker: lighten the native calendar/clock indicator */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  opacity: 0.6;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.field { margin-bottom: 16px; }
/* Create-lineup form: role + air-date flex; episode fixed narrow; live lock-window hint */
.lineup-form .field { flex: 1; }
.lineup-form .field-sm { flex: 0 0 96px; }
.form-hint { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.form-hint strong { color: var(--text); font-weight: 500; }
.form-hint .muted { color: var(--dimmer); }
.form-hint-sep { color: var(--line); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(242, 236, 224, 0.04);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: var(--gold); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  color: #1a1505;
  font-weight: 700;
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #1a1505; }
.btn-ghost { background: transparent; color: var(--dim); }
.btn-ghost:hover { color: var(--text); }
.btn-danger {
  background: var(--red-wash);
  border-color: var(--red-border);
  color: var(--red-text);
}
.btn-danger:hover { border-color: var(--red); color: var(--red-text); background: rgba(225, 38, 28, 0.2); }
.btn-block { width: 100%; }

/* ── Pills / badges ──────────────────────────────────────────────────────── */
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.pill-muted { color: var(--dim); }
.pill-good { color: var(--up); border-color: rgba(18, 184, 107, 0.5); }
.pill-open { color: var(--up); border-color: rgba(18, 184, 107, 0.5); }
.pill-closed { color: var(--dimmer); border-color: var(--line); }
.pill-draft { color: var(--gold); border-color: rgba(201, 169, 98, 0.5); }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); background: rgba(242, 236, 224, 0.03); border: 1px solid var(--line);
  appearance: none; -webkit-appearance: none; line-height: inherit; text-align: center;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--text); border-color: var(--gold); }
.tab.active {
  color: #1a1505;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
}

/* ── On-stage hero (the prominent active audition) ───────────────────────── */
.stage {
  position: relative;
  background:
    radial-gradient(680px 240px at 12% 0%, rgba(225, 38, 28, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(201, 169, 98, 0.05), transparent 45%),
    var(--card);
  border: 1px solid var(--red-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(225, 38, 28, 0.16) inset, var(--shadow);
}
.stage-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red-text); margin-bottom: 10px;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 0 rgba(255, 42, 31, 0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 31, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 42, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 31, 0); }
}
.stage-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.stage-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.stage-handle { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }

/* ── Lineup queue (everyone not on stage) ────────────────────────────────── */
.lineup-heading {
  font-family: var(--font-caps);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
  margin: 26px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.lineup-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Subject scoring card (sliders + favorite) ───────────────────────────── */
.subject-card { border-left: 3px solid var(--gold); }
.subject-card.locked { border-left-color: var(--up); opacity: 0.92; }
.subject-card.queued { border-left-color: var(--line); opacity: 0.86; }
.subject-card.queued h2 { font-size: 19px; }
.slider-row { display: grid; grid-template-columns: 1fr 56px; gap: 12px; align-items: center; margin: 12px 0 4px; }
.slider-label { font-size: 14px; color: var(--text); }
.slider-label .intangible {
  color: var(--gold-bright); font-family: var(--font-mono); font-size: 11px; margin-left: 8px;
}
.slider-val {
  text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 16px; color: var(--gold);
}
input[type="range"] { width: 100%; accent-color: var(--gold); }
.subject-card.locked input[type="range"] { accent-color: var(--up); }

/* ── Split live leaderboard (audience | panel) ───────────────────────────── */
.board-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .board-split { grid-template-columns: 1fr; } }
.board-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.board-col.board-audience { border-top: 2px solid var(--gold); }
.board-col.board-panel { border-top: 2px solid var(--red-2); }
.board-col-title {
  font-family: var(--font-caps);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 4px;
}
.board-audience .board-col-title { color: var(--gold); }
.board-panel .board-col-title { color: var(--red-text); }
.board-col-note { font-size: 11px; color: var(--dimmer); margin: 0 0 12px; font-family: var(--font-mono); }
.board-sub-title {
  font-family: var(--font-caps); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); margin: 16px 0 6px;
}

/* ── Ranking list rows ───────────────────────────────────────────────────── */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  font-family: var(--font-caps); color: var(--gold-bright); font-size: 16px; text-align: center;
}
.rank-name { font-size: 14px; color: var(--text); }
.rank-score {
  text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--dim);
}

/* legacy section title (kept for any rankingType not split into a column) */
.rank-section-title {
  font-family: var(--font-caps); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--dim); margin: 18px 0 6px;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 13px 20px; border-radius: 10px; box-shadow: var(--shadow); z-index: 50;
  max-width: 90vw; font-size: 14px;
}
.toast.toast-error { border-color: var(--red-border); color: var(--red-text); }
.toast.toast-good { border-color: rgba(18, 184, 107, 0.5); }
.toast.toast-warn { border-color: rgba(245, 197, 24, 0.6); color: var(--gold-bright); }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.muted { color: var(--dim); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.empty { color: var(--dim); padding: 26px 0; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.auth-wrap { max-width: 460px; margin: 9vh auto 0; }

/* Spacing utilities — replace inline style attributes so the CSP can drop
 * style-src 'unsafe-inline' (no inline styles anywhere in the app). */
.m-0 { margin: 0; }
.my-10 { margin: 10px 0; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.ml-8 { margin-left: 8px; }
.grow { flex: 1; min-width: 0; }

/* ── Roster (SMS-306 inline audition controls + SMS-304 lineup) ──────────── */
.roster-row {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--panel);
  border-left: 3px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.roster-row:last-child { margin-bottom: 0; }
.roster-row.on-stage {
  border-color: var(--red-border);
  border-left-color: var(--red);
  box-shadow: 0 0 0 1px rgba(225, 38, 28, 0.18) inset;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(225, 38, 28, 0.08), transparent 70%),
    var(--panel);
}
.roster-head { display: flex; align-items: center; gap: 12px; }
.roster-order {
  font-family: var(--font-caps); font-variant-numeric: tabular-nums; color: var(--gold);
  font-size: 16px; min-width: 30px; text-align: center;
}
.roster-id { display: flex; flex-direction: column; gap: 3px; }
.roster-title { font-weight: 600; font-size: 15px; color: var(--text); }
.roster-handle { color: var(--dim); font-family: var(--font-mono); font-size: 12px; }
.on-stage-pill {
  color: var(--red-text); border-color: var(--red-border); background: var(--red-wash);
  font-family: var(--font-caps); letter-spacing: 0.1em; font-size: 10px;
}
.roster-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Flex gap / alignment deltas — composable overrides on .row / .roster-actions
 * (both default gap:10px). Placed after those rules so source order wins the
 * cascade (equal specificity). Replaces inline style attributes for CSP. */
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-end { align-items: flex-end; }
.items-end .field { margin-bottom: 0; }

/* Green room standby list */
.gr-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.gr-row:last-child { border-bottom: none; }

/* Selected-pool multi-select rows (headshot + checkbox) */
.pool-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background 0.12s ease; }
.pool-row:hover { background: rgba(242, 236, 224, 0.04); }
.pool-row input[type="checkbox"] { flex: none; width: 17px; height: 17px; }
.pool-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pool-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--text); }
.pool-meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }

/* Actor avatar tiles — selected pool (44px) + lineup running order (38px) */
.pool-shot, .slot-shot { flex: none; object-fit: cover; background: var(--panel); border: 1px solid var(--line); }
.pool-shot { width: 44px; height: 44px; border-radius: 9px; }
.slot-shot { width: 38px; height: 38px; border-radius: 8px; }
.pool-shot-empty { display: flex; align-items: center; justify-content: center; font-family: var(--font-caps); color: var(--dim); }
.pool-shot.pool-shot-empty { font-size: 18px; }
.slot-shot.pool-shot-empty { font-size: 15px; }

/* Lineup running order: drag-and-drop reordering */
.reorder-hint { font-family: var(--font-mono); font-size: 11px; color: var(--dimmer); margin-bottom: 10px; }
.roster-row.slot-draggable { cursor: grab; }
.roster-row.slot-draggable:active { cursor: grabbing; }
.roster-row.dragging { opacity: 0.45; border-color: var(--gold); }
.roster-row.drag-over { box-shadow: 0 -3px 0 -1px var(--gold-bright); border-color: var(--gold); }
.drag-handle { color: var(--dimmer); font-size: 17px; line-height: 1; cursor: grab; user-select: none; }

/* Funnel metric stat tiles (pipeline) */
.stat {
  flex: 1 1 120px; min-width: 110px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 15px;
}
.stat-num { font-family: var(--font-display); font-style: italic; font-size: 26px; font-weight: 500; line-height: 1.05; color: var(--gold); }
.stat-label {
  font-family: var(--font-caps); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); margin-top: 6px;
}

/* ── Review card (SMS-396) — an audition-card, not a button stack ───────────── */
.rev-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 18px 20px 20px; margin-bottom: 14px;
  background: linear-gradient(180deg, #15110a, #0d0b06);
  border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.rev-card:hover { border-left-color: var(--gold); box-shadow: var(--shadow); }
/* Left edge mirrors the decision (skim = green in / yellow hold / red out). Wins over hover. */
.rev-card.dec-select { border-left-color: var(--up); }
.rev-card.dec-hold { border-left-color: var(--gold-bright); }
.rev-card.dec-pass { border-left-color: var(--red); }
.rev-shot {
  width: 96px; height: 120px; border-radius: 10px; object-fit: cover;
  background: #1a160f; border: 1px solid var(--line);
}
.rev-shot-empty { display: flex; align-items: center; justify-content: center; font-family: var(--font-caps); font-size: 42px; color: var(--dimmer); }
.rev-body { min-width: 0; }
.rev-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rev-idblock { min-width: 0; }
.rev-role { font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); line-height: 1; }
.rev-name { font-family: var(--font-caps); font-size: 27px; letter-spacing: 0.01em; color: var(--text); line-height: 1.04; margin: 5px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev-meta { font-family: var(--font-mono); font-size: 12px; color: var(--dimmer); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; }
.rev-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--dim); text-transform: uppercase; white-space: nowrap; }
.rev-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dimmer); }
.rev-status.st-received::before { background: var(--gold); }
.rev-status.st-verified::before, .rev-status.st-screened::before { background: var(--gold); }
.rev-status.st-selected::before, .rev-status.st-slotted::before, .rev-status.st-confirmed::before { background: var(--gold-bright); }
.rev-status.st-declined::before, .rev-status.st-duplicate::before { background: var(--red); }
/* Selected but not yet verified — recorded intent that can't be scheduled until they pass. */
.rev-flag { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.01em; color: var(--gold-bright); border: 1px solid rgba(245, 197, 24, 0.5); background: rgba(245, 197, 24, 0.09); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rev-post { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12px; color: var(--dim); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; text-decoration: none; }
.rev-post:hover { border-color: var(--gold); color: var(--text); }
.rev-post-off { color: var(--dimmer); border-style: dashed; }
.rev-links { display: flex; gap: 6px; }
.rev-funnel { display: flex; margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.fnl-step { flex: 1; padding: 0 18px; border-left: 1px solid var(--line-soft); }
.fnl-step:first-child { padding-left: 0; border-left: 0; }
.fnl-label { font-family: var(--font-caps); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 10px; }
.fnl-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fnl-check { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12px; color: var(--dim); }
input[type="checkbox"] { accent-color: var(--gold-bright); width: 15px; height: 15px; }
.fnl-btn { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; padding: 6px 13px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; transition: border-color 0.12s ease, color 0.12s ease; }
.fnl-btn:hover { border-color: var(--gold); color: var(--text); }
.fnl-btn.is-chosen { border-color: var(--gold); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.fnl-btn.is-primary { background: var(--gold); border-color: var(--gold); color: #1a1505; font-weight: 600; }
.fnl-btn.is-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
/* Filled buttons: blue Verify gate, and the triage traffic light (green/yellow/red) */
.fnl-btn.gate { background: var(--blue); border-color: var(--blue); color: #fff; }
.fnl-btn.gate:hover { background: #5a97ea; border-color: #5a97ea; color: #fff; }
.fnl-btn.gate-ok { background: var(--up); border-color: var(--up); color: #06180f; }
.fnl-btn.gate-ok:hover { background: #17cc78; border-color: #17cc78; color: #06180f; }
.fnl-btn.gate-no { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.fnl-btn.gate-no:hover { background: var(--red); border-color: var(--red); color: #fff; }
.fnl-btn.tri-advance { background: var(--up); border-color: var(--up); color: #06180f; }
.fnl-btn.tri-advance:hover { background: #17cc78; border-color: #17cc78; color: #06180f; }
.fnl-btn.tri-maybe { background: var(--gold-bright); border-color: var(--gold-bright); color: #1a1505; }
.fnl-btn.tri-maybe:hover { background: #ffd733; border-color: #ffd733; color: #1a1505; }
.fnl-btn.tri-pass { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.fnl-btn.tri-pass:hover { background: var(--red); border-color: var(--red); color: #fff; }
.fnl-btn.gate.is-chosen, .fnl-btn.tri-advance.is-chosen, .fnl-btn.tri-maybe.is-chosen, .fnl-btn.tri-pass.is-chosen { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px rgba(242, 236, 224, 0.7); }
/* Decisions are gated until Verify: on an unverified card they read as muted, and a click
   only STAGES the choice — a dashed ring, distinct from the solid committed ring above. */
.fnl-step.is-pending .fnl-btn { opacity: 0.62; }
.fnl-step.is-pending .fnl-btn:hover { opacity: 1; }
.fnl-btn.is-staged { opacity: 1; outline: 2px dashed rgba(242, 236, 224, 0.9); outline-offset: 2px; }
/* Verified / Unverified group headers in the review queue */
.grp-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-caps); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dimmer); margin: 24px 2px 12px; }
.grp-head::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.grp-count { font-family: var(--font-mono); letter-spacing: 0; font-size: 12px; color: var(--dim); }
@media (max-width: 720px) {
  .rev-card { grid-template-columns: 72px 1fr; gap: 14px; }
  .rev-shot { width: 72px; height: 90px; }
  .rev-funnel { flex-direction: column; gap: 14px; }
  .fnl-step { padding: 0; border-left: 0; }
}

/* Lineup picker: draft delete ✕ (SMS-579) */
.picker-item { display: inline-flex; align-items: center; gap: 2px; }
.picker-x { padding: 6px 8px; font-size: 11px; }
