:root {
  --navy: #13253f;
  --navy-deep: #0a1628;
  --navy-mid: #1e3a5f;
  --ink: #ffffff;
  --ink-soft: #f4f7fc;
  --ink-mute: #e2e8f2;
  --gold: #e8bc55;
  --gold-lt: #f3d078;
  --teal: #5fd4bc;
  --coral: #f0a06a;
  --sky: #9ac4ef;
  --lavender: #b0bbe6;
  --green: #5fd4bc;
  --alert: #f0a06a;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.16);
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  font-size: 20px;
}

button, input, select { font: inherit; color: inherit; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 8% -5%, rgba(226, 177, 74, 0.14), transparent 55%),
    radial-gradient(800px 500px at 100% 10%, rgba(61, 184, 160, 0.1), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%, #16304f 100%);
}

/* ── Top navigation ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(280px, max-content) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(10, 22, 40, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: none;
}

.ok-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.client-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: #ffffff;
  padding: 6px 10px;
  box-sizing: content-box; /* 44 + 12 padding = 56px, matches .ok-logo */
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: max-content;
}

.brand-kicker {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.brand-client {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
}

.nav-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 12px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  position: relative;
  transition: color 180ms ease, background 180ms ease;
}

.nav-btn:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}

.nav-btn.active {
  color: var(--navy-deep);
  background: var(--gold);
  font-weight: 600;
}

.asof {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.main { flex: 1; min-width: 0; }
.loading { padding: 64px; color: var(--ink-soft); text-align: center; }

.page { animation: rise 420ms ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── Shared narrative pieces ── */
.story {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.story-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
  padding: 28px 0 8px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.display {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.lead {
  font-size: 21px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 38em;
}

.lead em, .lead .hl {
  font-style: normal;
  color: var(--gold-lt);
  font-weight: 600;
}

.hl { color: var(--gold-lt); font-weight: 600; }
.hl-teal { color: var(--teal) !important; font-weight: 600; }
.hl-coral { color: var(--coral) !important; font-weight: 600; }
.hl-sky { color: var(--sky) !important; font-weight: 600; }

.wave {
  display: block;
  width: 100%;
  height: 56px;
  margin: 28px 0 8px;
  color: rgba(255,255,255,0.07);
}

.section {
  padding: 28px 0 8px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-copy {
  font-size: 19.5px;
  line-height: 1.7;
  color: var(--ink);
  padding-top: 4px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  align-items: start;
}

.flow-side {
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

.flow-wide { grid-column: 1 / -1; }

.viz-block {
  position: relative;
}

.viz-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* KPI ribbon — always 3 × 2 */
.kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kpi-cell {
  padding: 22px 20px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}

.kpi-cell:nth-child(3n) { border-right: 0; }
.kpi-cell:nth-child(n+4) {
  border-top: 1px solid var(--line);
}

.kpi-value {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  color: var(--accent, var(--ink));
  margin-bottom: 8px;
}

.kpi-label {
  font-size: 18.5px;
  font-weight: 500;
  color: var(--ink);
}

.kpi-detail {
  margin-top: 6px;
  font-size: 16.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Charts */
.area-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hbar-list { display: grid; gap: 14px; }

.hbar-list--compact {
  gap: 4px;
}
.hbar-list--compact .hbar {
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
}
.hbar-list--compact .hbar-btn {
  padding: 3px 6px;
  border-radius: 8px;
}
.hbar-list--compact .hbar-name {
  font-size: 16.5px;
}
.hbar-list--compact .hbar-track {
  height: 8px;
}
.hbar-list--compact .hbar-val {
  font-size: 16px;
  min-width: 36px;
}
.flow-side .viz-label {
  margin-bottom: 8px;
}

.hbar {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr auto;
  gap: 12px;
  align-items: center;
}
.hbar-btn {
  width: 100%;
  padding: 8px 8px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.hbar-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(226, 177, 74, 0.35);
  transform: translateY(-1px);
}
.hbar-btn.is-active {
  background: rgba(226, 177, 74, 0.12);
  border-color: rgba(226, 177, 74, 0.55);
}
.hbar-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hbar-name { font-size: 18px; color: var(--ink); }
.hbar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.hbar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 900ms cubic-bezier(.2,.8,.2,1);
}
.hbar-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  text-align: right;
}
.hbar-val {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  min-width: 48px;
  text-align: right;
  color: var(--ink);
}

.vbar-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  min-height: 180px;
  padding-top: 8px;
}

.vbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 180px;
}

.vbar-pct {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.vbar-stem {
  width: 100%;
  max-width: 54px;
  border-radius: 10px 10px 4px 4px;
  height: 0;
  transition: height 900ms cubic-bezier(.2,.8,.2,1);
  position: relative;
}

.vbar-name {
  font-size: 16px;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.3;
  min-height: 2.6em;
}

.donut-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.donut-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 24px;
  width: 100%;
}
.donut-row .legend {
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
}

.who-section .section-head {
  margin-bottom: 14px;
}
.who-section-head {
  grid-template-columns: 1fr;
  gap: 8px;
}
.who-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}
.who-flow .donut-block {
  flex: 0 1 auto;
}
.who-flow .donut-row {
  flex-wrap: nowrap;
  width: auto;
}
.who-flow .who-lifetime {
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}
.who-lifetime .stack-band {
  margin-top: 4px;
}
.lifetime-year-block {
  margin-top: 20px;
}
.who-section .lifetime-year-block {
  margin-top: 16px;
}

.donut-svg { width: 170px; height: 170px; flex-shrink: 0; }
.donut-center-text { fill: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 24px; text-anchor: middle; }
.donut-center-sub { fill: var(--ink-soft); font-family: var(--font); font-size: 14px; text-anchor: middle; letter-spacing: 0.08em; }

.legend {
  display: grid;
  gap: 10px;
}
.legend-item {
  display: grid;
  grid-template-columns: 12px max-content max-content;
  column-gap: 10px;
  align-items: center;
  font-size: 18px;
  white-space: nowrap;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend-pct {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink-soft);
}

.stack-band {
  display: flex;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}
.stack-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 1px;
}
.stack-pct { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.stack-lbl { font-size: 14px; opacity: 0.75; white-space: nowrap; }

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(226,177,74,0.1), transparent 70%);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}

