/* TransVida Executive Talent -- design system.
   Visual tone: executive search + healthcare + enterprise governance.
   Light, restrained, data-first. Every colour is a token so the palette can
   be swapped for TransVida's real brand colours in one place -- the values
   below are a considered placeholder, not a guess at your brand.

   Namespaced `tv-` throughout. Nothing here can affect any other site. */

:root {
  --tv-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Neutrals */
  --tv-ink: #16202c;
  --tv-ink-mid: #46535f;
  --tv-ink-soft: #6b7885;
  --tv-page: #f4f6f8;
  --tv-surface: #ffffff;
  --tv-surface-alt: #fafbfc;
  --tv-line: #e2e7ed;
  --tv-line-strong: #cfd7e0;

  /* Primary -- deep teal reads clinical and institutional without being
     corporate-blue generic. */
  --tv-primary: #0f5a67;
  --tv-primary-hover: #0c4956;
  --tv-primary-soft: #e7f1f3;
  --tv-primary-line: #bcd8dd;

  /* Accent -- restrained gold, used sparingly for executive weight. */
  --tv-accent: #a97f36;
  --tv-accent-soft: #faf4e8;

  /* Status */
  --tv-good: #1f6f4a;
  --tv-good-soft: #e8f4ee;
  --tv-warn: #96601b;
  --tv-warn-soft: #fdf3e4;
  --tv-risk: #a53a28;
  --tv-risk-soft: #fbeceb;
  --tv-neutral-soft: #eef1f4;

  /* 1-5 rubric scale -- ordered, colour-blind-safe, never red/green alone */
  --tv-score-1: #a53a28;
  --tv-score-2: #c2713a;
  --tv-score-3: #8a8340;
  --tv-score-4: #3f7f57;
  --tv-score-5: #1f5f4a;

  --tv-radius: 10px;
  --tv-radius-sm: 6px;
  --tv-shadow: 0 1px 2px rgba(22, 32, 44, 0.05), 0 1px 3px rgba(22, 32, 44, 0.04);
  --tv-shadow-lift: 0 2px 6px rgba(22, 32, 44, 0.07), 0 8px 24px rgba(22, 32, 44, 0.06);
  --tv-sidebar-w: 15.5rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--tv-font);
  color: var(--tv-ink);
  background: var(--tv-page);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tv-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- shell --
   Sidebar + main as a CSS grid. minmax(0, 1fr) on the main column, not a
   bare 1fr: a bare 1fr refuses to shrink below its widest child, so one
   wide table pushes the whole page into horizontal overflow on a phone.
   This bit is load-bearing. */
.tv-shell {
  display: grid;
  grid-template-columns: var(--tv-sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.tv-sidebar {
  grid-column: 1;
  background: var(--tv-ink);
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tv-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.35rem; }
.tv-brand-mark {
  width: 2rem; height: 2rem; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(150deg, #2a8b98 0%, var(--tv-primary) 100%);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; color: #fff; letter-spacing: -0.02em;
}
.tv-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tv-brand-name { font-weight: 650; font-size: 0.94rem; letter-spacing: -0.01em; }
.tv-brand-sub {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.55); font-weight: 600;
}

.tv-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.tv-nav-label {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4); font-weight: 700;
  padding: 0 0.6rem; margin: 0.9rem 0 0.4rem;
}
.tv-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.5rem 0.6rem; border-radius: var(--tv-radius-sm);
  color: rgba(255, 255, 255, 0.78); font-size: 0.875rem; font-weight: 500;
  text-decoration: none;
}
.tv-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.tv-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.11); color: #fff; font-weight: 600;
  box-shadow: inset 2px 0 0 var(--tv-primary);
}
.tv-nav-count {
  font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.4rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14);
}

.tv-sidebar-foot { margin-top: auto; }
.tv-whoami {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.tv-avatar {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14); display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700; color: #fff;
}
.tv-whoami-text { min-width: 0; line-height: 1.25; }
.tv-whoami-name {
  font-size: 0.84rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-whoami-role { font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }

.tv-main { grid-column: 2; min-width: 0; padding: 2rem 2.25rem 4rem; }

/* --------------------------------------------------------------- header -- */
.tv-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.tv-page-title {
  margin: 0; font-size: 1.7rem; font-weight: 650; letter-spacing: -0.02em;
}
.tv-page-sub { margin: 0.3rem 0 0; color: var(--tv-ink-soft); font-size: 0.95rem; }
.tv-page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* -------------------------------------------------------------- buttons -- */
.tv-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; border-radius: var(--tv-radius-sm);
  font-size: 0.875rem; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.tv-btn:hover { text-decoration: none; }
.tv-btn-primary { background: var(--tv-primary); color: #fff; }
.tv-btn-primary:hover { background: var(--tv-primary-hover); }
.tv-btn-secondary {
  background: var(--tv-surface); color: var(--tv-ink);
  border-color: var(--tv-line-strong);
}
.tv-btn-secondary:hover { background: var(--tv-surface-alt); border-color: var(--tv-ink-soft); }
.tv-btn-ghost { background: transparent; color: var(--tv-ink-mid); }
.tv-btn-ghost:hover { background: var(--tv-neutral-soft); color: var(--tv-ink); }
.tv-btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }

/* ---------------------------------------------------------------- cards -- */
.tv-card {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); box-shadow: var(--tv-shadow);
}
.tv-card-head {
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--tv-line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.tv-card-title { margin: 0; font-size: 0.98rem; font-weight: 650; letter-spacing: -0.01em; }
.tv-card-note { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--tv-ink-soft); }
.tv-card-body { padding: 1.15rem; }
.tv-card-body-flush { padding: 0; }

