/* InfoUndi: Malaysia Election Intelligence. Light evidence canvas, dark navigation rail. */
:root {
  --navy-900: #0E1B36;
  --navy-800: #14244A;
  --navy-700: #1B2F5C;
  --ink: #16213A;
  --ink-soft: #5A6680;
  --line: #E4E8F0;
  --bg: #F5F6F9;
  --surface: #FFFFFF;
  --red: #D02C2C;
  --accent: #33589E;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: "Inter", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  /* radius scale */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  /* elevation scale */
  --shadow-sm: 0 1px 2px rgba(20,30,60,.05);
  --shadow-md: 0 4px 14px rgba(20,30,60,.10);
  --shadow-lg: 0 10px 28px rgba(20,30,60,.16);
  /* status accents (reuse coalition-neutral tones, not new brand colors) */
  --gold: #96701A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--bg); font-size: 15px; line-height: 1.5;
}

/* Election watch is a phase-aware analytical workspace. Warm tones indicate
   attention, red is reserved for an active count, and green marks review. */
.atlas-watch-tab { display: inline-flex; align-items: center; gap: 5px; }
.atlas-watch-tab span { display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: oklch(72% .12 75); color: oklch(24% .025 250); font-size: 9px; line-height: 1; }
.atlas-watch-tab.on span { background: oklch(86% .09 82); color: oklch(24% .025 250); }
.atlas-finding { border: 1px solid oklch(84% .025 175); border-left-width: 1px; border-radius: 5px; background: oklch(95% .012 165); }
.atlas-watch-phase { margin-top: 14px; padding: 13px 0 16px; border-bottom: 1px solid oklch(87% .012 170); }
.atlas-watch-phase > b { display: block; margin-top: 8px; color: oklch(25% .025 250); font-size: 16px; line-height: 1.25; }
.atlas-watch-phase > p { margin-top: 7px; max-width: 68ch; }
.atlas-phase-badge { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border-radius: 999px; font: 800 9px var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.atlas-phase-warm { background: oklch(91% .065 82); color: oklch(40% .085 65); }
.atlas-phase-urgent { background: oklch(91% .052 35); color: oklch(40% .12 28); }
.atlas-phase-live { background: oklch(55% .18 28); color: oklch(97% .006 70); }
.atlas-phase-calm { background: oklch(89% .05 165); color: oklch(36% .07 170); }
.atlas-watch-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; border-block: 1px solid oklch(87% .012 170); }
.atlas-watch-dates > div { min-width: 0; padding: 10px 9px; border-right: 1px solid oklch(87% .012 170); }
.atlas-watch-dates > div:first-child { padding-left: 0; }
.atlas-watch-dates > div:last-child { border-right: 0; }
.atlas-watch-dates span, .atlas-watch-dates b { display: block; }
.atlas-watch-dates span { color: oklch(53% .02 190); font-size: 9px; text-transform: uppercase; }
.atlas-watch-dates b { margin-top: 3px; color: oklch(28% .022 245); font-size: 11px; }
.atlas-watch-events { display: grid; }
.atlas-watch-event { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid oklch(87% .012 170); background: transparent; color: oklch(25% .025 250); text-align: left; cursor: pointer; }
.atlas-watch-event:hover b { text-decoration: underline; }
.atlas-watch-event:focus-visible { outline: 2px solid oklch(52% .11 200); outline-offset: 3px; }
.atlas-watch-event .atlas-phase-badge { grid-row: 1 / span 2; align-self: start; }
.atlas-watch-event b { font-size: 14px; }
.atlas-watch-event em { color: oklch(47% .025 190); font-size: 11px; font-style: normal; }
.atlas-watch-event small { grid-column: 2; color: oklch(58% .018 185); font-size: 9.5px; line-height: 1.4; }
.atlas-baseline-tally, .atlas-live-tallies { display: grid; margin: 12px 0 15px; border-top: 1px solid oklch(87% .012 170); }
.atlas-baseline-tally > div, .atlas-live-tallies > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; padding: 8px 0; border-bottom: 1px solid oklch(90% .01 170); }
.atlas-baseline-tally i, .atlas-live-tallies i { width: 8px; height: 8px; border-radius: 50%; }
.atlas-baseline-tally b, .atlas-live-tallies b { font-size: 11px; }
.atlas-baseline-tally span, .atlas-live-tallies span { color: oklch(45% .02 190); font-size: 11px; }
.atlas-live-tallies > div { grid-template-columns: 9px 42px 1fr auto; }
.atlas-live-tallies em { color: oklch(54% .02 190); font-size: 9px; font-style: normal; }
.atlas-watch-unknowns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid oklch(87% .012 170); }
.atlas-watch-unknowns .atlas-section-title, .atlas-watch-unknowns p { grid-column: 1 / -1; }
.atlas-watch-unknowns > div:not(.atlas-section-title) { padding: 9px 0; border-bottom: 1px solid oklch(88% .01 170); }
.atlas-watch-unknowns > div b, .atlas-watch-unknowns > div span { display: block; }
.atlas-watch-unknowns > div b { color: oklch(27% .025 250); font-size: 20px; }
.atlas-watch-unknowns > div span { color: oklch(49% .02 190); font-size: 10px; }
.atlas-count-progress { display: flex; width: 100%; height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: oklch(89% .012 185); }
.atlas-count-progress i, .atlas-count-progress em { display: block; height: 100%; }
.atlas-count-progress i { background: oklch(46% .075 170); }
.atlas-count-progress em { background: oklch(72% .12 75); }
.atlas-count-status { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 7px; }
.atlas-count-status b { color: oklch(24% .025 250); font-size: 19px; }
.atlas-count-status span { color: oklch(50% .02 190); font-size: 10px; }
.atlas-snapshot-line { display: grid; }
.atlas-snapshot-line > div { display: grid; grid-template-columns: 78px 1fr; gap: 3px 9px; padding: 8px 0; border-bottom: 1px solid oklch(90% .01 170); }
.atlas-snapshot-line time { grid-row: 1 / span 2; color: oklch(50% .02 190); font: 700 9px var(--mono); }
.atlas-snapshot-line b { color: oklch(30% .025 245); font-size: 10px; }
.atlas-snapshot-line span { color: oklch(55% .018 190); font-size: 9px; }
.atlas-evidence-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 12px; border-block: 1px solid oklch(87% .012 170); }
.atlas-evidence-counts > * { padding: 9px 6px; border: 0; border-right: 1px solid oklch(87% .012 170); background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.atlas-evidence-counts > *:last-child { border-right: 0; }
.atlas-evidence-counts b, .atlas-evidence-counts span { display: block; }
.atlas-evidence-counts b { color: oklch(27% .025 250); font-size: 16px; }
.atlas-evidence-counts span { margin-top: 2px; color: oklch(52% .02 190); font-size: 8.5px; line-height: 1.3; }
.atlas-live-call { display: grid; grid-template-columns: auto 1fr; gap: 5px 9px; align-items: center; margin-top: 14px !important; padding-bottom: 13px; border-bottom: 1px solid oklch(87% .012 170); }
.atlas-live-call .atlas-phase-badge { grid-row: 1 / span 2; }
.atlas-live-call b { color: oklch(24% .025 250); font-size: 17px; }
.atlas-live-call em { color: oklch(46% .025 190); font-size: 11px; font-style: normal; }

@media (max-width: 1180px) {
  .atlas-metrics button { padding-inline: 7px; }
  .atlas-watch-tab span { display: none; }
}

@media (max-width: 760px) {
  .atlas-watch-dates { grid-template-columns: 1fr 1fr; }
  .atlas-watch-dates > div:nth-child(2) { border-right: 0; }
  .atlas-live-tallies > div { grid-template-columns: 9px 36px 1fr; }
  .atlas-live-tallies em { grid-column: 3; }
}
/* Standalone election atlas, loaded without the legacy dashboard shell. */
.atlas-body { overflow: hidden; background: #dce4e2; }
#atlasRoot { position: fixed; inset: 0; overflow: hidden; background: #dce4e2; color: #172238; }
.atlas-loading, .atlas-failure { display: grid; place-content: center; min-height: 100vh; gap: 8px; text-align: center; color: #536168; }.atlas-loading b, .atlas-failure b { color: #172238; letter-spacing: .14em; }.atlas-failure h1 { margin: 0; color: #172238; }.atlas-failure button { margin: 8px auto; border: 1px solid #172238; border-radius: 5px; background: #172238; color: #f7f7f2; padding: 8px 12px; font: 700 12px var(--sans); cursor: pointer; }
#atlasMap { position: absolute; inset: 0 0 156px; background: #dce4e2; }.atlas-body .leaflet-container { background: #dce4e2; font-family: var(--sans); }
.atlas-bar { position: absolute; z-index: 700; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 18px; padding: 9px 12px; border: 1px solid #c9d2d3; border-radius: 8px; background: rgba(248,248,244,.97); box-shadow: 0 6px 22px rgba(23,34,56,.14); }.atlas-brand { border: 0; background: transparent; color: #172238; font: 800 15px var(--sans); letter-spacing: .12em; cursor: pointer; }.atlas-brand span { margin-left: 7px; color: #647077; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }.atlas-place { display: grid; gap: 1px; margin-right: auto; }.atlas-place b { font-size: 13px; }.atlas-place span { color: #647077; font-size: 11px; }.atlas-metrics { display: flex; gap: 2px; padding: 3px; background: #e8ece9; border-radius: 6px; }.atlas-metrics button { border: 0; border-radius: 4px; padding: 6px 9px; background: transparent; color: #556169; font: 700 11px var(--sans); cursor: pointer; }.atlas-metrics button.on { background: #172238; color: #f8f8f4; }.atlas-status { padding-left: 14px; border-left: 1px solid #d9dfdc; color: #647077; font: 700 10px var(--sans); letter-spacing: .04em; white-space: nowrap; }
.atlas-panel { position: absolute; z-index: 700; top: 87px; right: 16px; bottom: 174px; width: 312px; overflow: auto; padding: 18px; border: 1px solid #c9d2d3; border-radius: 8px; background: rgba(248,248,244,.97); box-shadow: 0 6px 22px rgba(23,34,56,.12); }.atlas-panel h1 { margin: 3px 0 9px; font-size: 25px; line-height: 1.08; letter-spacing: -.03em; }.atlas-panel p { margin: 0; color: #536168; font-size: 13px; line-height: 1.5; }.atlas-kicker { color: #a02b2b !important; font: 800 10px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; }.atlas-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }.atlas-panel dt { color: #647077; font-size: 10px; }.atlas-panel dd { margin: 3px 0 0; font-size: 13px; font-weight: 800; }.atlas-panel dd small { color: #647077; font-weight: 600; }.atlas-winner { display: grid; gap: 3px; margin-top: 14px !important; }.atlas-winner b { color: #172238; font-size: 15px; }.atlas-winner span { font-size: 12px; }
.atlas-primary, .atlas-secondary { width: 100%; margin-top: 16px; padding: 9px 10px; border-radius: 5px; font: 700 12px var(--sans); cursor: pointer; }.atlas-primary { border: 1px solid #172238; background: #172238; color: #f8f8f4; }.atlas-secondary { border: 1px solid #aeb9bb; background: #f8f8f4; color: #172238; }.atlas-watch { margin-top: 18px; border-top: 1px solid #d9dfdc; }.atlas-watch small { display: block; margin: 12px 0 4px; color: #647077; font: 800 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; }.atlas-watch button { display: grid; gap: 2px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid #d9dfdc; background: transparent; color: #172238; text-align: left; cursor: pointer; }.atlas-watch button:hover b { text-decoration: underline; }.atlas-watch button b { font-size: 12px; }.atlas-watch button span { color: #647077; font-size: 11px; }.atlas-source { margin-top: 14px !important; }
.atlas-clear { float: right; margin: -35px 0 8px; border: 0; background: transparent; color: #536168; font: 700 10px var(--sans); cursor: pointer; }.atlas-clear:hover { color: #172238; text-decoration: underline; }
.atlas-analysis-intro { margin-top: 12px !important; font-size: 12px !important; }.atlas-coalition-bars { display: grid; gap: 9px; margin-top: 15px; }.atlas-coalition-bars > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding-bottom: 7px; border-bottom: 1px solid #d9dfdc; overflow: hidden; }.atlas-coalition-bars span { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; color: #28353a; font-size: 12px; font-weight: 700; }.atlas-coalition-bars span i { width: 8px; height: 8px; border-radius: 50%; }.atlas-coalition-bars b { position: relative; z-index: 1; font-size: 12px; }.atlas-coalition-bars em { position: absolute; bottom: 0; left: 0; height: 2px; background: #8ba29c; }.atlas-coalition-bars small { grid-column: 1 / -1; color: #647077; font-size: 10px; }
.atlas-dossier-loading { margin-top: 16px !important; color: #647077 !important; font-size: 12px !important; }.atlas-ballot { margin-top: 17px; border-top: 1px solid #d9dfdc; }.atlas-ballot > span { display: block; margin: 12px 0 7px; color: #647077; font: 800 10px var(--sans); letter-spacing: .09em; text-transform: uppercase; }.atlas-ballot table { width: 100%; border-collapse: collapse; font-size: 11px; }.atlas-ballot th { padding: 5px 3px; border-bottom: 1px solid #cbd4d1; color: #647077; font-weight: 700; text-align: left; }.atlas-ballot td { padding: 7px 3px; border-bottom: 1px solid #e1e6e3; vertical-align: top; }.atlas-ballot th:nth-child(3), .atlas-ballot th:nth-child(4), .atlas-ballot td:nth-child(3), .atlas-ballot td:nth-child(4) { text-align: right; white-space: nowrap; }.atlas-ballot td:first-child i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; }.atlas-ballot td:first-child { font-weight: 700; }
.atlas-electorate { margin-top: 17px; padding-top: 12px; border-top: 1px solid #d9dfdc; }.atlas-electorate > span { display: flex; justify-content: space-between; gap: 8px; color: #647077; font: 800 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; }.atlas-electorate > span i { color: #7b8785; font: 600 9px var(--sans); letter-spacing: 0; text-transform: none; }.atlas-electorate p { margin: 6px 0 9px; font-size: 12px; }.atlas-electorate > div { display: flex; flex-wrap: wrap; gap: 5px 10px; }.atlas-electorate > div span { color: #344248; font-size: 10px; }.atlas-electorate > div b { font-size: 10px; }.atlas-electorate small { display: block; margin-top: 8px; color: #72807e; font-size: 9px; line-height: 1.35; }.atlas-electorate--seat > div span { color: #536168; }
.atlas-tray { position: absolute; z-index: 720; right: 0; bottom: 0; left: 0; height: 156px; display: grid; grid-template-columns: 1fr 1.25fr 1fr; border-top: 1px solid #c9d2d3; background: #f7f7f2; box-shadow: 0 -5px 18px rgba(23,34,56,.08); }.atlas-tray article { min-width: 0; padding: 18px 22px; border-right: 1px solid #d9dfdc; }.atlas-tray article:last-child { border-right: 0; }.atlas-tray span { display: block; margin-bottom: 6px; color: #647077; font: 800 10px var(--sans); letter-spacing: .09em; text-transform: uppercase; }.atlas-tray b { display: block; color: #172238; font-size: 15px; line-height: 1.25; }.atlas-tray p { margin: 5px 0 0; color: #647077; font-size: 12px; line-height: 1.4; }.atlas-tray-watch button { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }.atlas-tray-watch button:hover b { text-decoration: underline; }.atlas-tray-watch i { display: block; margin-top: 7px; color: #174d4c; font: 800 11px var(--sans); font-style: normal; }.atlas-key { position: absolute; z-index: 700; bottom: 174px; left: 16px; display: grid; gap: 2px; padding: 9px 10px; border: 1px solid #c9d2d3; border-radius: 6px; background: rgba(248,248,244,.95); box-shadow: 0 3px 12px rgba(23,34,56,.1); }.atlas-key b { font-size: 11px; }.atlas-key span { color: #647077; font-size: 10px; }.atlas-footer { position: absolute; z-index: 730; right: 344px; bottom: 174px; display: flex; align-items: center; justify-content: flex-end; color: #536168; font-size: 10px; pointer-events: none; }.atlas-footer span { display: none; }.atlas-footer button { pointer-events: auto; border: 1px solid #b8c2c1; border-radius: 5px; padding: 7px 9px; background: rgba(248,248,244,.95); color: #172238; font: 700 11px var(--sans); cursor: pointer; }.atlas-body .leaflet-top { top: 72px; }.atlas-body .leaflet-left { left: 6px; }.atlas-body .leaflet-control-zoom { border: 1px solid #bdc7c7 !important; box-shadow: 0 3px 12px rgba(23,34,56,.12) !important; }.atlas-body .leaflet-control-zoom a { width: 30px !important; height: 30px !important; line-height: 28px !important; border-color: #d4dbd8 !important; color: #172238 !important; background: #f8f8f4 !important; }
@media (max-width: 760px) { #atlasMap { bottom: 118px; }.atlas-bar { top: 8px; left: 8px; right: 8px; gap: 8px; }.atlas-brand span, .atlas-place, .atlas-status { display: none; }.atlas-metrics { margin-left: auto; overflow-x: auto; }.atlas-metrics button { padding: 6px 7px; }.atlas-panel { top: auto; right: 8px; bottom: 128px; left: 8px; width: auto; max-height: 190px; }.atlas-tray { height: 118px; grid-template-columns: 1fr 1fr; overflow-x: auto; }.atlas-tray article { min-width: 230px; padding: 13px 16px; }.atlas-tray-result { display: none; }.atlas-key { display: none; }.atlas-footer { top: 72px; right: 16px; bottom: auto; }.atlas-footer span { display: none; } }

/* Analyst-first workspace. The map, interpretation rail and finding strip are
   peers: geography locates the evidence while the rail explains it. */
#atlasMap { inset: 0 0 184px; }
.atlas-bar { gap: 14px; min-height: 52px; }
.atlas-place { min-width: 112px; }
.atlas-metrics { flex: 1 1 auto; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.atlas-metrics::-webkit-scrollbar { display: none; }
.atlas-metrics button { white-space: nowrap; }
.atlas-status { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.atlas-panel { top: 84px; right: 16px; bottom: 202px; width: 410px; padding: 21px 22px 24px; }
.atlas-panel h1 { margin: 2px 0 0; font-size: 29px; }
.atlas-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.atlas-panel-heading > div { min-width: 0; }
.atlas-clear { float: none; flex: 0 0 auto; margin: 2px 0 0; padding: 6px 9px; border: 1px solid #c8d0ce; border-radius: 5px; background: #f4f5f1; color: #435158; }
.atlas-brief { margin: 14px 0 0 !important; padding: 13px 0 16px; border-bottom: 1px solid #d8dfdc; color: #45545a !important; font-size: 13px !important; line-height: 1.55 !important; }
.atlas-brief b { color: #172238; }
.atlas-section { margin-top: 17px; }
.atlas-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.atlas-section-title > span, .atlas-ranked > span, .atlas-comparison > span { color: #5f6d72; font: 800 10px var(--sans); letter-spacing: .085em; text-transform: uppercase; }
.atlas-section-title small { color: #7b8785; font-size: 9px; text-align: right; }
.atlas-caveat { margin-top: 11px !important; color: #788482 !important; font-size: 9.5px !important; line-height: 1.45 !important; }
.atlas-finding { margin: 11px 0 13px !important; padding: 10px 11px; border-left: 3px solid #668c87; background: #eef1ed; color: #344348 !important; font-size: 11.5px !important; }
.atlas-empty { padding: 12px; border: 1px dashed #c7d0cd; background: rgba(238,241,237,.62); }
.atlas-outcome-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.atlas-outcome-table th { padding: 5px 4px; border-bottom: 1px solid #c8d1ce; color: #71807d; font-size: 9px; text-align: left; }
.atlas-outcome-table th:nth-child(n+2), .atlas-outcome-table td:nth-child(n+2) { text-align: right; }
.atlas-outcome-table td { padding: 8px 4px; border-bottom: 1px solid #e0e5e2; vertical-align: top; }
.atlas-outcome-table td:first-child { font-weight: 800; }
.atlas-outcome-table td i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }
.atlas-outcome-table td b, .atlas-outcome-table td small { display: block; }
.atlas-outcome-table td b { color: #172238; font-size: 12px; }
.atlas-outcome-table td small { color: #75817f; font-size: 9px; font-weight: 500; }
.atlas-identity-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  border: 1px solid #BFC9C5;
  border-radius: 3px;
  background: color-mix(in srgb, var(--identity, #819993) 14%, #FFFFFF);
  color: var(--my-muted);
}
.atlas-identity-mark i { font: 750 7px var(--font-data); font-style: normal; letter-spacing: -.02em; }
.atlas-identity-mark img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; background: #FFFFFF; }
.atlas-identity-cell { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; text-align: left; }
.atlas-identity-cell > span { min-width: 0; }
.atlas-identity-cell > span > b,
.atlas-identity-cell > span > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-outcome-table .atlas-identity-cell small { text-align: left; }

.atlas-candidate-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 15px;
  padding: 12px;
  border-block: 1px solid var(--my-rule);
  background: #F3F4EE;
}
.atlas-identity-marks { display: flex; align-items: center; }
.atlas-identity-marks .atlas-identity-mark { width: 38px; height: 38px; flex-basis: 38px; }
.atlas-identity-marks .atlas-identity-mark + .atlas-identity-mark { width: 28px; height: 28px; flex-basis: 28px; margin-left: -7px; border-color: #98A7A2; box-shadow: 0 0 0 2px #F3F4EE; }
.atlas-candidate-identity > div:last-child { display: grid; min-width: 0; gap: 2px; }
.atlas-candidate-identity small { color: var(--my-teal); font: 750 8px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.atlas-candidate-identity b { overflow: hidden; color: var(--my-ink); font: 720 14px/1.2 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.atlas-candidate-identity span { overflow: hidden; color: var(--my-muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }

.atlas-ballot-candidate { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; }
.atlas-ballot-candidate .atlas-identity-mark { width: 24px; height: 24px; flex-basis: 24px; }
.atlas-ballot-candidate > span { overflow: hidden; text-overflow: ellipsis; }
.atlas-ballot td:nth-child(2) b,
.atlas-ballot td:nth-child(2) small { display: block; }
.atlas-ballot td:nth-child(2) small { margin-top: 2px; color: var(--my-muted); font-size: 8px; }

.atlas-boundary-tooltip.leaflet-tooltip {
  max-width: 255px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #AEBBB7;
  border-radius: 2px;
  background: rgba(247,244,236,.98);
  box-shadow: 0 5px 18px rgba(23,38,59,.16);
  color: var(--my-ink);
}
.atlas-boundary-tooltip::before { display: none; }
.atlas-tooltip-seat { padding: 7px 10px 6px; border-bottom: 1px solid var(--my-rule); color: var(--my-teal); font: 750 8px var(--font-data); letter-spacing: .06em; text-transform: uppercase; }
.atlas-tooltip-person { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px 10px 7px; }
.atlas-tooltip-person span { display: grid; min-width: 0; gap: 2px; }
.atlas-tooltip-person b { overflow: hidden; font: 700 11px/1.2 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.atlas-tooltip-person small { overflow: hidden; color: var(--my-muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.atlas-tooltip-result { padding: 0 10px 9px 48px; color: var(--my-muted); font: 600 8px var(--font-data); }
.atlas-stat-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d7dedb; border-radius: 6px; }
.atlas-stat-pair > div { padding: 11px 12px; border-right: 1px solid #d7dedb; }
.atlas-stat-pair > div:last-child { border-right: 0; }
.atlas-stat-pair b, .atlas-stat-pair span { display: block; }
.atlas-stat-pair b { color: #172238; font-size: 18px; line-height: 1.1; }
.atlas-stat-pair span { margin-top: 4px; color: #6a7876; font-size: 9.5px; }
.atlas-bands { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #d7dedb; border-radius: 6px; background: #d7dedb; }
.atlas-bands > div { display: grid; grid-template-columns: 5px 34px 1fr; align-items: center; gap: 7px; padding: 9px; background: #f7f7f2; }
.atlas-bands i { width: 5px; height: 29px; border-radius: 3px; }
.atlas-bands b { color: #172238; font-size: 18px; }
.atlas-bands span, .atlas-bands small { display: block; }
.atlas-bands span { color: #344248; font-size: 10px; font-weight: 700; }
.atlas-bands small { color: #788482; font-size: 8.5px; font-weight: 500; }
.atlas-ranked { margin-top: 16px; }
.atlas-ranked > span { display: block; margin-bottom: 5px; }
.atlas-ranked > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 1px; border-bottom: 1px solid #e0e5e2; }
.atlas-ranked > div b { font-size: 10.5px; }
.atlas-ranked > div em { color: #6c7977; font-size: 10px; font-style: normal; }
.atlas-ranked--compact { margin-top: 12px; }
.atlas-seat-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; width: 100%; padding: 8px 1px; border: 0; border-bottom: 1px solid #e0e5e2; background: transparent; color: #172238; text-align: left; cursor: pointer; }
.atlas-seat-link:hover b { text-decoration: underline; }
.atlas-seat-link b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.atlas-seat-link em { color: #667472; font-size: 9.5px; font-style: normal; white-space: nowrap; }
.atlas-seat-change { margin-top: 10px !important; padding: 8px 10px; border-left: 3px solid #c86645; background: #f3eee8; color: #3e4a4e !important; font-size: 10.5px !important; }
.atlas-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid #d7dedb; border-radius: 6px; background: #d7dedb; }
.atlas-comparison > span { grid-column: 1 / -1; padding: 7px 9px; background: #eef1ed; }
.atlas-comparison > div { padding: 9px; background: #f7f7f2; }
.atlas-comparison b, .atlas-comparison small { display: block; }
.atlas-comparison b { color: #172238; font-size: 12px; }
.atlas-comparison small { margin-top: 3px; color: #74817e; font-size: 8.5px; line-height: 1.3; }
.atlas-evidence-item { margin-top: 10px; padding: 11px 0 12px; border-top: 1px solid #d8dfdc; }
.atlas-evidence-item > span { display: block; color: #9c3d35; font: 700 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.atlas-evidence-item > b { display: block; margin-top: 4px; color: #172238; font-size: 12px; }
.atlas-evidence-item > p { margin-top: 5px; font-size: 10.5px; }
.atlas-evidence-item > a { display: inline-block; margin-top: 7px; color: #245f5b; font-size: 10px; font-weight: 800; text-decoration: none; }
.atlas-poll-result { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.atlas-poll-result i { padding: 3px 6px; border: 1px solid #d7dedb; border-radius: 4px; color: #596764; font-size: 9px; font-style: normal; }
.atlas-news-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.atlas-news-actions button { padding: 5px 7px; border: 1px solid #c7d0cd; border-radius: 4px; background: #f7f7f2; color: #314044; font: 700 9px var(--sans); cursor: pointer; }
.atlas-news-actions button.on { border-color: #314044; background: #314044; color: #f7f7f2; }
.atlas-focus-window { display: grid; gap: 3px; margin: 10px 0 14px; padding: 10px 12px; border-left: 3px solid var(--my-amber); background: #F1E9D7; }
.atlas-focus-window span { color: #805E1E; font: 750 8px var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.atlas-focus-window b { color: var(--my-ink); font: 700 11px var(--sans); }
.atlas-focus-window p { margin: 0; color: var(--my-muted); font: 520 9px/1.4 var(--sans); }
.atlas-news-list { margin-top: 7px; border-top: 1px solid #e0e5e2; }
.atlas-news-list a { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid #e0e5e2; color: #172238; text-decoration: none; }
.atlas-news-list a:hover b { text-decoration: underline; }
.atlas-news-list b { font-size: 10px; line-height: 1.35; }
.atlas-news-list span, .atlas-news-state { color: #75817f !important; font-size: 8.5px !important; }
.atlas-tray { height: 184px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.atlas-tray-item { min-width: 0; padding: 20px 22px; border: 0; border-right: 1px solid #d9dfdc; background: #f7f7f2; color: #172238; text-align: left; cursor: pointer; }
.atlas-tray-item:last-child { border-right: 0; }
.atlas-tray-item:hover { background: #eef1ed; }
.atlas-tray-item span { display: block; margin-bottom: 7px; color: #647077; font: 800 10px var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.atlas-tray-item b { display: block; font-size: 15px; line-height: 1.28; }
.atlas-tray-item p { margin: 7px 0 0; color: #647077; font-size: 11px; line-height: 1.4; }
.atlas-key { bottom: 202px; }
.atlas-footer { right: 442px; bottom: 202px; }
.atlas-body .leaflet-top { top: 78px; }

@media (max-width: 1180px) {
  .atlas-status { display: none; }
  .atlas-panel { width: 370px; }
  .atlas-footer { right: 402px; }
  .atlas-tray-item { padding: 17px; }
  .atlas-tray-item b { font-size: 13px; }
}
@media (max-width: 900px) {
  .atlas-brand span, .atlas-place { display: none; }
  .atlas-metrics { justify-content: flex-start; }
  .atlas-panel { width: 340px; }
  .atlas-footer { right: 372px; }
}
@media (max-width: 760px) {
  #atlasMap { bottom: 124px; }
  .atlas-bar { min-height: 48px; }
  .atlas-brand { flex: 0 0 auto; }
  .atlas-metrics { margin-left: 0; }
  .atlas-panel { top: auto; right: 8px; bottom: 132px; left: 8px; width: auto; max-height: 44vh; padding: 16px; }
  .atlas-panel h1 { font-size: 24px; }
  .atlas-tray { height: 124px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 245px; overflow-x: auto; }
  .atlas-tray-item { padding: 14px 16px; }
  .atlas-tray-item b { font-size: 12px; }
  .atlas-key { display: none; }
  .atlas-footer { top: 70px; right: 12px; bottom: auto; }
  .atlas-body .leaflet-top { top: 68px; }
}
.atlas-finding { border: 1px solid oklch(84% .025 175); border-left-width: 1px; border-radius: 5px; background: oklch(95% .012 165); }
/* Leaflet-first atlas. There is deliberately no paid street-tile dependency:
   the political geography is the base map. */
body.map-app-active > .shell { display: none; }
#mapApp { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #dce4e2; color: #172238; }
.map-app-canvas { position: absolute; inset: 0; background: #dce4e2; }
.leaflet-container { background: #dce4e2; font-family: var(--sans); }
.map-app-bar { position: absolute; z-index: 700; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 18px; padding: 9px 12px; border: 1px solid #c9d2d3; border-radius: 8px; background: rgba(248,248,244,.97); box-shadow: 0 6px 22px rgba(23,34,56,.14); }
.map-app-brand { border: 0; background: transparent; color: #172238; font: 800 15px var(--sans); letter-spacing: .12em; cursor: pointer; }.map-app-brand span { margin-left: 7px; color: #647077; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.map-app-place { display: grid; gap: 1px; margin-right: auto; }.map-app-place b { font-size: 13px; }.map-app-place span { color: #647077; font-size: 11px; }
.map-app-layers { display: flex; gap: 2px; padding: 3px; background: #e8ece9; border-radius: 6px; }.map-app-layers button { border: 0; border-radius: 4px; padding: 6px 9px; background: transparent; color: #556169; font: 700 11px var(--sans); cursor: pointer; }.map-app-layers button:hover { color: #172238; }.map-app-layers button.on { background: #172238; color: #f8f8f4; }
.map-app-inspector { position: absolute; z-index: 700; top: 87px; right: 16px; width: 312px; max-height: calc(100vh - 170px); overflow: auto; padding: 18px; border: 1px solid #c9d2d3; border-radius: 8px; background: rgba(248,248,244,.97); box-shadow: 0 6px 22px rgba(23,34,56,.12); }.map-app-inspector h1 { margin: 3px 0 9px; font-size: 25px; line-height: 1.08; letter-spacing: -.03em; }.map-app-inspector p { margin: 0; color: #536168; font-size: 13px; line-height: 1.5; }.map-app-kicker { color: #a02b2b !important; font: 800 10px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; }.map-app-inspector dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }.map-app-inspector dt { color: #647077; font-size: 10px; }.map-app-inspector dd { margin: 3px 0 0; font-size: 13px; font-weight: 800; }.map-app-inspector dd small { color: #647077; font-weight: 600; }.map-result { display: grid; gap: 3px; margin-top: 14px !important; }.map-result b { color: #172238; font-size: 15px; }.map-result span { font-size: 12px; }
.map-primary, .map-secondary { width: 100%; margin-top: 16px; padding: 9px 10px; border-radius: 5px; font: 700 12px var(--sans); cursor: pointer; }.map-primary { border: 1px solid #172238; background: #172238; color: #f8f8f4; }.map-secondary { border: 1px solid #aeb9bb; background: #f8f8f4; color: #172238; }
.map-watch-list { margin-top: 18px; border-top: 1px solid #d9dfdc; }.map-watch-list small { display: block; margin: 12px 0 4px; color: #647077; font: 800 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; }.map-watch-list button { display: grid; gap: 2px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid #d9dfdc; background: transparent; color: #172238; text-align: left; cursor: pointer; }.map-watch-list button:hover b { text-decoration: underline; }.map-watch-list button b { font-size: 12px; }.map-watch-list button span { color: #647077; font-size: 11px; }
.map-app-key { position: absolute; z-index: 700; bottom: 60px; left: 16px; display: grid; gap: 2px; padding: 9px 10px; border: 1px solid #c9d2d3; border-radius: 6px; background: rgba(248,248,244,.95); box-shadow: 0 3px 12px rgba(23,34,56,.1); }.map-app-key b { font-size: 11px; }.map-app-key span { color: #647077; font-size: 10px; }
.map-app-footer { position: absolute; z-index: 700; bottom: 14px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; color: #536168; font-size: 10px; pointer-events: none; }.map-app-footer button { pointer-events: auto; border: 1px solid #b8c2c1; border-radius: 5px; padding: 7px 9px; background: rgba(248,248,244,.95); color: #172238; font: 700 11px var(--sans); cursor: pointer; }
.leaflet-control-zoom { border: 1px solid #bdc7c7 !important; box-shadow: 0 3px 12px rgba(23,34,56,.12) !important; }.leaflet-control-zoom a { width: 30px !important; height: 30px !important; line-height: 28px !important; border-color: #d4dbd8 !important; color: #172238 !important; background: #f8f8f4 !important; }
@media (max-width: 760px) { .map-app-bar { top: 8px; left: 8px; right: 8px; gap: 8px; }.map-app-brand span, .map-app-place { display: none; }.map-app-layers { margin-left: auto; overflow-x: auto; }.map-app-layers button { padding: 6px 7px; }.map-app-inspector { top: auto; right: 8px; bottom: 54px; left: 8px; width: auto; max-height: 190px; }.map-app-key { display: none; }.map-app-footer { left: 8px; right: 8px; bottom: 4px; }.map-app-footer span { display: none; } }
a { color: var(--accent); }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  background: var(--navy-900); color: #E7EBF4;
  padding: 28px 22px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { width: 0; height: 0; }
.brand-row { position: relative; }
.brand { all: unset; display: block; width: 100%; cursor: pointer; border-radius: 8px; }
.brand:hover .brand-name, .brand:focus-visible .brand-name { color: #fff; }
.brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.brand-mark { display: none; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: .1em; }
.brand-sub { font-size: 9px; letter-spacing: .25em; color: #93A0BC; margin-top: 5px; line-height: 1.45; }
.brand-rule { width: 34px; height: 3px; background: var(--red); margin-top: 12px; }
.rail-toggle { position: absolute; top: -4px; right: -8px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #33486f; border-radius: 6px; background: #162647; color: #DCE5F4; cursor: pointer; }.rail-toggle svg { width: 16px; height: 16px; transition: transform .2s ease-out; }.rail-toggle:hover { background: #21375f; color: #fff; }.rail-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.side-label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #7E8BAA;
  margin-bottom: 8px;
}
.inv h2 { font-size: 19px; line-height: 1.3; margin: 0; font-weight: 700; color: #fff; }

.side-meta { list-style: none; margin: 0; padding: 18px 0; border-top: 1px solid #24345C; border-bottom: 1px solid #24345C; display: flex; flex-direction: column; gap: 16px; }
.side-meta li { display: flex; gap: 12px; align-items: flex-start; }
.meta-ico { color: #8FA0C6; font-size: 15px; margin-top: 1px; }
.side-meta b { display: block; font-size: 13.5px; color: #fff; font-weight: 600; }
.side-meta span { display: block; font-size: 11.5px; color: #93A0BC; }

.side-nav { display: flex; flex-direction: column; }
.side-nav a {
  display: flex; gap: 12px; align-items: center; padding: 11px 10px 11px 14px;
  color: #AEB9D2; text-decoration: none; border-left: 3px solid transparent;
  position: relative;
}
.side-nav a b { display: block; font-size: 12.5px; letter-spacing: .12em; color: inherit; }
.side-nav a i { display: block; font-style: normal; font-size: 11px; color: #7E8BAA; }
.side-nav a.active { border-left-color: var(--red); color: #fff; background: rgba(255,255,255,.04); }
.side-nav a.active b { color: #fff; }
.side-nav a.active .nav-ico { color: #fff; }
.nav-num { font-family: var(--mono); font-size: 11px; color: #66739A; align-self: flex-start; margin-top: 2px; }
.nav-ico { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: #8FA0C6; }
.nav-ico svg { width: 18px; height: 18px; }

/* InfoUndi compact rail: the investigation remains reachable without sacrificing canvas space. */
.shell { transition: grid-template-columns .2s ease-out; }
html.rail-collapsed .shell { grid-template-columns: 72px 1fr; }
.rail-collapsed .sidebar { align-items: center; padding: 28px 10px; gap: 24px; }
.rail-collapsed .brand-row { width: 100%; text-align: center; }
.rail-collapsed .brand-mark { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; }
.rail-collapsed .brand-mark svg { width: 32px; height: 32px; }
.rail-collapsed .brand-name, .rail-collapsed .brand-sub, .rail-collapsed .brand-rule, .rail-collapsed .inv { display: none; }
.rail-collapsed .rail-toggle { position: static; margin: 11px auto 0; }
.rail-collapsed .rail-toggle svg { transform: rotate(180deg); }
.rail-collapsed .side-meta { width: 100%; padding: 0; border: 0; align-items: center; gap: 13px; }
.rail-collapsed .side-meta li { justify-content: center; }
.rail-collapsed .side-meta li > div { display: none; }
.rail-collapsed .side-nav { width: 100%; }
.rail-collapsed .side-nav a { justify-content: center; padding: 13px 2px; border-left-width: 2px; gap: 0; }
.rail-collapsed .side-nav a > span:last-child { display: none; }
.rail-collapsed .nav-num { display: none; }
.rail-collapsed .nav-ico { width: 20px; height: 20px; }
.rail-collapsed .nav-ico svg { width: 20px; height: 20px; }

/* collapsed-rail tooltip: instant, CSS-only, follows the active language via data-tip */
.rail-collapsed .side-nav a[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--navy-900); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .12s ease-out; z-index: 30;
}
.rail-collapsed .side-nav a[data-tip]:hover::after,
.rail-collapsed .side-nav a[data-tip]:focus-visible::after { opacity: 1; }

/* ---------- main ---------- */
.main { padding: 26px 34px 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.title-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar h1 { font-size: 25px; margin: 0; letter-spacing: .02em; font-weight: 800; text-transform: uppercase; }
.title-chip {
  background: var(--navy-900); color: #fff; font-size: 11px; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 3px; font-weight: 600;
}
.top-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ctl span { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #6B7690; margin-bottom: 4px; }
.ctl select {
  font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--ink); max-width: 300px;
}
.language-ctl select { min-width: 118px; }
.updated-row { font-size: 12px; color: #6B7690; margin: 6px 0 18px; }
.focus-deck { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(20,30,60,.05); overflow: hidden; }.watch-brief-head { display: flex; justify-content: space-between; gap: 30px; padding: 20px 22px 0; }.watch-brief-head .card-label { margin-bottom: 9px; color: var(--ink); }.watch-brief-head h2 { max-width: 720px; margin: 0 0 8px; color: var(--ink); font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: 0; }.watch-brief-head p { max-width: 68ch; margin: 0; color: #3C465E; font-size: 14px; line-height: 1.5; }.watch-facts { display: grid; grid-template-columns: minmax(118px, 1fr); align-content: start; min-width: 195px; margin: 0; padding: 0; }.watch-facts div { display: grid; gap: 3px; padding: 0 0 13px; }.watch-facts div + div { padding-top: 13px; border-top: 1px dashed var(--line); }.watch-facts dt { color: var(--ink-soft); font: 700 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }.watch-facts dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.35; }.focus-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 22px 0; padding: 15px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }.focus-evidence article { min-width: 0; padding: 0; border: 0; }.focus-evidence article + article { padding: 0; }.focus-evidence .card-label { margin-bottom: 9px; }.focus-evidence ul { gap: 7px; }.focus-evidence li { font-size: 12px; }.focus-evidence li b { font-size: 12.5px; }.focus-evidence li span { line-height: 1.45; }.focus-evidence li small { font-size: 10.5px; }.focus-deck footer { display: flex; justify-content: space-between; gap: 20px; padding: 13px 22px 18px; color: var(--ink-soft); font-size: 11.5px; }.focus-deck footer span { max-width: 75ch; }.focus-deck footer a { color: var(--accent); font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.error-banner[hidden] { display: none; }

.error-banner {
  background: #FFF7E0; border: 1px solid #E6C34A; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px;
}

.band { padding: 30px 0; scroll-margin-top: 12px; }
/* Divider goes above every section except the visually-first one. A hidden
   band (display:none) must not count as "first" or as the thing before it;
   plain :first-of-type / .band + .band both get fooled by hidden siblings. */
.band:not([hidden]) ~ .band:not([hidden]) { border-top: 1px solid #DDE3EC; }
.band > * + * { margin-top: 22px; }
/* build_static.py's crawlable snapshot: same rhythm as .band, but must stay
   visible in the default body.mode-landing state (unlike the interactive
   sections below it) since it's the only content a non-JS crawler ever sees. */
.snapshot-band { padding: 30px 0; scroll-margin-top: 12px; }
.snapshot-band > * + * { margin-top: 22px; }

/* Crawlable reference pages share the product's editorial system without loading the map. */
.static-page { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; color: var(--ink); }
.static-page--wide { width: min(1180px, calc(100% - 40px)); }
.static-page a { color: var(--accent); text-underline-offset: 3px; }
.static-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; color: var(--ink-soft); font-size: 13px; }
.static-breadcrumb a { color: var(--navy-900); font-weight: 800; text-decoration: none; }
.static-breadcrumb span::before { content: "/"; margin-right: 10px; color: var(--line); }
.static-hero { max-width: 760px; margin-bottom: 38px; }
.static-hero > p { margin: 0 0 10px; color: var(--accent); font: 800 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.static-hero h1 { margin: 0; color: var(--navy-900); font-size: clamp(36px, 6vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.static-hero > span { display: block; max-width: 68ch; margin-top: 18px; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.static-updated { color: var(--ink-soft); font-size: 13px; }
.static-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 22px 0; border-block: 1px solid var(--line); }
.static-facts > div { padding: 16px 14px; border-right: 1px solid var(--line); }
.static-facts > div:first-child { padding-left: 0; }
.static-facts > div:last-child { border-right: 0; }
.static-facts dt { color: var(--ink-soft); font-size: 12px; }
.static-facts dd { margin: 5px 0 0; color: var(--navy-900); font-size: 20px; font-weight: 800; }
.static-provenance { margin-top: 28px; padding: 20px 22px; border-left: 3px solid var(--accent); background: #EDF3F0; }
.static-provenance h2 { margin: 0 0 8px; color: var(--navy-900); font-size: 17px; }
.static-provenance p { max-width: 78ch; margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.static-related { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 750; }
.static-term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.static-term-grid article { padding: 22px; background: var(--surface); }
.static-term-grid h2 { margin: 0 0 8px; color: var(--navy-900); font-size: 18px; }
.static-term-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.58; }
.static-copy { max-width: 78ch; }
.static-copy h2 { margin: 38px 0 12px; color: var(--navy-900); font-size: 24px; letter-spacing: -.02em; }
.static-copy p, .static-copy li { color: var(--ink-soft); font-size: 16px; line-height: 1.68; }
.static-copy ol { display: grid; gap: 12px; padding-left: 22px; }
.static-copy b { color: var(--navy-900); }
.static-lifecycle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border: 1px solid var(--line); background: var(--line); }
.static-lifecycle article { padding: 18px; background: var(--surface); }
.static-lifecycle b { font-size: 16px; }
.static-lifecycle p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }
.static-faq { margin-top: 46px; }
.static-faq > h2 { font-size: 28px; }
.static-faq article { padding: 18px 0; border-top: 1px solid var(--line); }
.static-faq article h2 { margin: 0 0 7px; font-size: 17px; }
.static-faq article p { max-width: 75ch; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.static-election-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 24px 0 0; padding: 1px; background: var(--line); list-style: none; }
.static-election-list li { min-width: 0; background: var(--surface); }
.static-election-list a { display: grid; min-height: 148px; gap: 7px; padding: 20px; color: inherit; text-decoration: none; }
.static-election-list a:hover { background: #EDF1EE; }
.static-election-list span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.static-election-list b { color: var(--navy-900); font-size: 18px; }
.static-election-list small { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

@media (max-width: 760px) {
  .static-page, .static-page--wide { width: min(100% - 28px, 920px); padding-top: 22px; }
  .static-breadcrumb { margin-bottom: 30px; }
  .static-hero { margin-bottom: 30px; }
  .static-hero > span { font-size: 16px; }
  .static-term-grid, .static-lifecycle, .static-election-list { grid-template-columns: 1fr; }
  .static-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .static-facts > div:nth-child(2n) { border-right: 0; }
}
.watch-workspace { padding: 8px 0 20px; }.watch-workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 14px; }.watch-workspace-head .card-label { margin-bottom: 5px; }.watch-workspace-head h3 { margin: 0; font-size: 19px; line-height: 1.25; }.watch-workspace-head > p { max-width: 540px; margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }.watch-brief-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }.watch-calendar ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }.watch-calendar li { display: grid; gap: 7px; min-width: 0; padding: 0 14px; border-left: 1px solid var(--line); }.watch-calendar li:first-child { padding-left: 0; border-left: 0; }.watch-calendar time { color: var(--ink-soft); font: 700 10px var(--mono); }.watch-calendar li.current time { color: var(--red); }.watch-calendar span { display: grid; gap: 3px; }.watch-calendar b { font-size: 13px; }.watch-calendar small { color: var(--ink-soft); font-size: 11px; line-height: 1.35; }.watch-evidence { display: grid; align-content: start; gap: 13px; }.watch-evidence dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px dashed var(--line); }.watch-evidence dl div { display: grid; gap: 3px; padding: 9px 8px 0 0; }.watch-evidence dt { color: var(--ink-soft); font-size: 10px; }.watch-evidence dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; }.watch-evidence a, .watch-key-seats .card-head > a { color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; }.watch-key-seats { margin-top: 18px; }.watch-key-seats .card-head { margin-bottom: 11px; }.watch-key-seats .card-sub { max-width: 62ch; }.watch-key-seats ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px dashed var(--line); list-style: none; }.watch-key-seats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; min-width: 0; padding: 11px 10px; border-left: 1px solid var(--line); }.watch-key-seats li:first-child { padding-left: 0; border-left: 0; }.watch-key-seats li > b { color: var(--ink-soft); font: 700 10px var(--mono); }.watch-key-seats li span { min-width: 0; }.watch-key-seats li strong { display: block; font-size: 12px; }.watch-key-seats li small { display: block; overflow: hidden; margin-top: 2px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }.watch-key-seats li em { grid-column: 2; color: var(--ink); font: 700 10px var(--mono); font-style: normal; }.watch-key-seats li.empty { grid-column: 1 / -1; display: block; border-left: 0; color: var(--ink-soft); }
.campaign-stream { margin-top: 18px; }.feed-status { color: var(--ink-soft); font: 700 10px var(--mono); }.campaign-stream-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; border-top: 1px dashed var(--line); }.campaign-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }.campaign-news-item { padding: 11px 0; border-bottom: 1px solid var(--line); }.campaign-news-item:nth-child(odd) { padding-right: 11px; }.campaign-news-item:nth-child(even) { padding-left: 11px; }.campaign-news-item summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }.campaign-news-item summary::-webkit-details-marker { display: none; }.campaign-news-item summary span { min-width: 0; }.campaign-news-item summary small, .campaign-news-item summary strong { display: block; }.campaign-news-item summary small { overflow: hidden; color: var(--ink-soft); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }.campaign-news-item summary strong { margin-top: 3px; font-size: 12px; line-height: 1.35; }.campaign-news-item summary > b { align-self: center; color: var(--accent); font-size: 10px; white-space: nowrap; }.campaign-news-item p { margin: 9px 0 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }.campaign-news-item a { color: var(--accent); font-size: 11px; font-weight: 700; }.campaign-social { align-self: stretch; margin: 11px 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }.campaign-social .card-label { margin-bottom: 9px; }.social-state { display: grid; gap: 5px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }.social-state b { color: var(--ink); font-size: 12px; }.social-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.watch-card { border-top: 3px solid var(--red); background: linear-gradient(110deg, #FFFFFF 0%, #F3F6FB 100%); }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }.watch-layout h3 { max-width: 620px; }
.watch-meta { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; }.watch-status { display: grid; justify-items: end; gap: 3px; min-width: 105px; padding-left: 24px; border-left: 1px solid var(--line); }.watch-status b { color: var(--navy-900); font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; }.watch-status span { color: var(--ink-soft); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }.watch-card .dossier-src { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; box-shadow: 0 1px 2px rgba(20,30,60,.05);
}
.card-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--ink); margin-bottom: 12px;
}
.lbl-sub { font-weight: 400; letter-spacing: .02em; text-transform: none; color: #6B7690; margin-left: 6px; font-size: 11.5px; }
.card-sub { font-size: 12.5px; color: #6B7690; margin: -6px 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.card h3 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; font-weight: 800; }
.card h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6B7690; margin: 0 0 8px; }
.outlook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0; border-top: 1px solid var(--line); }.outlook-item { display: grid; gap: 10px; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }.outlook-item:nth-child(n+2) { padding-left: 18px; border-left: 1px solid var(--line); }.outlook-item > div:first-child b, .outlook-item > div:first-child small { display: block; }.outlook-item > div:first-child b { font-size: 13px; }.outlook-item > div:first-child small, .outlook-item p { color: var(--ink-soft); font-size: 11px; }.outlook-item p { min-height: 45px; margin: 0; line-height: 1.45; }.outlook-item > a { font-size: 11px; font-weight: 600; }.outlook-values { display: flex; flex-wrap: wrap; gap: 6px 12px; }.outlook-values span { font-size: 11px; white-space: nowrap; }.outlook-values i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; }.outlook-values small { color: var(--ink-soft); }
.narrative { font-size: 14px; color: #3C465E; margin: 0; }
.campaign-baseline { position: relative; }.campaign-baseline::before { content: "Previous election context"; position: absolute; z-index: 1; top: 15px; right: 20px; padding: 3px 7px; border: 1px solid #D7DEE9; border-radius: 3px; background: #F7F9FC; color: #6B7690; font: 700 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; }.campaign-baseline .waffle rect, .campaign-baseline .hbar-fill, .campaign-baseline .waffle-legend .sw { opacity: .52; }.campaign-baseline .waffle-legend .logo { opacity: .62; }.campaign-baseline .majority-note { color: #6B7690; }.campaign-baseline .card { background: #FCFDFE; }

/* waffle + legend */
.waffle-wrap { display: flex; gap: 18px; align-items: flex-start; }
.waffle { width: 100%; max-width: 340px; display: block; }
#waffle { flex: 1; min-width: 0; }
.waffle-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 96px; }
.waffle-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; }
.waffle-legend .sw { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.waffle-legend b { font-size: 16px; }
.waffle-legend .pc { font-size: 11px; color: #6B7690; grid-column: 2 / 4; margin-top: -6px; }
.majority-note { margin-top: 14px; font-size: 12.5px; color: #6B7690; border-top: 1px dashed var(--line); padding-top: 10px; }

/* hbars */
.hbar-row { display: grid; grid-template-columns: 64px 1fr 58px; gap: 10px; align-items: center; margin-bottom: 10px; }
.hbar-label { font-size: 13px; font-weight: 600; }
.hbar-track { background: #EEF1F6; border-radius: 4px; height: 18px; overflow: hidden; display: block; }
.hbar-fill { display: block; height: 100%; border-radius: 4px 0 0 4px; }
.hbar-value { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
.stat-row .stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.stat-row .stat span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6B7690; }

/* geography */
.geo-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.geo-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.metric-lbl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #6B7690; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button {
  font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border: none;
  background: var(--surface); color: #4A5470; cursor: pointer; border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--navy-900); color: #fff; }
#seatSearch { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; width: 150px; }

/* choropleth map */
.map-wrap { position: relative; margin-top: 16px; background: #EDF1F7; border-radius: 8px; overflow: hidden; }
.geo-map { width: 100%; display: block; max-height: 560px; cursor: grab; touch-action: none; }
.geo-map:active { cursor: grabbing; }
.geo-seat { stroke: #FFFFFF; stroke-width: 0.7; transition: opacity .15s; }
.geo-seat:hover { stroke: #16213A; stroke-width: 1.4; }
.geo-seat.sel { stroke: #16213A; stroke-width: 1.8; }
.geo-seat.nodata { fill: #DFE3EB; }
.geo-seat.dim { opacity: .15; }
.map-controls {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
}
.map-controls button {
  width: 30px; height: 30px; font-size: 15px; line-height: 1; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: 0 1px 3px rgba(20,30,60,.12);
}
.map-controls button:hover { background: #F2F5FA; }
.geo-note { font-size: 11.5px; color: #6B7690; margin: 10px 0 0; }

.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 4px; margin-top: 16px; }
.seat-cell {
  aspect-ratio: 1; border-radius: 4px; cursor: pointer; border: none; padding: 0;
  font-size: 8.5px; color: rgba(255,255,255,.85); font-family: var(--mono);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.seat-cell:hover, .seat-cell.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.seat-cell.dim { opacity: .18; }
.geo-legend { flex-direction: row !important; flex-wrap: wrap; gap: 14px !important; margin-top: 16px !important; }
.geo-legend li { grid-template-columns: 12px auto; align-items: center; }
.geo-legend .legend-note { display: block; flex-basis: 100%; max-width: 420px; color: #6B7690; font-size: 11.5px; line-height: 1.45; }
.geo-legend b { font-size: 13px; }

.dossier { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; }
.dossier h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chip { font-size: 10px; letter-spacing: .08em; font-weight: 700; color: #fff; padding: 3px 8px; border-radius: 3px; }
.dossier .sub { font-size: 12.5px; color: #6B7690; margin: 2px 0 14px; }
.cand-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.dossier-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.dossier-stats .stat b { display: block; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.dossier-stats .stat span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6B7690; }
.dossier-src { font-size: 11.5px; color: #6B7690; border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 10px; }
.dossier-demo { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.dossier-demo-note { font-size: 11.5px; color: #6B7690; margin: 4px 0 10px; }
.dossier-demo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dossier-demo-cols h4 { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6B7690; margin: 0 0 6px; }
.dossier-demo-sex { font-size: 12px; color: #6B7690; margin: 10px 0 0; }
.dossier-demo--empty .empty { margin-top: 6px; }
.campaign-dossier { background: #FCFDFE; }.campaign-dossier .chip { color: #41506A; }.campaign-dossier .logo { opacity: .62; }.campaign-dossier .data-table, .campaign-dossier .dossier-stats { opacity: .72; }.campaign-dossier-note { margin: 10px 0 12px; padding: 8px 10px; border: 1px solid #DCE3ED; border-radius: 4px; background: #F5F7FA; color: #5A6680; font-size: 11.5px; line-height: 1.45; }

/* tables */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #6B7690; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid #EEF1F6; white-space: nowrap; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:hover td { background: #F7F9FC; }
.win-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: baseline; }
.campaign-baseline .data-table .logo { opacity: .62; }.campaign-baseline .data-table td { color: #536079; }.campaign-baseline .data-table td strong, .campaign-baseline .data-table td b { color: var(--ink); }

/* trends */
.linechart { width: 100%; display: block; }
.linechart .grid { stroke: #EEF1F6; stroke-width: 1; }
.linechart .tick { font-size: 10.5px; fill: #8A93A8; font-family: var(--sans); }
.series-label { font-size: 11.5px; font-weight: 700; font-family: var(--sans); }
.swing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.swing-row { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; margin-bottom: 9px; }
.swing-track { position: relative; background: #EEF1F6; border-radius: 4px; height: 16px; display: block; }
.swing-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.swing-zero { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: #B9C1D2; }

.projection { font-size: 13.5px; }
.projection .proj-bars { margin-top: 10px; }
.projection h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6B7690; margin: 0 0 6px; }
.projection .note { font-size: 11.5px; color: #8A5252; background: #FFF3F3; border-radius: 6px; padding: 8px 10px; margin-top: 12px; }
.poll-timeline { margin-top: 22px; padding: 18px 0 4px; border-top: 1px solid #DDE3EC; }
.poll-timeline .card-label { margin-bottom: 12px; }
.poll-records { margin-top: 22px; border-top: 1px solid #DDE3EC; }
.poll-record { display: grid; grid-template-columns: minmax(172px, .7fr) minmax(0, 1.8fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid #DDE3EC; }
.poll-record-head { display: grid; align-content: start; gap: 5px; }
.poll-record-head strong { color: var(--ink); font-size: 15px; }
.poll-record-head span { color: #68758B; font-size: 12px; line-height: 1.35; }
.poll-record-head small { color: #68758B; font: 700 10px var(--mono); }
.poll-record-body { min-width: 0; }
.poll-toplines { display: flex; flex-wrap: wrap; gap: 7px; }
.poll-topline { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #D8E0EB; border-radius: 999px; background: #F7F9FC; color: #31415D; font-size: 12px; white-space: nowrap; }
.poll-topline i { width: 7px; height: 7px; border-radius: 50%; }
.poll-topline b { color: var(--ink); font-size: 11px; }
.poll-record-body p { max-width: 74ch; margin: 10px 0 7px; color: #56647C; font-size: 12.5px; line-height: 1.5; }
.poll-record-body a { color: var(--accent); font-size: 12px; font-weight: 700; }
.projection { margin-top: 26px; padding: 22px 0 4px; border-top: 1px solid #C9D4E2; }

#demographics .hbar-row { grid-template-columns: 170px 1fr 48px; }

/* party / coalition logos (proxied from ElectionData.MY) */
.logo {
  width: 20px; height: 20px; object-fit: contain; vertical-align: middle;
  margin-right: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 1.5px;
}
.logo.sm { width: 16px; height: 16px; margin-right: 5px; }
.logo-missing { display: none; }
.dossier h3 .logo { width: 28px; height: 28px; }
.waffle-legend span .logo { margin-right: 4px; }

.badge { font-size: 10px; letter-spacing: .06em; font-weight: 700; padding: 2px 7px; border-radius: 3px; vertical-align: middle; }
.badge.est { background: #FFF3D6; color: #8A6D1A; border: 1px solid #E6C34A; }
.badge.src { background: #E7ECF5; color: var(--accent); border: 1px solid #C3D0E8; }

.brief { font-size: 13.5px; color: #3C465E; }
.brief p { margin: 0 0 10px; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-ghost {
  font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
}
.btn-ghost:hover { background: #F2F5FA; }

.empty { color: #8A93A8; font-size: 13.5px; }

/* ---------- landing / home ---------- */
#landing { display: none; }

.landing-hero { max-width: 720px; margin: 22px 0 28px; }
.landing-kicker { margin: 0 0 9px !important; color: var(--red) !important; font: 700 10px var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; }
.landing-statement { max-width: 64ch; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.landing-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 12px; }.landing-section-head .card-label { margin: 0 0 3px; }.landing-section-head p:last-child { margin: 0; color: var(--ink-soft); font-size: 12.5px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3); }
.landing-card {
  text-align: left; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease-out, transform .15s ease-out, border-color .15s ease-out;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.landing-card:hover, .landing-card:focus-visible {
  box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #AEBBD1; outline: none;
}
.lc-top { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: var(--sp-2); }
.lc-type { min-width: 0; justify-self: end; text-align: right; font-size: 10.5px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #8A93A8; }
.landing-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.lc-result { display: flex; align-items: center; gap: 6px; font-size: 13.5px; min-height: 20px; }
.lc-result b { font-size: 13.5px; }
.lc-result span { color: var(--ink-soft); }
.lc-date { font-size: 12px; color: #8A93A8; font-family: var(--mono); margin-top: 2px; }

.lc-badge {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  white-space: nowrap;
  letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
}
.lc-badge--live { background: #FFE9E9; color: var(--red); }
.lc-badge--live .live-dot { width: 7px; height: 7px; }
.lc-badge--result { background: var(--navy-900); color: #fff; }
.lc-badge--watch { background: #FFF3D6; color: var(--gold); }
.lc-badge--quiet { background: #EEF1F6; color: #6B7690; font-weight: 600; }

/* tooltip */
.chart-tooltip {
  position: fixed; display: none; z-index: 50; pointer-events: none;
  background: var(--navy-900); color: #fff; font-size: 12.5px; line-height: 1.45;
  padding: 8px 11px; border-radius: 6px; max-width: 280px; box-shadow: 0 4px 14px rgba(10,18,40,.35);
}
.chart-tooltip .tt-muted { color: #A9B4CD; font-size: 11.5px; }

/* ---------- InfoUndi evidence canvas ----------
   The briefing should read as one investigation, not a stack of unrelated widgets. */
body { background: #F7F8FB; }
.main { padding: 32px 42px 80px; }
.topbar { min-height: 58px; padding-bottom: 17px; border-bottom: 1px solid #DDE3EC; }
.topbar h1 { font-size: 27px; letter-spacing: -.018em; }
.updated-row { margin: 9px 0 24px; color: #68758B; }
.card-label { margin-bottom: 10px; font-size: 10.5px; letter-spacing: .13em; }
.card-sub, .lbl-sub { color: #68758B; }

/* Result summary becomes a single editorial readout with dividers, not three cards. */
#overview .grid-3 { gap: 0; align-items: stretch; }
#overview .grid-3 > .card {
  min-width: 0; padding: 8px 26px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#overview .grid-3 > .card:first-child { padding-left: 0; }
#overview .grid-3 > .card + .card { border-left: 1px solid #DDE3EC; }
#overview .card h3 { max-width: 18ch; font-size: 24px; line-height: 1.18; letter-spacing: -.02em; }
#overview .narrative { max-width: 48ch; font-size: 14px; line-height: 1.58; }
#overview .majority-note { margin-top: 16px; }
#overview .stat-row { margin-top: 18px; }

/* Dense evidence areas use quiet ruled sections. Geography retains a true workspace panel. */
#countnight .card,
#contests .card,
#trends .card,
#reports .card {
  padding: 23px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#countnight .card,
#contests .card,
#trends > .card { border-bottom: 1px solid #DDE3EC; }
#trends .grid-2 { gap: 0; border-bottom: 1px solid #DDE3EC; }
#trends .grid-2 > .card { padding: 0 26px 22px; }
#trends .grid-2 > .card:first-child { padding-left: 0; }
#trends .grid-2 > .card + .card { border-left: 1px solid #DDE3EC; }
#reports .grid-2 { gap: 0; }
#reports .grid-2 > .card { padding: 0 26px; }
#reports .grid-2 > .card:first-child { padding-left: 0; }
#reports .grid-2 > .card + .card { border-left: 1px solid #DDE3EC; }

#geography .geo-main, #geography .dossier {
  border-color: #D8DFEA; border-radius: 12px; box-shadow: 0 2px 8px rgba(20,30,60,.045);
}
#geography .geo-main { padding: 22px; }
#geography .dossier { padding: 22px; }
.map-wrap { border: 1px solid #DCE3ED; background: #E9EEF5; }
.geo-tools { gap: 8px; }
.seg { border-color: #CBD5E3; border-radius: 7px; }
.seg button { background: #FBFCFE; color: #4E5E77; }
.seg button.on { background: var(--navy-900); }
#seatSearch { border-color: #CBD5E3; background: #FBFCFE; }

/* The dossier is a peer workspace pane, not a floating card. Keep its footprint
   stable before selection and scroll its own evidence when it becomes dense. */
@media (min-width: 1181px) {
  .geo-wrap { align-items: stretch; }
  .geo-wrap > .dossier {
    position: static;
    align-self: stretch;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
}

/* Watch is the only elevated briefing. Everything below it is supporting evidence. */
.focus-deck { border-color: #CDD7E5; border-radius: 12px; box-shadow: 0 3px 12px rgba(20,30,60,.07); }
.focus-evidence { border-color: #DCE3ED; }
.watch-workspace { padding: 30px 0; }
.watch-workspace .card { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; }
.watch-brief-grid { gap: 0; border-top: 1px solid #DDE3EC; border-bottom: 1px solid #DDE3EC; padding: 18px 0; }
.watch-brief-grid > .card + .card { padding-left: 28px; border-left: 1px solid #DDE3EC; }
.watch-calendar ol, .watch-key-seats ol { border-color: #DDE3EC; }
.campaign-stream { padding: 20px 0 !important; border-bottom: 1px solid #DDE3EC !important; }
.campaign-stream-grid { border-color: #DDE3EC; }
.watch-key-seats { padding: 20px 0 !important; }

/* Shared interaction vocabulary. */
.btn-ghost { transition: background .16s ease-out, border-color .16s ease-out, color .16s ease-out, box-shadow .16s ease-out; }
.btn-ghost:focus-visible, .seg button:focus-visible, #seatSearch:focus-visible { outline: 2px solid #33589E; outline-offset: 2px; }
.btn-ghost { border-color: #CBD5E3; background: #FBFCFE; }
.btn-ghost:hover { border-color: #9FADC2; background: #F1F4F8; }
.data-table th { border-bottom-color: #CCD6E3; color: #68758B; }
.data-table td { border-bottom-color: #E3E8F0; }
.data-table tr:hover td { background: #EEF3F9; }
.outlook-grid { border-color: #CCD6E3; }
.outlook-item { border-color: #E0E6EF; }
.outlook-item:nth-child(n+2) { border-left-color: #E0E6EF; }

/* Investigation context dock: selection should remain legible and stationary while evidence refreshes. */
.topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(590px, auto);
  align-items: end;
  gap: 24px;
}
.title-block { min-height: 50px; align-content: end; }
.top-controls {
  display: grid;
  grid-template-columns: 118px minmax(240px, 1.5fr) minmax(168px, .8fr) minmax(168px, .8fr);
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 7px;
  border: 1px solid #D6DEE9;
  border-radius: 11px;
  background: #EEF2F7;
}
.ctl { display: grid; min-width: 0; gap: 5px; }
.ctl[hidden] { display: none; }
.ctl > span:first-child {
  min-height: 12px;
  margin: 0;
  padding: 0 4px;
  color: #61708A;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
}
.ctl .select-shell {
  position: relative;
  display: block;
  height: 39px;
  margin: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #FCFDFE;
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(20,30,60,.025);
  letter-spacing: normal;
  text-transform: none;
}
.ctl .select-shell::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #50617C;
  border-bottom: 1.5px solid #50617C;
  transform: rotate(45deg);
  pointer-events: none;
}
.ctl select,
.language-ctl select {
  appearance: none;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0 36px 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 39px;
  outline: 0;
  cursor: pointer;
}
.ctl:focus-within .select-shell {
  border-color: #4D6EA9;
  box-shadow: 0 0 0 3px rgba(77,110,169,.16);
}
.is-loading-election #focusDeck,
.is-loading-election #watchWorkspace {
  opacity: .52;
  pointer-events: none;
  transition: opacity .18s ease-out;
}

/* Skeleton loading. One shimmer mechanism reused everywhere an election's
   data is in flight: every .card while is-loading-election is set (switching
   contest/election, or a generated page hydrating), and the landing grid/lead
   while their own fetch runs (renderLanding() toggles is-loading-landing).
   Real (possibly stale, possibly empty) content is hidden rather than merely
   dimmed, so a contest switch never shows the previous contest's data. */
@keyframes skel-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.skel-fill {
  display: block; width: 100%; height: 100%; min-height: 96px; border-radius: inherit;
  background: linear-gradient(100deg, #EEF1F6 30%, #E4E8F0 45%, #EEF1F6 60%);
  background-size: 250% 100%; animation: skel-shimmer 1.3s ease-in-out infinite;
}
.is-loading-election .band .card { position: relative; min-height: 96px; pointer-events: none; }
.is-loading-election .band .card > * { visibility: hidden; }
.is-loading-election .band .card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, #EEF1F6 30%, #E4E8F0 45%, #EEF1F6 60%);
  background-size: 250% 100%; animation: skel-shimmer 1.3s ease-in-out infinite;
}
.landing-card.skeleton { min-height: 180px; border: 1px solid var(--line); }
.landing-card.skeleton { padding: 0; }
#mainView[aria-busy="true"] .updated-row::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 7px 1px 1px;
  border-radius: 50%;
  background: #C82E35;
  animation: jejak-fetch 1s ease-in-out infinite;
}
@keyframes jejak-fetch { 50% { opacity: .28; } }

/* CJK copy needs normal tracking, not the Latin all-caps treatment. */
html[lang="zh"] .card-label,
html[lang="zh"] .side-label,
html[lang="zh"] .ctl span,
html[lang="zh"] .landing-kicker { letter-spacing: .04em; text-transform: none; }

@media (max-width: 1180px) {
  #overview .grid-3 > .card:nth-child(3) { border-left: 0; border-top: 1px solid #DDE3EC; margin-top: 20px; padding-top: 24px; }
  .topbar { grid-template-columns: 1fr; align-items: start; }
  .top-controls { width: 100%; grid-template-columns: 118px minmax(260px, 1.5fr) minmax(168px, .8fr) minmax(168px, .8fr); }
}

/* --------------------------------------------------------------------------
   InfoUndi identity and intelligence workspace, July 2026
   A publication-grade frame: brand, command bar, geography, evidence rail and
   briefing strip are one system. These rules intentionally supersede the
   earlier floating-card atlas experiment without affecting legacy pages.
   -------------------------------------------------------------------------- */
.atlas-body {
  --my-ink: #24313B;
  --my-ink-2: #31424D;
  --my-header: #24313B;
  --my-paper: #F3F1EA;
  --my-paper-2: #ECEBE5;
  --my-surface: #F8F6F0;
  --my-canvas: #DDE4E0;
  --my-teal: #315C57;
  --my-teal-soft: #D6E0DD;
  --my-amber: #C79242;
  --my-rule: #C9D0CC;
  --my-muted: #5E6C68;
  --my-red: #A55249;
  --my-shadow: rgba(35,49,59,.14);
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-text: Aptos, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: var(--font-text);
  overflow: hidden;
  background: var(--my-canvas);
  color: var(--my-ink);
  font-family: var(--sans);
  font-feature-settings: "kern" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.atlas-body[data-theme="dim"] {
  --my-ink: #F1F3EF;
  --my-ink-2: #DCE2DE;
  --my-header: #202624;
  --my-paper: #2C3230;
  --my-paper-2: #272D2B;
  --my-surface: #343B38;
  --my-canvas: #343C39;
  --my-teal: #9FC8BE;
  --my-teal-soft: #3A504B;
  --my-amber: #D2A75B;
  --my-rule: #4B5551;
  --my-muted: #B6C0BC;
  --my-red: #D1847A;
  --my-shadow: rgba(7,12,11,.24);
}

#atlasRoot {
  position: fixed;
  inset: 0;
  height: calc(var(--infoundi-vh, 1vh) * 100);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  grid-template-rows: 68px 60px minmax(0, 1fr) 156px;
  overflow: hidden;
  background: var(--my-canvas);
  color: var(--my-ink);
}

.atlas-loading,
.atlas-failure {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: var(--my-paper);
  color: var(--my-muted);
}
.atlas-loading img { width: 58px; height: 58px; margin-bottom: 10px; }
.atlas-loading b { color: var(--my-ink); font-size: 18px; letter-spacing: .18em; }
.atlas-loading span { font-size: 12px; }

.atlas-masthead {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 800;
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr auto;
  align-items: center;
  min-width: 0;
  padding: 0 22px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: var(--my-header);
  color: #F8F6F0;
}

.atlas-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.atlas-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  background: #17233A;
}
.atlas-brand .atlas-brand-mark,
.atlas-brand .atlas-brand-name {
  margin-left: 0;
  text-transform: none;
}
.atlas-brand .atlas-brand-mark { display: grid; }
.atlas-brand .atlas-brand-name { display: grid; color: inherit; }
.atlas-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.atlas-brand-name { display: grid; gap: 1px; min-width: 0; }
.atlas-brand-name b { display: flex; align-items: flex-start; gap: 3px; font-family: var(--font-display); line-height: 1; }
.atlas-brand-name b i { margin-top: 2px; color: #9EB0AB; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.atlas-brand-name b strong { color: #F6F3EC; font-size: 19px; font-weight: 760; letter-spacing: .15em; }
.atlas-brand-name small { color: #BAC5C1; font-size: 10.5px; letter-spacing: .035em; }

.atlas-edition {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.atlas-edition span,
.atlas-credibility span {
  color: #92A5A1;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.atlas-edition b { overflow: hidden; color: #DCE3E1; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.atlas-credibility {
  display: grid;
  grid-template-columns: 8px auto;
  gap: 1px 8px;
  align-items: center;
  min-width: 232px;
}
.atlas-credibility i {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  background: var(--my-amber);
  transform: rotate(45deg);
}
.atlas-credibility b { color: #E8ECEA; font-size: 10px; font-weight: 600; }
.atlas-global-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}
.atlas-theme {
  display: grid;
  gap: 3px;
  min-width: 92px;
}
.atlas-theme > span {
  color: #92A5A1;
  font: 750 8px var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.atlas-theme select {
  width: 100%;
  padding: 4px 22px 4px 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  background: var(--my-header);
  color: #E4E9E6;
  font: 680 9.5px var(--sans);
  cursor: pointer;
}
.atlas-theme select:hover { border-color: rgba(255,255,255,.5); }
.atlas-theme select:focus-visible { outline: 2px solid var(--my-amber); outline-offset: 2px; }
.atlas-theme option { background: var(--my-paper); color: var(--my-ink); }
.atlas-language {
  display: grid;
  gap: 3px;
  min-width: 122px;
}
.atlas-language > span {
  color: #92A5A1;
  font: 750 8px var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.atlas-language > div { display: flex; border: 1px solid rgba(255,255,255,.24); }
.atlas-language button {
  min-width: 34px;
  padding: 4px 7px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #B9C4C1;
  font: 720 9px var(--sans);
  cursor: pointer;
}
.atlas-language button:last-child { flex: 1; border-right: 0; }
.atlas-language button:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }
.atlas-language button.on { background: var(--my-paper); color: var(--my-ink); }

.atlas-commandbar {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 790;
  display: grid;
  grid-template-columns: minmax(250px, 286px) 190px 188px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--my-rule);
  background: rgba(247,244,236,.98);
}
.atlas-place {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 11px;
  min-width: 0;
  margin: 0;
  padding: 9px 16px;
  border-right: 1px solid var(--my-rule);
}
.atlas-place > span {
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 4px;
  height: auto;
  overflow: hidden;
  background: var(--my-teal);
  color: transparent;
}
.atlas-location-path { display: flex; min-width: 0; align-items: baseline; gap: 6px; overflow: hidden; }
.atlas-location-path button { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: var(--my-teal); font: 720 12px var(--sans); cursor: pointer; }
.atlas-location-path button:hover { text-decoration: underline; }
.atlas-location-path i { flex: 0 0 auto; color: #9AA6A2; font-style: normal; }
.atlas-location-path b { min-width: 0; overflow: hidden; color: var(--my-ink); font-size: 14px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.atlas-place.is-national .atlas-location-path i,
.atlas-place.is-national .atlas-location-path b { display: none; }
.atlas-place small { grid-column: 2; min-width: 0; overflow: hidden; color: var(--my-muted); font-size: 8.5px; letter-spacing: .055em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.atlas-location-picker { grid-column: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.atlas-location-picker > small { grid-column: auto; color: var(--my-teal); font: 750 8px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.atlas-location-picker select {
  width: 100%;
  min-width: 0;
  padding: 4px 24px 4px 7px;
  border: 1px solid #B8C2BE;
  border-radius: 0;
  background: #FBFAF5;
  color: var(--my-ink);
  font: 700 11px var(--sans);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.atlas-location-picker select:hover { border-color: var(--my-teal); background: #FFFFFF; }
.atlas-location-picker select:focus-visible { outline: 2px solid var(--my-teal); outline-offset: 1px; }

.atlas-lifecycle-state {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1px 9px;
  min-width: 0;
  padding: 7px 14px;
  border-right: 1px solid var(--my-rule);
}
.atlas-lifecycle-state i { grid-row: 1 / span 2; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--my-teal); box-shadow: 0 0 0 3px var(--my-teal-soft); }
.atlas-lifecycle-state span,
.atlas-lifecycle-state b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-lifecycle-state span { color: var(--my-muted); font: 750 8px var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.atlas-lifecycle-state b { color: var(--my-ink); font: 680 9px var(--sans); }
.atlas-lifecycle-state[data-state="watch"] i { background: var(--my-amber); box-shadow: 0 0 0 3px #F1E4C4; }
.atlas-lifecycle-state[data-state="watch"] span { color: #8A651E; }
.atlas-lifecycle-state[data-state="live"] i { background: #A2462F; box-shadow: 0 0 0 3px #F0D7CF; }
.atlas-lifecycle-state[data-state="live"] span { color: #A2462F; }
.atlas-lifecycle-state[data-state="post"] i { background: #2D7A65; box-shadow: 0 0 0 3px #D5E7DF; }
.atlas-lifecycle-state[data-state="post"] span { color: #2D6F5E; }

.atlas-boundary-switch {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 14px;
  border-right: 1px solid var(--my-rule);
}
.atlas-boundary-switch > span { color: var(--my-muted); font: 700 8px var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.atlas-boundary-switch > div { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; border: 1px solid #B8C2BE; }
.atlas-boundary-switch button { min-width: 0; padding: 5px 7px; overflow: hidden; border: 0; border-right: 1px solid #B8C2BE; background: transparent; color: #586763; font: 700 9px var(--sans); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.atlas-boundary-switch button:last-child { border-right: 0; }
.atlas-boundary-switch button:hover { background: #E7EAE4; color: var(--my-ink); }
.atlas-boundary-switch button.on { background: var(--my-ink); color: var(--my-paper); }

.atlas-metrics {
  --cds-body-compact-01-font-size: 12px;
  --cds-body-compact-01-line-height: 16px;
  --cds-layout-density-padding-inline: 8px;
  --cds-layout-density-padding-inline-normal: 8px;
  --cds-layout-density-padding-inline-min: 8px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 0 12px;
  overflow-x: auto;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}
.atlas-metrics::-webkit-scrollbar { display: none; }
.atlas-metrics button {
  position: relative;
  flex: 0 0 auto;
  min-width: 78px;
  padding: 1px 11px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #586763;
  font: 700 10px var(--sans);
  letter-spacing: .015em;
  white-space: nowrap;
  cursor: pointer;
}
.atlas-metrics button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: transparent;
}
.atlas-metrics button:hover { color: var(--my-ink); background: #ECEAE3; }
.atlas-metrics button.on { background: transparent; color: var(--my-ink); }
.atlas-metrics button.on::after { background: var(--my-teal); }
.atlas-metrics .atlas-watch-tab { gap: 6px; color: #805E1E; }
.atlas-metrics .atlas-watch-tab.on::after { background: var(--my-amber); }

.atlas-context-switch {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1px 9px;
  align-content: center;
  min-width: 0;
  padding: 8px 16px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--my-rule);
  background: transparent;
  color: var(--my-muted);
  text-align: left;
  cursor: pointer;
}
.atlas-context-switch i { grid-row: 1 / span 2; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: #98A6A2; }
.atlas-context-switch span { overflow: hidden; font: 700 8px var(--sans); letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.atlas-context-switch b { min-width: 0; overflow: hidden; color: var(--my-ink); font: 680 10px var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.atlas-context-switch:hover { background: #ECEAE3; }
.atlas-context-switch.is-active i { background: var(--my-amber); box-shadow: 0 0 0 3px #F1E4C4; }

.atlas-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 18px;
  overflow: hidden;
  border-left: 1px solid var(--my-rule);
  color: var(--my-muted);
  font: 650 10px var(--sans);
  letter-spacing: .015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--my-teal);
  box-shadow: 0 0 0 3px var(--my-teal-soft);
}
.atlas-status i { display: none; }

#atlasMap {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  background: var(--my-canvas);
}
.atlas-map-context {
  z-index: 720;
  display: flex;
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  align-items: stretch;
  max-width: calc(100% - 82px);
  min-width: 248px;
  margin: 14px 14px 0 62px;
  overflow: hidden;
  border: 1px solid #AEBBB7;
  background: rgba(247,244,236,.96);
  box-shadow: 0 3px 12px rgba(23,38,59,.12);
  pointer-events: auto;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.atlas-map-context > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 12px 8px;
}
.atlas-map-context > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--my-muted);
  font: 750 8px var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.atlas-map-context > div > span i {
  padding: 2px 4px;
  background: var(--my-teal-soft);
  color: var(--my-teal);
  font-style: normal;
  letter-spacing: .06em;
}
.atlas-map-context b {
  overflow: hidden;
  color: var(--my-ink);
  font: 720 12px/1.2 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-map-context small {
  overflow: hidden;
  color: var(--my-muted);
  font: 520 8.5px/1.25 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-map-context button {
  flex: 0 0 auto;
  padding: 0 11px;
  border: 0;
  border-left: 1px solid var(--my-rule);
  background: #ECEAE3;
  color: var(--my-teal);
  font: 720 9px var(--sans);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.atlas-map-context button:hover { background: var(--my-teal); color: var(--my-paper); }
.atlas-map-context button:active { transform: translateY(1px); }
.atlas-map-context button:focus-visible { outline: 2px solid var(--my-amber); outline-offset: -3px; }
.atlas-map-context.is-reading { border-color: var(--my-teal); box-shadow: 0 4px 16px rgba(45,116,110,.18); }
.atlas-map-context.is-reading span i { animation: atlas-context-pulse 900ms ease-in-out infinite alternate; }
.atlas-map-context > div > span > span { display: inline; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
@keyframes atlas-context-pulse { to { background: var(--my-teal); color: var(--my-paper); } }
.atlas-body .leaflet-container { background: var(--my-canvas); font-family: var(--sans); }
.atlas-body .leaflet-top { top: 14px; }
.atlas-body .leaflet-left { left: 14px; }
.atlas-body .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid #AEBBB7 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(23,38,59,.12) !important;
}
.atlas-body .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  border-color: var(--my-rule) !important;
  border-radius: 0 !important;
  background: rgba(247,244,236,.98) !important;
  color: var(--my-ink) !important;
  font-size: 19px !important;
  line-height: 32px !important;
}
.atlas-body .leaflet-control-attribution { background: rgba(247,244,236,.82) !important; color: #62716D; font-size: 8px; }

.atlas-panel {
  position: relative;
  inset: auto;
  z-index: 710;
  grid-column: 2;
  grid-row: 3 / 5;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 26px 27px 34px;
  overflow: auto;
  border: 0;
  border-left: 1px solid var(--my-rule);
  border-radius: 0;
  background: var(--my-paper);
  box-shadow: none;
  scrollbar-color: #AAB6B2 transparent;
  scrollbar-width: thin;
}
.atlas-panel h1 { margin: 2px 0 0; color: var(--my-ink); font-family: var(--font-display); font-size: clamp(25px, 2vw, 32px); font-weight: 720; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.atlas-panel p { color: #53625E; }
.atlas-kicker { color: var(--my-teal) !important; }
.atlas-panel-heading { padding-bottom: 17px; border-bottom: 1px solid var(--my-rule); }
.atlas-clear {
  margin: 1px 0 0;
  padding: 6px 8px;
  border: 1px solid #BCC7C3;
  border-radius: 2px;
  background: transparent;
  color: #4D5C58;
}
.atlas-clear:hover { border-color: var(--my-ink); background: var(--my-ink); color: var(--my-paper); text-decoration: none; }
.atlas-brief { border-bottom-color: var(--my-rule); }
.atlas-section { margin-top: 20px; }
.atlas-section-title > span,
.atlas-ranked > span,
.atlas-comparison > span { color: #65736F; letter-spacing: .12em; }
.atlas-finding {
  padding: 11px 12px;
  border: 1px solid #BED3CE;
  border-radius: 2px;
  background: #E6F0ED;
}
.atlas-stat-pair {
  border: 0;
  border-block: 1px solid var(--my-rule);
  border-radius: 0;
}
.atlas-stat-pair > div { padding: 12px 12px; border-right-color: var(--my-rule); }
.atlas-bands,
.atlas-comparison { border-color: var(--my-rule); border-radius: 2px; background: var(--my-rule); }
.atlas-bands > div,
.atlas-comparison > div { background: #FAF8F2; }
.atlas-outcome-table th,
.atlas-ballot th { border-bottom-color: #BFC9C5; }
.atlas-outcome-table td,
.atlas-ballot td,
.atlas-ranked > div,
.atlas-seat-link,
.atlas-news-list a { border-bottom-color: #DDE2DF; }
.atlas-primary,
.atlas-secondary { border-radius: 2px; }
.atlas-primary { border-color: var(--my-ink); background: var(--my-ink); }
.atlas-secondary { border-color: #AEBBB7; background: transparent; }
.atlas-evidence-item > span { color: var(--my-teal); }
.atlas-evidence-item > a { color: var(--my-teal); }
.atlas-count-archive { padding-top: 2px; border-top: 1px solid var(--my-rule); }
.atlas-count-archive p { font-size: 11px; line-height: 1.55; }
.atlas-count-archive a { display: inline-block; margin-top: 9px; color: var(--my-teal); font-size: 10px; font-weight: 750; text-decoration: none; }
.atlas-count-archive a:hover { text-decoration: underline; }

.atlas-result-frame--pending { padding-top: 2px; border-top: 3px solid var(--my-amber); }
.atlas-result-status,
.atlas-stat-triplet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 14px; border-block: 1px solid var(--my-rule); }
.atlas-result-status > div,
.atlas-stat-triplet > div { min-width: 0; padding: 10px 9px; border-right: 1px solid var(--my-rule); }
.atlas-result-status > div:first-child,
.atlas-stat-triplet > div:first-child { padding-left: 0; }
.atlas-result-status > div:last-child,
.atlas-stat-triplet > div:last-child { padding-right: 0; border-right: 0; }
.atlas-result-status b,
.atlas-result-status span,
.atlas-stat-triplet b,
.atlas-stat-triplet span { display: block; }
.atlas-result-status b,
.atlas-stat-triplet b { color: var(--my-ink); font: 720 20px/1 var(--font-display); }
.atlas-result-status span,
.atlas-stat-triplet span { margin-top: 4px; color: var(--my-muted); font-size: 8.5px; line-height: 1.25; text-transform: uppercase; }
.atlas-placeholder-value { display: inline-block; max-width: 100%; padding: 4px 6px; border: 1px dashed #B9A576; background: repeating-linear-gradient(135deg, #F3EEDA, #F3EEDA 5px, #F8F5EA 5px, #F8F5EA 10px); color: #79632C; font-size: 8.5px; font-weight: 750; line-height: 1.15; text-align: left; }
.atlas-candidate-status { grid-column: 1 / -1; }
.atlas-current-result--pending { margin-top: 16px; }
.atlas-pending-identity { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--my-rule); }
.atlas-pending-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px dashed #AA9667; background: #F3EEDA; color: #806929; font: 720 17px var(--font-display); }
.atlas-pending-identity > div { display: grid; min-width: 0; gap: 2px; }
.atlas-pending-identity small { color: #806929; font: 750 8px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.atlas-pending-identity b { color: var(--my-ink); font: 720 14px/1.2 var(--font-display); }
.atlas-pending-identity span { color: var(--my-muted); font-size: 9.5px; }
.atlas-previous-result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--my-rule); }
.atlas-reconciliation { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--my-rule); }
.atlas-reconciliation > span { color: #65736F; font: 800 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.atlas-reconciliation > p { margin: 7px 0 6px; font-size: 10px; line-height: 1.45; }
.atlas-reconciliation > small { display: block; padding-top: 8px; color: var(--my-muted); font-size: 9px; }
.atlas-reconciliation-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .8fr); gap: 10px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid #DDE2DF; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.atlas-reconciliation-row:hover { background: #E9EDE8; }
.atlas-reconciliation-row span { display: grid; min-width: 0; gap: 2px; }
.atlas-reconciliation-row b { overflow: hidden; color: var(--my-ink); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.atlas-reconciliation-row small { color: #806929; font-size: 8.5px; }
.atlas-reconciliation-row em { align-self: center; overflow: hidden; color: var(--my-muted); font-size: 8.5px; font-style: normal; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.atlas-tray {
  position: relative;
  inset: auto;
  z-index: 720;
  grid-column: 1;
  grid-row: 4;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  width: auto;
  height: auto;
  min-width: 0;
  border-top: 1px solid #BFC9C5;
  background: var(--my-paper-2);
  box-shadow: none;
}
.atlas-tray-item,
.atlas-tray article {
  min-width: 0;
  padding: 20px 20px 17px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--my-rule);
  background: transparent;
  color: var(--my-ink);
  text-align: left;
  cursor: pointer;
}
.atlas-tray-item:first-child { padding-left: 24px; background: #E9EDE8; }
.atlas-tray-item:last-child { border-right: 0; }
.atlas-tray-item:hover { background: #E1E7E3; }
.atlas-tray-item span,
.atlas-tray article > span { margin-bottom: 8px; color: #6A7773; font-size: 9px; letter-spacing: .12em; }
.atlas-tray-item:first-child span { color: var(--my-teal); }
.atlas-tray-item b,
.atlas-tray article > b { font-size: 14px; line-height: 1.22; }
.atlas-tray-item:first-child b { font-size: 17px; letter-spacing: -.012em; }
.atlas-tray-item p,
.atlas-tray article > p { margin-top: 7px; color: #65726F; font-size: 10.5px; line-height: 1.38; }

.atlas-key {
  position: relative;
  inset: auto;
  z-index: 700;
  align-self: end;
  justify-self: start;
  grid-column: 1;
  grid-row: 3;
  margin: 0 0 17px 18px;
  padding: 10px 11px;
  border: 1px solid #AEBBB7;
  border-radius: 2px;
  background: rgba(247,244,236,.96);
  box-shadow: 0 2px 8px rgba(23,38,59,.1);
}
.atlas-key b { color: var(--my-ink); }
.atlas-key span { color: var(--my-muted); }

.atlas-footer {
  position: relative;
  inset: auto;
  z-index: 730;
  align-self: end;
  justify-self: end;
  grid-column: 1;
  grid-row: 3;
  margin: 0 16px 17px 0;
  pointer-events: none;
}
.atlas-footer button {
  pointer-events: auto;
  border: 1px solid #AEBBB7;
  border-radius: 2px;
  background: rgba(247,244,236,.96);
  color: var(--my-ink);
}
.atlas-footer button:hover { border-color: var(--my-ink); background: var(--my-ink); color: var(--my-paper); }

.atlas-lifecycle-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 0 14px 15px;
  border-left: 3px solid var(--my-amber);
  border-block: 1px solid var(--my-rule);
  background: color-mix(in srgb, var(--my-amber) 7%, transparent);
}
.atlas-lifecycle-context > div { min-width: 0; }
.atlas-lifecycle-context > div > b { display: block; margin-top: 8px; color: var(--my-ink); font: 700 13px/1.25 var(--sans); }
.atlas-lifecycle-context p { margin: 4px 0 0; color: var(--my-muted); font: 500 10.5px/1.4 var(--sans); }
.atlas-lifecycle-context aside { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; border-left: 1px solid var(--my-rule); padding-left: 12px; }
.atlas-lifecycle-context aside span { color: var(--my-ink); font: 700 9.5px/1.3 var(--sans); }
.atlas-lifecycle-context aside small { margin: 3px 0 9px; color: var(--my-muted); font: 500 8.5px/1.35 var(--sans); }
.atlas-lifecycle-context aside button {
  margin-top: auto;
  padding: 6px 8px;
  border: 1px solid var(--my-ink);
  border-radius: 2px;
  background: var(--my-ink);
  color: var(--my-paper);
  font: 700 9px var(--sans);
  cursor: pointer;
}
.atlas-lifecycle-context aside button:hover { background: var(--my-teal); border-color: var(--my-teal); }

.atlas-source-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 11px 0 15px; background: var(--my-rule); border: 1px solid var(--my-rule); }
.atlas-source-entry { display: flex; min-width: 0; min-height: 78px; flex-direction: column; padding: 10px 11px; background: var(--my-paper-2); color: inherit; text-decoration: none; }
.atlas-source-entry:hover { background: #E8ECE7; }
.atlas-source-entry span { color: var(--my-teal); font: 750 8px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.atlas-source-entry b { margin: 5px 0 2px; color: var(--my-ink); font: 700 11px/1.25 var(--sans); }
.atlas-source-entry small { color: var(--my-muted); font: 500 8.5px/1.35 var(--sans); }
.atlas-watch-evidence .atlas-evidence-counts { grid-template-columns: repeat(2, 1fr); }

.atlas-lifecycle-context button:focus-visible,
.atlas-source-entry:focus-visible { outline: 2px solid var(--my-teal); outline-offset: 2px; }

.atlas-state-overview { display: grid; margin-top: 4px; border-top: 1px solid var(--my-rule); }
.atlas-state-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; padding: 10px 1px; border: 0; border-bottom: 1px solid #DDE2DF; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.atlas-state-row:hover { padding-left: 7px; background: #E9EDE8; }
.atlas-state-row > .atlas-identity-mark { width: 30px; height: 30px; }
.atlas-state-row > span { display: grid; min-width: 0; gap: 2px; }
.atlas-state-row b { overflow: hidden; color: var(--my-ink); font: 700 12px var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.atlas-state-row small { overflow: hidden; color: var(--my-muted); font: 500 9px var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.atlas-state-row em { max-width: 102px; overflow: hidden; color: var(--my-teal); font: 700 8px var(--sans); font-style: normal; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.atlas-state-row em.atlas-phase-live,
.atlas-state-row em.atlas-phase-urgent { color: #A2462F; }
.atlas-state-row em.atlas-phase-warm { color: #8A651E; }

/* Readable analytical scale and adaptive surfaces */
.atlas-location-picker select { font-size: 12px; }
.atlas-place small { font-size: 9.5px; }
.atlas-lifecycle-state span { font-size: 9px; }
.atlas-lifecycle-state b { font-size: 10.5px; }
.atlas-boundary-switch > span { font-size: 9px; }
.atlas-boundary-switch button { min-height: 27px; font-size: 10px; }
.atlas-metrics button { font-size: 11px; }
.atlas-map-context > div > span { font-size: 9px; }
.atlas-map-context b { font-size: 13px; }
.atlas-map-context small { font-size: 9.5px; }
.atlas-map-context button { font-size: 10px; }
.atlas-panel p { font-size: 14.5px; line-height: 1.62; }
.atlas-panel .atlas-kicker { font-size: 11.5px !important; line-height: 1.45; }
.atlas-panel dt { font-size: 12px; line-height: 1.4; }
.atlas-panel dd { font-size: 14px; line-height: 1.3; }
.atlas-panel dd small { font-size: 12px; }
.atlas-panel .atlas-clear { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.atlas-section-title > span,
.atlas-ranked > span,
.atlas-comparison > span,
.atlas-reconciliation > span { font-size: 12px; line-height: 1.4; }
.atlas-section-title small { font-size: 11.5px; line-height: 1.45; }
.atlas-caveat { font-size: 12.5px !important; line-height: 1.6 !important; }
.atlas-finding { font-size: 14px !important; line-height: 1.6 !important; }
.atlas-outcome-table,
.atlas-ballot table { font-size: 13.5px; }
.atlas-outcome-table th,
.atlas-ballot th { font-size: 11px; line-height: 1.4; }
.atlas-outcome-table td b { font-size: 14px; }
.atlas-outcome-table td small { font-size: 11.5px; }
.atlas-candidate-identity small { font-size: 11px; }
.atlas-candidate-identity b { font-size: 16px; line-height: 1.3; }
.atlas-candidate-identity span { font-size: 12px; line-height: 1.45; }
.atlas-stat-pair span,
.atlas-result-status span,
.atlas-stat-triplet span { font-size: 11.5px; }
.atlas-ranked > div b,
.atlas-seat-link b { font-size: 12.5px; }
.atlas-ranked > div em,
.atlas-seat-link em { font-size: 12px; }
.atlas-tray-item span,
.atlas-tray article > span { font-size: 9.5px; }
.atlas-tray-item b,
.atlas-tray article > b { font-size: 15px; }
.atlas-tray-item:first-child b { font-size: 18px; }
.atlas-tray-item p,
.atlas-tray article > p { font-size: 11.5px; }
.atlas-source-entry span { font-size: 11px; }
.atlas-source-entry b { font-size: 13.5px; line-height: 1.4; }
.atlas-source-entry small { font-size: 11.5px; line-height: 1.5; }
.atlas-evidence-item > span { font-size: 11.5px; line-height: 1.45; }
.atlas-evidence-item > b { font-size: 14.5px; line-height: 1.4; }
.atlas-evidence-item > p { font-size: 14px; line-height: 1.6; }
.atlas-evidence-item > a { font-size: 12.5px; line-height: 1.4; }
.atlas-poll-result i { font-size: 11.5px; line-height: 1.4; }
.atlas-count-archive p { font-size: 13.5px; }
.atlas-count-archive a { font-size: 12.5px; }
.atlas-lifecycle-context > div > b { font-size: 14px; }
.atlas-lifecycle-context p { font-size: 13px; line-height: 1.55; }
.atlas-lifecycle-context aside span { font-size: 11.5px; }
.atlas-lifecycle-context aside small { font-size: 11px; }
.atlas-lifecycle-context aside button { font-size: 11.5px; }
.atlas-state-row b { font-size: 13px; }
.atlas-state-row small { font-size: 11.5px; }
.atlas-state-row em { font-size: 10.5px; }
.atlas-body .leaflet-tile-pane { filter: brightness(.92) saturate(.72) contrast(.94); transition: filter 220ms ease; }
.atlas-body[data-theme="dim"] .leaflet-tile-pane { filter: brightness(.62) saturate(.56) contrast(.9) sepia(.06); }

.atlas-body[data-theme="dim"] .atlas-commandbar,
.atlas-body[data-theme="dim"] .atlas-panel,
.atlas-body[data-theme="dim"] .atlas-tray { background: var(--my-paper); }
.atlas-body[data-theme="dim"] .atlas-location-picker select,
.atlas-body[data-theme="dim"] .atlas-boundary-switch > div,
.atlas-body[data-theme="dim"] .atlas-map-context,
.atlas-body[data-theme="dim"] .atlas-secondary,
.atlas-body[data-theme="dim"] .atlas-clear { border-color: var(--my-rule); background: var(--my-surface); color: var(--my-ink); }
.atlas-body[data-theme="dim"] .atlas-boundary-switch button { border-color: var(--my-rule); color: var(--my-muted); }
.atlas-body[data-theme="dim"] .atlas-boundary-switch button:hover,
.atlas-body[data-theme="dim"] .atlas-metrics button:hover,
.atlas-body[data-theme="dim"] .atlas-context-switch:hover,
.atlas-body[data-theme="dim"] .atlas-state-row:hover,
.atlas-body[data-theme="dim"] .atlas-source-entry:hover { background: #323B38; color: var(--my-ink); }
.atlas-body[data-theme="dim"] .atlas-boundary-switch button.on,
.atlas-body[data-theme="dim"] .atlas-primary,
.atlas-body[data-theme="dim"] .atlas-clear:hover,
.atlas-body[data-theme="dim"] .atlas-footer button:hover { background: #D5DDD9; color: #202725; }
.atlas-body[data-theme="dim"] .atlas-map-context button { background: #303936; color: var(--my-teal); }
.atlas-body[data-theme="dim"] .atlas-map-context button:hover { background: var(--my-teal); color: #202725; }
.atlas-body[data-theme="dim"] .leaflet-container { background: var(--my-canvas); }
.atlas-body[data-theme="dim"] .leaflet-control-zoom,
.atlas-body[data-theme="dim"] .leaflet-control-zoom a { border-color: var(--my-rule) !important; }
.atlas-body[data-theme="dim"] .leaflet-control-zoom a,
.atlas-body[data-theme="dim"] .leaflet-control-attribution { background: rgba(37,44,42,.94) !important; color: var(--my-ink) !important; }
.atlas-body[data-theme="dim"] .atlas-panel p,
.atlas-body[data-theme="dim"] .atlas-brief,
.atlas-body[data-theme="dim"] .atlas-tray article > p,
.atlas-body[data-theme="dim"] .atlas-count-archive p { color: var(--my-muted) !important; }
.atlas-body[data-theme="dim"] .atlas-finding { border-color: #49625C; background: #2E3B37; color: #D7DFDC !important; }
.atlas-body[data-theme="dim"] .atlas-bands > div,
.atlas-body[data-theme="dim"] .atlas-comparison > div,
.atlas-body[data-theme="dim"] .atlas-source-entry { background: var(--my-surface); }
.atlas-body[data-theme="dim"] .atlas-outcome-table td b,
.atlas-body[data-theme="dim"] .atlas-stat-pair b,
.atlas-body[data-theme="dim"] .atlas-bands b,
.atlas-body[data-theme="dim"] .atlas-bands span,
.atlas-body[data-theme="dim"] .atlas-ranked > div b,
.atlas-body[data-theme="dim"] .atlas-ballot td,
.atlas-body[data-theme="dim"] .atlas-seat-link,
.atlas-body[data-theme="dim"] .atlas-pending-identity b { color: var(--my-ink); }
.atlas-body[data-theme="dim"] .atlas-placeholder-value,
.atlas-body[data-theme="dim"] .atlas-pending-mark { border-color: #806F4C; background: #383426; color: #E2C37C; }
.atlas-body[data-theme="dim"] .atlas-watch-phase > b,
.atlas-body[data-theme="dim"] .atlas-brief b,
.atlas-body[data-theme="dim"] .atlas-watch button b,
.atlas-body[data-theme="dim"] .atlas-watch-event b,
.atlas-body[data-theme="dim"] .atlas-watch-dates b,
.atlas-body[data-theme="dim"] .atlas-watch-unknowns > div b,
.atlas-body[data-theme="dim"] .atlas-count-status b,
.atlas-body[data-theme="dim"] .atlas-live-tallies b,
.atlas-body[data-theme="dim"] .atlas-baseline-tally b,
.atlas-body[data-theme="dim"] .atlas-tray article > b,
.atlas-body[data-theme="dim"] .atlas-tray-item b,
.atlas-body[data-theme="dim"] .atlas-tray-item:first-child b,
.atlas-body[data-theme="dim"] .atlas-candidate-status b { color: var(--my-ink); }
.atlas-body[data-theme="dim"] .atlas-section-title > span,
.atlas-body[data-theme="dim"] .atlas-ranked > span,
.atlas-body[data-theme="dim"] .atlas-comparison > span,
.atlas-body[data-theme="dim"] .atlas-watch-dates span,
.atlas-body[data-theme="dim"] .atlas-watch-unknowns > div span,
.atlas-body[data-theme="dim"] .atlas-watch small,
.atlas-body[data-theme="dim"] .atlas-watch button span,
.atlas-body[data-theme="dim"] .atlas-tray-item span,
.atlas-body[data-theme="dim"] .atlas-outcome-table th,
.atlas-body[data-theme="dim"] .atlas-outcome-table td small,
.atlas-body[data-theme="dim"] .atlas-section-title small { color: var(--my-muted); }
.atlas-body[data-theme="dim"] .atlas-metrics button { color: #A6B2AD; }
.atlas-body[data-theme="dim"] .atlas-metrics button.on { color: var(--my-ink); }
.atlas-body[data-theme="dim"] .atlas-tray-item:first-child { background: #293532; }
.atlas-body[data-theme="dim"] .atlas-tray-item:first-child span { color: var(--my-teal); }
.atlas-body[data-theme="dim"] .atlas-key,
.atlas-body[data-theme="dim"] .atlas-footer button { border-color: var(--my-rule); background: rgba(37,44,42,.95); color: var(--my-ink); }
.atlas-body[data-theme="dim"] .atlas-key span,
.atlas-body[data-theme="dim"] .atlas-tray-item p,
.atlas-body[data-theme="dim"] .atlas-tray article > p { color: var(--my-muted); }
.atlas-scrollable {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.atlas-scrollable::-webkit-scrollbar { width: 6px; height: 6px; }
.atlas-scrollable::-webkit-scrollbar-track { background: transparent; }
.atlas-scrollable::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}
.atlas-scrollable.is-scrolling { scrollbar-color: color-mix(in srgb, var(--my-muted) 68%, transparent) transparent; }
.atlas-scrollable.is-scrolling::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--my-muted) 68%, transparent); background-clip: padding-box; }
.atlas-scrollable.is-scrolling::-webkit-scrollbar-thumb:hover { background: var(--my-teal); background-clip: padding-box; }
.atlas-body[data-theme="dim"] .atlas-lifecycle-state[data-state="watch"] i,
.atlas-body[data-theme="dim"] .atlas-context-switch.is-active i { box-shadow: 0 0 0 3px #4A402B; }
.atlas-body[data-theme="dim"] .atlas-lifecycle-state[data-state="watch"] span,
.atlas-body[data-theme="dim"] .atlas-metrics .atlas-watch-tab { color: #D2A75B; }

@media (max-width: 1180px) {
  #atlasRoot { grid-template-columns: minmax(0, 1fr) 400px; }
  .atlas-masthead { grid-template-columns: minmax(290px, 380px) 1fr auto; }
  .atlas-commandbar { grid-template-columns: 230px 170px 174px minmax(0, 1fr); }
  .atlas-metrics button { min-width: 70px; padding-inline: 8px; }
  .atlas-panel { width: auto; padding-inline: 23px; }
  .atlas-tray-item { padding-inline: 15px; }
  .atlas-tray-item:first-child { padding-left: 20px; }
}

@media (max-width: 920px) {
  #atlasRoot { grid-template-columns: minmax(0, 1fr) 370px; grid-template-rows: 58px 96px minmax(0, 1fr) 156px; }
  .atlas-masthead { grid-template-columns: 300px 1fr auto; }
  .atlas-edition { display: none; }
  .atlas-global-controls { gap: 10px; }
  .atlas-credibility { min-width: 190px; }
  .atlas-commandbar { grid-template-columns: minmax(0, 1fr) 170px 190px; grid-template-rows: 44px 52px; }
  .atlas-place { padding-block: 6px; }
  .atlas-lifecycle-state { padding-block: 4px; }
  .atlas-boundary-switch { padding-block: 4px; border-right: 0; border-left: 1px solid var(--my-rule); }
  .atlas-boundary-switch > span { display: none; }
  .atlas-metrics { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; border-top: 1px solid var(--my-rule); }
  .atlas-metrics button { min-width: auto; }
  .atlas-panel { width: auto; }
  .atlas-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
  .atlas-tray-item,
  .atlas-tray article { padding: 14px 11px; }
  .atlas-tray-item:first-child { padding-left: 13px; }
  .atlas-tray-item b,
  .atlas-tray article > b { font-size: 12.5px; }
  .atlas-tray-item:first-child b { font-size: 15px; }
  .atlas-tray-item p,
  .atlas-tray article > p { font-size: 10.5px; }
}

@media (max-width: 760px) {
  .atlas-body { overflow: auto; }
  #atlasRoot {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 58px 140px minmax(300px, 44dvh) auto 122px;
    min-height: calc(var(--infoundi-vh, 1vh) * 100);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .atlas-masthead { position: sticky; top: 0; grid-template-columns: 1fr auto; padding: 0 12px; }
  .atlas-brand { gap: 9px; }
  .atlas-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .atlas-brand-mark img { width: 28px; height: 28px; }
  .atlas-brand-name b { font-size: 15px; }
  .atlas-brand-name small { font-size: 8.5px; }
  .atlas-global-controls { gap: 0; }
  .atlas-credibility { display: none; }
  .atlas-theme { min-width: 88px; margin-right: 9px; }
  .atlas-theme > span { display: none; }
  .atlas-theme select { padding-block: 6px; }
  .atlas-language { min-width: 112px; }
  .atlas-language > span { display: none; }
  .atlas-language button { padding-block: 6px; }
  .atlas-commandbar { grid-column: 1; grid-template-columns: minmax(0, 1fr) 158px; grid-template-rows: 44px 44px 52px; }
  .atlas-place { display: grid; padding-inline: 10px; }
  .atlas-location-picker { gap: 5px; }
  .atlas-location-picker > small { display: none; }
  .atlas-place small { font-size: 7.5px; }
  .atlas-location-path b { font-size: 12px; }
  .atlas-lifecycle-state { grid-column: 2; grid-row: 1; padding: 4px 8px; border-left: 1px solid var(--my-rule); }
  .atlas-lifecycle-state b { font-size: 8px; }
  .atlas-boundary-switch { grid-column: 1 / -1; grid-row: 2; padding: 5px 10px; border-top: 1px solid var(--my-rule); border-left: 0; }
  .atlas-boundary-switch > div { max-width: 330px; }
  .atlas-metrics { grid-row: 3; justify-content: flex-start; padding-inline: 6px; }
  .atlas-metrics button { min-width: auto; padding-inline: 10px; }
  #atlasMap { grid-column: 1; grid-row: 3; inset: auto; }
  .atlas-map-context {
    min-width: 0;
    max-width: calc(100% - 78px);
    margin: 9px 8px 0 61px;
  }
  .atlas-map-context > div { padding: 7px 9px 6px; }
  .atlas-map-context small { display: none; }
  .atlas-map-context button { padding-inline: 9px; }
  .atlas-body .leaflet-top { top: 9px; }
  .atlas-body .leaflet-left { left: 9px; }
  .atlas-panel {
    align-self: stretch;
    grid-column: 1;
    grid-row: 4;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 24px 20px 34px;
    border: 0;
    border-top: 1px solid var(--my-rule);
    background: var(--my-paper);
    box-shadow: none;
  }
  .atlas-panel::before { margin-bottom: 10px; }
  .atlas-panel h1 { font-size: 24px; }
  .atlas-tray {
    grid-column: 1;
    grid-row: 5;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 78vw);
    height: auto;
    overflow-x: auto;
  }
  .atlas-tray-item,
  .atlas-tray article { padding: 14px 16px; }
  .atlas-tray-item:first-child { padding-left: 16px; }
  .atlas-tray-item:first-child b { font-size: 14px; }
  .atlas-key { display: none; }
  .atlas-footer { display: none; }
  .atlas-lifecycle-context { grid-template-columns: 1fr; }
  .atlas-lifecycle-context aside { border-top: 1px solid var(--my-rule); border-left: 0; padding: 9px 0 0; }
  .atlas-lifecycle-context aside button { margin-top: 2px; }
}

@media (max-width: 480px) {
  .atlas-credibility span { font-size: 8px; }
  .atlas-brand .atlas-brand-name small { display: none; }
  .atlas-brand-name b strong { font-size: 17px; }
  .atlas-theme { min-width: 78px; margin-right: 6px; }
  .atlas-theme select { font-size: 9px; }
  .atlas-metrics button { padding-inline: 9px; font-size: 9.5px; }
  .atlas-watch-tab span { display: none; }
  .atlas-source-ledger { grid-template-columns: 1fr; }
}

/* responsive */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .geo-wrap { grid-template-columns: 1fr; }
  .dossier { position: static; max-height: none; }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .shell.rail-collapsed { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; }
  .rail-toggle { display: none; }
  .side-meta { border: none; padding: 0; flex-direction: row; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-nav a { border-left: none; border-bottom: 3px solid transparent; }
  .side-nav a.active { border-bottom-color: var(--red); }
  .grid-3, .grid-2, .swing-cols { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 40px; }
  .focus-evidence { grid-template-columns: 1fr; }
  .focus-evidence article, .focus-evidence article + article { padding: 14px 0; border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .focus-evidence article:last-child { border-bottom: 0; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-status { justify-items: start; padding: 13px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .outlook-item:nth-child(n+2) { padding-left: 0; border-left: 0; }
  .watch-brief-head { display: block; }.watch-facts { grid-template-columns: 1fr 1fr; gap: 0; min-width: 0; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); border-left: 0; }.watch-facts div { padding: 0 12px 0 0; }.watch-facts div + div { padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--line); }.focus-deck footer { display: block; }.focus-deck footer a { display: inline-block; margin-top: 9px; }
  .watch-workspace-head { display: block; }.watch-workspace-head > p { margin-top: 7px; }.watch-brief-grid { grid-template-columns: 1fr; }.watch-key-seats ol { grid-template-columns: 1fr 1fr; }.watch-key-seats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .campaign-stream-grid { grid-template-columns: 1fr; }.campaign-social { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }.campaign-news { grid-template-columns: 1fr; }.campaign-news-item:nth-child(n) { padding-left: 0; padding-right: 0; }
  .main { padding: 24px 18px 52px; }.band { padding: 24px 0; }
  #overview .grid-3 > .card { padding: 20px 0; border-left: 0 !important; border-top: 1px solid #DDE3EC; }
  #overview .grid-3 > .card:first-child { border-top: 0; padding-top: 0; }
  #trends .grid-2, #reports .grid-2 { gap: 0; }
  #trends .grid-2 > .card, #reports .grid-2 > .card { padding: 20px 0; border-left: 0; border-top: 1px solid #DDE3EC; }
  #trends .grid-2 > .card:first-child, #reports .grid-2 > .card:first-child { border-top: 0; padding-top: 0; }
  .watch-brief-grid > .card + .card { margin-top: 20px; padding: 20px 0 0; border-left: 0; border-top: 1px solid #DDE3EC; }
  .topbar { gap: 15px; }
  .top-controls { grid-template-columns: minmax(112px, .8fr) minmax(0, 1.2fr); padding: 6px; }
  .contest-ctl { grid-column: 1 / -1; }
  .type-ctl { grid-column: 1 / -1; }
  .election-ctl { grid-column: 1 / -1; }
  .poll-record { grid-template-columns: 1fr; gap: 11px; }
}

/* Complete electorate distributions. No category is dropped to create a shorter card. */
.atlas-electorate {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--my-rule);
}
.atlas-electorate > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.atlas-electorate > header span {
  color: var(--my-ink);
  font: 780 9px var(--font-data);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.atlas-electorate > header i {
  flex: 0 0 auto;
  color: var(--my-muted);
  font: 600 8.5px var(--sans);
  font-style: normal;
}
.atlas-electorate .atlas-electorate-total {
  margin: 8px 0 14px;
  color: var(--my-muted);
  font-size: 10px;
}
.atlas-electorate .atlas-electorate-total b {
  color: var(--my-ink);
  font: 720 17px var(--font-display);
  letter-spacing: -.015em;
}
.atlas-electorate-groups { display: grid; gap: 14px; }
.atlas-electorate-group h4 {
  margin: 0 0 6px;
  color: var(--my-muted);
  font: 750 8.5px var(--font-data);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.atlas-electorate-bar {
  display: flex;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--my-rule);
}
.atlas-electorate-bar > i { flex: 0 0 calc(var(--share) * 1%); min-width: 1px; }
.atlas-electorate-bar > i:nth-child(1), .atlas-electorate-legend span:nth-child(1) > i { background: #2D7068; }
.atlas-electorate-bar > i:nth-child(2), .atlas-electorate-legend span:nth-child(2) > i { background: #D49A3A; }
.atlas-electorate-bar > i:nth-child(3), .atlas-electorate-legend span:nth-child(3) > i { background: #5A73A7; }
.atlas-electorate-bar > i:nth-child(4), .atlas-electorate-legend span:nth-child(4) > i { background: #B75C50; }
.atlas-electorate-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 13px;
  margin-top: 8px;
}
.atlas-electorate-legend span {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--my-muted);
  font-size: 9px;
}
.atlas-electorate-legend span > i { width: 6px; height: 6px; border-radius: 50%; }
.atlas-electorate-legend b { overflow: hidden; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.atlas-electorate-legend strong { color: var(--my-ink); font: 700 9px var(--font-data); }
.atlas-electorate > small {
  display: block;
  margin-top: 14px;
  color: var(--my-muted);
  font-size: 9px;
  line-height: 1.45;
}
.atlas-body[data-theme="dim"] .atlas-electorate-bar > i:nth-child(1),
.atlas-body[data-theme="dim"] .atlas-electorate-legend span:nth-child(1) > i { background: #71B5AA; }
.atlas-body[data-theme="dim"] .atlas-electorate-bar > i:nth-child(2),
.atlas-body[data-theme="dim"] .atlas-electorate-legend span:nth-child(2) > i { background: #E0B45F; }
.atlas-body[data-theme="dim"] .atlas-electorate-bar > i:nth-child(3),
.atlas-body[data-theme="dim"] .atlas-electorate-legend span:nth-child(3) > i { background: #8DA5D5; }
.atlas-body[data-theme="dim"] .atlas-electorate-bar > i:nth-child(4),
.atlas-body[data-theme="dim"] .atlas-electorate-legend span:nth-child(4) > i { background: #D57D72; }

/* Constituency dossiers are durable analytical records, not map popovers. */
.atlas-seat-history {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--my-rule);
}
.atlas-seat-history ol {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.atlas-seat-history ol::before {
  position: absolute;
  top: 8px;
  bottom: 12px;
  left: 5px;
  width: 1px;
  background: var(--my-rule);
  content: "";
}
.atlas-seat-history li {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  padding: 0 0 16px;
}
.atlas-history-marker {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 2px solid var(--my-paper);
  border-radius: 50%;
  background: #8B9995;
  box-shadow: 0 0 0 1px #8B9995;
}
.atlas-seat-history li.is-current .atlas-history-marker {
  background: var(--my-teal);
  box-shadow: 0 0 0 1px var(--my-teal);
}
.atlas-history-record { min-width: 0; }
.atlas-history-record header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.atlas-history-record header > div { display: grid; gap: 1px; }
.atlas-history-record header b { color: var(--my-ink); font: 760 12.5px var(--font-data); }
.atlas-history-record header small { color: var(--my-muted); font-size: 10.5px; }
.atlas-history-record header em {
  padding: 3px 5px;
  border: 1px solid var(--my-rule);
  color: var(--my-muted);
  font: 700 9px var(--font-data);
  font-style: normal;
  text-align: right;
}
.atlas-history-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.atlas-history-marks {
  position: relative;
  display: flex;
  align-items: center;
  width: 46px;
  min-height: 30px;
}
.atlas-history-marks .atlas-identity-mark { width: 30px; height: 30px; flex-basis: 30px; }
.atlas-history-marks .atlas-identity-mark + .atlas-identity-mark {
  margin-left: -10px;
  border-color: var(--my-paper);
}
.atlas-history-identity strong {
  display: block;
  overflow: hidden;
  color: var(--my-ink);
  font: 720 14px/1.3 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-history-identity p { margin-top: 2px; font-size: 11.5px; }
.atlas-panel .atlas-history-record dl {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 9px 0 0;
}
.atlas-panel .atlas-history-record dl > div { padding-top: 7px; border-top: 1px solid var(--my-rule); }
.atlas-panel .atlas-history-record dd { font-size: 12px; }
.atlas-history-break > div {
  padding: 10px 11px;
  border-left: 2px solid var(--my-amber);
  background: color-mix(in srgb, var(--my-amber) 9%, var(--my-paper));
}
.atlas-history-break b { color: var(--my-ink); font-size: 11.5px; }
.atlas-history-break p { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.atlas-history-break small { display: block; margin-top: 5px; color: var(--my-muted); font-size: 9.5px; }
.atlas-history-empty { margin: -2px 0 10px !important; font-size: 11px !important; }
.atlas-history-source {
  display: inline-flex;
  margin-left: 23px;
  color: var(--my-teal);
  font: 720 10.5px var(--font-data);
  text-decoration: none;
}
.atlas-history-source:hover { text-decoration: underline; }
.atlas-body[data-theme="dim"] .atlas-history-marker { border-color: var(--my-paper); }
.atlas-body[data-theme="dim"] .atlas-history-break > div { background: #383426; }

@media (max-width: 760px) {
  .atlas-seat-history { margin-top: 19px; }
  .atlas-history-identity strong { white-space: normal; }
  .atlas-history-record header { gap: 8px; }
  .atlas-history-record header em { max-width: 46%; }
}
