/* === Retirement Savings tracker — design tokens === */
:root {
  /* Warm cream / navy / restrained accents — Pew-adjacent editorial */
  --bg:           oklch(0.975 0.008 82);
  --surface:      #fefdf9;
  --surface-2:    oklch(0.955 0.01 82);
  --surface-3:    oklch(0.93 0.012 82);
  --border:       oklch(0.86 0.012 82);
  --border-strong:oklch(0.74 0.02 82);
  --rule:         oklch(0.9 0.012 82);

  --ink:          oklch(0.20 0.025 252);
  --ink-2:        oklch(0.34 0.025 252);
  --ink-mute:     oklch(0.5 0.015 90);
  --ink-faint:    oklch(0.62 0.012 90);

  --navy:         oklch(0.34 0.085 252);
  --navy-2:       oklch(0.45 0.075 252);
  --navy-soft:    oklch(0.62 0.06 252);
  --navy-bg:      oklch(0.94 0.025 252);

  --accent:       oklch(0.56 0.12 52);   /* warm ochre */
  --accent-bg:    oklch(0.95 0.04 60);

  /* RAG — restrained */
  --green:        oklch(0.52 0.12 148);
  --green-bg:     oklch(0.94 0.045 148);
  --yellow:       oklch(0.62 0.14 78);
  --yellow-bg:    oklch(0.95 0.055 82);
  --red:          oklch(0.53 0.18 26);
  --red-bg:       oklch(0.94 0.045 26);

  /* Firmness */
  --firm-locked:    var(--ink);
  --firm-quoted:    var(--ink-2);
  --firm-estimated: var(--ink-mute);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r-sm: 3px;
  --r:    5px;
  --r-lg: 8px;

  --shadow-card: 0 1px 0 rgba(35,40,55,.04), 0 1px 2px rgba(35,40,55,.04);
  --shadow-pop:  0 8px 28px -8px rgba(20,28,55,.18), 0 2px 6px rgba(20,28,55,.06);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; color: var(--ink); margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--navy-bg); }

/* === Layout shell === */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 100%;
  min-height: 760px;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 0 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar__brand { padding: 0 20px 18px; border-bottom: 1px solid var(--rule); }
.sidebar__brand-eyebrow { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; }
.sidebar__brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 6px; letter-spacing: -.012em; }
.sidebar__brand-sub  { font: 500 11px/1.3 var(--mono); color: var(--ink-mute); margin-top: 6px; }

.sidebar__section { padding: 14px 12px 4px; font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; }
.nav { display: flex; flex-direction: column; padding: 2px 8px; gap: 1px; }
.nav__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
  border-radius: var(--r);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -.003em;
}
.nav__item:hover { background: var(--surface-2); color: var(--ink); }
.nav__item--active { background: var(--navy); color: white; }
.nav__item--active:hover { background: var(--navy); }
.nav__count { font: 500 11px/1 var(--mono); color: var(--ink-faint); padding: 2px 6px; background: var(--surface-2); border-radius: 99px; }
.nav__item--active .nav__count { color: rgba(255,255,255,.85); background: rgba(255,255,255,.13); }

.sidebar__spacer { flex: 1; }
.sidebar__foot { padding: 12px 20px; border-top: 1px solid var(--rule); font: 500 11px/1.4 var(--mono); color: var(--ink-mute); }
.sidebar__foot-row { display: flex; justify-content: space-between; align-items: center; }
.sidebar__foot-row + .sidebar__foot-row { margin-top: 6px; }
.dot-live { width: 6px; height: 6px; border-radius: 99px; background: var(--green); display: inline-block; margin-right: 5px; vertical-align: 2px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; background: var(--bg); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.topbar__title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.topbar__sub  { font: 500 11px/1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .14em; margin-top: 4px; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.fy-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--r-sm);
  font: 500 11px/1 var(--mono); color: var(--ink-2); background: var(--surface);
}
.fy-pill__chev { color: var(--ink-mute); font-size: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 12px;
}
.btn:hover { background: var(--surface-2); }
.btn--primary { background: var(--navy); color: white; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.content { padding: 22px 28px 40px; flex: 1; min-width: 0; }
.content--narrow { max-width: 1180px; margin: 0 auto; }

/* === Cards === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.card--flat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.card__head h3 { font-size: 14px; font-weight: 600; }
.card__head-eyebrow { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; }
.card__body { padding: 14px 16px; }

/* === Primitives === */
.rag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
}
.rag__dot { width: 8px; height: 8px; border-radius: 99px; }
.rag--green .rag__dot { background: var(--green); }
.rag--yellow .rag__dot { background: var(--yellow); }
.rag--red .rag__dot { background: var(--red); }
.rag--green { color: var(--green); }
.rag--yellow { color: var(--yellow); }
.rag--red { color: var(--red); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font: 500 11px/1.5 var(--mono);
  color: var(--ink-2);
  background: var(--surface);
  white-space: nowrap;
}
.chip--soft { background: var(--surface-2); border-color: transparent; color: var(--ink-2); }
.chip--navy { background: var(--navy-bg); color: var(--navy); border-color: transparent; }
.chip--accent { background: var(--accent-bg); color: var(--accent); border-color: transparent; }
.chip--green { background: var(--green-bg); color: var(--green); border-color: transparent; }
.chip--yellow { background: var(--yellow-bg); color: var(--yellow); border-color: transparent; }
.chip--red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.chip--ghost { border-color: var(--border); background: transparent; }
.chip__dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .65; }