/* ----------------------------------------------------------- stat tiles -- */
.tv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.85rem; margin-bottom: 1.5rem;
}
.tv-stat {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); padding: 0.95rem 1rem;
  box-shadow: var(--tv-shadow);
}
.tv-stat-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 700; color: var(--tv-ink-soft); margin-bottom: 0.45rem;
  display: block; line-height: 1.3;
}
.tv-stat-value {
  font-size: 1.85rem; font-weight: 650; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.tv-stat-value.is-empty { color: var(--tv-line-strong); font-weight: 500; }
.tv-stat-meta { margin-top: 0.35rem; font-size: 0.78rem; color: var(--tv-ink-soft); }
.tv-stat-attention { box-shadow: var(--tv-shadow), inset 3px 0 0 var(--tv-accent); }

/* --------------------------------------------------------------- badges -- */
.tv-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.14rem 0.5rem; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.tv-badge-neutral { background: var(--tv-neutral-soft); color: var(--tv-ink-mid); border-color: var(--tv-line-strong); }
.tv-badge-primary { background: var(--tv-primary-soft); color: var(--tv-primary); border-color: var(--tv-primary-line); }
.tv-badge-good { background: var(--tv-good-soft); color: var(--tv-good); border-color: #bfdfcd; }
.tv-badge-warn { background: var(--tv-warn-soft); color: var(--tv-warn); border-color: #ecd6ad; }
.tv-badge-risk { background: var(--tv-risk-soft); color: var(--tv-risk); border-color: #ecc4bf; }
.tv-badge-accent { background: var(--tv-accent-soft); color: var(--tv-accent); border-color: #e6d5b3; }

/* --------------------------------------------------------------- tables -- */
.tv-table-wrap { overflow-x: auto; }
.tv-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tv-table th {
  text-align: left; font-size: 0.71rem; text-transform: uppercase;
  letter-spacing: 0.07em; font-weight: 700; color: var(--tv-ink-soft);
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--tv-line);
  background: var(--tv-surface-alt); white-space: nowrap;
}
.tv-table td {
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--tv-line);
  vertical-align: middle;
}
.tv-table tbody tr:last-child td { border-bottom: none; }
.tv-table tbody tr:hover { background: var(--tv-surface-alt); }
.tv-table .tv-num { text-align: right; font-variant-numeric: tabular-nums; }
.tv-role-name { font-weight: 600; }
.tv-role-meta { font-size: 0.78rem; color: var(--tv-ink-soft); margin-top: 0.1rem; }

/* ----------------------------------------------------------- score chip --
   A score is always shown with its scale ("4.1 / 5"), never bare -- a naked
   number invites being read as a percentage. */
.tv-score {
  display: inline-flex; align-items: baseline; gap: 0.15rem;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.tv-score-scale { font-size: 0.75rem; font-weight: 600; color: var(--tv-ink-soft); }
.tv-score-1 { color: var(--tv-score-1); }
.tv-score-2 { color: var(--tv-score-2); }
.tv-score-3 { color: var(--tv-score-3); }
.tv-score-4 { color: var(--tv-score-4); }
.tv-score-5 { color: var(--tv-score-5); }
.tv-score-none { color: var(--tv-ink-soft); font-weight: 500; font-style: italic; }

/* --------------------------------------------------------------- kanban -- */
.tv-kanban { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.15rem 0 0.75rem; }
.tv-column {
  flex: 0 0 15rem; min-width: 15rem;
  background: var(--tv-surface-alt); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); display: flex; flex-direction: column;
}
.tv-column-head {
  padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--tv-line);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.tv-column-name {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--tv-ink-mid);
}
.tv-column-count {
  font-size: 0.72rem; font-weight: 700; color: var(--tv-ink-soft);
  background: var(--tv-surface); border: 1px solid var(--tv-line-strong);
  border-radius: 999px; padding: 0.02rem 0.42rem;
}
.tv-column-body { padding: 0.55rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 4rem; }
.tv-column-gate {
  padding: 0.4rem 0.8rem 0.55rem; font-size: 0.7rem; font-weight: 600;
  color: var(--tv-accent); background: var(--tv-accent-soft);
  border-bottom: 1px solid #e6d5b3; display: flex; align-items: center; gap: 0.3rem;
}

.tv-cand {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-sm); padding: 0.6rem 0.7rem;
  box-shadow: var(--tv-shadow); cursor: pointer;
}
.tv-cand:hover { box-shadow: var(--tv-shadow-lift); border-color: var(--tv-line-strong); }
.tv-cand-name { font-size: 0.86rem; font-weight: 650; letter-spacing: -0.01em; }
.tv-cand-meta {
  font-size: 0.76rem; color: var(--tv-ink-soft); margin-top: 0.1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-cand-foot {
  margin-top: 0.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 0.4rem;
}
.tv-cand-empty {
  font-size: 0.78rem; color: var(--tv-ink-soft); text-align: center;
  padding: 1rem 0.5rem; font-style: italic;
}

/* -------------------------------------------------------- empty states -- */
.tv-empty { padding: 2.5rem 1.5rem; text-align: center; }
.tv-empty-title { font-weight: 650; font-size: 0.98rem; margin-bottom: 0.3rem; }
.tv-empty-text {
  color: var(--tv-ink-soft); font-size: 0.88rem;
  max-width: 34rem; margin: 0 auto 1.15rem;
}

/* ---------------------------------------------------------------- forms -- */
.tv-field { margin-bottom: 1rem; }
.tv-label { display: block; font-size: 0.82rem; font-weight: 650; margin-bottom: 0.35rem; }
.tv-input, .tv-select, .tv-textarea {
  width: 100%; padding: 0.55rem 0.7rem; font-family: inherit; font-size: 0.9rem;
  color: var(--tv-ink); background: var(--tv-surface);
  border: 1px solid var(--tv-line-strong); border-radius: var(--tv-radius-sm);
}
.tv-input:focus, .tv-select:focus, .tv-textarea:focus {
  outline: none; border-color: var(--tv-primary);
  box-shadow: 0 0 0 3px var(--tv-primary-soft);
}
.tv-hint { font-size: 0.79rem; color: var(--tv-ink-soft); margin-top: 0.3rem; }

/* ---------------------------------------------------------------- flash -- */
.tv-flash {
  padding: 0.65rem 0.9rem; border-radius: var(--tv-radius-sm);
  font-size: 0.875rem; margin-bottom: 1rem; border: 1px solid transparent;
}
.tv-flash-error { background: var(--tv-risk-soft); color: var(--tv-risk); border-color: #ecc4bf; }
.tv-flash-success { background: var(--tv-good-soft); color: var(--tv-good); border-color: #bfdfcd; }

/* --------------------------------------------------------------- utility -- */
.tv-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.tv-muted { color: var(--tv-ink-soft); }
.tv-small { font-size: 0.82rem; }
.tv-mt-lg { margin-top: 1.75rem; }
.tv-nowrap { white-space: nowrap; }

/* --------------------------------------------------- centred auth pages -- */
.tv-auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.tv-auth-card { width: 100%; max-width: 25rem; }
.tv-auth-brand { display: flex; align-items: center; gap: 0.6rem; justify-content: center; margin-bottom: 1.5rem; }
.tv-auth-brand .tv-brand-name, .tv-auth-brand .tv-brand-sub { color: var(--tv-ink); }
.tv-auth-brand .tv-brand-sub { color: var(--tv-ink-soft); }

/* ------------------------------------------------------------ responsive --
   Every grid item's column is reset explicitly, with !important. Declaring
   the shell as one column is not enough on its own: children keep whatever
   `grid-column` they were given at desktop width and silently overflow. */
@media (max-width: 60rem) {
  .tv-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .tv-sidebar {
    grid-column: 1 !important;
    flex-direction: row; align-items: center; gap: 1rem;
    padding: 0.85rem 1rem; overflow-x: auto;
  }
  .tv-nav { flex-direction: row; gap: 0.25rem; }
  .tv-nav-label { display: none; }
  .tv-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--tv-primary); }
  .tv-sidebar-foot { margin-top: 0; margin-left: auto; }
  .tv-whoami { border-top: none; padding-top: 0; }
  .tv-whoami-text { display: none; }
  .tv-main { grid-column: 1 !important; padding: 1.25rem 1rem 3rem; }
  .tv-page-title { font-size: 1.4rem; }
}

/* ==========================================================================
   v2 — DASHBOARD HIERARCHY
   Four deliberately different surface treatments, so the eye ranks the page
   before it reads any of it:

     1. Dark ink band .......... leadership / decisions      (loudest)
     2. Recessed board ......... the live pipeline           (primary work)
     3. White + accent rule .... candidates awaiting action  (actionable)
     4. Flat & borderless ...... operational stats, roles    (supporting)

   Restraint is held by using ONE accent (gold) to mean "this needs a
   leadership decision", rather than giving six statuses six colours. The
   label carries the specifics; the colour only says "you, now".
   ========================================================================== */

/* ---- 1. command band ---------------------------------------------------- */
.tv-command {
  background: linear-gradient(168deg, #1e2b3a 0%, #16202c 62%, #131c26 100%);
  border-radius: 12px;
  padding: 1.6rem 1.85rem;
  margin-bottom: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: center;
  color: #fff;
}
.tv-command-eyebrow {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 700; color: rgba(255, 255, 255, 0.42); margin-bottom: 0.45rem;
}
.tv-command-title {
  margin: 0; font-size: 2.05rem; font-weight: 650;
  letter-spacing: -0.032em; line-height: 1.05;
}
.tv-command-sub {
  margin: 0.45rem 0 0; font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.62); max-width: 34rem;
}

.tv-decisions {
  display: flex; align-items: center; gap: 1.15rem;
  background: rgba(169, 127, 54, 0.13);
  border: 1px solid rgba(200, 158, 84, 0.42);
  border-radius: 10px; padding: 0.95rem 1.25rem;
}
.tv-decisions-count {
  font-size: 2.6rem; font-weight: 700; line-height: 0.92;
  letter-spacing: -0.04em; color: #e2c48c;
  font-variant-numeric: tabular-nums;
}
.tv-decisions-text { line-height: 1.3; }
.tv-decisions-label {
  font-size: 0.78rem; font-weight: 700; color: #edd9b0;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.tv-decisions-note {
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.15rem;
}

/* ---- 4a. quiet operational strip --------------------------------------- */
.tv-metrics-strip {
  display: flex; flex-wrap: wrap; gap: 0.35rem 2.4rem;
  padding: 0 0.15rem 1.35rem;
  border-bottom: 1px solid var(--tv-line);
  margin-bottom: 1.6rem;
}
.tv-metric-q { min-width: 6.5rem; }
.tv-metric-q-label {
  display: block; font-size: 0.685rem; text-transform: uppercase;
  letter-spacing: 0.075em; font-weight: 700; color: var(--tv-ink-soft);
  margin-bottom: 0.15rem;
}
.tv-metric-q-value {
  font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--tv-ink-mid);
}
.tv-metric-q-value.is-flagged { color: var(--tv-accent); }
.tv-metric-q-value .u { font-size: 0.78rem; font-weight: 600; color: var(--tv-ink-soft); }

/* ---- 3. attention required --------------------------------------------- */
.tv-decide-grid {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 1rem; margin-bottom: 1.75rem;
}
.tv-attention {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-left: 3px solid var(--tv-accent);
  border-radius: var(--tv-radius); box-shadow: var(--tv-shadow-lift);
  overflow: hidden;
}
.tv-attn-head {
  padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--tv-line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.tv-attn-title { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -0.012em; }
.tv-attn-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem; align-items: center;
  padding: 0.8rem 1.15rem; border-bottom: 1px solid var(--tv-line);
  cursor: pointer;
}
.tv-attn-row:last-child { border-bottom: none; }
.tv-attn-row:hover { background: var(--tv-accent-soft); }
.tv-attn-who { min-width: 0; }
.tv-attn-name {
  font-size: 0.95rem; font-weight: 650; letter-spacing: -0.012em;
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
}
.tv-attn-meta {
  font-size: 0.805rem; color: var(--tv-ink-soft); margin-top: 0.12rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-role-tag {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.1rem 0.36rem; border-radius: 3px;
  background: var(--tv-primary-soft); color: var(--tv-primary);
  border: 1px solid var(--tv-primary-line); text-transform: uppercase;
  flex-shrink: 0;
}

/* One accent for "needs a leadership decision". */
.tv-badge-decide {
  background: #f6ecd6; color: #7d5a14; border-color: #dcbe86; font-weight: 800;
}
/* Blocked waiting on the candidate, not on us. */
.tv-badge-blocked { background: var(--tv-warn-soft); color: var(--tv-warn); border-color: #ecd6ad; }

/* ---- strongest-by-assessment ------------------------------------------- */
.tv-strongest .tv-card-head { padding: 0.85rem 1.15rem; }
.tv-strong-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.68rem 1.15rem; border-bottom: 1px solid var(--tv-line);
}
.tv-strong-row:last-child { border-bottom: none; }
.tv-strong-rank {
  font-size: 0.72rem; font-weight: 800; color: var(--tv-ink-soft);
  width: 1rem; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.tv-strong-who { min-width: 0; flex: 1; }
.tv-strong-name { font-size: 0.885rem; font-weight: 650; letter-spacing: -0.01em; }
.tv-strong-meta {
  font-size: 0.775rem; color: var(--tv-ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- 2. the board ------------------------------------------------------- */
.tv-board-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem;
}
.tv-board-title { margin: 0; font-size: 1.22rem; font-weight: 650; letter-spacing: -0.022em; }
.tv-board-note { margin: 0.15rem 0 0; font-size: 0.845rem; color: var(--tv-ink-soft); }

.tv-board {
  background: #e9edf1;
  border: 1px solid var(--tv-line-strong);
  border-radius: 12px;
  padding: 0.85rem;
}
.tv-board .tv-kanban { padding: 0; gap: 0.7rem; }

.tv-col {
  flex: 0 0 16.5rem; min-width: 16.5rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.tv-col-head { padding: 0 0.2rem; }
.tv-col-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.tv-col-name {
  font-size: 0.775rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.065em; color: #46535f;
}
.tv-col-count {
  font-size: 0.735rem; font-weight: 800; color: var(--tv-ink-mid);
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--tv-line-strong);
  border-radius: 999px; padding: 0.02rem 0.44rem; font-variant-numeric: tabular-nums;
}
.tv-col-gate {
  margin-top: 0.35rem; font-size: 0.7rem; font-weight: 700;
  color: #7d5a14; display: flex; align-items: center; gap: 0.32rem;
  letter-spacing: 0.005em;
}
.tv-col-gate::before {
  content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: var(--tv-accent); flex-shrink: 0;
}
.tv-col-body { display: flex; flex-direction: column; gap: 0.55rem; }

/* Candidate card -- the unit the whole screen exists to surface, so it gets
   real size, real weight and an elevated white surface against the recessed
   board. */
.tv-cc {
  background: var(--tv-surface); border: 1px solid #d9e0e7;
  border-radius: 8px; padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 2px rgba(22, 32, 44, 0.06), 0 2px 8px rgba(22, 32, 44, 0.05);
  cursor: pointer;
}
.tv-cc:hover { box-shadow: var(--tv-shadow-lift); border-color: var(--tv-primary-line); }
.tv-cc-needs-decision { border-left: 3px solid var(--tv-accent); }

.tv-cc-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.3rem;
}
.tv-cc-name {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.019em; line-height: 1.2;
}
.tv-cc-title {
  font-size: 0.825rem; color: var(--tv-ink-mid); line-height: 1.3;
  margin-bottom: 0.55rem;
}
.tv-cc-company { color: var(--tv-ink-soft); }
.tv-cc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding-top: 0.55rem; border-top: 1px solid var(--tv-line);
}
.tv-cc-score { display: flex; align-items: baseline; gap: 0.2rem; }
.tv-cc-score .tv-score { font-size: 1.06rem; }
.tv-cc-status { font-size: 0.775rem; color: var(--tv-ink-soft); font-weight: 600; }
.tv-cc-more {
  text-align: center; font-size: 0.79rem; font-weight: 600;
  color: var(--tv-ink-soft); padding: 0.5rem;
  border: 1px dashed var(--tv-line-strong); border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
}

/* ---- 4b. subordinate supporting data ----------------------------------- */
.tv-card-sub {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); box-shadow: none;
}
.tv-card-sub .tv-card-head { padding: 0.8rem 1.1rem; }
.tv-card-sub .tv-card-title { font-size: 0.9rem; color: var(--tv-ink-mid); }
.tv-card-sub .tv-table { font-size: 0.835rem; }
.tv-card-sub .tv-table th {
  font-size: 0.665rem; background: transparent; color: var(--tv-ink-soft);
}
.tv-card-sub .tv-table td { padding: 0.66rem 1rem; }
/* Funnel columns read as one progression, so they are visually grouped and
   quieter than the name and the score that bracket them. */
.tv-funnel-cell { color: var(--tv-ink-mid); font-variant-numeric: tabular-nums; }
.tv-funnel-sep { border-left: 1px solid var(--tv-line); }

@media (max-width: 68rem) {
  .tv-command { grid-template-columns: minmax(0, 1fr) !important; }
  .tv-decide-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 60rem) {
  .tv-command-title { font-size: 1.6rem; }
  .tv-command { padding: 1.15rem 1.15rem; }
  .tv-decisions-count { font-size: 2rem; }
}

/* ==========================================================================
   CANDIDATE-FACING SURFACE
   Deliberately a different register from the internal board: editorial,
   centred, generous. A sitting COO reading a role brief should feel they are
   reading a considered document, not filling in a portal. Shares tokens with
   the admin surface so the two are recognisably one system, but shares no
   shell -- candidate pages and reviewer pages never load the same chrome.
   ========================================================================== */

.tv-pub { background: var(--tv-surface); min-height: 100vh; }

.tv-pub-header {
  border-bottom: 1px solid var(--tv-line);
  background: var(--tv-surface);
}
.tv-pub-header-in {
  max-width: 58rem; margin: 0 auto; padding: 1.05rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.tv-pub-brand { display: flex; align-items: center; gap: 0.6rem; }
.tv-pub-brand .tv-brand-name, .tv-pub-brand .tv-brand-sub { color: var(--tv-ink); }
.tv-pub-brand .tv-brand-sub { color: var(--tv-ink-soft); }

.tv-pub-wrap { max-width: 52rem; margin: 0 auto; padding: 2.75rem 1.5rem 5rem; }

.tv-pub-eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 700; color: var(--tv-primary); margin-bottom: 0.6rem;
}
.tv-pub-title {
  margin: 0; font-size: 2.5rem; font-weight: 650;
  letter-spacing: -0.035em; line-height: 1.06;
}
.tv-pub-entity {
  margin: 0.6rem 0 0; font-size: 1.02rem; color: var(--tv-ink-mid);
}
.tv-pub-rule {
  height: 3px; width: 3.25rem; background: var(--tv-primary);
  border-radius: 2px; margin: 1.6rem 0 0;
}

/* Fact grid -- reporting line, location, commitment. The things a serious
   candidate checks before reading a word of prose. */
.tv-pub-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1.15rem 1.75rem;
  padding: 1.5rem 0; margin: 2rem 0 0;
  border-top: 1px solid var(--tv-line); border-bottom: 1px solid var(--tv-line);
}
.tv-fact-label {
  display: block; font-size: 0.685rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; color: var(--tv-ink-soft);
  margin-bottom: 0.28rem;
}
.tv-fact-value { font-size: 0.925rem; font-weight: 600; line-height: 1.35; }
.tv-fact-value.is-withheld { font-weight: 500; color: var(--tv-ink-soft); font-style: italic; }

