/* GovCommunication: tokens first. Chart colors come from a palette validated for color-vision
   deficiency in both modes (see src/web/charts.tsx). Dark mode is its own set of steps. */
:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --surface-sunken: #f1f0ec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #6b6a65;
  --muted: #898781;
  --line: #e1e0d9;
  --line-strong: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);
  --link: #1c5cab;
  --focus: #1c5cab;
  --ok-ink: #006300;
  --ok-bg: #e7f3e6;
  --warn-ink: #7a4f00;
  --warn-bg: #fdf2d8;
  --bad-ink: #a32424;
  --bad-bg: #fbe7e7;
  --mark-bg: #fff0a6;
  --party-d: #2a78d6;
  --party-r: #e34948;
  --party-o: #898781;
  --series-total: #008300;
  --heat-0: #f1f0ec;
  --heat-1: #b7d3f6;
  --heat-2: #86b6ef;
  --heat-3: #5598e7;
  --heat-4: #2a78d6;
  --heat-5: #1c5cab;
  --heat-6: #104281;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --surface-sunken: #141413;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --ink-3: #a3a29b;
    --muted: #898781;
    --line: #2c2c2a;
    --line-strong: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --link: #86b6ef;
    --focus: #86b6ef;
    --ok-ink: #5fd35f;
    --ok-bg: #12290f;
    --warn-ink: #f5c35a;
    --warn-bg: #2e2208;
    --bad-ink: #ff9a9a;
    --bad-bg: #331313;
    --mark-bg: #5c4a00;
    --party-d: #3987e5;
    --party-r: #e66767;
    --party-o: #898781;
    --series-total: #008300;
    --heat-0: #222220;
    --heat-1: #184f95;
    --heat-2: #256abf;
    --heat-3: #3987e5;
    --heat-4: #6da7ec;
    --heat-5: #9ec5f4;
    --heat-6: #cde2fb;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-sunken: #141413;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --ink-3: #a3a29b;
  --muted: #898781;
  --line: #2c2c2a;
  --line-strong: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --link: #86b6ef;
  --focus: #86b6ef;
  --ok-ink: #5fd35f;
  --ok-bg: #12290f;
  --warn-ink: #f5c35a;
  --warn-bg: #2e2208;
  --bad-ink: #ff9a9a;
  --bad-bg: #331313;
  --mark-bg: #5c4a00;
  --party-d: #3987e5;
  --party-r: #e66767;
  --party-o: #898781;
  --series-total: #008300;
  --heat-0: #222220;
  --heat-1: #184f95;
  --heat-2: #256abf;
  --heat-3: #3987e5;
  --heat-4: #6da7ec;
  --heat-5: #9ec5f4;
  --heat-6: #cde2fb;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font);
}
a {
  color: var(--link);
  text-underline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 24px 0 8px;
}
h2 {
  font-size: 19px;
  margin: 28px 0 12px;
}
mark {
  background: var(--mark-bg);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.muted {
  color: var(--ink-3);
}
.break {
  overflow-wrap: anywhere;
}
.lede {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 62ch;
  margin: 0 0 20px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ── Header & footer ──────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.site-nav a:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface-sunken);
}
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 13px;
}
.footer-row {
  padding: 20px 16px 32px;
}
.footer-row p {
  margin: 4px 0;
}

