@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* walnut panelling of the chamber */
  --wood-0: #140e0c;
  --wood-1: #1d1512;
  --wood-2: #2a1f1a;
  --wood-3: #3a2b24;
  /* bench velvet */
  --velvet: #7d1119;
  --velvet-deep: #5c0b12;
  --velvet-hi: #a31a25;
  /* brass fittings */
  --brass: #d1ad62;
  --brass-dim: rgba(209, 173, 98, 0.24);
  --brass-faint: rgba(209, 173, 98, 0.12);
  /* text */
  --ivory: #f4ecdd;
  --ivory-2: #cdbfa8;
  --ivory-3: #a39279;
  /* scoreboard lamps */
  --si: #3ccf73;
  --no: #ff6152;
  --abst: #f5b63e;
  --si-glow: rgba(60, 207, 115, 0.22);
  --no-glow: rgba(255, 97, 82, 0.2);
  --abst-glow: rgba(245, 182, 62, 0.2);

  --radius: 10px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--wood-3) var(--wood-0); }
body {
  margin: 0;
  background: var(--wood-0);
  background-image: linear-gradient(180deg, #1a120f 0%, var(--wood-0) 420px);
  color: var(--ivory);
  font: 400 16px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  caret-color: var(--brass);
  min-height: 100vh;
}
::selection { background: var(--velvet-hi); color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
a { color: var(--ivory); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
h1, h2, h3 { margin: 0; font-stretch: 75%; letter-spacing: 0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--wood-0); }
::-webkit-scrollbar-thumb { background: var(--wood-3); border-radius: 10px; border: 2px solid var(--wood-0); }

/* ---------- velvet header ---------- */
.bar {
  background: linear-gradient(180deg, var(--velvet) 0%, var(--velvet-deep) 100%);
  border-bottom: 1px solid var(--brass-dim);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 3;
}
.bar__inner {
  max-width: 1380px; margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.brand h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.005em; font-stretch: 68%; text-transform: uppercase; }
.brand__date { color: var(--brass); }
.brand__sub { margin: 6px 0 0; color: #ecd9c4; font-size: 0.9rem; }
.bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.92rem/1 var(--font); font-stretch: 88%;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; color: var(--ivory); background: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn--ghost { border-color: rgba(244, 236, 221, 0.35); }
.btn--ghost:hover { background: rgba(0, 0, 0, 0.18); border-color: rgba(244, 236, 221, 0.6); }
.btn--solid { background: var(--ivory); color: var(--velvet-deep); }
.btn--solid:hover { background: #fff; }
.btn--small { padding: 8px 13px; font-size: 0.85rem; border-color: var(--brass-dim); }
.btn--small:hover { border-color: var(--brass); background: var(--brass-faint); }

/* ---------- phone ticker ---------- */
.ticker { display: none; }

/* ---------- layout ---------- */
.layout {
  max-width: 1380px; margin: 0 auto;
  padding: 28px var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(340px, 1fr);
  gap: 28px 36px; align-items: start;
}
.parties { min-width: 0; }
.parties__head h2, .chamber__head h2, .scoreboard__top h2, .method h2 {
  font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass);
}
.parties__hint { margin: 6px 0 18px; color: var(--ivory-2); max-width: 62ch; font-size: 0.95rem; }

.poll {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: start;
  padding: 14px 0 16px; margin-bottom: 6px; border-top: 1px solid var(--brass-faint);
}
.poll__pick { display: grid; gap: 6px; }
.poll__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-3); }
.poll select {
  font: 600 0.95rem var(--font); color: var(--ivory); background: var(--wood-1); border: 1px solid var(--brass-dim);
  border-radius: 9px; padding: 10px 34px 10px 12px; appearance: none; cursor: pointer; min-width: 240px; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23d1ad62' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
.poll select:hover { border-color: var(--brass); }
.poll select optgroup { color: var(--ivory-3); font-weight: 700; }
.poll select option { color: var(--ivory); background: var(--wood-1); font-weight: 500; }
.poll__card { font-size: 0.86rem; color: var(--ivory-2); line-height: 1.45; padding-top: 18px; min-width: 0; }
.poll__card p { margin: 0 0 3px; }
.poll__meta strong { color: var(--ivory); }
.poll__seats { color: var(--ivory); font-weight: 600; font-stretch: 88%; }
.poll__note, .poll__edited { color: var(--ivory-3); font-size: 0.8rem; }
.poll__edited { color: var(--abst); }
@media (max-width: 720px) {
  .poll { grid-template-columns: 1fr; }
  .poll select { width: 100%; }
  .poll__card { padding-top: 0; }
}

.manual {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius);
  background: rgba(245, 182, 62, 0.1); border: 1px solid rgba(245, 182, 62, 0.35); color: #f8dfae;
}
.manual p { margin: 0; font-size: 0.92rem; }
.manual[hidden] { display: none; }

.cols, .row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(170px, 1.7fr) 118px 186px;
  align-items: center; gap: 14px;
}
.cols {
  padding: 0 12px 8px; border-bottom: 1px solid var(--brass-dim);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-3);
}
.cols__seats { text-align: center; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  padding: 10px 12px; border-bottom: 1px solid var(--brass-faint);
  transition: background 0.2s var(--ease);
  position: relative;
}
.row:hover { background: rgba(255, 230, 190, 0.025); }
.row__name { display: grid; grid-template-columns: 6px 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.row__mark { grid-row: span 2; width: 6px; height: 34px; border-radius: 3px; background: var(--c); }
.row__short { font-weight: 800; font-stretch: 72%; font-size: 1.22rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; }
.row__full { font-size: 0.76rem; line-height: 1.3; color: var(--ivory-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.row__pct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pctbox { display: inline-flex; align-items: baseline; gap: 3px; color: var(--ivory-3); font-size: 0.85rem; }
.pctbox input {
  width: 56px; padding: 7px 6px; text-align: right;
  font: 600 1rem/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ivory);
  background: var(--wood-1); border: 1px solid var(--wood-3); border-radius: 7px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pctbox input:hover { border-color: var(--brass-dim); }
.pctbox input:focus { outline: none; border-color: var(--brass); background: var(--wood-2); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; margin: 0; background: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--c) var(--fill, 0%), var(--wood-3) var(--fill, 0%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--wood-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--c); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--ivory); border: 3px solid var(--c); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--c); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--wood-0), 0 0 0 5px var(--brass); }