.tv-pub-section { margin-top: 2.6rem; }
.tv-pub-h2 {
  margin: 0 0 0.85rem; font-size: 1.16rem; font-weight: 650;
  letter-spacing: -0.017em;
}
.tv-prose { font-size: 1.005rem; line-height: 1.68; color: var(--tv-ink-mid); }
.tv-prose p { margin: 0 0 1rem; }
.tv-prose strong { color: var(--tv-ink); font-weight: 650; }
.tv-prose ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.tv-prose li { margin-bottom: 0.52rem; }

.tv-outcomes {
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.tv-outcome {
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  padding: 0.95rem 1.05rem; background: var(--tv-surface-alt);
}
.tv-outcome-when {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-primary); margin-bottom: 0.35rem;
}
.tv-outcome-what { font-size: 0.9rem; line-height: 1.45; color: var(--tv-ink-mid); }

.tv-pub-cta {
  margin-top: 3rem; padding: 1.65rem 1.75rem;
  background: linear-gradient(168deg, #1e2b3a 0%, #16202c 100%);
  border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.tv-pub-cta-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; }
.tv-pub-cta-note {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.58);
  margin-top: 0.25rem; max-width: 30rem;
}
.tv-btn-onink { background: #fff; color: var(--tv-ink); font-weight: 700; }
.tv-btn-onink:hover { background: #f0f2f4; }

.tv-pub-footer {
  border-top: 1px solid var(--tv-line); padding: 1.6rem 1.5rem;
  text-align: center; font-size: 0.83rem; color: var(--tv-ink-soft);
}

/* ---- application form -------------------------------------------------- */
.tv-app-grid {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2.25rem; align-items: start;
}
.tv-steps { position: sticky; top: 1.5rem; }
.tv-step {
  display: flex; gap: 0.7rem; padding: 0.5rem 0; align-items: flex-start;
}
.tv-step-num {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  border: 1px solid var(--tv-line-strong); color: var(--tv-ink-soft);
  background: var(--tv-surface);
}
.tv-step-label { font-size: 0.865rem; color: var(--tv-ink-soft); line-height: 1.3; padding-top: 0.12rem; }
.tv-step.is-done .tv-step-num {
  background: var(--tv-primary-soft); border-color: var(--tv-primary-line); color: var(--tv-primary);
}
.tv-step.is-done .tv-step-label { color: var(--tv-ink-mid); }
.tv-step.is-current .tv-step-num {
  background: var(--tv-primary); border-color: var(--tv-primary); color: #fff;
}
.tv-step.is-current .tv-step-label { color: var(--tv-ink); font-weight: 650; }

.tv-app-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.3rem;
}
.tv-app-step-of {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--tv-primary);
}
.tv-autosave {
  font-size: 0.79rem; color: var(--tv-good); font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.34rem;
}
.tv-autosave::before {
  content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: var(--tv-good);
}
.tv-app-title {
  margin: 0 0 0.35rem; font-size: 1.55rem; font-weight: 650; letter-spacing: -0.026em;
}
.tv-app-sub { margin: 0 0 1.85rem; color: var(--tv-ink-soft); font-size: 0.925rem; }