.porthole {
  --ink: #0a1628;
  --ink-soft: rgba(10, 22, 40, 0.72);
  --ink-mute: rgba(10, 22, 40, 0.55);
  --line: rgba(19, 37, 63, 0.14);
  --accent: #0a1628;
  background: rgba(255,255,255,0.97);
  color: #0a1628;
  border-radius: 28px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

.porthole .section-head {
  grid-template-columns: 1fr;
  gap: 8px;
}

.porthole .viz-label { color: rgba(10,22,40,0.72); }
.porthole .section-title { color: var(--navy-deep); }
.porthole .section-copy { color: rgba(10,22,40,0.88); }
.porthole .hbar-name { color: rgba(10,22,40,0.82); }
.porthole .hbar-track { background: rgba(19,37,63,0.08); }
.porthole .hbar-val { color: var(--navy-deep); }
.porthole .hbar-sub { color: rgba(10,22,40,0.55); }
.porthole .note { color: rgba(10,22,40,0.72); }
.porthole .kpi-value { color: #0a1628; }
.porthole .kpi-label { color: rgba(10,22,40,0.82); }
.porthole .kpi-detail { color: rgba(10,22,40,0.62); }
.porthole .kpi-ribbon,
.porthole .kpi-cell { border-color: rgba(19,37,63,0.12); }
.porthole .callout { color: rgba(10,22,40,0.88); }
.porthole table.data th { color: #f4f7fc; background: #0f1d33; }
.porthole table.data td { color: rgba(10,22,40,0.88); border-bottom-color: rgba(19,37,63,0.12); }
.porthole table.data td strong { color: #0a1628; }

.career-pair { align-items: start; margin-top: 32px; }
.career-pair-note { grid-column: 1 / -1; margin-top: 4px; }
.career-pair .hbar {
  grid-template-columns: minmax(108px, 1.2fr) minmax(40px, 0.85fr) auto;
  gap: 8px 10px;
}
.career-pair .hbar-name {
  font-size: 15.5px;
  line-height: 1.25;
  color: rgba(10, 22, 40, 0.88);
}
.career-pair .hbar-val {
  font-size: 16px;
  font-weight: 650;
  text-align: right;
  color: #0a1628;
}
.career-pair .hbar-sub {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(10, 22, 40, 0.55);
  text-align: right;
}

.matrix-wrap { overflow-x: auto; }

.matrix-frame {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: stretch;
}

.matrix-y-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 48px 0 8px;
}

.matrix-plot { min-width: 0; }

.matrix-x-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.matrix-legend-note {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
  font-style: italic;
}

.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
  table-layout: fixed;
}
.matrix th {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  padding: 2px 4px;
}
.matrix th.row-h {
  text-align: right;
  color: var(--ink);
  width: 168px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 17px;
  vertical-align: middle;
  padding-right: 8px;
}
.matrix th.row-h .matrix-axis-label {
  align-items: flex-end;
}
.matrix td {
  text-align: center;
  border-radius: 16px;
  padding: 20px 8px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 30px;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.matrix td.matrix-cell {
  cursor: pointer;
}
.matrix td.matrix-cell:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.matrix td.matrix-cell:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.matrix .cap {
  display: block;
  margin-top: 4px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
}

.split-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.split-stat-wide {
  grid-template-columns: 1fr 1fr;
  max-width: 640px;
  margin-top: 18px;
}
.split-stat-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin-top: 18px;
}
.static-stat { cursor: default; }
.matrix-axis-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}
.matrix thead .matrix-axis-label {
  align-items: center;
  font-size: 19px;
}
.matrix thead .matrix-axis-sub {
  max-width: 150px;
  text-align: center;
}
.matrix-axis-sub {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  max-width: 148px;
}
.matrix-total,
.matrix-total-h {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}
.matrix-totals-row th,
.matrix-totals-row td {
  border-top: 1px solid var(--line);
}

.heat-table-wrap { overflow-x: auto; }
.heat-table th,
.heat-table td {
  text-align: center;
  vertical-align: middle;
}
.heat-table th[scope="row"],
.heat-table thead th:first-child {
  text-align: left;
}
.heat-cell {
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}
.heat-click { cursor: pointer; }
.heat-click:hover { outline: 1px solid rgba(226,177,74,0.55); }
.heat-total {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 600;
}

.year-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 160px;
  margin-bottom: 18px;
}
.year-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.year-bar-stem {
  width: 100%;
  max-width: 36px;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  transition: height 800ms cubic-bezier(.2,.8,.2,1);
}
.year-bar-amt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-soft);
}
.year-bar-lbl {
  font-size: 16px;
  font-weight: 600;
}
.year-bar.is-record .year-bar-lbl { color: var(--gold); }
.record-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.record-year-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(226,177,74,0.06);
}
.record-year-kicker {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.record-year-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0;
}
.record-year-prompt {
  font-size: 17.5px;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}
