/* VA LGY P&L - application styles. Palette tokens follow the dataviz reference palette. */
:root {
  color-scheme: light;
  /* PhoenixTeam brand (phoenixoutcomes.com): orange primary, deep navy, sky-blue accent */
  --brand-orange: #ef6d2f;
  --brand-orange-2: #ff8a2a;
  --brand-navy: #0e1830;
  --brand-sky: #07b0ef;
  --surface: #ffffff;
  --page: #f5f7fa;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --grid: #eaecf0;
  --border: rgba(16, 24, 40, 0.10);
  /* chart series: Phoenix = brand orange (validated slot-2 hue), Blue Bay = validated blue, subs = aqua */
  --series-phx: #ef6d2f;
  --series-bb: #2a78d6;
  --series-sub: #1baf7a;
  --series-4: #eda100;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --good-text: #006300;
  --nav-bg: #0e1830;
  --nav-text: #ffffff;
  --nav-text-2: #a6b1bf;
  --link: #0050bd;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #16213a;
    --page: #0b1226;
    --text: #ffffff;
    --text-2: #c3cad6;
    --muted: #8a94a6;
    --grid: #263251;
    --border: rgba(255, 255, 255, 0.10);
    --series-phx: #f57f45;
    --series-bb: #3987e5;
    --series-sub: #199e70;
    --series-4: #c98500;
    --good-text: #0ca30c;
    --nav-bg: #0a1020;
    --nav-text: #ffffff;
    --nav-text-2: #a6b1bf;
    --link: #7fb4ff;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #16213a;
  --page: #0b1226;
  --text: #ffffff;
  --text-2: #c3cad6;
  --muted: #8a94a6;
  --grid: #263251;
  --border: rgba(255, 255, 255, 0.10);
  --series-phx: #f57f45;
  --series-bb: #3987e5;
  --series-sub: #199e70;
  --series-4: #c98500;
  --good-text: #0ca30c;
  --nav-bg: #0a1020;
  --nav-text: #ffffff;
  --nav-text-2: #a6b1bf;
  --link: #7fb4ff;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", Verdana, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--text-2); }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pos { color: var(--good-text); }
.neg { color: var(--critical); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* layout */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 20px 24px; flex: 1; }
@media (max-width: 899px) { .container { padding: 16px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head .sub { color: var(--text-2); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.stack > * + * { margin-top: 16px; }

/* layout shell: left sidebar + content */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  background: var(--nav-bg); color: var(--nav-text);
  width: 232px; flex: 0 0 232px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 16px 12px; gap: 6px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 0; }
.sidebar .brand { flex: 1; min-width: 0; display: block; }
.sidebar .brand img { display: block; width: 100%; max-width: 168px; height: auto; }
.sidebar .brand:hover { text-decoration: none; }
.sidebar .app-name { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nav-text-2); padding: 8px 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 6px; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--nav-text); padding: 4px; cursor: pointer; border-radius: 6px; }
.nav-toggle:hover { background: rgba(255,255,255,0.10); }
.nav-links { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-links .nav-group { font-size: 10.5px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--nav-text-2); opacity: 0.8; padding: 12px 8px 4px; }
.nav-links a {
  display: block; color: var(--nav-text-2); padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  border-left: 3px solid transparent;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: var(--nav-text); }
.nav-links a.active { color: var(--nav-text); font-weight: 600; background: rgba(255,255,255,0.10); border-left-color: var(--brand-orange); }
.sidebar-user { border-top: 1px solid rgba(255,255,255,0.10); padding: 12px 8px 4px; font-size: 12.5px; color: var(--nav-text-2); }
.sidebar-user .user-name { color: var(--nav-text); font-weight: 600; margin-bottom: 4px; }
.sidebar-user .user-meta { display: flex; align-items: center; gap: 8px; }
.sidebar-user a { color: var(--nav-text); }
.sidebar-user .badge { background: rgba(255,255,255,0.10); color: var(--nav-text); border-color: transparent; }
.sidebar-user .user-version { margin-top: 10px; font-size: 11.5px; opacity: 0.85; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 899px) {
  .shell { display: block; }
  .sidebar { width: auto; flex: none; position: sticky; height: auto; padding: 10px 12px; gap: 0; border-right: 0; z-index: 50; }
  .sidebar .brand img { max-width: 140px; }
  .sidebar .app-name { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links, .sidebar-user { display: none; }
  .sidebar.open .nav-links { display: flex; padding-top: 8px; }
  .sidebar.open .sidebar-user { display: block; }
}
.demo-banner {
  background: var(--warning); color: #0b0b0b; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 16px;
}

/* cards & tiles */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin-bottom: 0; }
.kpi-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.kpi .label { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.kpi .value { font-size: 22px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi .sub .flag { vertical-align: middle; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.table th.num { text-align: right; }
.table tbody tr:last-child td { border-bottom: none; }
.table tfoot td { font-weight: 600; border-top: 2px solid var(--grid); border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--page); }
.table .indent { padding-left: 24px; }
.table td.wrap { white-space: normal; }
.table.compact th, .table.compact td { padding: 4px 6px; }

/* flags and badges */
.flag {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; line-height: 1.6;
  white-space: nowrap; border: 1px solid transparent;
}
.flag::before { font-size: 10px; }
.flag-critical { background: rgba(208, 59, 59, 0.12); color: var(--critical); border-color: rgba(208, 59, 59, 0.3); }
.flag-critical::before { content: "\25CF"; }
.flag-warning { background: rgba(250, 178, 25, 0.16); color: #7a5300; border-color: rgba(250, 178, 25, 0.4); }
.flag-warning::before { content: "\25B2"; }
.flag-good { background: rgba(12, 163, 12, 0.10); color: var(--good-text); border-color: rgba(12, 163, 12, 0.3); }
.flag-good::before { content: "\2713"; }
.flag-info { background: rgba(42, 120, 214, 0.10); color: var(--series-phx); border-color: rgba(42, 120, 214, 0.3); }
.flag-info::before { content: "\2139"; }
:root[data-theme="dark"] .flag-warning { color: var(--warning); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flag-warning { color: var(--warning); } }
.badge {
  display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600;
  background: var(--page); color: var(--text-2); border: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-actual { color: var(--text); }
.badge-forecast { color: var(--muted); border-style: dashed; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot-phx { background: var(--series-phx); }
.dot-bb { background: var(--series-bb); }
.dot-sub { background: var(--series-sub); }

/* controls */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .label { color: var(--text-2); font-size: 13px; margin-right: 4px; }
.toolbar a, .toolbar .pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface);
}
.toolbar a:hover { text-decoration: none; color: var(--text); }
.toolbar a.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.toolbar .spacer { flex: 1; }
.btn {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--page); text-decoration: none; }
.btn-primary { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: #d95f26; border-color: #d95f26; }
.btn-danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.form-row label { min-width: 140px; color: var(--text-2); font-size: 13px; }
.form-row input, .form-row select, .form-row textarea {
  padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; min-width: 0;
}
.form-row input[type="number"] { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.form-row .hint { font-size: 12px; color: var(--muted); }
input:focus, select:focus, textarea:focus, .btn:focus { outline: 2px solid var(--series-phx); outline-offset: 1px; }

/* charts */
.chart { position: relative; height: 260px; width: 100%; }
.chart canvas { width: 100% !important; height: 100% !important; }
.chart-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* compliance strip */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; }
.strip .cell {
  border-radius: 6px; padding: 6px 4px; text-align: center; font-size: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.strip .cell .m { display: block; font-size: 11px; color: var(--text-2); }
.strip .cell .v { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.strip .cell.good { border-color: rgba(12, 163, 12, 0.5); background: rgba(12, 163, 12, 0.08); }
.strip .cell.bad { border-color: rgba(208, 59, 59, 0.6); background: rgba(208, 59, 59, 0.10); }
.strip .cell.forecast { border-style: dashed; }
.strip .cell.empty { color: var(--muted); }

/* definition lists */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 13px; }
.dl dt { color: var(--text-2); }
.dl dd { margin: 0; }

/* statement */
.statement { max-width: 860px; margin: 0 auto; }
.statement .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 8px; margin-bottom: 16px; }
.statement .total td { font-weight: 700; border-top: 2px solid var(--text); }
.print-only { display: none; }
@media print {
  .no-print, .sidebar, .demo-banner { display: none !important; }
  .shell { display: block; }
  .print-only { display: block; }
  body { background: #fff; color: #000; font-size: 12px; }
  .card { border: none; box-shadow: none; padding: 0; }
  .container { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
}

/* login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--brand-navy); background-image: radial-gradient(circle at 20% 10%, rgba(239,109,47,0.18), transparent 45%), radial-gradient(circle at 85% 90%, rgba(7,176,239,0.14), transparent 45%); }
.login-wrap { width: 100%; max-width: 380px; }
.login-brand { text-align: center; margin-bottom: 18px; }
.login-brand img { height: 34px; width: auto; }
.login-card { width: 100%; max-width: 380px; }
.login-card .form-row { flex-direction: column; align-items: stretch; }
.login-card .form-row label { min-width: 0; }
.login-card input { width: 100%; }
.error { color: var(--critical); font-size: 13px; margin-bottom: 8px; }
.notice { background: var(--page); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--text-2); }
.notice code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--text); }

/* misc */
.legend-inline { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.footnote { font-size: 12px; color: var(--muted); margin-top: 8px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* flash messages */
.flashes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.flash { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.flash-success { border-left: 4px solid var(--good); }
.flash-error { border-left: 4px solid var(--critical); }
.flash-info { border-left: 4px solid var(--brand-sky); }

/* footer */
.footer { width: 100%; max-width: 1400px; margin: 24px auto 24px; padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--grid); }
.footer a { color: var(--text-2); font-weight: 600; }

/* rendered methodology document */
.doc { max-width: 900px; line-height: 1.6; }
.doc h1 { font-size: 24px; margin: 0 0 12px; }
.doc h2 { font-size: 18px; margin: 28px 0 10px; padding-top: 12px; border-top: 1px solid var(--grid); color: var(--text); }
.doc h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.doc p, .doc li { font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 13px; }
.doc th, .doc td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.doc th { color: var(--text-2); font-weight: 600; background: var(--page); }
.doc pre, .doc code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.doc pre { background: var(--page); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.doc hr { border: 0; border-top: 1px solid var(--grid); margin: 20px 0; }

/* floating chat widget */
.chat-widget { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-orange); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px 10px 12px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 6px 18px rgba(16,24,40,0.22); }
.chat-toggle:hover { background: #d95f26; }
.chat-panel { width: min(420px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 40px rgba(16,24,40,0.28); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px; background: var(--brand-navy); color: #fff; }
.chat-head .muted { color: #a6b1bf; }
.chat-head-actions { display: flex; gap: 6px; }
.chat-icon { background: rgba(255,255,255,0.10); color: #fff; border: 0; border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.chat-icon:hover { background: rgba(255,255,255,0.2); }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--page); }
.chat-msg { max-width: 92%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.chat-msg.q { align-self: flex-end; background: var(--brand-orange); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.a { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.a .table-wrap { margin-top: 8px; max-height: 220px; overflow: auto; }
.chat-msg.a table { font-size: 12px; }
.chat-msg.a details { margin-top: 6px; }
.chat-msg.a summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.chat-msg.a .how { color: var(--text-2); font-size: 12px; margin-top: 4px; }
.chat-msg.a a { font-size: 12px; }
.chat-examples { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.chat-examples button { background: var(--page); border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.chat-examples button:hover { border-color: var(--brand-orange); color: var(--text); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--grid); }
.chat-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 999px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.chat-form .btn { padding: 8px 14px; }
@media (max-width: 600px) { .chat-toggle span { display: none; } .chat-toggle { padding: 12px; } }
@media print { .chat-widget { display: none !important; } }

/* top bar: login information only */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; background: var(--surface); border-bottom: 1px solid var(--grid); min-height: 44px; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.topbar-user .user-name { font-weight: 600; color: var(--text); }
.btn-small { padding: 4px 12px; font-size: 12px; }
@media (max-width: 899px) { .topbar { padding: 6px 12px; } .topbar-user .user-name { display: none; } }

/* what-if layout: assumptions across the top, comparison below */
.whatif-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .whatif-grid { grid-template-columns: 1fr 1fr 1.3fr; } }
.whatif-block { border: 1px solid var(--grid); border-radius: 10px; padding: 10px 14px 12px; margin: 0; min-width: 0; }
.whatif-block legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.whatif-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.whatif-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.whatif-fields input, .whatif-fields select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.whatif-fields .whatif-eps { grid-column: 1 / -1; }
.whatif-actions { margin-top: 12px; align-items: center; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-phx { background: var(--series-phx); } .dot-bb { background: var(--series-bb); } .dot-sub { background: var(--series-sub); }
.table.compare td:first-child { width: 42%; }
.table.compare tr.section td { background: var(--page); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }

.demo-banner.live { background: var(--brand-sky); color: #06202b; }

/* EP scope toggle and unfunded styling */
.scope-toggle { display: inline-flex; align-items: center; gap: 4px; }
.scope-toggle a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: 12px; }
.scope-toggle a.on { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.unfunded, .unfunded a { font-style: italic; color: var(--text-2); }
.badge-unfunded { background: #fff3e6; color: #8a3b00; border: 1px solid #f2c9a6; border-radius: 6px; padding: 1px 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-style: normal; }
.placeholder-red, .flag-placeholder { color: var(--critical); font-weight: 600; }

/* TBD (unfilled position) estimates: violet, distinct from red placeholders and from unfunded italics */
.tbd, .tbd a, .tbd td { color: #4a3aa7; }
.badge-tbd { background: #ede9fb; color: #4a3aa7; border: 1px solid #c9c0f2; border-radius: 6px; padding: 1px 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-style: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbd, :root:not([data-theme="light"]) .tbd a, :root:not([data-theme="light"]) .tbd td { color: #9085e9; } }

.people-row td { background: var(--page); padding: 6px 10px 10px; }
.people-row .table { margin: 0; }
.toggle-people { background: var(--page); color: var(--text-2); border: 1px solid var(--border); }