.tv-fieldset {
  border: 0; padding: 0; margin: 0 0 2rem;
}
.tv-fieldset-legend {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-ink-soft);
  padding: 0 0 0.75rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--tv-line); width: 100%;
}
.tv-fieldrow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0 1rem;
}
.tv-req { color: var(--tv-risk); font-weight: 700; }

/* Written-question block */
.tv-q {
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  padding: 1.15rem 1.25rem; margin-bottom: 1.15rem; background: var(--tv-surface);
}
.tv-q-num {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-primary); margin-bottom: 0.45rem;
}
.tv-q-text {
  font-size: 1.045rem; font-weight: 600; line-height: 1.42;
  letter-spacing: -0.014em; margin-bottom: 0.55rem;
}
.tv-q-guide {
  font-size: 0.845rem; color: var(--tv-ink-soft); line-height: 1.5;
  margin-bottom: 0.85rem;
}
.tv-q-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 0.5rem; font-size: 0.79rem; color: var(--tv-ink-soft);
}
.tv-textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

.tv-app-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--tv-line);
  margin-top: 0.5rem; flex-wrap: wrap;
}

.tv-notice {
  border: 1px solid var(--tv-primary-line); background: var(--tv-primary-soft);
  border-radius: var(--tv-radius); padding: 0.95rem 1.1rem;
  font-size: 0.875rem; color: #0b4a55; line-height: 1.55; margin-bottom: 1.75rem;
}
.tv-notice strong { font-weight: 700; }

@media (max-width: 54rem) {
  .tv-app-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem; }
  .tv-steps { position: static; }
  .tv-steps-inner { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  .tv-pub-title { font-size: 1.85rem; }
  .tv-pub-wrap { padding: 1.85rem 1.15rem 3.5rem; }
}

/* ---- question grouping -------------------------------------------------
   Stage 1 is two things in one step: the common executive assessment every
   candidate answers, and the pair written for the role they applied to. The
   divider says so, because the distinction is real -- a reviewer comparing
   two COOs is comparing like for like on 1-5, and comparing operating
   judgement on 6-7. It is not decoration. */