.row__seats { display: flex; align-items: center; justify-content: center; gap: 6px; }
.step {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--wood-1); border: 1px solid var(--wood-3); color: var(--ivory-2);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.step svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.step:hover:not(:disabled) { border-color: var(--brass); color: var(--ivory); background: var(--wood-2); }
.step:disabled { opacity: 0.3; cursor: not-allowed; }

/* rolling digits */
.digits { display: inline-flex; line-height: 1; font-weight: 800; font-stretch: 70%; position: relative; }
.digit { display: inline-block; height: 1em; overflow: hidden; width: 0.56em; text-align: center; }
.digit__strip { display: flex; flex-direction: column; transition: transform 0.55s var(--ease); }
.digit__strip > span { display: block; height: 1em; line-height: 1; }
.digit--blank { visibility: hidden; width: 0; }
.digits--seat { font-size: 1.85rem; min-width: 2.1ch; justify-content: center; color: var(--ivory); }
.row--zero .digits--seat { color: var(--ivory-3); }
.row--edited .digits--seat { color: var(--abst); }
.row--edited::after {
  content: "a mano"; position: absolute; right: 196px; top: 6px;
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--abst);
}

/* segmented vote control */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--wood-1); border: 1px solid var(--wood-3); }
.seg label { position: relative; flex: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 600; font-stretch: 85%; color: var(--ivory-3);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.seg i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; }
.seg label:hover span { color: var(--ivory); }
.seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 1px; }
.seg__opt--si input:checked + span { background: var(--si-glow); color: var(--si); }
.seg__opt--no input:checked + span { background: var(--no-glow); color: var(--no); }
.seg__opt--abst input:checked + span { background: var(--abst-glow); color: var(--abst); }
.seg input:checked + span i { background: currentColor; }
.seg__opt--abst i { border-radius: 2px; }
.seg__opt--no i { border-radius: 1px; transform: rotate(45deg) scale(0.9); }
.row .seg { width: 100%; }

.rest { display: flex; justify-content: space-between; padding: 14px 12px; color: var(--ivory-3); font-size: 0.92rem; border-bottom: 1px solid var(--brass-faint); }
.rest__value { font-weight: 600; color: var(--ivory-2); }
.error { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--no-glow); color: #ffc4bd; border: 1px solid rgba(255, 97, 82, 0.4); font-size: 0.92rem; }

