/* ===== POLSIM '95 — Windows 95 style kit ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  background: #008080;
  cursor: default;
  -webkit-font-smoothing: none;
  user-select: none;
}
button, select, input { font-family: inherit; font-size: 11px; }

/* ---- desktop ---- */
#desktop { position: relative; width: 100%; height: 100%; overflow: hidden;
  background: #008080;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px;
}
#desk-icons { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.dicon { width: 74px; text-align: center; cursor: pointer; }
.dicon-img { font-size: 26px; line-height: 30px; filter: saturate(.8); }
.dicon-lbl { color: #fff; font-size: 10px; padding: 1px 2px; margin-top: 2px; text-shadow: 1px 1px 0 #000; }
.dicon:hover .dicon-lbl { background: #000080; outline: 1px dotted #fff; }

/* ---- generic win95 window ---- */
.win {
  background: #c0c0c0;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, inset 2px 2px 0 #fff, 2px 2px 0 rgba(0,0,0,.35);
  padding: 3px;
}
.titlebar {
  height: 20px; display: flex; align-items: center; gap: 4px; padding: 0 3px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; font-weight: bold; font-size: 11px;
  cursor: move; overflow: hidden; white-space: nowrap;
}
.titlebar.inactive { background: linear-gradient(90deg, #808080, #b5b5b5); }
.tb-icon { font-size: 12px; }
.tb-text { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tb-btns { display: flex; gap: 2px; }
.tbb {
  width: 16px; height: 14px; line-height: 10px; font-size: 9px; font-weight: bold;
  background: #c0c0c0; border: 1px solid #000; padding: 0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  cursor: pointer;
}
.tbb:active { box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; }

/* ---- main window layout ---- */
#main-window {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  width: min(1220px, 98vw); height: calc(100vh - 48px);
  display: flex; flex-direction: column; z-index: 5;
}
#main-window .titlebar { flex: none; }
.menubar { flex: none; display: flex; gap: 0; padding: 1px 0; border-bottom: 1px solid #808080; box-shadow: 0 1px 0 #fff; position: relative; }
.menu-root { padding: 2px 8px; cursor: pointer; position: relative; }
.menu-root:hover, .menu-root.open { background: #000080; color: #fff; }
.menu-drop {
  position: absolute; top: 100%; left: 0; min-width: 190px; z-index: 300;
  background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 2px 2px 0 rgba(0,0,0,.4);
  padding: 2px; color: #000;
}
.menu-item { padding: 3px 18px 3px 22px; white-space: nowrap; cursor: pointer; position: relative; }
.menu-item:hover { background: #000080; color: #fff; }
.menu-item.disabled { color: #808080; }
.menu-item.disabled:hover { background: none; color: #808080; }
.menu-sep { height: 1px; background: #808080; border-bottom: 1px solid #fff; margin: 2px 1px; }

/* ---- toolbar ---- */
.toolbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-bottom: 1px solid #808080; box-shadow: 0 1px 0 #fff; flex-wrap: wrap; }
.tool-sep { width: 1px; align-self: stretch; background: #808080; border-right: 1px solid #fff; margin: 0 2px; }
.tstat { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; background: #c0c0c0;
  border: 1px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; }
.tstat b { font-size: 11px; }
.tstat .up { color: #006400; } .tstat .dn { color: #a00000; }
.led { width: 8px; height: 8px; border: 1px solid #404040; background: #00c000; display: inline-block; }
.led.off { background: #576b57; }

/* ---- buttons ---- */
.btn95 {
  background: #c0c0c0; color: #000; padding: 3px 10px; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset 2px 2px 0 #dfdfdf, inset -1px -1px 0 #808080;
  cursor: pointer; white-space: nowrap;
}
.btn95:active { box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; padding: 4px 9px 2px 11px; }
.btn95:disabled { color: #808080; text-shadow: 1px 1px 0 #fff; cursor: default; }
.btn95.primary { font-weight: bold; }
.btn95.big { padding: 5px 14px; font-weight: bold; }
.btn95:focus { outline: 1px dotted #000; outline-offset: -4px; }

/* ---- tabs ---- */
.tabstrip { flex: none; display: flex; align-items: flex-end; padding: 6px 6px 0 6px; gap: 1px; }
.tab {
  padding: 3px 12px 4px; background: #c0c0c0; border: 1px solid #000; border-bottom: none;
  box-shadow: inset 1px 1px 0 #fff, inset -1px 0 0 #808080;
  border-radius: 3px 3px 0 0; cursor: pointer; position: relative; top: 1px; font-size: 11px;
}
.tab.active { padding: 4px 14px 6px; font-weight: bold; top: 0; z-index: 2; }
.tab-content {
  flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 6px 4px 6px; padding: 8px;
  background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  position: relative; z-index: 1;
}

/* ---- status bar ---- */
.statusbar { flex: none; display: flex; gap: 4px; padding: 2px 4px; }
.sb-cell { padding: 2px 8px; border: 1px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; white-space: nowrap; overflow: hidden; }
.sb-cell.grow { flex: 1; }

/* ---- panels / group boxes ---- */
.grp { border: 1px solid #808080; box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #fff; padding: 10px 8px 8px; margin-bottom: 10px; position: relative; }
.grp > legend, .grp-title { position: absolute; top: -7px; left: 8px; background: #c0c0c0; padding: 0 4px; font-weight: bold; font-size: 10px; }
.panel-in { background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #404040; padding: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.rowflex { display: flex; gap: 10px; flex-wrap: wrap; }
.rowflex > * { flex: 1; min-width: 260px; }

/* ---- tables ---- */
.t95 { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid #808080; }
.t95 th { background: #c0c0c0; border: 1px solid #808080; border-top-color: #fff; border-left-color: #fff; padding: 2px 6px; text-align: left; font-size: 10px; }
.t95 td { border: 1px dotted #c8c8c8; padding: 2px 6px; font-size: 10px; background: #fff; }
.t95 tr.hl td { background: #ffffd8; }
.chip { display: inline-block; width: 9px; height: 9px; border: 1px solid #000; margin-right: 4px; vertical-align: -1px; }

/* ---- bars & meters ---- */
.meter { height: 12px; background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #404040; position: relative; }
.meter > i { position: absolute; left: 1px; top: 1px; bottom: 1px; background: repeating-linear-gradient(90deg, #000080 0 6px, #1084d0 6px 8px); }
.meter.warn > i { background: repeating-linear-gradient(90deg, #a00000 0 6px, #d05050 6px 8px); }
.meter.ok > i { background: repeating-linear-gradient(90deg, #006400 0 6px, #2e8b57 6px 8px); }
.barrow { display: grid; grid-template-columns: 130px 1fr 44px; gap: 6px; align-items: center; margin: 3px 0; font-size: 10px; }
.seatbar { display: flex; height: 18px; border: 1px solid #000; overflow: hidden; background: #fff; }
.seatbar > i { height: 100%; }

/* ---- charts ---- */
.chartbox { background: #c0c0c0; margin-bottom: 10px; }
.chartbox .chart-title { font-weight: bold; font-size: 10px; padding: 2px 4px; background: #000080; color: #fff; display: flex; justify-content: space-between; }
.chartbox canvas { display: block; width: 100%; background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 3px 4px; font-size: 9px; }
.legend span { display: inline-flex; align-items: center; gap: 3px; }
.chart-series-legend { background:#f2f2f2; border:1px solid #aaa; border-top:0; gap:10px; }

/* ---- stat tiles ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; margin-bottom: 10px; }
.stile { border: 1px solid; border-color: #808080 #fff #fff #808080; background: #c0c0c0; padding: 4px 6px; }
.stile .k { font-size: 9px; color: #333; text-transform: uppercase; }
.stile .v { font-size: 15px; font-weight: bold; font-family: "Courier New", monospace; }
.stile .d { font-size: 9px; font-family: "Courier New", monospace; }
.stile .d.up { color: #006400; } .stile .d.dn { color: #a00000; }
.stile.alert { background: #ffd8d8; }

/* ---- headlines / newspaper ---- */
.headline { background: #fdf6e3; border: 1px solid #808080; padding: 5px 8px; margin-bottom: 5px; font-family: "Times New Roman", Georgia, serif; }
.headline .hl-outlet { font-size: 9px; font-family: Tahoma, sans-serif; color: #444; display: flex; justify-content: space-between; border-bottom: 1px solid #ccc; margin-bottom: 3px; padding-bottom: 1px; }
.headline .hl-text { font-size: 13px; font-weight: bold; line-height: 1.25; }
.headline.tone-good .hl-text { color: #1a4d1a; }
.headline.tone-bad .hl-text { color: #6b0000; }

/* ---- dialogs ---- */
#dialog-layer { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.dlg-shade { position: absolute; inset: 0; background: rgba(0,0,0,.15); pointer-events: auto; }
.dialog { position: absolute; min-width: 320px; max-width: 92vw; pointer-events: auto; display: flex; flex-direction: column; max-height: 92vh; }
.dialog .dlg-body { padding: 10px; overflow-y: auto; }
.dialog .dlg-btns { display: flex; justify-content: center; gap: 8px; padding: 8px; flex-wrap: wrap; }
.dlg-icon-row { display: flex; gap: 10px; align-items: flex-start; }
.dlg-bigicon { font-size: 30px; }
.ev-body { max-width: 460px; line-height: 1.45; }
.ev-body.bill-workbench { max-width: none; width: 100%; box-sizing: border-box; }
.ev-body p { margin-bottom: 6px; }
.fineprint { font-size: 9px; color: #555; margin-top: 6px; }

/* ---- map ---- */
.map-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.map-region { border: 2px solid #000; padding: 6px; min-height: 92px; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.7); cursor: pointer; position: relative; }
.map-region .mr-name { font-weight: bold; font-size: 11px; }
.map-region .mr-sub { font-size: 9px; margin-top: 2px; }
.map-region:hover { outline: 2px dotted #fff; outline-offset: -4px; }

/* ---- election night ---- */
.enight { display: grid; grid-template-columns: 240px 1fr; gap: 10px; width: min(860px, 88vw); }
.en-regions { max-height: 380px; overflow-y: auto; }
.en-region { padding: 3px 6px; border-bottom: 1px dotted #999; font-size: 10px; background: #fff; }
.en-region.pending { color: #999; }
.en-region.reporting { background: #ffffc0; }
.en-ticker { font-family: "Courier New", monospace; background: #000; color: #0f0; padding: 4px 8px; font-size: 11px; white-space: nowrap; overflow: hidden; margin-top: 6px; }

/* ---- misc ---- */
.archive-entry { padding: 3px 6px; border-bottom: 1px dotted #aaa; font-size: 10px; background: #fff; }
.archive-entry .aw { color: #000080; font-weight: bold; margin-right: 6px; font-family: "Courier New", monospace; }
.archive-entry.cls-scandal { background: #ffe8e8; }
.archive-entry.cls-law { background: #e8f0ff; }
.archive-entry.cls-election { background: #fff3d8; font-weight: bold; }
.stars { color: #806000; letter-spacing: 1px; }
select.sel95, input.in95 { background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #404040; padding: 2px; }
input[type=range].slider95 { -webkit-appearance: none; width: 100%; height: 20px; background: transparent; }
input[type=range].slider95::-webkit-slider-runnable-track { height: 4px; background: #fff; border: 1px solid #808080; box-shadow: inset 1px 1px 0 #404040; }
input[type=range].slider95::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 20px; margin-top: -9px; background: #c0c0c0; border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; }
input[type=range].slider95::-moz-range-track { height: 4px; background: #fff; border: 1px solid #808080; }
input[type=range].slider95::-moz-range-thumb { width: 11px; height: 20px; background: #c0c0c0; border: 1px solid #000; border-radius: 0; }

.tooltip { position: fixed; z-index: 900; background: #ffffe1; border: 1px solid #000; padding: 4px 6px; font-size: 10px; max-width: 260px; box-shadow: 2px 2px 0 rgba(0,0,0,.3); pointer-events: none; }
.hidden { display: none !important; }

/* ---- taskbar ---- */
#taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: #c0c0c0;
  border-top: 1px solid #fff; box-shadow: 0 -1px 0 #808080; display: flex; align-items: center; gap: 5px; padding: 2px 4px; z-index: 400; }
#start-btn { font-weight: bold; }
.start-logo { color: #000080; }
#start-menu { position: absolute; bottom: 30px; left: 3px; width: 200px; background: #c0c0c0; border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 2px 2px 0 rgba(0,0,0,.4); padding: 2px; z-index: 600; }
#start-menu .menu-item { padding: 5px 10px; }
.task-item { flex: none; padding: 3px 10px; border: 1px solid; border-color: #fff #808080 #808080 #fff; background: #dcdcdc; font-weight: bold; font-size: 10px; }
.task-clock { margin-left: auto; padding: 3px 10px; border: 1px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; font-family: "Courier New", monospace; }

/* ---- CRT overlay ---- */
#crt { position: fixed; inset: 0; z-index: 950; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; }

/* scrollbars (webkit) */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 4px 4px; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; }
::-webkit-scrollbar-button { background: #c0c0c0; border: 1px solid #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; height: 16px; width: 16px; }

@media (max-width: 800px) {
  .row2, .row3 { grid-template-columns: 1fr; }
  .enight { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== v3.3 — game-feel kit ===== */
/* rubber stamps */
.stamp { display: inline-block; border: 3px double; padding: 2px 12px; font-weight: bold; letter-spacing: 2px;
  font-size: 14px; transform: rotate(-3deg); text-transform: uppercase; font-family: "Courier New", monospace; }
.stamp.good { color: #006400; border-color: #006400; background: rgba(0,100,0,.06); }
.stamp.bad { color: #a00000; border-color: #a00000; background: rgba(160,0,0,.06); }
.stamp.neutral { color: #000080; border-color: #000080; }
.stamp-wrap { text-align: center; margin: 6px 0 10px; }

/* impact report lines */
.impact-line { display: flex; gap: 6px; padding: 3px 4px; border-bottom: 1px dotted #ccc; font-size: 11px; align-items: baseline; }
.impact-line b.up { color: #006400; } .impact-line b.dn { color: #a00000; }

/* flash on change */
@keyframes flash95 { 0% { background: #ffff90; } 100% { background: transparent; } }
.flash { animation: flash95 1.2s ease-out; }
@keyframes blink95 { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.blink { animation: blink95 1s step-start infinite; }

/* urgent tab dot */
.tab.urgent::after { content: ' ●'; color: #a00000; animation: blink95 1.2s step-start infinite; }
.tab.hot { background: #ffe9c0; }

/* crisis desk */
.agenda-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; align-items: center;
  padding: 4px 6px; border-bottom: 1px dotted #999; background: #fff; font-size: 11px; }
.agenda-item.u2 { background: #ffe4e4; }
.agenda-item.u1 { background: #fff6dc; }
.agenda-item .btn95 { font-size: 10px; padding: 2px 7px; font-weight: bold; }
.agenda-led { width: 9px; height: 9px; border: 1px solid #404040; }
.agenda-led.u2 { background: #d00000; animation: blink95 1s step-start infinite; }
.agenda-led.u1 { background: #d0a000; }
.agenda-led.u0 { background: #00a000; }
.objective-bar { background: #000080; color: #fff; padding: 3px 8px; font-size: 10px; margin-bottom: 4px; }
.objective-bar b { color: #ffd860; }

/* opposition watch */
.opp-item { padding: 3px 6px; border-bottom: 1px dotted #bbb; background: #fff; font-size: 10px; }
.opp-item .opp-goal { color: #444; font-style: italic; }

/* toolbar v2 */
.tstat.hero { padding: 3px 9px; }
.tstat.hero b { font-size: 14px; font-family: "Courier New", monospace; }
.tstat.hero .k { font-size: 8px; text-transform: uppercase; color: #333; display: block; line-height: 1; }
.actled { width: 13px; height: 13px; border: 1px solid #000; background: #00b000; display: inline-block;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.6); }
.actled.off { background: #5a6a5a; }
.countdown { background: #a00000; color: #fff; font-weight: bold; padding: 3px 9px; border: 1px solid #000; }
.countdown.far { background: #c0c0c0; color: #000; border: 1px solid; border-color: #808080 #fff #fff #808080; font-weight: normal; }
.ticker95 { width: 100%; font-family: "Courier New", monospace; font-size: 11px; background: #000; color: #2f2;
  padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #404040; }

/* debate TV set piece */
.tvset { background: #4a3626; border: 6px solid #2e2118; border-radius: 8px; padding: 10px 10px 6px; margin-bottom: 8px; }
.tvscreen { background: #08140a; color: #cfe8cf; padding: 10px; border: 3px solid #000; position: relative;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); font-family: "Courier New", monospace; }
.tvscreen .tv-title { color: #ffd860; font-weight: bold; letter-spacing: 2px; text-align: center; font-size: 12px; }
.tv-podiums { display: flex; justify-content: space-around; margin: 8px 0; gap: 8px; }
.tv-cand { text-align: center; flex: 1; padding: 6px 4px; border: 1px solid #244a24; font-size: 10px; }
.tv-cand .tv-face { font-size: 24px; }
.tv-verdict { text-align: center; font-size: 13px; font-weight: bold; margin: 6px 0; }
.tv-knobs { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.tv-knob { width: 12px; height: 12px; border-radius: 50%; background: #1d150e; border: 2px solid #6b5138; }

/* election aftermath */
.result-hero { text-align: center; font-family: "Courier New", monospace; margin: 4px 0 8px; }
.result-hero .rh-num { font-size: 30px; font-weight: bold; }
.result-hero .rh-delta { font-size: 14px; font-weight: bold; }
.why-line { padding: 2px 6px; font-size: 10px; border-left: 3px solid #808080; margin: 3px 0; background: #fff; }
.why-line.up { border-left-color: #006400; } .why-line.dn { border-left-color: #a00000; }

/* ===== v3.4 — presentation punch ===== */
@keyframes shadeIn { from { opacity: 0; } }
.dlg-shade { background: rgba(2, 8, 24, .55); animation: shadeIn .18s ease-out; }
@keyframes dlgPop { from { transform: scale(.94) translateY(6px); opacity: 0; } }
.dialog { animation: dlgPop .16s ease-out; box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, inset 2px 2px 0 #fff, 0 10px 34px rgba(0,0,0,.55); }
@keyframes stampThump { 0% { transform: rotate(-3deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-3deg) scale(.94); opacity: 1; } 100% { transform: rotate(-3deg) scale(1); } }
.stamp { animation: stampThump .3s ease-out; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } }
.impact-line { animation: lineIn .25s ease-out backwards; }
.impact-line:nth-child(2) { animation-delay: .08s; } .impact-line:nth-child(3) { animation-delay: .16s; }
.impact-line:nth-child(4) { animation-delay: .24s; } .impact-line:nth-child(5) { animation-delay: .32s; }
.headline { animation: lineIn .3s ease-out .2s backwards; }
.tstat.hero b { transition: color .3s; }
.agenda-item .btn95:hover { background: #d8d8d8; }
.btn95:hover { filter: brightness(1.04); }
.chartbox canvas { transition: opacity .2s; }
.menu-drop, #start-menu { animation: dlgPop .12s ease-out; }

/* ===== election night broadcast ===== */
.en-studio { width: min(900px, 90vw); }
.en-header { font-family: "Courier New", monospace; background: #08101e; color: #e8e8ff; padding: 7px 10px;
  font-size: 13px; border: 2px solid #000; margin-bottom: 8px; min-height: 34px; }
.en-live { color: #ff4040; font-weight: bold; animation: blink95 1.4s step-start infinite; margin-right: 6px; }
.en-exit-reveal { animation: flash95 1s ease-out; background: #101e38; }
.en-final { text-align: center; background: #08101e; padding: 10px; }
.en-progress { position: relative; height: 14px; background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; margin: 6px 0; }
.en-progress-bar { height: 100%; background: repeating-linear-gradient(90deg, #000080 0 6px, #1084d0 6px 8px); transition: width .1s linear; }
.en-progress-lbl { position: absolute; inset: 0; text-align: center; font-size: 9px; line-height: 13px; color: #000; mix-blend-mode: normal; text-shadow: 0 0 3px #fff; }
.en-maj-mark { position: absolute; left: 50.5%; top: -2px; bottom: -2px; width: 2px; background: #a00000; }
.en-moments { min-height: 66px; margin-top: 6px; }
.en-moment { font-size: 10px; padding: 2px 6px; border-left: 3px solid #808080; background: #fff; margin-bottom: 2px; }
.en-moment.mom-gain { border-left-color: #006400; background: #e8f5e8; font-weight: bold; }
.en-moment.mom-loss { border-left-color: #a00000; background: #fbeaea; }
.en-moment.mom-exit { border-left-color: #000080; background: #e8eeff; font-weight: bold; }
.en-ep-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #404040; opacity: .7; }

/* ===== polling HQ hero ===== */
.poll-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.poll-hero .ph-num { font-family: "Courier New", monospace; font-size: 44px; font-weight: bold; line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.12); }
.poll-hero .ph-pct { font-size: 20px; }
.poll-hero .ph-rank { font-size: 20px; font-weight: bold; }
.poll-hero .ph-delta { font-size: 13px; font-weight: bold; }
.poll-hero .ph-meta { flex: 1; min-width: 180px; }
.poll-hero .ph-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.poll-hero-grp { background: linear-gradient(180deg, #cbcbcb, #c0c0c0); }

/* ===== polling dopamine kit ===== */
.chartbox { position: relative; }
.chart-hover-line { position: absolute; left: 0; width: 1px; background: rgba(0,0,128,.82);
  box-shadow: -1px 0 rgba(255,255,255,.58), 1px 0 rgba(0,0,0,.22), 0 0 4px rgba(0,0,128,.32);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 2;
  will-change: transform, opacity;
  transition: opacity 140ms ease-out, visibility 0s linear 140ms; }
.chart-hover-line.active { opacity: 1; visibility: visible; transition: opacity 90ms ease-out; }
.poll-pulse { position: absolute; width: 9px; height: 9px; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; }
.poll-pulse i { display: block; width: 100%; height: 100%; background: currentColor; border: 1px solid #000; border-radius: 50%; }
.poll-pulse::after { content: ''; position: absolute; inset: -4px; border: 2px solid currentColor; border-radius: 50%;
  animation: pollPing 1.3s ease-out 3; opacity: 0; }
@keyframes pollPing { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(2.4); opacity: 0; } }
.poll-pulse-lbl { position: absolute; left: 12px; top: -7px; font-family: "Courier New", monospace; font-weight: bold;
  font-size: 12px; background: rgba(255,255,255,.92); padding: 0 3px; border: 1px solid #999; white-space: nowrap; }
.rank-banner { font-family: "Courier New", monospace; font-weight: bold; font-size: 13px; letter-spacing: 1px;
  padding: 4px 10px; margin-bottom: 6px; border: 2px solid; animation: rankIn .45s cubic-bezier(.2,1.4,.4,1) backwards; }
.rank-banner.up { color: #006400; border-color: #006400; background: #e6f4e6; }
.rank-banner.dn { color: #a00000; border-color: #a00000; background: #fbe9e9; }
@keyframes rankIn { from { transform: translateX(-16px) scale(.96); opacity: 0; } }
@keyframes heroUp { 0% { box-shadow: inset 0 0 0 3px rgba(0,120,0,.6); } 100% { box-shadow: inset 0 0 0 3px rgba(0,120,0,0); } }
@keyframes heroDn { 0% { box-shadow: inset 0 0 0 3px rgba(170,0,0,.6); } 100% { box-shadow: inset 0 0 0 3px rgba(170,0,0,0); } }
.hero-up { animation: heroUp 1.4s ease-out; }
.hero-dn { animation: heroDn 1.4s ease-out; }
.ph-num { transition: transform .2s; }
.poll-pulse-lbl.lbl-left { left: auto; right: 12px; }

/* ===== election night beats ===== */
#en-key-slot { min-height: 30px; margin-bottom: 4px; }
.en-key { font-family: "Courier New", monospace; font-size: 13px; padding: 5px 10px; background: #fffbe6;
  border: 3px solid; animation: keyIn .35s cubic-bezier(.2,1.5,.4,1); }
.en-key-tag { background: #a00000; color: #fff; font-size: 9px; padding: 1px 5px; font-weight: bold; margin-right: 4px; }
.en-key.en-key-out { transition: opacity .6s; opacity: .35; }
@keyframes keyIn { from { transform: scale(.9) translateY(-6px); opacity: 0; } }
@keyframes enShake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4px,2px); } 40% { transform: translate(4px,-2px); } 60% { transform: translate(-3px,-1px); } 80% { transform: translate(3px,1px); } }
.en-shake { animation: enShake .5s ease-out; }

/* v5: approval engine — hype marker on the toolbar */
.hype-tag { background: #b8860b; color: #fff; font-size: 8px; font-weight: bold; padding: 0 3px; margin-left: 3px; letter-spacing: .5px; animation: hypePulse 1.6s ease-in-out infinite; }
@keyframes hypePulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ===== governing project / legislation receipts ===== */
.governing-project {
  background: linear-gradient(180deg, #d8d8d8 0, #c6c6c6 44px, #bdbdbd 100%);
  border-color: #ffffff #666666 #666666 #ffffff;
}
.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 7px;
  margin-bottom: 6px;
  background: #f4f4f4;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}
.project-tier {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 5px 8px;
  color: #fff;
  background: #000080;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #1084d0, 2px 2px 0 rgba(0,0,0,.22);
  font-family: "Courier New", monospace;
  font-weight: bold;
  letter-spacing: .8px;
  text-align: center;
}
.project-grid { gap: 7px; margin-bottom: 7px; }
.power-meter {
  display: grid;
  grid-template-columns: 92px minmax(80px, 1fr) 28px;
  align-items: center;
  gap: 5px;
  margin: 5px 0;
  font-size: 10px;
}
.power-meter .meter { width: 100%; min-width: 0; }
.power-meter > b {
  font-family: "Courier New", monospace;
  text-align: right;
}
.settlement-axis { margin: 7px 0; }
.settlement-axis > div:first-child,
.axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.settlement-axis > div:first-child span { color: #444; }
.axis-track {
  position: relative;
  height: 12px;
  margin: 3px 2px 1px;
  background: linear-gradient(90deg, #2e61b5, #f4f4f4 50%, #b53c32);
  border: 1px solid;
  border-color: #606060 #fff #fff #606060;
}
.axis-track em {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: #202020;
}
.axis-track i {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 16px;
  margin-left: -3px;
  background: #ffd54a;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff;
  z-index: 1;
}
.axis-labels { color: #555; font-size: 8px; }
.special-law-strip,
.society-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.special-law-strip span,
.society-strip span {
  padding: 3px 5px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  font-size: 9px;
}
.society-strip { margin-top: 0; }
.society-strip span b { color: #000080; font-family: "Courier New", monospace; }
.phase-receipt {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 8px;
  margin: 5px 0;
  background: #fff;
  border-left: 4px solid #000080;
  box-shadow: inset 0 -1px 0 #d0d0d0;
}
.phase-receipt b { font-family: "Courier New", monospace; }
.phase-receipt > b:first-child { grid-column: 1 / -1; }
.bill-template-help {
  margin-top: 6px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  border-left: 4px solid #000080;
  box-shadow: inset 0 -1px 0 #d0d0d0;
  font-size: 10px;
}
.bill-template-help-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  font-family: "Courier New", monospace;
}
.bill-template-help-head span {
  padding: 1px 4px;
  color: #fff;
  background: #000080;
  font-size: 8px;
  font-weight: bold;
}
.bill-template-help-head b { color: #000080; font-size: 12px; text-transform: uppercase; }
.bill-template-help-head i { color: #555; font-style: normal; font-weight: bold; }
.bill-template-help-summary { margin-top: 3px; line-height: 1.3; }
.bill-template-help-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-family: "Courier New", monospace;
  font-size: 9px;
}
.bill-template-help-stats em {
  color: #555;
  font-size: 8px;
  font-style: normal;
  font-weight: bold;
}
.bill-template-help-stats span {
  padding: 2px 5px;
  background: #e8e8e8;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
}
.bill-template-help-stats b { color: #000080; }
.bill-clause {
  display: grid;
  grid-template-columns: 145px minmax(70px, 1fr) 28px 28px;
  gap: 5px;
  align-items: center;
  margin: 5px 0;
}
.redline-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  color: #9b6500;
  font-weight: bold;
  cursor: pointer;
}
.redline-pick input { margin: 0 3px 0 0; }
.bill-provision-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 5px;
  align-items: center;
  min-height: 30px;
}
.bill-route-cards,
.bill-stage-actions,
.floor-tactic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 4px;
}
.bill-route-cards label,
.stage-action-card,
.floor-tactic-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-content: start;
  gap: 2px 4px;
  padding: 6px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  cursor: pointer;
}
.bill-route-cards label:has(input:checked),
.floor-tactic-card.selected {
  background: #e6efff;
  outline: 2px solid #000080;
}
.bill-route-cards input { grid-row: 1 / 3; margin: 1px 0 0; }
.bill-route-cards span,
.stage-action-card span,
.floor-tactic-card span { color: #555; font-size: 9px; line-height: 1.3; }
.stage-action-card,
.floor-tactic-card {
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
  min-height: 58px;
}
.stage-action-card.done { background: #e5f2e5; color: #065b06; }
.stage-action-card:disabled { cursor: default; }
.bill-plan-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0;
}
.bill-plan-strip span {
  padding: 4px;
  background: #fff;
  border-left: 3px solid #000080;
  font-size: 9px;
}
.power-preview-strip {
  padding: 6px 8px;
  margin: 6px 0;
  color: #fff;
  background: linear-gradient(90deg, #000080, #163f91);
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #5b8fdd;
  font-family: "Courier New", monospace;
}
.law-ledger { display: grid; gap: 5px; }
.law-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.law-card > span { min-width: 0; }
.law-card-meta {
  display: block;
  margin-top: 2px;
  color: #555;
  font-size: 9px;
}
.law-card-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.law-card .btn95 { flex: 0 0 auto; }
.law-timeline { color: #000080; font-family: "Courier New", monospace; }
.bill-stage-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin: 0 0 7px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: bold;
  text-align: center;
}
.bill-stage-rail span {
  min-width: 0;
  padding: 4px 2px;
  color: #555;
  background: #dfdfdf;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
}
.bill-stage-rail span.done { color: #006400; background: #e8f4e8; }
.bill-stage-rail span.active { color: #fff; background: #000080; border-color: #5b8fdd #000040 #000040 #5b8fdd; }
.whip-party-list { display: none; }
.whip-talks-heading { display: block; margin-top: 7px; font-size: 9px; }

/* ===== responsive / touch layout =====
   Keep the Win95 chrome, but make the "beige desktop" usable as a handheld
   control surface instead of squeezing the desktop UI into a phone. */
@media (max-width: 900px) {
  html, body, #desktop { width: 100%; height: 100%; }
  body {
    font-size: 12px;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
  }
  button, select, input { font-size: 12px; }
  #desk-icons { display: none; }

  #main-window {
    left: 4px;
    top: 4px;
    transform: none;
    width: calc(100vw - 8px);
    height: calc(100dvh - 38px);
  }
  .titlebar { min-height: 26px; height: 26px; }
  .tbb { width: 28px; height: 22px; line-height: 18px; font-size: 13px; }

  .menubar {
    min-height: 36px;
    overflow: visible;
  }
  .menu-root {
    min-height: 34px;
    padding: 9px 12px 7px;
  }
  .menu-drop {
    min-width: min(240px, calc(100vw - 12px));
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px 8px 22px;
    font-size: 12px;
  }

  /* One compact, horizontally swipeable command/status rail. */
  .toolbar {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .toolbar > * { flex: 0 0 auto; }
  .toolbar .ticker95 { display: none; }
  .tool-sep { display: none; }
  .toolbar .tstat { min-height: 40px; padding: 4px 8px; }
  .toolbar .btn95 { min-height: 40px; }

  /* Tabs used to continue beyond the clipped desktop. They now form a rail. */
  .tabstrip {
    align-items: stretch;
    gap: 2px;
    padding: 3px 3px 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .tab {
    top: 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 40px;
    padding: 7px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
  .tab.active { top: 0; padding: 7px 12px; }
  .tab-content {
    min-width: 0;
    margin: 0 3px 3px;
    padding: 7px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .statusbar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .sb-cell, .sb-cell.grow { flex: 0 0 auto; min-height: 24px; }

  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .rowflex > * { min-width: min(260px, 100%); }
  .grp, .panel-in, .chartbox { min-width: 0; max-width: 100%; }
  .grp-title {
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* A table is its own horizontal viewport, not clipped by tab-content. */
  .t95 {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .t95 th, .t95 td { font-size: 11px; }

  .btn95 {
    min-height: 38px;
    padding: 7px 10px;
  }
  .btn95:active { padding: 8px 9px 6px 11px; }
  select.sel95, input.in95 { min-height: 38px; padding: 6px; }
  input[type=checkbox], input[type=radio] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
  }
  input[type=range].slider95 {
    min-height: 38px;
    height: 38px;
    touch-action: pan-y;
  }
  input[type=range].slider95::-webkit-slider-runnable-track { height: 7px; }
  input[type=range].slider95::-webkit-slider-thumb {
    width: 24px;
    height: 30px;
    margin-top: -13px;
  }
  input[type=range].slider95::-moz-range-track { height: 7px; }
  input[type=range].slider95::-moz-range-thumb { width: 24px; height: 30px; }

  .dialog {
    top: 4px !important;
    min-width: 0;
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - 8px);
  }
  .dialog .dlg-body {
    min-width: 0;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .dialog .dlg-btns {
    flex: 0 0 auto;
    padding: 6px;
    border-top: 1px solid #808080;
    box-shadow: inset 0 1px 0 #fff;
  }
  .dialog .dlg-btns .btn95 { min-height: 40px; }
  .ev-body, .ev-body.bill-workbench { width: 100%; max-width: 100%; }
  .enight, .en-studio { width: 100%; max-width: 100%; }
  .tv-podiums { flex-wrap: wrap; }
  .tv-cand { min-width: 120px; }

  .agenda-item .btn95 { min-height: 36px; padding: 6px 8px; }
  .chartbox canvas, canvas[id^="hemi-"] { touch-action: pan-y; }
  .chart-title [data-zoom] {
    min-width: 40px;
    min-height: 34px;
    padding: 4px 7px !important;
  }
  .tooltip { max-width: calc(100vw - 16px); font-size: 11px; }
  .project-head { align-items: flex-start; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .phase-receipt { grid-template-columns: 1fr; gap: 3px; }
  .bill-stage-actions,
  .floor-tactic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-plan-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-button { width: 11px; height: 11px; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  button, select, input { font-size: 13px; }

  #main-window {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    padding: 2px;
    border-left: 0;
    border-right: 0;
  }
  #taskbar { display: none; }
  .titlebar { min-height: 30px; height: 30px; }
  .tb-icon { font-size: 14px; }
  .tbb { width: 32px; height: 26px; line-height: 21px; }
  .menubar { min-height: 40px; }
  .menu-root { min-height: 38px; padding: 10px 11px 8px; }

  .toolbar .tstat, .toolbar .btn95 { min-height: 44px; }
  .tab { min-height: 44px; padding: 9px 12px; }
  .tab.active { padding: 9px 13px; }
  .tab-content { margin: 0 2px 2px; padding: 6px; }
  .statusbar { padding: 2px; }

  .btn95 { min-height: 44px; padding: 9px 11px; }
  .btn95:active { padding: 10px 10px 8px 12px; }
  select.sel95, input.in95 { min-height: 44px; }
  .dialog .dlg-btns .btn95 { min-height: 44px; }
  .dialog {
    left: 4px !important;
    top: 4px !important;
    width: calc(100vw - 8px) !important;
    max-height: calc(100dvh - 8px);
  }
  .dialog .dlg-body { padding: 8px; }

  .fineprint,
  .grp-title,
  .chart-title,
  .agenda-item,
  .archive-entry,
  .opp-item,
  .t95 th,
  .t95 td { font-size: 12px !important; }

  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .poll-hero { gap: 10px; }
  .poll-hero .ph-num { font-size: 38px; }
  .poll-hero .ph-actions { width: 100%; }
  .poll-hero .ph-actions .btn95 { flex: 1 1 110px; }

  .agenda-item {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 6px;
  }
  .agenda-item .btn95 {
    grid-column: 2;
    width: 100%;
    min-height: 44px;
  }

  /* Inline desktop column widths otherwise leave only ~86px of slider. */
  #pd-controls > div {
    grid-template-columns: minmax(0, 1fr) 42px 38px !important;
    gap: 2px 8px !important;
    margin: 8px 0 !important;
  }
  #pd-controls > div > label:first-child {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: bold;
  }
  #pd-controls > div > input[type=range] { grid-column: 1; }
  #pd-controls > div > b { grid-column: 2; text-align: right; }
  #pd-controls > div > .redline-pick { grid-column: 3; grid-row: 2; }
  .bill-workbench > div:first-child > label {
    flex: 1 1 100%;
    min-width: 0;
  }
  #pd-area, #pd-template, #pd-fund, #pd-strategy, #pd-region {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    margin-top: 3px;
  }
  .bill-template-help {
    padding: 8px;
    font-size: 12px;
  }
  .bill-template-help-head { gap: 5px; }
  .bill-template-help-head span { font-size: 10px; }
  .bill-template-help-head b { width: 100%; font-size: 13px; }
  .bill-template-help-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 11px; }
  .bill-template-help-stats em { grid-column: 1 / -1; font-size: 10px; }
  .bill-template-help-stats span { min-width: 0; }
  .bill-workbench label:has(#pd-strategy) {
    display: block;
    min-height: 44px;
    margin: 7px 0 0 !important;
  }
  #pd-provisions label {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    margin: 2px 0 !important;
    line-height: 1.3;
  }
  #pd-provisions input[type=checkbox] { flex: 0 0 auto; margin-right: 5px; }
  .bill-workbench label:has(#pd-sunset) {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 5px 0 0 !important;
  }

  .barrow {
    grid-template-columns: minmax(82px, .9fr) minmax(58px, 1.2fr) minmax(64px, auto) !important;
    gap: 4px;
  }
  .barrow > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .stamp { max-width: 100%; overflow-wrap: anywhere; }
  .project-head, .law-card { align-items: stretch; flex-direction: column; }
  .project-tier { min-width: 0; width: 100%; }
  .power-meter { grid-template-columns: 90px minmax(0, 1fr) 28px; font-size: 11px; }
  .axis-labels { font-size: 10px; }
  .special-law-strip span, .society-strip span { font-size: 11px; }
  .law-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .law-card .btn95 { width: 100%; }
  .bill-route-cards,
  .bill-stage-actions,
  .floor-tactic-grid,
  .bill-plan-strip { grid-template-columns: minmax(0, 1fr); }
  .bill-route-cards label,
  .stage-action-card,
  .floor-tactic-card { min-height: 48px; font-size: 12px; }
  .bill-route-cards span,
  .stage-action-card span,
  .floor-tactic-card span { font-size: 11px; }
  .bill-stage-rail {
    grid-template-columns: repeat(5, minmax(60px, 1fr));
    overflow-x: auto;
    font-size: 9px;
  }
  .whip-table { display: none !important; }
  .whip-party-list {
    display: grid;
    gap: 5px;
    margin: 6px 0;
  }
  .whip-party-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
    padding: 7px;
    background: #fff;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    font-size: 12px;
  }
  .whip-party-card.sponsor { background: #ffffd8; }
  .whip-party-card small { grid-column: 1 / -1; color: #666; font-size: 11px; }
  .whip-party-action { grid-column: 2; grid-row: 2; justify-self: end; }
  .whip-party-action .btn95 { min-width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