.tv-qgroup { margin: 2.25rem 0 1.1rem; }
.tv-qgroup:first-of-type { margin-top: 0.5rem; }
.tv-qgroup-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--tv-line);
}
.tv-qgroup-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 800; color: var(--tv-ink-soft);
}
.tv-qgroup-label.is-role { color: var(--tv-primary); }
.tv-qgroup-note { font-size: 0.8rem; color: var(--tv-ink-soft); }
.tv-qgroup-intro {
  margin: 0.85rem 0 0; font-size: 0.885rem; line-height: 1.55;
  color: var(--tv-ink-mid);
}

/* The role pair carries a teal edge so it is obvious these two are pitched
   at the function, not at executives in general. */
.tv-q-role { border-left: 3px solid var(--tv-primary); }
.tv-q-role .tv-q-text { font-size: 1.02rem; line-height: 1.5; }

/* ---- internal reference panel (preview only) --------------------------- */
.tv-refbank {
  background: var(--tv-page);
  border-top: 1px solid var(--tv-line-strong);
  padding: 2.5rem 1.5rem 3rem;
}
.tv-refbank-in { max-width: 52rem; margin: 0 auto; }
.tv-refbank-head { margin-bottom: 1.5rem; }
.tv-refbank-title {
  margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.018em;
}
.tv-refbank-note {
  margin: 0; font-size: 0.865rem; line-height: 1.55; color: var(--tv-ink-soft);
  max-width: 44rem;
}
.tv-refrole {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); padding: 1.15rem 1.25rem; margin-bottom: 0.85rem;
}
.tv-refrole-name {
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.014em;
  margin-bottom: 0.85rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--tv-line);
}
.tv-refq {
  font-size: 0.89rem; line-height: 1.6; color: var(--tv-ink-mid);
  margin-bottom: 0.95rem;
}
.tv-refq:last-child { margin-bottom: 0; }
.tv-refq-n {
  display: block; font-size: 0.665rem; text-transform: uppercase;
  letter-spacing: 0.09em; font-weight: 800; color: var(--tv-primary);
  margin-bottom: 0.3rem;
}
.tv-refbank-foot {
  margin: 1.35rem 0 0; font-size: 0.845rem; line-height: 1.55;
  color: var(--tv-ink-soft); font-style: italic;
}

/* ---- public role list --------------------------------------------------- */
.tv-rolelist { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 2rem; }
.tv-rolecard {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  padding: 1.15rem 1.3rem; text-decoration: none; color: inherit;
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); box-shadow: var(--tv-shadow);
}
.tv-rolecard:hover {
  text-decoration: none; border-color: var(--tv-primary-line);
  box-shadow: var(--tv-shadow-lift);
}
.tv-rolecard-main { min-width: 0; }
.tv-rolecard-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.02em; }
.tv-rolecard-meta { font-size: 0.855rem; color: var(--tv-ink-soft); margin-top: 0.2rem; }
.tv-rolecard-go {
  font-size: 0.855rem; font-weight: 650; color: var(--tv-primary); white-space: nowrap;
}

/* ==========================================================================
   INTAKE STEPS 2-5 AND 7
   ========================================================================== */

/* Segmented control -- radios styled as one control. Used for experience
   depth and yes/no/qualified answers, where a dropdown would hide the
   options and five separate dropdowns would hide the comparison. */
.tv-seg { display: inline-flex; border: 1px solid var(--tv-line-strong); border-radius: var(--tv-radius-sm); overflow: hidden; }
.tv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tv-seg label {
  padding: 0.36rem 0.7rem; font-size: 0.82rem; font-weight: 600;
  color: var(--tv-ink-mid); cursor: pointer; background: var(--tv-surface);
  border-right: 1px solid var(--tv-line-strong); white-space: nowrap;
}
.tv-seg label:last-of-type { border-right: 0; }
.tv-seg label:hover { background: var(--tv-surface-alt); }
.tv-seg input:checked + label { background: var(--tv-primary); color: #fff; }
.tv-seg input:focus-visible + label { outline: 2px solid var(--tv-primary); outline-offset: -2px; }

/* Experience matrix -- one row per sector so the reviewer later reads a
   consistent shape across every candidate, rather than free prose. */
.tv-matrix { border: 1px solid var(--tv-line); border-radius: var(--tv-radius); overflow: hidden; }
.tv-matrix-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.9rem; align-items: center;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--tv-line);
}
.tv-matrix-row:last-child { border-bottom: 0; }
.tv-matrix-row:nth-child(odd) { background: var(--tv-surface-alt); }
.tv-matrix-label { font-size: 0.9rem; font-weight: 600; }
.tv-matrix-hint { font-size: 0.78rem; color: var(--tv-ink-soft); margin-top: 0.1rem; }
.tv-matrix-years { width: 5.5rem; }
@media (max-width: 44rem) {
  .tv-matrix-row { grid-template-columns: minmax(0, 1fr) !important; gap: 0.55rem; }
  .tv-matrix-years { width: 100%; }
}

/* Repeatable entries (education, certifications) */
.tv-entry {
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  padding: 0.95rem 1.05rem; margin-bottom: 0.7rem; background: var(--tv-surface);
}
.tv-entry-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.tv-entry-n {
  font-size: 0.665rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-ink-soft);
}
.tv-entry-remove {
  background: none; border: 0; font-family: inherit; font-size: 0.79rem;
  color: var(--tv-ink-soft); cursor: pointer; padding: 0.1rem 0.2rem;
}
.tv-entry-remove:hover { color: var(--tv-risk); }
.tv-add {
  width: 100%; padding: 0.62rem; font-family: inherit; font-size: 0.86rem;
  font-weight: 650; color: var(--tv-primary); cursor: pointer;
  background: var(--tv-primary-soft); border: 1px dashed var(--tv-primary-line);
  border-radius: var(--tv-radius-sm);
}
.tv-add:hover { background: #dceaed; }

/* Résumé upload */
.tv-drop {
  border: 1px dashed var(--tv-line-strong); border-radius: var(--tv-radius);
  padding: 1.6rem 1.25rem; text-align: center; background: var(--tv-surface-alt);
}
.tv-drop-title { font-size: 0.93rem; font-weight: 650; margin-bottom: 0.25rem; }
.tv-drop-note { font-size: 0.82rem; color: var(--tv-ink-soft); }
.tv-file {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1rem; border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); background: var(--tv-surface);
}
.tv-file-icon {
  width: 2.1rem; height: 2.1rem; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 800;
  background: var(--tv-primary-soft); color: var(--tv-primary);
  border: 1px solid var(--tv-primary-line);
}
.tv-file-main { flex: 1; min-width: 0; }
.tv-file-name {
  font-size: 0.885rem; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-file-meta { font-size: 0.78rem; color: var(--tv-ink-soft); margin-top: 0.08rem; }

/* Consent / disclosure blocks */
.tv-consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem;
  padding: 1rem 1.1rem; border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); margin-bottom: 0.8rem; background: var(--tv-surface);
}
.tv-consent input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--tv-primary); }
.tv-consent-title { font-size: 0.9rem; font-weight: 650; margin-bottom: 0.3rem; }
.tv-consent-text { font-size: 0.85rem; line-height: 1.55; color: var(--tv-ink-mid); }
.tv-consent.is-checked { border-color: var(--tv-primary-line); background: var(--tv-primary-soft); }

