/* vfc-dispatch (VFC-1792) - the signed-in pages, in the blessed VFC web style that senate uses
 * (senate web/src/styles.css, from the fact-finder theme): olive-green ink and header, copper and sand,
 * a cream page, white panels, Public Sans. Light only, as senate is.
 *   green-900 #272b21 (ink, header)  sage #8d957e  copper #aa6230 (primary)  sand #ddac8a  cream #f5f1ef
 *
 * Nobody is ranked. A huddle arrow is green when the number is better than the average and red when it
 * is worse, by the metric's direction (the product owner, 2026-10-09); any check-in missed is red. The
 * arrow and its title carry the same meaning in words, so colour is never the only signal.
 * The chart series colours are the validated categorical slots (--s1 to --s6), not brand colours. */
:root {
  --bg: #f5f1ef;
  --panel: #ffffff;
  --ink: #272b21;
  --muted: #6b6f60;
  --line: #e7ded7;
  --brand: #aa6230;
  --brand-hover: #bb7f55;
  --brand-ink: #ffffff;
  --header: #272b21;
  --header-ink: #f5f1ef;
  --sand: #ddac8a;
  --sage: #8d957e;
  --side: #efe9e5;
  --tint: #faf7f4;
  --note-bg: #fdf3e8;
  --note-line: #f0dcc4;
  --note-ink: #8a5a24;
  --radius: 10px;
  /* better / worse on the huddle: AA on white (5.1:1 and 6.5:1) */
  --good: #2e7d43;
  --bad: #b3261e;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #4a3aa7;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 13px; }
[hidden] { display: none !important; }

/* ── the shell: top bar, sidebar, content, footer ─────────────────────────── */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 28px; background: var(--header); color: var(--header-ink); box-shadow: 0 1px 0 rgba(0,0,0,0.18);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--header-ink); }
.brand:hover { text-decoration: none; color: var(--header-ink); }
.brand:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 4px; }
.brand__seal { display: block; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(221,172,138,0.35); }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: 0.3px; }
.brand__sub { font-size: 14px; font-weight: 500; color: var(--sand); }
.topbar__right { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* the dev "view as" switcher and the account, on the dark bar */
.actor__tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700;
  color: #1f2218; background: var(--sand); padding: 2px 7px; border-radius: 999px;
}
.topbar__right select {
  padding: 5px 8px; border: 1px solid #4a4e40; border-radius: 6px; font: inherit; font-size: 13px;
  background: #33372b; color: var(--header-ink); max-width: 320px;
}
.actor__email { color: var(--header-ink); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the acting-as strip: prominent and honest while a test view is on */
.imp-banner {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 9px 28px; background: #8a1c1c; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.2px;
}
.imp-banner__stop {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #8a1c1c; background: #fff; border: 0; border-radius: 6px; padding: 3px 12px;
}
.imp-banner__stop:hover { background: #ffe9e9; }

.shell { flex: 1; display: flex; align-items: stretch; width: 100%; }
.sidebar { flex: 0 0 200px; padding: 22px 10px 22px 18px; background: var(--side); border-right: 1px solid var(--line); }
.sidebar__group + .sidebar__group { margin-top: 20px; }
.sidebar__title { margin: 0 0 6px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.sidebar__list { list-style: none; margin: 0; padding: 0; }
.sidebar__link { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.sidebar__link:hover { background: #e6ddd6; color: var(--ink); text-decoration: none; }
.sidebar__link:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.sidebar__link--on { background: var(--panel); color: var(--brand); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.content { flex: 1; min-width: 0; max-width: 1480px; padding: 28px 28px 40px; }
.footer { padding: 20px 24px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { flex: none; display: flex; gap: 16px; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar__group + .sidebar__group { margin-top: 0; }
  .sidebar__title { display: none; }
  .sidebar__list { display: flex; gap: 2px; }
  .sidebar__link { white-space: nowrap; }
  .content { padding: 20px 16px 32px; }
}

/* ── buttons and inputs ──────────────────────────────────────────────────── */
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
.btn-primary {
  padding: 10px 18px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: var(--brand-ink);
  font-weight: 600; transition: background 0.12s ease, border-color 0.12s ease;
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; transition: border-color 0.12s ease, color 0.12s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--tint); box-shadow: inset 0 -2px 0 var(--brand); }
.btn-on-dark { background: transparent; border-color: #4a4e40; color: var(--header-ink); }
.btn-on-dark:hover { border-color: var(--sand); color: var(--sand); }
select, input[type="date"], input[type="text"], input[type="number"], textarea {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px;
  transition: border-color 0.12s ease;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

/* ── page states, headings, notices ──────────────────────────────────────── */
.state {
  max-width: 520px; margin: 48px auto; text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(39,43,33,0.05);
}
.state h1 { margin: 0 0 8px; font-size: 24px; }
.state .btn-primary { margin-top: 10px; }
.heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.heading h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.notice { background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-ink); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; }

.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── the weekly goals panel ──────────────────────────────────────────────── */
.goals {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(39,43,33,0.05); margin-bottom: 18px;
}
.goals-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.goals h2 { font-size: 16px; font-weight: 700; margin: 0; }
.goals-text { white-space: pre-wrap; margin: 10px 0 4px; }
.goals textarea { width: 100%; margin: 10px 0; resize: vertical; line-height: 1.5; }
.goals-actions { display: flex; align-items: center; gap: 8px; }
.goals .muted { margin: 6px 0 0; }

/* ── stat tiles (senate's dashboard kit) ─────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .label { font-size: 13.5px; font-weight: 600; }
.tile .value { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--brand); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nodata { color: var(--muted); font-style: italic; font-weight: 400; }
.tile .value.nodata { font-size: 15px; padding-top: 8px; color: var(--muted); }

/* ── tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(39,43,33,0.05); }
table.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
table.grid th, table.grid td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; vertical-align: top; }
table.grid th:first-child, table.grid td:first-child { text-align: left; }
table.grid thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); font-weight: 600; background: var(--panel); white-space: normal; vertical-align: bottom; min-width: 64px; }
table.grid tbody tr:hover { background: var(--tint); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tfoot td { font-weight: 700; background: #f3eee9; border-top: 1px solid var(--line); border-bottom: 0; }
td .num { font-variant-numeric: tabular-nums; font-weight: 600; }
td .marks { display: block; font-size: 11px; color: var(--muted); }
td .marks .mark + .mark { margin-left: 8px; }
td .marks .arrow { display: inline-block; width: 12px; height: 12px; vertical-align: -1.5px; }
.mark .arrow { color: var(--muted); }
.mark--better .arrow { color: var(--good); }
.mark--worse .arrow { color: var(--bad); }
.num.alert, .tile .value.alert { color: var(--bad); }
td.due { background: #f8f3ee; }
td.flag { text-align: left; }
td.flag input { width: 180px; margin-right: 6px; padding: 4px 8px; }
td.flag button { margin-right: 4px; }
tr.flagged td { background: var(--note-bg); }
tr.people td { color: var(--muted); font-size: 11.5px; }
.legend-line { font-size: 12.5px; color: var(--muted); margin: 10px 2px 18px; }
.sources { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.sources span { margin-right: 14px; }

/* ── trends: one metric at a time, then its numbers ──────────────────────── */
.metric-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.metric-picker .btn-ghost { padding: 7px 14px; font-size: 13.5px; }
.trend { display: flex; flex-direction: column; gap: 14px; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 12px; position: relative; box-shadow: 0 2px 10px rgba(39,43,33,0.05); }
.chart h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: #efe9e4; stroke-width: 1; }
.chart .baseline { stroke: #d9d1c9; stroke-width: 1; }
.chart .cross { stroke: #b9b0a6; stroke-width: 1; }
.chart .endlabel { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.chart .floor { stroke-dasharray: 6 4; opacity: 0.9; }
.chart__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.chart__head h2 { margin: 0; }
/* pick one line out: the rest step back */
.chart .line path { transition: opacity 0.12s ease, stroke-width 0.12s ease; }
.chart--focus .line:not(.line--hot) path, .chart--focus .line:not(.line--hot) circle { opacity: 0.28; }
.chart .line--hot path:not([fill]), .chart .line--hot path[fill="none"] { stroke-width: 3; }
.chart .line--context.line--hot path[fill="none"] { stroke: var(--ink); stroke-width: 2.25; }
/* the team chips: which teams take a colour when there are too many for one each */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.chips__hint { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500;
}
.chip:hover { border-color: var(--brand); }
.chip--on { border-color: #cdbfb2; background: var(--tint); font-weight: 600; }
.chip__key { width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px #cbc2b8; }
.chip--on .chip__key { box-shadow: none; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.panel-head__value { font-size: 14.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.multiples { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 2px 10px rgba(39,43,33,0.05); }
.multiples__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.multiples__head h2 { font-size: 17px; font-weight: 700; margin: 0; }
.multiples__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink); margin: 0 0 12px; }
.legend .sw, .numbers .sw { display: inline-block; width: 14px; height: 0; border-top: 3px solid; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; box-shadow: 0 6px 20px rgba(39,43,33,0.14); white-space: nowrap; z-index: 3; min-width: 200px; }
.tip .k { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.tip__row { display: flex; align-items: baseline; gap: 8px; padding: 1px 0; }
.tip__key { flex: none; width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.tip__name { flex: 1; color: var(--ink); }
.tip__key--grey { background: #cbc2b8; }
.tip__row--hot { font-weight: 700; background: var(--tint); margin: 0 -6px; padding: 1px 6px; border-radius: 4px; }
.tip__row b { font-variant-numeric: tabular-nums; }
.tip__extra { color: var(--muted); font-size: 12px; }
.numbers table.grid { table-layout: fixed; }
.numbers table.grid th { white-space: normal; }
.numbers table.grid th:first-child, .numbers table.grid td:first-child { width: 170px; }
.numbers td .sub, .numbers td .period { display: block; }
.numbers td .period { font-weight: 600; }
.numbers td .sub { font-size: 11.5px; color: var(--muted); white-space: normal; }

/* ── the team floors editor (management) ─────────────────────────────────── */
details.floors { margin-top: 20px; }
details.floors summary { cursor: pointer; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
table.floors-grid input { width: 84px; text-align: right; padding: 4px 6px; }

/* ── the ViewOne layout (2026-10-12): page heads, sections, stat tiles, cards ─────────────────────
 * The information shape of the ViewOne Comms hub (the MVP), in the VFC style above. The featured
 * tile is dark, as ViewOne has it. Charts sit in white cards with a Chart / Data switch and an
 * "inspect" slider that moves a readout of one period. */
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; }
.pagehead h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.pagehead__sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pagehead__sub:first-of-type { font-size: 15.5px; color: var(--ink); }
.pagehead__right { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pagehead .controls { margin: 0; }
.page-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.page-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
a.btn-ghost { display: inline-block; }
a.btn-ghost:hover { text-decoration: none; }

.weekpick { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.weekpick .btn-ghost { border: 0; padding: 5px 9px; font-size: 11px; }
.weekpick .btn-ghost:disabled { opacity: 0.35; cursor: default; }
.weekpick__label { font-size: 13.5px; font-weight: 600; padding: 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.weekpick input[type="date"] { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 4px 8px; font-size: 13px; }

details.defs { margin: 0 0 18px; font-size: 13.5px; }
details.defs summary { cursor: pointer; color: var(--muted); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; width: max-content; }
details.defs[open] { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
details.defs dl { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 6px 18px; margin: 12px 0; }
details.defs dt { font-weight: 600; }
details.defs dd { margin: 0; color: var(--muted); }

.section-head { display: flex; align-items: center; gap: 14px; margin: 26px 0 12px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.section-head__rule { flex: 1; height: 1px; background: #ddd3ca; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(39,43,33,0.05);
}
.stats--narrow { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stat { padding: 18px 20px 20px; border-right: 1px solid var(--line); min-height: 128px; display: flex; flex-direction: column; }
.stat:last-child { border-right: 0; }
.stat__label { font-size: 13px; color: var(--muted); }
.stat__value { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 18px 0 10px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat__value--nodata { font-size: 15px; font-weight: 400; font-style: italic; color: var(--muted); margin-top: 24px; }
.stat__value.alert { color: var(--bad); }
.stat__unit { font-size: 13px; font-weight: 500; margin-left: 5px; color: var(--muted); }
.stat__sub { font-size: 12.5px; color: var(--ink); }
.stat__sub + .stat__sub { color: var(--muted); margin-top: 3px; }
.stat--featured { background: var(--header); color: var(--header-ink); }
.stat--featured .stat__label { color: var(--sand); }
.stat--featured .stat__value, .stat--featured .stat__sub { color: var(--header-ink); }
.stat--featured .stat__unit, .stat--featured .stat__sub + .stat__sub { color: #c9c4bb; }
.delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; width: max-content; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #f1ece7; color: var(--muted); }
.delta .arrow { width: 11px; height: 11px; }
.delta--better { background: #e7f2ea; color: var(--good); }
.delta--worse { background: #f9e6e4; color: var(--bad); }
.stat--featured .delta { background: rgba(255,255,255,0.12); color: var(--header-ink); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; box-shadow: 0 2px 10px rgba(39,43,33,0.05); margin-bottom: 18px; min-width: 0; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card__head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.card__kicker { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.card__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.card .chart { border: 0; box-shadow: none; padding: 0; }
.card__table { box-shadow: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 0 18px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split--one { grid-template-columns: minmax(0, 1fr); }
.split--roster { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .split, .split--roster { grid-template-columns: minmax(0, 1fr); } .card-grid { grid-template-columns: minmax(0, 1fr); } }

.seg { display: inline-flex; background: #f1ece7; border-radius: 8px; padding: 3px; }
.seg__btn { border: 0; background: transparent; padding: 5px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg__btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(39,43,33,0.12); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 18px; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.tabs__btn { white-space: nowrap; border: 0; background: none; padding: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__btn[aria-pressed="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.legend .dot, .readout .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.inspect { display: flex; align-items: center; gap: 14px; margin: 10px 0; font-size: 12.5px; }
.inspect__label { color: var(--muted); white-space: nowrap; }
.inspect__range { flex: 0 1 160px; accent-color: var(--brand); }
.inspect .muted { margin-left: auto; }
.readout { background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.readout__when { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.readout__vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 24px; }
.readout__key { display: block; font-size: 12px; color: var(--muted); }
.readout__val b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.bars { display: grid; gap: 10px; margin-top: 8px; }
.bars__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bars__row:hover { text-decoration: none; color: var(--brand); }
.bars__name { font-size: 13.5px; }
.bars__value { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars__track { grid-column: 1 / -1; height: 4px; background: #efe9e4; border-radius: 2px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--sage); border-radius: 2px; }

.load { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.load__cell { border-left: 1px solid var(--line); padding: 2px 0 4px 14px; }
.load__cell:first-child { border-left: 0; padding-left: 0; }
.load__label { font-size: 13px; color: var(--muted); min-height: 36px; }
.load__value { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.load__value.alert { color: var(--bad); }
.capability__value { font-size: 40px; font-weight: 600; line-height: 1.1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.capability p { margin: 0 0 6px; }

.teamchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.teamchip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink); }
.teamchip:hover { border-color: var(--brand); }
.teamchip[aria-pressed="true"] { background: var(--header); color: var(--header-ink); border-color: var(--header); }
.roster-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.roster-tools input { flex: 1; max-width: 360px; }
.roster, .people { max-height: 560px; overflow-y: auto; }
.roster thead th, .people thead th { position: sticky; top: 0; z-index: 1; }
button.sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; text-align: inherit; }
.sort__mark { opacity: 0.5; }
tr.row--group td { background: #f3eee9; font-weight: 600; }
tr.row--section td { background: var(--tint); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.callout { border-left: 3px solid var(--brand); padding: 6px 0 6px 14px; margin: 26px 0 0; font-size: 14px; }