/* ── Controls ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: 600 14px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.88;
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-small {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 0;
  width: 100%;
}
input:not([type="checkbox"]),
select {
  height: 36px;
}
input[type="checkbox"] {
  width: auto;
}
textarea {
  resize: vertical;
}
.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.inline-form select {
  width: auto;
}
.stack-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

/* ── Inbox ────────────────────────────────────────────────────────────── */
.hero {
  padding: 16px 0 4px;
}
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 900px) {
  .inbox-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
  }
  .filter-panel > summary {
    display: none;
  }
  .filter-panel {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 16px;
}
.filter-panel > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.filters {
  display: grid;
  gap: 14px;
  padding: 12px 0 16px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 0 0 20px;
}
.filters-row .field {
  flex: 1 1 160px;
  max-width: 260px;
}
.filters-row .field-check {
  flex: 0 0 auto;
  height: 36px;
}
.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.results-head h2 {
  margin-top: 4px;
}
.message-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.message-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.message-item:first-child {
  padding-top: 4px;
}
.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.message-subject {
  font-size: 17px;
  margin: 6px 0 4px;
}
.message-subject a {
  color: var(--ink);
  text-decoration: none;
}
.message-subject a:hover {
  text-decoration: underline;
}
.message-snippet {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.message-flags {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.flag {
  color: var(--warn-ink);
}
.sender {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.sender-name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.sender-name:hover {
  text-decoration: underline;
}
.sender-title {
  color: var(--ink-3);
}
.party-tag,
.level-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
}
.party-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--series);
}
.pager {
  display: flex;
  gap: 12px;
  padding: 20px 0;
}
.empty {
  text-align: center;
  padding: 40px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}