/* Step 7 review summary */
.tv-review { border: 1px solid var(--tv-line); border-radius: var(--tv-radius); overflow: hidden; margin-bottom: 1.5rem; }
.tv-review-sec {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto;
  gap: 1rem; align-items: start;
  padding: 0.75rem 1.05rem; border-bottom: 1px solid var(--tv-line);
}
.tv-review-sec:last-child { border-bottom: 0; }
.tv-review-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.075em;
  font-weight: 700; color: var(--tv-ink-soft); padding-top: 0.12rem;
}
.tv-review-value { font-size: 0.875rem; line-height: 1.5; }
.tv-review-value .is-missing { color: var(--tv-warn); font-weight: 600; }
.tv-review-edit { font-size: 0.8rem; font-weight: 650; color: var(--tv-primary); white-space: nowrap; }
@media (max-width: 44rem) {
  .tv-review-sec { grid-template-columns: minmax(0, 1fr) !important; gap: 0.3rem; }
}

/* ---- magic-link email --------------------------------------------------- */
.tv-mail-frame { max-width: 40rem; margin: 0 auto; }
.tv-mail-chrome {
  background: var(--tv-surface-alt); border: 1px solid var(--tv-line);
  border-bottom: 0; border-radius: var(--tv-radius) var(--tv-radius) 0 0;
  padding: 0.85rem 1.1rem; font-size: 0.82rem;
}
.tv-mail-row { display: flex; gap: 0.55rem; margin-bottom: 0.2rem; }
.tv-mail-key { color: var(--tv-ink-soft); width: 3.2rem; flex-shrink: 0; font-weight: 600; }
.tv-mail-val { color: var(--tv-ink); min-width: 0; }
.tv-mail-body {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: 0 0 var(--tv-radius) var(--tv-radius);
  padding: 2rem 1.75rem;
}
.tv-mail-body p { font-size: 0.945rem; line-height: 1.65; color: var(--tv-ink-mid); margin: 0 0 1rem; }
.tv-mail-cta { text-align: center; padding: 0.6rem 0 1.1rem; }
.tv-mail-fine {
  font-size: 0.8rem; color: var(--tv-ink-soft); line-height: 1.55;
  border-top: 1px solid var(--tv-line); padding-top: 1rem; margin-top: 0.5rem;
}

/* ==========================================================================
   ADMIN CANDIDATE LIST
   ========================================================================== */
.tv-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  padding: 0.85rem 1rem; background: var(--tv-surface);
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  box-shadow: var(--tv-shadow); margin-bottom: 1rem;
}
.tv-filters .tv-select, .tv-filters .tv-input { width: auto; min-width: 9rem; }
.tv-filter-search { flex: 1; min-width: 12rem; }
.tv-filter-count { font-size: 0.82rem; color: var(--tv-ink-soft); margin-left: auto; white-space: nowrap; }

.tv-cand-name-cell { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.tv-cand-name-cell .n { font-size: 0.92rem; font-weight: 650; letter-spacing: -0.012em; }
.tv-cand-name-cell .m {
  font-size: 0.79rem; color: var(--tv-ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-assess {
  font-size: 0.8rem; font-weight: 600; color: var(--tv-ink-mid);
}
.tv-assess.is-incomplete { color: var(--tv-ink-soft); font-weight: 500; font-style: italic; }
.tv-restricted {
  font-size: 0.79rem; color: var(--tv-ink-soft); font-style: italic;
}
.tv-viewas {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  padding: 0.6rem 0.9rem; margin-bottom: 1rem;
  border: 1px dashed var(--tv-line-strong); border-radius: var(--tv-radius);
  background: var(--tv-accent-soft); font-size: 0.82rem; color: #7d5a14;
}
.tv-viewas strong { font-weight: 700; }

/* ==========================================================================
   REVIEWER ASSIGNMENT
   ========================================================================== */
.tv-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.tv-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.16rem 0.3rem 0.16rem 0.5rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--tv-primary-soft); color: var(--tv-primary);
  border: 1px solid var(--tv-primary-line);
}
.tv-chip-x {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  color: var(--tv-primary); opacity: 0.65; line-height: 1;
  padding: 0.1rem 0.2rem; border-radius: 999px; font-size: 0.9rem;
}
.tv-chip-x:hover { opacity: 1; background: rgba(15, 90, 103, 0.12); }
.tv-chip-none { font-size: 0.79rem; color: var(--tv-warn); font-weight: 600; }

/* Reviewer load. Two assigned reviewers is the ranking threshold, so the
   gap between "has one" and "has two" is the number that matters -- the
   meter reads against that, not against an arbitrary capacity. */
.tv-loads {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.7rem; margin-bottom: 1rem;
}
.tv-load {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); padding: 0.8rem 0.9rem; box-shadow: var(--tv-shadow);
}
.tv-load-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
}
.tv-load-name { font-size: 0.875rem; font-weight: 650; }
.tv-load-count { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-load-bar {
  height: 5px; border-radius: 3px; background: var(--tv-neutral-soft);
  margin-top: 0.5rem; overflow: hidden;
}
.tv-load-fill { height: 100%; background: var(--tv-primary); border-radius: 3px; }
.tv-load-meta { font-size: 0.75rem; color: var(--tv-ink-soft); margin-top: 0.35rem; }

.tv-bulkbar {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 1rem; margin-bottom: 1rem;
  background: var(--tv-ink); color: #fff; border-radius: var(--tv-radius);
}
.tv-bulkbar .tv-select { width: auto; }
.tv-bulk-count { font-size: 0.85rem; font-weight: 650; }

/* ==========================================================================
   ROLE MANAGEMENT
   ========================================================================== */
.tv-rolerow-title { font-size: 0.95rem; font-weight: 650; letter-spacing: -0.014em; }
.tv-rolerow-meta { font-size: 0.79rem; color: var(--tv-ink-soft); margin-top: 0.1rem; }

.tv-editor-nav {
  display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--tv-line); padding-bottom: 0.6rem;
}
.tv-editor-nav a {
  padding: 0.35rem 0.7rem; border-radius: var(--tv-radius-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--tv-ink-soft); text-decoration: none;
}
.tv-editor-nav a:hover { background: var(--tv-neutral-soft); color: var(--tv-ink); text-decoration: none; }
.tv-editor-nav a.is-active { background: var(--tv-primary-soft); color: var(--tv-primary); }

.tv-section {
  background: var(--tv-surface); border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); box-shadow: var(--tv-shadow);
  padding: 1.25rem 1.35rem; margin-bottom: 1rem;
}
.tv-section-title { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 650; letter-spacing: -0.014em; }
.tv-section-note { margin: 0 0 1.15rem; font-size: 0.835rem; color: var(--tv-ink-soft); }

.tv-listline {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem;
  align-items: center; margin-bottom: 0.45rem;
}

/* Question assignment inside the role editor */
.tv-qrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem; align-items: start;
  padding: 0.85rem 1rem; border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); margin-bottom: 0.55rem; background: var(--tv-surface);
}
.tv-qrow.is-locked { background: var(--tv-surface-alt); }
.tv-qrow.is-role { border-left: 3px solid var(--tv-primary); }
.tv-qrow-n {
  font-size: 0.72rem; font-weight: 800; color: var(--tv-ink-soft);
  font-variant-numeric: tabular-nums; padding-top: 0.15rem;
}
.tv-qrow-text { font-size: 0.885rem; line-height: 1.5; }
.tv-qrow-sub {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 800; color: var(--tv-primary); margin-bottom: 0.2rem;
}
.tv-qrow-lock { font-size: 0.73rem; color: var(--tv-ink-soft); font-style: italic; white-space: nowrap; }

.tv-statusbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem; margin-bottom: 1rem;
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  background: var(--tv-surface); box-shadow: var(--tv-shadow);
}
.tv-statusbar-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--tv-ink-soft);
}

/* ==========================================================================
   STAGE 2 — EXECUTIVE CASE ASSESSMENT
   ========================================================================== */