.eyebrow { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; }
.section-title { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.012em; }
.section-sub { color: var(--ink-mute); font-size: 12px; margin-top: 3px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 12px; }

.kbd { font: 500 10px/1 var(--mono); padding: 2px 5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-mute); background: var(--surface); }

/* progress bar */
.prog { position: relative; width: 100%; height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.prog__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 99px; }
.prog__target { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--ink-2); }
.prog--green .prog__fill { background: var(--green); }
.prog--yellow .prog__fill { background: var(--yellow); }
.prog--red .prog__fill { background: var(--red); }

/* === Overview hero === */
.hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 6px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.hero__top { display: flex; flex-direction: column; }
.hero__lede { font-family: var(--serif); font-size: 28px; line-height: 1.18; font-weight: 500; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.hero__lede em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow-bg) 62%, var(--yellow-bg) 92%, transparent 92%); padding: 0 2px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero__meta-item { min-width: 0; }
.hero__meta-item .eyebrow { display: block; }
.hero__meta-item-value { font: 500 13px/1.3 var(--mono); color: var(--ink-2); margin-top: 5px; }

/* === KPI groups === */
.hero__kpis {
  display: grid;
  grid-template-columns: 1.05fr .82fr .82fr;
  gap: 0;
  position: relative;
}
.kpi-group + .kpi-group {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.kpi-group:not(:last-child) {
  padding-right: 24px;
}
@media (max-width: 1200px) {
  .hero__kpis { grid-template-columns: 1fr; gap: 18px; }
  .kpi-group + .kpi-group { padding-left: 0; border-left: 0; }
  .kpi-group:not(:last-child) { padding-right: 0; }
}
.kpi-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi-group__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
}
.kpi-group__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.kpi-group__cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kpi {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.kpi__label { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; }
.kpi__value { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.kpi__value sup { font-size: 13px; color: var(--ink-mute); font-weight: 500; margin-left: 2px; }
.kpi__delta { font: 500 11px/1 var(--mono); color: var(--ink-mute); }
.kpi__delta--up { color: var(--green); }
.kpi__delta--down { color: var(--red); }

/* === Twin centerpieces === */
.twin {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 28px;
  align-items: start;
}
.twin > .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.twin > .card > .card__head { flex: 0 0 auto; }
.twin > .card .milestone-rollup {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

/* === Map === */
.map-card { display: flex; flex-direction: column; }
.map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 12px;
  border-bottom: 1px solid var(--rule);
}
.map-toolbar__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.map-toolbar__title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.map-toolbar__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 500 11px/1.2 var(--mono);
  color: var(--ink-mute);
}
.legend-row-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.legend-row-group__label {
  min-width: 70px;
  font-weight: 500;
}
.map-toolbar__title { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; vertical-align: -3px; margin-right: 5px; border: 1px solid rgba(0,0,0,.05); }
.legend-row { display: flex; align-items: center; gap: 6px; }

.us-map { padding: 12px 8px 4px; flex: 1; }
.us-map svg { width: 100%; height: auto; display: block; }
.us-state {
  cursor: pointer;
  transition: filter .12s ease, transform .12s ease;
  outline: none;
}
.us-state__label { font: 500 10px/1 var(--mono); fill: var(--ink-2); pointer-events: none; user-select: none; }
.us-state__label--light { fill: rgba(255,255,255,.92); }
.us-state:hover .us-state__shape { filter: brightness(0.94) drop-shadow(0 1px 2px rgba(0,0,0,.12)); }
.us-state--active .us-state__shape { stroke: var(--ink); stroke-width: 1.7; }

/* legislative-activity overlays */
.overlay-hatch { fill: url(#hatch-active); opacity: .75; pointer-events: none; }
.overlay-ring  { stroke: var(--accent); stroke-width: 1.3; fill: none; pointer-events: none; }
.overlay-dot   { fill: var(--accent); pointer-events: none; }

/* tooltip */
.map-tip {
  position: absolute; background: white; border: 1px solid var(--border); border-radius: var(--r);
  padding: 8px 10px; pointer-events: none; box-shadow: var(--shadow-pop);
  font-size: 12px; min-width: 160px; z-index: 20;
}
.map-tip__hd { font-weight: 600; font-size: 13px; }
.map-tip__row { display: flex; gap: 8px; font-size: 11px; color: var(--ink-mute); margin-top: 4px; }

/* === Milestone rollup === */
.milestone-rollup { overflow-y: auto; }
.milestone-row {
  display: grid; grid-template-columns: 16px 1fr auto;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .1s ease;
}
.milestone-row:hover { background: var(--surface-2); }
.milestone-row:last-child { border-bottom: 0; }
.milestone-row__glyph { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); padding-top: 1px; }
.milestone-row__main { min-width: 0; }
.milestone-row__title { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.005em; line-height: 1.3; }
.milestone-row__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.milestone-row__rationale {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 2px solid var(--yellow);
  background: var(--yellow-bg);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.45;
  border-radius: 0 3px 3px 0;
}
.milestone-row__rationale.is-red { border-color: var(--red); background: var(--red-bg); }
.milestone-row__rationale strong { font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); display: block; margin-bottom: 4px; }
.milestone-row__counts {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  text-align: right;
  min-width: 80px;
}
.milestone-row__counts-num { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; color: var(--ink); }
.milestone-row__counts-num span { font-size: 12px; color: var(--ink-mute); font-weight: 500; }
.milestone-row__counts-label { font: 500 10px/1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .12em; }
.milestone-row__counts .rag { margin-top: 4px; }
.milestone-row__bar { margin-top: 8px; }

/* === Exceptions === */
.exceptions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.exc-col__head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 10px; }
.exc-col__head h3 { font-size: 14px; font-weight: 600; font-family: var(--serif); }
.exc-col__head .exc-glyph {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--mono);
  border-radius: 4px;
}
.exc-col__head--risk .exc-glyph    { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.exc-col__head--won  .exc-glyph    { background: var(--green); color: white; border: 1px solid var(--green); }
.exc-col__head--blocked .exc-glyph { background: transparent; color: var(--ink-mute); border: 1px dashed var(--border-strong); }
.exc-col__items { display: flex; flex-direction: column; gap: 8px; }
.exc-item { padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.exc-item__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.exc-item__title { font-weight: 600; font-size: 13px; color: var(--ink); }
.exc-item__date { font: 500 11px/1 var(--mono); color: var(--ink-faint); white-space: nowrap; }
.exc-item__body { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.exc-item__meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* === Timeline === */
.timeline-card { padding: 14px 18px 18px; }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 16px; }

/* Chart area: labels in a 130px gutter, plot area takes the rest */
.tl-chart {
  position: relative;
  --tl-gutter: 138px;
  padding-left: var(--tl-gutter);
  padding-top: 22px;
}
.tl-bg {
  position: absolute;
  left: var(--tl-gutter);
  right: 0;
  top: 22px;
  bottom: 0;
  pointer-events: none;
}
.tl-gridline {
  position: absolute;
  top: 0; bottom: 0;
  border-left: 1px dashed var(--border);
}
.tl-today {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--accent);
  z-index: 1;
}
.tl-monthrow {
  position: absolute;
  left: var(--tl-gutter);
  right: 0;
  top: 0;
  height: 20px;
}
.tl-month {
  position: absolute;
  top: 4px;
  padding-left: 4px;
  font: 500 10px/1 var(--mono);
  color: var(--ink-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tl-today-label {
  position: absolute;
  top: -2px;
  margin-left: -22px;
  font: 600 9px/1 var(--mono);
  color: var(--accent);
  letter-spacing: .12em;
  white-space: nowrap;
}

.tl-section-head {
  position: relative;
  padding: 10px 0 6px;
  margin-top: 4px;
  border-top: 1px solid var(--rule);
}
.tl-section-head--top { margin-top: 14px; }
.tl-section-head .eyebrow {
  position: absolute;
  left: -138px;
  width: 130px;
  text-align: right;
  padding-right: 8px;
}

.tl-row {
  position: relative;
  height: 26px;
}
.tl-row-label {
  position: absolute;
  left: -138px;
  top: 7px;
  width: 130px;
  font: 500 11px/1.2 var(--mono);
  color: var(--ink-mute);
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Jurisdiction side panel === */
.scrim { position: fixed; inset: 0; background: rgba(20, 28, 50, .25); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px -16px rgba(20,28,50,.18);
  transform: translateX(110%); transition: transform .22s cubic-bezier(.2,.7,.2,1);
  z-index: 41; overflow-y: auto;
}
.side-panel.is-open { transform: translateX(0); }
.side-panel__head { padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.side-panel__close { position: absolute; top: 14px; right: 16px; padding: 5px 7px; border-radius: var(--r-sm); color: var(--ink-mute); }
.side-panel__close:hover { background: var(--surface-2); }
.side-panel__eyebrow { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; }
.side-panel__title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.012em; margin-top: 6px; }
.side-panel__subtitle { color: var(--ink-mute); margin-top: 4px; font-size: 12px; }
.side-panel__section { padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.side-panel__section h4 { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 10px; }

.status-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-block__cell { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.status-block__label { font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--ink-mute); text-transform: uppercase; }
.status-block__value { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-top: 6px; line-height: 1.2; }
.status-block__rail { display: flex; gap: 3px; margin-top: 8px; }
.status-block__rail span { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); }
.status-block__rail span.is-on { background: var(--navy); }

.bill-row { padding: 10px 0; border-top: 1px solid var(--rule); }
.bill-row:first-child { border-top: 0; }
.bill-row__hd { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bill-row__id { font: 600 12px/1.2 var(--mono); color: var(--ink); }
.bill-row__status { font: 500 11px/1 var(--mono); color: var(--ink-mute); }
.bill-row__title { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.bill-row__meta { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

/* === Power map === */
.powermap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: flex-start; }
.pm-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.pm-col__hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pm-col__title { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.pm-col__count { font: 500 11px/1 var(--mono); color: var(--ink-faint); }
.pm-org { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; background: var(--surface); }
.pm-org__name { font-weight: 600; font-size: 13px; }
.pm-org__role { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.pm-org__states { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.pm-org__state { font: 500 10px/1 var(--mono); color: var(--ink-2); padding: 2px 5px; background: var(--surface-2); border-radius: 3px; }
.pm-org--support { border-left: 3px solid var(--green); }
.pm-org--oppose  { border-left: 3px solid var(--red); }
.pm-org--committee { border-left: 3px solid var(--navy); }
.pm-org--figure { border-left: 3px solid var(--accent); }

/* === Tab summary stats === */
.tab-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 4px 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.sum-stat { display: flex; flex-direction: column; gap: 2px; }

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}
.work-head .section-sub { max-width: 60ch; }

.list-row--dim { opacity: 0.55; }
.list-row--dim:hover { opacity: 0.85; }

/* === Milestones tab — By objective grid === */
.objective-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.objective-cell {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.objective-cell__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.list-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
.list-row:last-child { border-bottom: 0; }
.list-row__type { font: 500 10px/1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .1em; }

/* === Work / stages === */
.stage-pipeline { display: flex; gap: 2px; margin-top: 6px; }
.stage-pipeline__cell {
  flex: 1; height: 6px; border-radius: 2px; background: var(--surface-3);
  position: relative;
}
.stage-pipeline__cell.is-done { background: var(--navy); }
.stage-pipeline__cell.is-current { background: var(--accent); animation: pulse 1.4s infinite ease-in-out; }
.stage-pipeline__cell.is-stuck { background: var(--yellow); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* === Contracts === */
.contracts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contract-bucket { padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.contract-bucket__head { display: flex; justify-content: space-between; align-items: baseline; }
.contract-bucket__title { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.contract-bucket__count { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.contract-row { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 12px; }
.contract-row:first-of-type { border-top: 0; }
.contract-row__name { font-weight: 600; }
.contract-row__meta { font: 500 11px/1.4 var(--mono); color: var(--ink-mute); margin-top: 2px; }
.contract-bucket--expired { border-color: oklch(0.78 0.08 26); background: var(--red-bg); }
.contract-bucket--soon    { border-color: oklch(0.85 0.08 80); background: var(--yellow-bg); }

/* === Utilities === */
.row { display: flex; align-items: center; gap: 8px; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-mute); }
.faint { color: var(--ink-faint); }
.divider { height: 1px; background: var(--rule); margin: 12px 0; }

.spinner { width: 12px; height: 12px; border: 2px solid var(--ink-faint); border-top-color: transparent; border-radius: 99px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Print (Reports → Print/PDF) === */
@media print {
  .sidebar, .topbar, .report-controls .row, .scrim, .side-panel { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .main { overflow: visible; }
  .content { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .list-row { break-inside: avoid; }
}

/* Scrollbar restraint */
.milestone-rollup::-webkit-scrollbar, .side-panel::-webkit-scrollbar, .main::-webkit-scrollbar { width: 10px; height: 10px; }
.milestone-rollup::-webkit-scrollbar-thumb, .side-panel::-webkit-scrollbar-thumb, .main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; border: 2px solid var(--surface); }
.milestone-rollup::-webkit-scrollbar-track, .side-panel::-webkit-scrollbar-track, .main::-webkit-scrollbar-track { background: transparent; }