.empty-title {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

/* ── Message ──────────────────────────────────────────────────────────── */
.crumbs {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 20px;
}
.message-title {
  margin-top: 8px;
}
.message-head {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
}
.facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
}
.facts dt {
  color: var(--ink-3);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
}
.badge-ok {
  color: var(--ok-ink);
  background: var(--ok-bg);
}
.badge-warn {
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.notice {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--ink);
  font-size: 14px;
}
.notice-admin {
  background: var(--surface-sunken);
}
.email-frame-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}
.email-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}
.panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 16px;
}
.panel > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.email-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.6 var(--font);
  margin: 0 0 16px;
}
.link-list {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.link-highlight {
  background: var(--warn-bg);
  border-radius: 6px;
  padding: 2px 6px;
}
.more {
  margin-top: 32px;
}
.interstitial,
.prose {
  max-width: 680px;
}
.interstitial {
  margin: 48px auto;
}
.prose li {
  margin: 6px 0;
}

/* ── Profiles & lists ─────────────────────────────────────────────────── */
.profile h1 {
  margin-bottom: 4px;
}
.profile-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.subs {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.section {
  margin-top: 32px;
}
.official-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.official-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.official-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.official-name:hover {
  text-decoration: underline;
}
.official-count {
  grid-column: 1 / -1;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .official-row {
    grid-template-columns: minmax(0, 1fr) 120px 180px;
  }
  .official-count {
    grid-column: auto;
    text-align: right;
  }
}

/* ── Stat tiles ───────────────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-link {
  color: inherit;
  text-decoration: none;
}
.stat-link:hover {
  border-color: var(--line-strong);
}
.stat-label {
  font-size: 12px;
  color: var(--ink-3);
}
.stat-value {
  font-size: 24px;
  font-weight: 650;
  margin-top: 2px;
  line-height: 1.2;
}
.stat-note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ── Charts ───────────────────────────────────────────────────────────── */
[data-series="D"],
[data-party="D"] {
  --series: var(--party-d);
}
[data-series="R"],
[data-party="R"] {
  --series: var(--party-r);
}
[data-series="O"],
[data-party="O"] {
  --series: var(--party-o);
}
[data-series="total"] {
  --series: var(--series-total);
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 16px;
}
.chart {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.chart figcaption {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}
.chart-title {
  font-weight: 600;
  font-size: 15px;
}
.chart-caption {
  font-size: 12px;
  color: var(--ink-3);
}
.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-svg .grid {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.chart-svg .baseline {
  stroke: var(--line-strong);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.value-label {
  fill: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.chart-svg .mark {
  fill: var(--series);
}
.chart-svg g:hover > .mark,
.chart-svg g:focus-within > .mark {
  opacity: 0.75;
}
.chart-svg .hit,
.chart-svg .hit-area {
  fill: transparent;
}
.chart-svg .hit:focus-visible {
  outline: none;
  stroke: var(--ink);
  stroke-width: 1;
}
.chart-svg .line {
  fill: none;
  stroke: var(--series);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-svg .end-dot {
  fill: var(--series);
  stroke: var(--surface);
  stroke-width: 4;
  paint-order: stroke;
}
.chart-svg .crosshair {
  stroke: var(--line-strong);
  stroke-width: 1;
  pointer-events: none;
}
.chart-line:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.heat-cell[data-heat="0"] {
  fill: var(--heat-0);
}
.heat-cell[data-heat="1"],
.scale-swatch[data-heat="1"] {
  fill: var(--heat-1);
  background: var(--heat-1);
}
.heat-cell[data-heat="2"],
.scale-swatch[data-heat="2"] {
  fill: var(--heat-2);
  background: var(--heat-2);
}
.heat-cell[data-heat="3"],
.scale-swatch[data-heat="3"] {
  fill: var(--heat-3);
  background: var(--heat-3);
}
.heat-cell[data-heat="4"],
.scale-swatch[data-heat="4"] {
  fill: var(--heat-4);
  background: var(--heat-4);
}
.heat-cell[data-heat="5"],
.scale-swatch[data-heat="5"] {
  fill: var(--heat-5);
  background: var(--heat-5);
}
.heat-cell[data-heat="6"],
.scale-swatch[data-heat="6"] {
  fill: var(--heat-6);
  background: var(--heat-6);
}
.heat-cell:hover,
.heat-cell:focus-visible {
  stroke: var(--ink);
  stroke-width: 1;
  outline: none;
}
.legend,
.scale-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-2);
}
.scale-legend {
  gap: 3px;
}
.scale-legend span:first-child {
  margin-right: 4px;
}
.scale-legend span:last-child {
  margin-left: 4px;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-line {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--series);
}
.legend-rect {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--series);
}
.scale-swatch {
  width: 16px;
  height: 10px;
  border-radius: 2px;
}
.barlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.barlist li {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.barlist-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.barlist-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.barlist-fill {
  display: block;
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: var(--series);
  flex: 0 0 auto;
  max-width: calc(100% - 52px);
}
.barlist-fill:hover,
.barlist-fill:focus-visible {
  opacity: 0.75;
}
.barlist-value {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-view {
  margin-top: 10px;
  font-size: 13px;
}
.table-view > summary {
  cursor: pointer;
  color: var(--ink-3);
  font-size: 12px;
}
.table-view table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.table-view th,
.table-view td,
.data-table th,
.data-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table {
  font-size: 14px;
}
.data-table th,
.table-view th {
  font-weight: 600;
  color: var(--ink-2);
}
.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}
.table-scroll {
  overflow-x: auto;
}
.heat-table th,
.heat-table td {
  padding: 4px;
}
.chart-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  padding: 8px 10px;
  font-size: 13px;
  max-width: 280px;
}
.tip-head {
  color: var(--ink-3);
  font-size: 12px;
  margin-bottom: 4px;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-row strong {
  font-variant-numeric: tabular-nums;
}
.tip-label {
  color: var(--ink-2);
}
.tip-key {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--series);
}

/* ── Admin ────────────────────────────────────────────────────────────── */
.signup-queue {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 8px 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.signup-address {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.signup-row .alias {
  font-size: 13px;
}
.signup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 8px;
}
.signup-notes {
  grid-column: 1 / -1;
  font-size: 13px;
}
@media (max-width: 820px) {
  .signup-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .signup-actions {
    justify-content: start;
  }
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.alias-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0 24px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.alias-box p {
  margin: 0;
}
.alias {
  font: 600 17px/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--ink-2);
  white-space: nowrap;
}
.status-active,
.status-public,
.status-processed {
  color: var(--ok-ink);
  background: var(--ok-bg);
}
.status-awaiting_confirmation,
.status-quarantined,
.status-unrouted,
.status-paused {
  color: var(--warn-ink);
  background: var(--warn-bg);
}
.status-dead,
.status-error {
  color: var(--bad-ink);
  background: var(--bad-bg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