/* Deadline. State is read from stored issued_at/due_at, never recomputed
   from a current default, so changing the default never moves an existing
   candidate's deadline. */
.tv-deadline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.15rem; border-radius: var(--tv-radius);
  border: 1px solid var(--tv-primary-line); background: var(--tv-primary-soft);
  margin-bottom: 1.5rem;
}
.tv-deadline.is-soon { border-color: #ecd6ad; background: var(--tv-warn-soft); }
.tv-deadline.is-overdue { border-color: #ecc4bf; background: var(--tv-risk-soft); }
.tv-deadline-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-ink-soft);
}
.tv-deadline-when { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.015em; margin-top: 0.15rem; }
.tv-deadline-left { font-size: 0.85rem; color: var(--tv-ink-mid); }

/* Case packet -- reads as a document, not a form. */
.tv-packet {
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  background: var(--tv-surface); overflow: hidden; margin-bottom: 1.5rem;
}
.tv-packet-head {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--tv-line);
  background: var(--tv-surface-alt);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.tv-packet-title { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -0.014em; }
.tv-packet-version { font-size: 0.73rem; color: var(--tv-ink-soft); font-variant-numeric: tabular-nums; }
.tv-packet-body { padding: 1.25rem; }
.tv-packet-sec { margin-bottom: 1.4rem; }
.tv-packet-sec:last-child { margin-bottom: 0; }
.tv-packet-h {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-primary); margin-bottom: 0.5rem;
}
.tv-packet-sec p { margin: 0 0 0.7rem; font-size: 0.93rem; line-height: 1.62; color: var(--tv-ink-mid); }
.tv-figs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.6rem; margin-top: 0.3rem;
}
.tv-fig {
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius-sm);
  padding: 0.6rem 0.75rem; background: var(--tv-surface-alt);
}
.tv-fig-n { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tv-fig-l { font-size: 0.72rem; color: var(--tv-ink-soft); margin-top: 0.1rem; line-height: 1.3; }
.tv-redaction {
  font-size: 0.8rem; color: var(--tv-ink-soft); font-style: italic;
  border-left: 2px solid var(--tv-line-strong); padding-left: 0.7rem; margin-top: 0.9rem;
}

/* Work-product upload */
.tv-artifact {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.9rem 1.1rem; border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius); background: var(--tv-surface); margin-bottom: 0.6rem;
}
.tv-artifact.is-submitted { border-color: var(--tv-good); background: var(--tv-good-soft); }
.tv-artifact-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.6rem; font-weight: 800;
  background: var(--tv-primary-soft); color: var(--tv-primary);
  border: 1px solid var(--tv-primary-line); letter-spacing: 0.02em;
}
.tv-artifact-main { flex: 1; min-width: 0; }
.tv-artifact-name { font-size: 0.92rem; font-weight: 650; word-break: break-word; }
.tv-artifact-meta { font-size: 0.78rem; color: var(--tv-ink-soft); margin-top: 0.12rem; }
.tv-artifact-ver {
  font-size: 0.7rem; font-weight: 700; color: var(--tv-ink-soft);
  background: var(--tv-neutral-soft); border-radius: 999px; padding: 0.08rem 0.45rem;
}