.split-stat > div,
.stat-btn {
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  text-align: left;
}
.stat-btn {
  cursor: pointer;
  color: inherit;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.stat-btn:hover {
  border-color: rgba(226, 177, 74, 0.45);
  background: rgba(226, 177, 74, 0.08);
  transform: translateY(-1px);
}
.split-stat .big,
.stat-btn .big {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}
.split-stat .lbl,
.stat-btn .lbl {
  margin-top: 6px;
  font-size: 17px;
  color: var(--ink-mute);
}
.stat-hint {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.cov-list { display: grid; gap: 14px; }
.cov-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr 58px;
  gap: 12px;
  align-items: center;
}
.cov-label { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.cov-track-wrap { min-width: 0; }
.cov-track {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.cov-a { background: var(--teal); }
.cov-u { background: var(--coral); }
.cov-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-size: 15.5px;
  font-family: var(--mono);
}
.cov-a-lbl { color: var(--teal); }
.cov-u-lbl { color: #f0a57a; }
.cov-meta {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-mute);
  text-align: right;
}

.cov-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 4px;
}
.cov-section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.cov-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cov-pair-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cov-pair {
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  text-align: left;
}
.cov-pair-label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}
.cov-pair-bars {
  display: grid;
  gap: 10px;
}
.cov-hbar {
  display: grid;
  grid-template-columns: 84px 1fr 36px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 8px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.cov-hbar:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(226, 177, 74, 0.35);
  transform: translateY(-1px);
}
.cov-hbar:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cov-hbar-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cov-hbar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.cov-hbar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 800ms cubic-bezier(.2,.8,.2,1);
}
.cov-hbar-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}
.cov-pair .cov-meta {
  margin-top: 12px;
  text-align: left;
}