/* ---------- board ---------- */
.board { align-self: stretch; }
.board__sticky { position: sticky; top: var(--sticky-top, 16px); display: grid; gap: 14px; }
@media (min-width: 981px) and (max-height: 1000px) {
  .board__sticky { gap: 10px; }
  .hemi { max-width: 360px; margin: -4px auto 0; }
  .chamber { padding: 12px 16px 10px; }
  .scoreboard { padding: 14px 16px; }
  .scoreboard__top { margin-bottom: 10px; }
  .round { padding: 8px 2px; }
  .verdict { min-height: 0; margin-top: 10px; font-size: 0.96rem; }
  .pacts { margin-top: 10px; padding-top: 10px; }
  .lamp .digits { font-size: 2.7rem; }
  .chip { padding: 7px 11px; }
}
.chamber, .scoreboard {
  background: linear-gradient(180deg, var(--wood-2) 0%, var(--wood-1) 100%);
  border: 1px solid var(--brass-dim); border-radius: 14px;
  box-shadow: 0 14px 40px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 235, 200, 0.05);
}
.chamber { padding: 16px 16px 12px; }
.chamber__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.seg--tiny span { padding: 5px 10px; font-size: 0.78rem; }
.seg--tiny input:checked + span { background: var(--wood-3); color: var(--ivory); }

.hemi { display: block; width: 100%; height: auto; overflow: visible; }
.hemi circle {
  fill: var(--wood-3);
  transition: fill 0.35s var(--ease) var(--d, 0ms), opacity 0.35s var(--ease) var(--d, 0ms);
}
.hemi circle.vacant { fill: transparent; stroke: var(--wood-3); stroke-width: 1; }
.hemi__tick { stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.hemi__total { fill: var(--ivory); font: 800 26px var(--font); font-stretch: 70%; text-anchor: middle; }
.hemi__sub { fill: var(--ivory-3); font: 500 11px var(--font); text-anchor: middle; letter-spacing: 0.08em; text-transform: uppercase; }

.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.82rem; color: var(--ivory-2); }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend b { color: var(--ivory); font-weight: 700; }

.scoreboard { padding: 16px; }
.scoreboard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cand { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ivory-3); }
.cand select {
  font: 600 0.88rem var(--font); color: var(--ivory); background: var(--wood-0); border: 1px solid var(--wood-3);
  border-radius: 8px; padding: 7px 28px 7px 10px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23d1ad62' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 12px;
}
.cand select:hover { border-color: var(--brass-dim); }

/* the chamber's electronic board */
.lamps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  gap: 0; padding: 4px 0; border-radius: 10px; background: #0b0807; border: 1px solid var(--brass-dim);
}
.lamp { padding: 10px 8px 8px; text-align: center; }
.lamp + .lamp { border-left: 1px solid var(--brass-dim); }
.lamp__label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.lamp .digits { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); font-stretch: 62%; justify-content: center; }
.lamp--si { color: var(--si); }
.lamp--no { color: var(--no); }
.lamp--abst { color: var(--abst); }

.rounds { list-style: none; margin: 10px 0 0; padding: 0; }
.round {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--brass-faint);
}
.round__lamp { width: 20px; height: 20px; border-radius: 50%; background: var(--wood-3); transition: background 0.3s var(--ease), border-radius 0.3s var(--ease), transform 0.3s var(--ease); }
.round[data-state="fail"] .round__lamp { border-radius: 3px; transform: rotate(45deg) scale(0.82); }
.round__title { font-weight: 700; font-stretch: 85%; line-height: 1.35; }
.round__title small { display: block; font-weight: 400; font-stretch: 100%; color: var(--ivory-3); font-size: 0.78rem; }
.round__out { font-weight: 700; font-stretch: 80%; font-size: 1.02rem; text-align: right; }
.round[data-state="pass"] .round__lamp { background: var(--si); }
.round[data-state="pass"] .round__out { color: var(--si); }
.round[data-state="fail"] .round__lamp { background: var(--no); }
.round[data-state="fail"] .round__out { color: var(--no); }
.round[data-state="idle"] { opacity: 0.55; }
.round[data-state="idle"] .round__out { color: var(--ivory-3); font-weight: 500; }
body[data-result="none"] .round { opacity: 0.55; }
body[data-result="none"] .round__lamp { background: var(--wood-3); }
body[data-result="none"] .round__out { color: var(--ivory-3); }