/* ---- rubric scoring ----------------------------------------------------- */
.tv-rubric { border: 1px solid var(--tv-line); border-radius: var(--tv-radius); overflow: hidden; }
.tv-rub-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem; align-items: start;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--tv-line);
}
.tv-rub-row:last-child { border-bottom: 0; }
.tv-rub-row:nth-child(odd) { background: var(--tv-surface-alt); }
.tv-rub-name {
  font-size: 0.93rem; font-weight: 650; display: flex; align-items: baseline;
  gap: 0.45rem; flex-wrap: wrap;
}
.tv-rub-weight {
  font-size: 0.7rem; font-weight: 800; color: var(--tv-primary);
  background: var(--tv-primary-soft); border: 1px solid var(--tv-primary-line);
  border-radius: 999px; padding: 0.05rem 0.4rem;
}
.tv-rub-ask { font-size: 0.82rem; color: var(--tv-ink-soft); margin-top: 0.22rem; line-height: 1.5; }
.tv-rub-scale { display: flex; gap: 0.25rem; }
.tv-rub-scale input { position: absolute; opacity: 0; pointer-events: none; }
.tv-rub-scale label {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border: 1px solid var(--tv-line-strong); border-radius: var(--tv-radius-sm);
  font-size: 0.86rem; font-weight: 700; cursor: pointer;
  background: var(--tv-surface); color: var(--tv-ink-mid);
}
.tv-rub-scale label:hover { border-color: var(--tv-primary); }
.tv-rub-scale input:checked + label { background: var(--tv-primary); border-color: var(--tv-primary); color: #fff; }
.tv-rub-scale input:focus-visible + label { outline: 2px solid var(--tv-primary); outline-offset: 2px; }

.tv-total {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; border-radius: var(--tv-radius);
  background: var(--tv-ink); color: #fff; margin: 1rem 0 1.5rem;
}
.tv-total-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 800; color: rgba(255,255,255,0.55); }
.tv-total-value { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tv-total-scale { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.tv-total-note { font-size: 0.8rem; color: rgba(255,255,255,0.55); max-width: 24rem; }

/* ---- comparison --------------------------------------------------------- */
.tv-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.tv-cmp-head {
  padding: 0.75rem 1rem; border-radius: var(--tv-radius) var(--tv-radius) 0 0;
  background: var(--tv-surface-alt); border: 1px solid var(--tv-line); border-bottom: 0;
}
.tv-cmp-who { font-size: 0.92rem; font-weight: 650; }
.tv-cmp-when { font-size: 0.76rem; color: var(--tv-ink-soft); margin-top: 0.1rem; }

.tv-cmp-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 3.2rem 3.2rem 4.6rem;
  gap: 0.6rem; align-items: center;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--tv-line); font-size: 0.875rem;
}
.tv-cmp-row:last-child { border-bottom: 0; }
.tv-cmp-row.is-divergent { background: var(--tv-warn-soft); }
.tv-cmp-score { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-cmp-gap { text-align: right; font-size: 0.79rem; color: var(--tv-ink-soft); font-variant-numeric: tabular-nums; }
.tv-cmp-gap.is-wide { color: var(--tv-warn); font-weight: 700; }
.tv-cmp-hd {
  font-size: 0.665rem; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 800; color: var(--tv-ink-soft);
}

.tv-trust {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 700; padding: 0.18rem 0.55rem;
  border-radius: 999px; border: 1px solid transparent;
}
.tv-trust-yes { background: var(--tv-good-soft); color: var(--tv-good); border-color: #bfdfcd; }
.tv-trust-res { background: var(--tv-warn-soft); color: var(--tv-warn); border-color: #ecd6ad; }
.tv-trust-no { background: var(--tv-risk-soft); color: var(--tv-risk); border-color: #ecc4bf; }

.tv-quote {
  border-left: 3px solid var(--tv-line-strong); padding: 0.1rem 0 0.1rem 0.9rem;
  font-size: 0.885rem; line-height: 1.6; color: var(--tv-ink-mid); margin: 0.5rem 0 0;
}

.tv-decide-bar {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 1.15rem 1.25rem; border-radius: var(--tv-radius);
  border: 1px solid var(--tv-line); border-left: 3px solid var(--tv-accent);
  background: var(--tv-surface); box-shadow: var(--tv-shadow-lift); margin-top: 1.5rem;
}
.tv-btn-advance { background: var(--tv-good); color: #fff; }
.tv-btn-advance:hover { background: #1a5c3e; }
.tv-btn-reject { background: var(--tv-surface); color: var(--tv-risk); border-color: #ecc4bf; }
.tv-btn-reject:hover { background: var(--tv-risk-soft); }

.tv-blinded {
  padding: 1.5rem 1.25rem; text-align: center;
  border: 1px dashed var(--tv-line-strong); border-radius: var(--tv-radius);
  background: var(--tv-surface-alt);
}
.tv-blinded-title { font-size: 0.92rem; font-weight: 650; margin-bottom: 0.3rem; }
.tv-blinded-text { font-size: 0.85rem; color: var(--tv-ink-soft); max-width: 30rem; margin: 0 auto; line-height: 1.55; }

@media (max-width: 56rem) {
  .tv-compare { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---- finalized review (read-only) --------------------------------------- */
.tv-locked-score {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: var(--tv-radius-sm);
  font-size: 0.86rem; font-weight: 700;
  background: var(--tv-primary); color: #fff;
}
.tv-locked-note {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 650; color: var(--tv-good);
}
.tv-peer {
  border: 1px solid var(--tv-line); border-left: 3px solid var(--tv-ink-soft);
  border-radius: var(--tv-radius); background: var(--tv-surface-alt);
  padding: 1.1rem 1.2rem; margin-top: 1rem;
}
.tv-peer-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.tv-peer-who { font-size: 0.92rem; font-weight: 650; }
.tv-peer-total { font-size: 0.92rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- decision bar, unavailable state ------------------------------------ */
.tv-decide-bar.is-locked {
  border-left-color: var(--tv-line-strong); box-shadow: var(--tv-shadow);
  background: var(--tv-surface-alt);
}
.tv-decide-bar.is-locked .tv-btn { opacity: 0.45; cursor: not-allowed; }

/* Candidate context strip on the decision screen -- the facts a decision
   maker needs beside the assessment, drawn from the Phase 1 application. */
.tv-ctx {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem 1.75rem; padding: 1rem 1.15rem; margin-bottom: 1.25rem;
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  background: var(--tv-surface); box-shadow: var(--tv-shadow);
}
.tv-ctx-l {
  display: block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; color: var(--tv-ink-soft);
  margin-bottom: 0.2rem;
}
.tv-ctx-v { font-size: 0.885rem; font-weight: 600; line-height: 1.35; }
.tv-ctx-v.is-muted { font-weight: 500; color: var(--tv-ink-soft); font-style: italic; }

/* ---- prepared candidate communication ----------------------------------- */
.tv-draft {
  border: 1px solid var(--tv-line); border-left: 3px solid var(--tv-accent);
  border-radius: var(--tv-radius); background: var(--tv-surface);
  box-shadow: var(--tv-shadow); overflow: hidden; margin-bottom: 1.25rem;
}
.tv-draft-head {
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--tv-line);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; background: var(--tv-accent-soft);
}
.tv-draft-title { font-size: 0.94rem; font-weight: 650; letter-spacing: -0.012em; }
.tv-draft-state {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: #7d5a14;
}
.tv-draft-body { padding: 1.1rem 1.2rem; }
.tv-draft-subject {
  font-size: 0.885rem; font-weight: 650; padding-bottom: 0.6rem;
  margin-bottom: 0.85rem; border-bottom: 1px solid var(--tv-line);
}
.tv-draft-text {
  font-size: 0.9rem; line-height: 1.68; color: var(--tv-ink-mid);
  white-space: pre-wrap; font-family: inherit;
}
.tv-draft-foot {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.85rem 1.2rem; border-top: 1px solid var(--tv-line);
  background: var(--tv-surface-alt);
}

/* Two-column "what leadership sees / what the candidate sees" */
.tv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.tv-split-h {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-ink-soft); margin-bottom: 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--tv-line);
}
@media (max-width: 62rem) { .tv-split { grid-template-columns: minmax(0, 1fr) !important; } }

.tv-never {
  border: 1px solid #ecc4bf; background: var(--tv-risk-soft);
  border-radius: var(--tv-radius); padding: 0.9rem 1.05rem;
  font-size: 0.85rem; line-height: 1.55; color: #7d2f22; margin-bottom: 1.25rem;
}
.tv-never strong { font-weight: 700; }
.tv-aging {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700; color: var(--tv-warn);
}

/* ==========================================================================
   STAGE 3 — FINALIST INTERVIEW
   ========================================================================== */

/* Locked state: confidential material exists but the acknowledgment gates it. */
.tv-gate {
  border: 1px solid var(--tv-line-strong); border-radius: var(--tv-radius);
  background: var(--tv-surface-alt); padding: 2rem 1.5rem; text-align: center;
}
.tv-gate-mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; margin: 0 auto 0.9rem;
  display: grid; place-items: center; font-size: 1.1rem;
  background: var(--tv-primary-soft); color: var(--tv-primary);
  border: 1px solid var(--tv-primary-line);
}
.tv-gate-title { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.016em; margin-bottom: 0.4rem; }
.tv-gate-text { font-size: 0.9rem; line-height: 1.6; color: var(--tv-ink-soft); max-width: 34rem; margin: 0 auto; }

/* Acknowledgment record, once given. */
.tv-ack-record {
  border: 1px solid #bfdfcd; background: var(--tv-good-soft);
  border-radius: var(--tv-radius); padding: 1rem 1.15rem;
}
.tv-ack-line { font-size: 0.85rem; color: var(--tv-good); font-weight: 600; }
.tv-ack-meta { font-size: 0.8rem; color: var(--tv-ink-mid); margin-top: 0.35rem; line-height: 1.5; }

/* Confidential briefing -- visually distinct from the sanitized Stage 2
   packet, because confusing the two is the expensive mistake. */
.tv-confidential {
  border: 1px solid var(--tv-line); border-top: 3px solid var(--tv-ink);
  border-radius: var(--tv-radius); background: var(--tv-surface); overflow: hidden;
}
.tv-confidential-head {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--tv-line); background: var(--tv-ink);
  color: #fff; display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.tv-confidential-title { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -0.014em; }
.tv-confidential-stamp {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 800; color: #e2c48c;
}

/* Founder interview workspace */
.tv-iv {
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  background: var(--tv-surface); padding: 1.1rem 1.2rem; margin-bottom: 0.75rem;
}
.tv-iv-n {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 800; color: var(--tv-ink-soft); margin-bottom: 0.35rem;
}
.tv-iv-q { font-size: 1rem; font-weight: 650; line-height: 1.45; letter-spacing: -0.014em; margin-bottom: 0.7rem; }
.tv-iv textarea { min-height: 5.5rem; }

/* The candid critique -- the thing the candidate was promised, so it gets
   its own weight rather than being questions nine through thirteen. */
.tv-critique {
  border: 1px solid var(--tv-primary-line); border-left: 3px solid var(--tv-primary);
  border-radius: var(--tv-radius); background: var(--tv-primary-soft);
  padding: 1.25rem 1.35rem; margin: 1.5rem 0;
}
.tv-critique-title {
  margin: 0 0 0.3rem; font-size: 1.05rem; font-weight: 650;
  letter-spacing: -0.018em; color: #0b4a55;
}
.tv-critique-note { margin: 0 0 1.15rem; font-size: 0.86rem; color: #0b4a55; opacity: 0.85; line-height: 1.55; }
.tv-critique .tv-label { color: #0b4a55; }
.tv-critique textarea { background: var(--tv-surface); }

/* Context rail: what came before, without a Stage 3 score. */
.tv-prior {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.9rem 1.75rem; padding: 1rem 1.15rem; margin-bottom: 1.25rem;
  border: 1px solid var(--tv-line); border-radius: var(--tv-radius);
  background: var(--tv-surface-alt);
}
.tv-noscore {
  font-size: 0.82rem; color: var(--tv-ink-soft); font-style: italic;
}