.campaign-block {
  margin-top: 36px;
  padding-top: 8px;
}
.campaign-story {
  margin: 8px 0 22px;
}
.campaign-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.campaign-chart-wrap {
  padding: 16px 12px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.campaign-chart {
  width: 100%;
  height: auto;
  display: block;
}
.campaign-legend { margin: 8px 8px 4px; }
.campaign-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.campaign-callout {
  margin-top: 0;
}
.campaign-kpi {
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.campaign-kpi.shortfall {
  border-color: rgba(224, 122, 69, 0.35);
  background: linear-gradient(160deg, rgba(224,122,69,0.12), transparent 70%);
}
.campaign-kpi.upside {
  border-color: rgba(61, 184, 160, 0.35);
  background: linear-gradient(160deg, rgba(61,184,160,0.12), transparent 70%);
}
.campaign-kpi-label {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.campaign-kpi-value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.campaign-kpi-note {
  margin-top: 6px;
  font-size: 17px;
  color: var(--ink-soft);
}
.campaign-assumptions {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--ink-soft);
}
.campaign-assumptions summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-lt);
  list-style: none;
}
.campaign-assumptions summary::-webkit-details-marker { display: none; }
.campaign-assumptions ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.campaign-assumptions li {
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink-mute);
}

@media (max-width: 560px) {
  .campaign-kpi-row {
    grid-template-columns: 1fr;
  }
}

.opp-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.opp-stat {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  min-width: 0;
}
.opp-stat-val {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}
.opp-stat-lbl {
  margin-top: 5px;
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.3;
}