.verdict { margin: 14px 2px 0; font-size: 1.02rem; line-height: 1.45; min-height: 3em; text-wrap: pretty; }
body[data-result="pass"] .verdict { color: #d8f5e2; }
body[data-result="fail"] .verdict { color: #ffd9d4; }

.pacts { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--brass-faint); }
.pacts h3 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-3); font-weight: 700; margin-bottom: 8px; }
.pacts__list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 600 0.84rem/1.1 var(--font); font-stretch: 88%; color: var(--ivory);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: var(--wood-0); border: 1px solid var(--wood-3);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.chip:hover { border-color: var(--brass); background: var(--wood-2); }
.chip--quiet { color: var(--ivory-3); background: none; }

/* ---------- method ---------- */
.method { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--brass-dim); }
.method__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-top: 12px; }
.method p { color: var(--ivory-2); max-width: 70ch; font-size: 0.95rem; margin: 0 0 12px; }
.method strong { color: var(--ivory); }
.sources { font-size: 0.82rem !important; color: var(--ivory-3) !important; margin-top: 18px !important; }
.provs { margin-top: 10px; border: 1px solid var(--brass-dim); border-radius: var(--radius); background: var(--wood-1); }
.provs summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-stretch: 85%; list-style-position: inside; }
.provs summary::marker { color: var(--brass); }
.provs summary:hover { color: var(--brass); }
.provs__wrap { overflow-x: auto; padding: 0 8px 12px; }
.provs__table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.provs__table th, .provs__table td { padding: 5px 8px; border-bottom: 1px solid var(--brass-faint); text-align: left; white-space: nowrap; }
.provs__table thead th { position: sticky; top: 0; background: var(--wood-1); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 0.78rem; }
.provs__table thead th span { border-bottom: 3px solid var(--c); padding-bottom: 1px; }
.provs__table .num { text-align: right; }
.provs__table td.zero { color: var(--wood-3); }
.provs__table tbody th { font-weight: 500; color: var(--ivory-2); }
.provs__table tfoot th, .provs__table tfoot td { font-weight: 800; border-bottom: 0; border-top: 1px solid var(--brass-dim); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 12px;
  background: var(--ivory); color: var(--wood-0); font-weight: 600; font-size: 0.92rem; text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); z-index: 10;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .cols, .row { grid-template-columns: minmax(104px, 1fr) minmax(150px, 1.6fr) 110px 172px; gap: 10px; }
  .row--edited::after { right: 180px; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .board { order: -1; }
  .board__sticky { position: static; grid-template-columns: 1fr 1fr; align-items: start; max-height: none; overflow: visible; }
}
@media (max-width: 720px) {
  .bar__inner { padding-top: 14px; padding-bottom: 14px; }
  .brand__sub { font-size: 0.8rem; }
  .btn { padding: 9px 13px; font-size: 0.85rem; }
  .board, .board__sticky { display: contents; }
  .chamber { order: -2; }
  .parties { order: 0; }
  .scoreboard { order: -1; }
  .method { order: 2; }
  .layout { padding-top: 18px; gap: 22px; }
  .cols { display: none; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name seats" "pct pct" "vote vote";
    gap: 8px 12px; padding: 14px 4px;
  }
  .row__name { grid-area: name; }
  .row__seats { grid-area: seats; }
  .row__pct { grid-area: pct; }
  .row .seg { grid-area: vote; }
  .row--edited::after { right: auto; left: 20px; top: auto; bottom: -2px; }
  .step { width: 36px; height: 36px; }
  .seg span { padding: 9px 10px; }
  .method__cols { grid-template-columns: 1fr; }
  .ticker {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 4;
    padding: 9px 16px; background: rgba(20, 14, 12, 0.94); border-bottom: 1px solid var(--brass-dim);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  }
  .ticker b { font-size: 1.05rem; font-stretch: 70%; margin-left: 3px; }
  .ticker__cell--si { color: var(--si); }
  .ticker__cell--no { color: var(--no); }
  .ticker__cell--abst { color: var(--abst); }
  .ticker__verdict { margin-left: auto; font-stretch: 85%; letter-spacing: 0; text-align: right; }
  body[data-result="pass"] .ticker__verdict { color: var(--si); }
  body[data-result="fail"] .ticker__verdict { color: var(--no); }
  body[data-result="none"] .ticker__verdict { color: var(--ivory-3); }
}

@media (prefers-reduced-motion: reduce) {
  .digit__strip, .hemi circle, .round__lamp, .toast { transition: none !important; }
}