.rank-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.rank-table-head,
.rank-table .rank-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.6fr) minmax(72px, 0.7fr) 72px;
  gap: 8px 10px;
  align-items: center;
  padding: 7px 12px;
}
.rank-table-head {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.rank-table .rank-row {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}
.rank-table .rank-row:last-child { border-bottom: 0; }
.rank-table .rank-row:hover,
.rank-table .rank-row:focus-visible {
  background: rgba(226, 177, 74, 0.08);
  outline: none;
}
.rank-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.rank-num {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}
.rank-name {
  font-weight: 650;
  font-size: 17.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-meta {
  font-size: 15.5px;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-signal {
  font-family: var(--mono);
  font-size: 15.5px;
  color: var(--ink-soft);
}
.rank-ev-val {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  color: var(--teal);
  text-align: right;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rank-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.rank-card:hover {
  border-color: rgba(226, 177, 74, 0.45);
  background: rgba(226, 177, 74, 0.08);
  transform: translateY(-1px);
}
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.rank-ev { text-align: right; }
.rank-ev-lbl {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.health-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.health-card:hover,
.health-card.is-active {
  border-color: rgba(226, 177, 74, 0.5);
  background: rgba(226, 177, 74, 0.08);
  transform: translateY(-1px);
}
.health-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.health-name {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  min-width: 0;
  max-width: 100%;
}
.health-pill {
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  white-space: normal;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--ink-soft);
}
.health-strong .health-pill { background: rgba(61,184,160,0.2); color: var(--teal); }
.health-overloaded .health-pill,
.health-misaligned .health-pill,
.health-reassign .health-pill { background: rgba(224,122,69,0.2); color: #f0a57a; }
.health-underpowered .health-pill { background: rgba(226,177,74,0.2); color: var(--gold-lt); }
.health-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.health-metric-val {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.health-metric-lbl {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.health-comp {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.health-comp > i { display: block; height: 100%; }
.health-note {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.risk-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.risk-chip {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: inherit;
  text-align: left;
  min-width: 0;
}
button.risk-chip {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
button.risk-chip:hover {
  border-color: rgba(224, 122, 69, 0.45);
  background: rgba(224, 122, 69, 0.08);
}
.risk-chip-val {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1;
}
.risk-chip-lbl {
  margin-top: 6px;
  font-size: 16.5px;
  color: var(--ink-mute);
  line-height: 1.35;
}
.risk-chip-hint {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.risk-chip.static .risk-chip-hint { display: none; }

#quiet-hc.is-flash,
#recency-full.is-flash {
  outline: 2px solid rgba(226, 177, 74, 0.65);
  outline-offset: 6px;
  border-radius: 12px;
  transition: outline-color 200ms ease;
}
#quiet-hc,
#recency-full {
  scroll-margin-top: 88px;
}

.quiet-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 16.5px;
  color: var(--ink-mute);
}
.quiet-legend-hint {
  margin-left: auto;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.quiet-list { display: grid; gap: 8px; }
.quiet-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px 14px;
  align-items: center;
}
.quiet-row-btn {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.quiet-row-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(226, 177, 74, 0.35);
}
.quiet-row-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.quiet-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.quiet-track {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.quiet-track > i {
  display: block;
  height: 100%;
}
.quiet-quiet {
  width: 0;
  background: var(--coral);
  transition: width 800ms cubic-bezier(.2,.8,.2,1);
}
.quiet-active {
  background: var(--teal);
  opacity: 0.85;
}
.quiet-caption {
  margin-top: 6px;
  font-size: 16.5px;
  color: var(--ink-mute);
  line-height: 1.35;
}
.quiet-caption-sep {
  margin: 0 4px;
  opacity: 0.5;
}
.quiet-empty {
  font-size: 17px;
  color: var(--ink-mute);
  font-style: italic;
  padding: 4px 0;
}
.quiet-stat {
  text-align: right;
  min-width: 64px;
}
.quiet-stat.muted { opacity: 0.45; }
.quiet-stat-val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.quiet-stat-lbl {
  margin-top: 3px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.stale-hc-list { display: grid; gap: 12px; }
.stale-hc-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.stale-hc-name { font-weight: 600; font-size: 17px; }
.stale-hc-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.stale-hc-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--coral);
  transition: width 800ms cubic-bezier(.2,.8,.2,1);
}
.stale-hc-meta {
  grid-column: 2;
  font-size: 16px;
  color: var(--ink-mute);
  font-family: var(--mono);
}

@media (max-width: 900px) {
  .rank-grid {
    grid-template-columns: 1fr;
  }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 12, 24, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
  animation: rise 200ms ease;
}
.drawer {
  width: min(720px, 100%);
  height: 100%;
  background: linear-gradient(180deg, #102038 0%, #0a1628 100%);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.drawer-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.drawer-count {
  margin-top: 4px;
  font-size: 17px;
  color: var(--ink-soft);
}
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover { background: rgba(255,255,255,0.1); }
.drawer-body {
  padding: 16px 22px 28px;
  overflow: auto;
  flex: 1;
}
.drawer-table { max-height: none; }

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 10px 0 14px;
  font-size: 16.5px;
  color: var(--ink-mute);
}
.stack-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.stack-rows { display: grid; gap: 12px; }
.stack-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.stack-name { font-size: 17px; font-weight: 600; }
.stack-total {
  font-family: var(--mono);
  font-size: 15px;
  text-align: right;
}
.stack-bar {
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.stack-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
}
button.stack-seg-btn {
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}
button.stack-seg-btn:hover {
  filter: brightness(1.08);
  transform: scaleY(1.12);
  z-index: 1;
}
button.stack-seg-btn:focus-visible {
  outline: 2px solid var(--navy-deep);
  outline-offset: -2px;
  z-index: 2;
}
.stack-seg-label {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: rgba(10, 18, 32, 0.88);
  line-height: 1;
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.filters select, .filters input {
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 22, 40, 0.55);
  color: var(--ink);
}

.portfolio-local-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.portfolio-local-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.portfolio-local-filters select {
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 22, 40, 0.55);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
}
.portfolio-filter-note {
  font-size: 17px;
  color: var(--ink);
}

.table-wrap {
  border-radius: 18px;
  overflow: auto;
  max-height: 480px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}
.csv-download {
  appearance: none;
  border: 1px solid rgba(226,177,74,0.45);
  background: rgba(226,177,74,0.1);
  color: var(--gold);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.csv-download:hover {
  background: rgba(226,177,74,0.18);
  border-color: var(--gold);
  color: var(--ink);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 17.5px;
}
table.data th {
  position: sticky;
  top: 0;
  background: #0f1d33;
  color: var(--ink);
  text-align: left;
  padding: 12px 14px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
table.data th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.data th.sortable:hover,
table.data th.sortable.is-sorted {
  color: var(--gold);
}
table.data th.sortable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
table.data td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(226, 177, 74, 0.14);
  border: 1px solid rgba(226, 177, 74, 0.4);
  color: var(--gold-lt);
  font-size: 16.5px;
  font-weight: 600;
}
.filter-clear {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.filter-clear:hover {
  border-color: var(--gold);
  color: var(--gold);
}
table.data tr:hover td { background: rgba(255,255,255,0.03); }
table.data.data-clickable tr.next-assign-row {
  cursor: pointer;
}
table.data.data-clickable tr.next-assign-row:hover td {
  background: rgba(226, 177, 74, 0.08);
}
table.data.data-clickable tr.next-assign-row:focus-visible td {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
table.data td.rank-num {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  width: 36px;
}
.money { font-family: var(--mono); font-size: 16.5px; }
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(126, 182, 232, 0.18);
  color: var(--sky);
}
.pill.p1 { background: rgba(224, 122, 69, 0.2); color: #f0a57a; }
.pill.p2 { background: rgba(226, 177, 74, 0.2); color: var(--gold-lt); }

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.phase {
  padding: 22px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.phase.is-placeholder {
  min-height: 240px;
}
.phase::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.phase-num {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}
.phase h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 14px;
}
.phase ul { padding-left: 18px; display: grid; gap: 9px; }
.phase li { font-size: 18px; color: var(--ink); line-height: 1.45; }

.survey-viz { margin-top: 8px; }

.survey-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 28px;
  align-items: end;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.survey-meta-copy {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 18.5px;
  line-height: 1.55;
  max-width: 40em;
}
.survey-scale-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 16px;
  color: var(--ink-mute);
}
.survey-scale-legend span { display: inline-flex; align-items: center; gap: 6px; }

.likert-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.likert-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "copy score"
    "bars bars";
  gap: 10px 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.likert-copy { grid-area: copy; }
.likert-score { grid-area: score; text-align: right; }
.likert-bars { grid-area: bars; }
.likert-short {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
}
.likert-q {
  font-size: 16.5px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.likert-avg {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.likert-avg-lbl {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.likert-bars { display: grid; gap: 8px; }
.likert-meter-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: visible;
}
.likert-meter-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 800ms cubic-bezier(.2,.8,.2,1);
}
.likert-meter-mark {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 18px;
  margin-left: -1.5px;
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(10,22,40,0.5);
}
.likert-meter-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.likert-dist {
  display: flex;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.likert-dist-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: #0a1628;
  min-width: 0;
}

.survey-lower {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin-top: 28px;
}
.theme-list { display: grid; gap: 12px; }
.theme-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr 28px;
  gap: 10px;
  align-items: center;
}
.theme-label { font-size: 17.5px; color: var(--ink); }
.theme-count {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  color: var(--coral);
}
.quote-list { display: grid; gap: 12px; }
.survey-quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(226,177,74,0.1), transparent 75%);
  border-radius: 0 12px 12px 0;
}
.survey-quote p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.survey-quote footer {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.survey-flow { display: grid; gap: 14px; }
.survey-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.survey-item:last-child { border-bottom: 0; }
.survey-q {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.survey-a { color: var(--ink); font-size: 18.5px; line-height: 1.6; }

.note {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}

.footnote {
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--ink-soft);
  font-style: italic;
}

.gt-glance,
.gt-period-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
}
.gt-period-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-stat,
.gt-period-card {
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.gt-stat-val {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}
.gt-stat-lbl,
.gt-period-range {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gt-period-name {
  font-weight: 700;
  font-size: 20px;
}
.gt-period-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.gt-partial {
  margin-top: 8px;
  font-size: 15px;
  color: var(--coral);
}
.gt-mix-callout {
  margin: 4px 0 16px;
  font-size: 18.5px;
  line-height: 1.5;
  max-width: 52em;
  color: var(--ink-soft);
}
.gt-mix-rows { display: grid; gap: 12px; }
.gt-mix-row {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  gap: 10px 14px;
  align-items: center;
}
.gt-mix-k {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.gt-mix-bar {
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.gt-mix-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #0a1628;
}
.gt-mix-n {
  font-variant-numeric: tabular-nums;
  font-size: 16.5px;
  white-space: nowrap;
}
.gt-mix-legend { margin-top: 12px; }
.gt-th-sub,
.gt-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 2px;
}
.gt-delta-pct { color: var(--ink-mute); font-size: 14px; }
.gt-period-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.gt-period-btn.is-active,
.gt-period-btn:hover {
  border-color: rgba(226, 177, 74, 0.55);
  background: rgba(226, 177, 74, 0.14);
  color: var(--gold-lt);
}
.gt-total-row th,
.gt-total-row td {
  font-weight: 700;
  background: rgba(255,255,255,0.04);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }
  .nav { justify-content: flex-start; }
  .asof { display: none; }
  .story { width: min(var(--max), calc(100% - 28px)); }
  .story-hero,
  .section-head:not(.who-section-head),
  .flow:not(.flow-side):not(.who-flow),
  .phases {
    grid-template-columns: 1fr;
  }
  .flow-side {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  .split-stat:not(.split-stat-wide) {
    grid-template-columns: 1fr;
  }
  .split-stat-wide {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .split-stat-triple {
    grid-template-columns: 1fr;
  }
  .kpi-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cov-pair-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .survey-lower,
  .survey-meta {
    grid-template-columns: 1fr;
  }
  .likert-list {
    grid-template-columns: 1fr 1fr;
  }
  .survey-meta-copy { grid-column: 1; }
}

@media (max-width: 720px) {
  .cov-pair-list {
    grid-template-columns: 1fr;
  }
  .likert-list {
    grid-template-columns: 1fr;
  }
  .flow-side {
    grid-template-columns: 1fr;
  }
  .career-pair {
    grid-template-columns: 1fr 1fr;
  }
  .who-flow .donut-row {
    flex-wrap: wrap;
  }
  .risk-ribbon,
  .opp-strip,
  .gt-glance,
  .gt-period-strip {
    grid-template-columns: 1fr 1fr;
  }
  .quiet-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .quiet-stat { text-align: left; }
  .rank-table-head { display: none; }
  .rank-table .rank-row {
    grid-template-columns: 28px 1fr auto;
  }
  .rank-signal { display: none; }
}

@media (max-width: 560px) {
  .kpi-ribbon {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .kpi-cell:nth-child(2n) { border-right: 0; }
  .kpi-cell:nth-child(n+4) { border-top: 0; }
  .kpi-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .risk-ribbon,
  .opp-strip,
  .gt-glance,
  .gt-period-strip {
    grid-template-columns: 1fr;
  }
  .gt-mix-row {
    grid-template-columns: 1fr;
  }
  .career-pair { grid-template-columns: 1fr; }
}
