@charset "UTF-8";

:root {
  --navy: #142b3c;
  --navy-soft: #203c4e;
  --teal: #087f73;
  --teal-dark: #05665d;
  --teal-pale: #e9f4f0;
  --coral: #d5795f;
  --coral-pale: #fbefea;
  --paper: #f5f5ef;
  --white: #fff;
  --ink: #1c3542;
  --muted: #697980;
  --muted-light: #8a969a;
  --border: #e1e6df;
  --line: #edf0e9;
  --danger: #a8493d;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(24, 48, 60, .025);
  --sidebar-width: 224px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
svg { display: block; }
button svg, .button svg { width: 18px; height: 18px; flex: 0 0 auto; }
button:disabled { cursor: not-allowed; opacity: .42; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .file-button:focus-within { outline: 3px solid #6dbdb4; outline-offset: 3px; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.035em; font-weight: 650; }
h2 { font-size: 21px; line-height: 1.25; }
h3 { font-size: 19px; line-height: 1.35; }
::selection { color: var(--navy); background: #bde0d3; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -80px; background: white; color: var(--navy); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.sidebar { position: fixed; z-index: 20; width: var(--sidebar-width); inset: 0 auto 0 0; background: var(--navy); color: #fff; padding: 35px 22px 27px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark { width: 43px; height: 43px; flex: none; color: #90c6ae; }
.brand-name { font-size: 21px; line-height: 1.08; letter-spacing: -.6px; font-weight: 430; }
.brand-name strong { font-weight: 700; }
.sidebar-kicker { font-size: 8.5px; letter-spacing: 2.1px; color: #8da2af; margin: 22px 8px 43px; }
.main-nav { display: grid; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 11px; border: 1px solid transparent; padding: 12px 13px; border-radius: 8px; color: #aebdc6; background: transparent; text-align: left; font-size: 12px; font-weight: 520; min-height: 46px; transition: background .18s, color .18s; }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: #1d384a; color: #fff; }
.nav-item.active, .nav-item[aria-current="page"] { background: #294557; color: #fff; border-color: #365263; }
.nav-arrow { margin-left: auto; font-size: 17px; color: #a7cfbb; }
.sidebar-note { margin: auto 9px 45px; padding-top: 80px; }
.sidebar-note-number { color: #66828f; font-size: 23px; font-weight: 350; letter-spacing: -.5px; }
.sidebar-note p { margin: 15px 0 9px; font-size: 17px; font-weight: 430; letter-spacing: -.3px; line-height: 1.45; color: #dae3e5; }
.sidebar-note > span:last-child { font-size: 11px; color: #8ca2ad; line-height: 1.65; display: block; max-width: 145px; }
.sidebar-footer { border-top: 1px solid #2b4353; padding: 23px 8px 0; display: flex; align-items: flex-start; gap: 9px; font-size: 10px; color: #b6c5cb; line-height: 1.7; }
.sidebar-footer div > span { color: #7e99a8; }
.status-dot { margin-top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #95c8af; }

.page-shell { margin-left: var(--sidebar-width); }
main { max-width: 1510px; padding: 40px 40px 0; margin: 0 auto; }
main:focus { outline: none; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 31px; }
.eyebrow { display: flex; gap: 10px; align-items: center; font-size: 9px; letter-spacing: 1.9px; font-weight: 680; color: #6e7f82; margin-bottom: 17px; }
.eyebrow-line { width: 22px; height: 2px; background: var(--teal); }
h1 { font-size: clamp(34px, 3.5vw, 49px); font-weight: 560; line-height: 1.12; letter-spacing: -2.3px; margin-bottom: 13px; }
h1 em { font-style: normal; color: var(--teal); }
.page-header p { font-size: 13px; color: var(--muted); margin: 0; }
.header-help { align-self: flex-end; margin-bottom: 5px; white-space: nowrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-weight: 590; font-size: 12px; line-height: 1.5; text-decoration: none; transition: color .16s, background .16s, border-color .16s, transform .16s; }
.button.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.secondary { background: #fff; border-color: #d9e1d9; color: var(--ink); }
.button.secondary:hover { border-color: #aebfb6; background: #fafcf8; }
.button.quiet { background: transparent; color: #687b80; padding-inline: 10px; }
.button.quiet:hover { background: #eef2ec; color: var(--teal-dark); }
.button.icon { width: 36px; height: 36px; min-height: 36px; padding: 0; background: #fff; border-color: var(--border); font-size: 18px; }
.button.icon:hover { background: var(--teal-pale); border-color: #b3d4c9; }
.full-width { width: 100%; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; padding: 15px 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.field label, .field-label { font-size: 11px; font-weight: 610; color: #687c82; }
.toolbar .field label { font-size: 8px; letter-spacing: 1.3px; font-weight: 720; }
.toolbar select { border: 0; background-color: transparent; height: 24px; padding: 0 22px 0 0; font-size: 12px; font-weight: 610; max-width: 280px; color: var(--ink); }
select { border: 1px solid #d7e0d9; border-radius: 6px; background: #fff; color: var(--ink); padding: 9px 31px 9px 11px; font-size: 12px; max-width: 100%; }
.toolbar-divider { width: 1px; height: 34px; background: var(--border); }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.toolbar-actions .button { min-height: 33px; font-size: 10px; padding: 7px 9px; }
.toolbar-actions .button svg { width: 15px; height: 15px; }
.seats-field { width: 62px; flex: 0 0 62px; }
#seats-input { width: 62px; height: 25px; border: 1px solid #d9e2d8; border-radius: 5px; padding: 2px 5px 2px 8px; color: var(--ink); background: #fbfcf8; font-size: 12px; font-weight: 610; font-variant-numeric: tabular-nums; }
.badge, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 9px; border-radius: 5px; font-size: 9px; line-height: 1.4; font-weight: 650; background: var(--teal-pale); color: var(--teal-dark); white-space: nowrap; }
.badge.baseline::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #5d9d7d; }
.badge.simulated, .badge.warning, .chip.warning { background: #fff1de; color: #8d6022; }
.badge.neutral, .chip.neutral { background: #f0f3ee; color: #77857e; font-size: 8px; letter-spacing: .8px; }
.badge.error { background: #fbebe7; color: #b04d40; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 23px 0; }
.stat-card { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 18px 19px 17px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.stat-card.accent, .stat-card.highlight { background: #edf5f0; border-color: #cee0d5; }
.stat-label, .metric-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.1px; color: #738280; font-weight: 650; }
.stat-value, .metric-value { font-size: 30px; font-weight: 610; letter-spacing: -1.3px; line-height: 1.2; margin: 9px 0 7px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card.accent .stat-value, .stat-card.highlight .stat-value { color: var(--teal-dark); }
.stat-note, .stat-detail, .metric-note, .metric-detail { font-size: 10px; color: #84918f; line-height: 1.45; }
.stat-value small { font-size: 14px; letter-spacing: -.3px; color: #7b8b86; }
.stat-card input { max-width: 95px; font-size: 28px; background: transparent; border: 0; border-bottom: 1px dashed #a7bdb0; padding: 0; color: var(--ink); font-weight: 600; }

.workspace-grid { display: grid; grid-template-columns: minmax(300px, .84fr) minmax(425px, 1.3fr); gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { padding: 24px 25px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.section-kicker { display: block; font-size: 8px; letter-spacing: 1.45px; font-weight: 710; color: var(--teal); margin-bottom: 9px; }
.panel-heading h2 { font-size: 18px; margin: 0; font-weight: 610; letter-spacing: -.6px; }
.panel-heading h3 { margin: 0; font-size: 23px; font-weight: 570; }
.panel-description { color: #7a898b; margin: 9px 0 0; font-size: 11px; line-height: 1.6; }
.tiny-label { font-size: 7px; letter-spacing: .8px; padding: 3px 5px; color: #8c9994; border: 1px solid var(--border); border-radius: 3px; margin-top: 2px; }
.segmented-control { display: flex; margin: 1px 23px 13px; background: #f0f3ed; border: 1px solid #ebeee7; border-radius: 7px; padding: 3px; }
.segmented-control button { background: transparent; border: 0; border-radius: 4px; flex: 1; padding: 8px 7px; font-size: 11px; font-weight: 590; color: #7b8883; }
.segmented-control button.active, .segmented-control button[aria-selected="true"] { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 3px #122c3c12; }
.controls-list { padding: 0 23px; max-height: 573px; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cad7ce transparent; }
.group-row, .candidate-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.group-row:last-child, .candidate-row:last-child { border-bottom: 0; }
.group-name, .candidate-name { font-size: 12px; font-weight: 630; color: var(--ink); margin-bottom: 3px; line-height: 1.35; }
.group-meta, .candidate-meta, .group-description, .candidate-description { font-size: 10px; line-height: 1.45; color: #8a9692; }
.group-info, .candidate-info { flex: 1; min-width: 0; }
.group-color, .party-swatch, .color-dot, .group-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--party-color, var(--teal)); flex: 0 0 auto; }
.group-row > .group-color, .group-row > .party-swatch { align-self: flex-start; margin-top: 5px; }
.party-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 620; }
.vote-input { width: 91px; min-width: 75px; height: 35px; padding: 7px 9px; border: 1px solid #dce4dc; border-radius: 6px; text-align: right; color: var(--ink); background: #fcfdfa; font-size: 12px; font-weight: 570; font-variant-numeric: tabular-nums; }
.vote-input:hover { border-color: #b6cbbf; }
.vote-input:focus { background: #fff; border-color: var(--teal); }
.vote-input.changed { background: #fff7e9; border-color: #e9c889; }
.vote-control { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.vote-control small, .input-caption { font-size: 9px; color: #8a9692; }
.search-field { position: relative; margin: 0 23px 10px; }
.search-field svg { width: 15px; height: 15px; position: absolute; left: 12px; top: 12px; color: #8b9b94; }
.search-field input { width: 100%; padding: 10px 10px 10px 35px; border: 1px solid var(--border); border-radius: 6px; background: #fafcf8; font-size: 11px; color: var(--ink); }
.candidate-filters { display: grid; gap: 8px; margin: 0 23px 11px; }
.candidate-filters .search-field { margin: 0; }
.candidate-filters select { width: 100%; padding-block: 8px; font-size: 10px; background: #fbfcf8; }
.party-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--party-color, var(--teal)); }
.seat-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; border-radius: 5px; font-weight: 700; font-size: 12px; color: var(--ink); background: #f1f5ed; }
.result-row:hover { background: #fafcf7; }
.input-label { display: block; font-size: 9px; font-weight: 550; color: #8a9684; margin-bottom: 5px; }
.row-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.row-grid .vote-input { width: 100%; }
.mini-bar { height: 3px; background: #edf2e6; border-radius: 9px; overflow: hidden; margin-top: 8px; }
.mini-bar > span, .mini-bar > i, .mini-bar > div { display: block; height: 100%; border-radius: inherit; background: var(--party-color, var(--teal)); }
.group-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.group-actions button, .group-actions a { font-size: 9px; color: var(--teal); background: transparent; border: 0; padding: 2px 0; text-decoration: none; font-weight: 580; }
.group-actions button:hover, .group-actions a:hover { text-decoration: underline; }
.group-actions small { font-size: 9px; color: #92a084; }
.formula-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-block: 8px; font-variant-numeric: tabular-nums; font-size: 18px; color: var(--teal-dark); letter-spacing: -.4px; }
.formula-line small { font-size: 10px; color: #93a582; letter-spacing: 0; }
.controls-footer { border-top: 1px solid var(--border); background: #fafcf8; padding: 16px 23px 20px; }
.controls-footer p { font-size: 10px; color: #8b9690; margin-bottom: 13px; display: flex; gap: 7px; align-items: center; }
.small-dot { display: inline-block; width: 4px; height: 4px; background: #6a9e7e; border-radius: 50%; }
.controls-footer .button { font-size: 11px; min-height: 36px; }
.results-stack { min-width: 0; display: grid; gap: 20px; }
.live-label { font-size: 7px; letter-spacing: .6px; color: #8e9d95; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding-top: 3px; }
.live-label span { width: 4px; height: 4px; border-radius: 50%; background: #7ca58c; }
.chamber-visual { position: relative; margin: -1px auto 0; width: min(100%, 500px); padding: 0 15px; }
.chamber-visual svg { width: 100%; height: auto; overflow: visible; }
.chamber-visual circle, .chamber-visual rect { transition: fill .28s, opacity .28s; }
.chamber-visual circle:focus, .chamber-visual rect:focus { stroke: var(--ink); stroke-width: 3px; outline: none; }
.chamber-center { position: absolute; bottom: 22px; left: 25%; width: 50%; text-align: center; pointer-events: none; }
.chamber-center strong { display: block; font-size: 40px; font-weight: 550; letter-spacing: -1.9px; line-height: 1; }
.chamber-center span, .chamber-center small { display: block; font-size: 9px; color: #8a9891; margin-top: 7px; letter-spacing: .3px; }
.chamber-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 15px; padding: 2px 28px 20px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #7e8d87; white-space: nowrap; }
.legend-item strong { color: #4e645b; font-size: 10px; font-weight: 660; }
.legend-item .party-swatch, .legend-item .color-dot { width: 6px; height: 6px; }
.outcome-summary { border-top: 1px solid var(--line); background: #f7faf5; padding: 13px 25px; font-size: 11px; color: #6e8075; line-height: 1.6; }
.outcome-summary:empty { display: none; }
.outcome-summary strong { color: var(--teal-dark); font-weight: 650; }
.outcome-summary p { margin: 0; }
.table-scroll { overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: left; }
thead { background: #f5f7f2; color: #839088; }
th { padding: 10px 12px; font-weight: 620; letter-spacing: .3px; font-size: 9px; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #60766a; vertical-align: middle; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 25px; }
th:last-child, td:last-child { padding-right: 25px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf8; }
td strong { color: var(--ink); font-weight: 660; }
.number, .num, .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.delta { font-size: 9px; font-weight: 620; padding: 3px 5px; border-radius: 4px; display: inline-block; min-width: 22px; text-align: center; }
.delta.positive, .positive { color: #10785c; }
.delta.positive { background: #e6f4eb; }
.delta.negative, .negative { color: #b06146; }
.delta.negative { background: #faece5; }
.delta.unchanged, .delta.neutral { color: #9ca69c; background: transparent; }
.elected-section { border-top: 1px solid var(--border); }
.elected-section summary { padding: 17px 25px; display: flex; align-items: center; justify-content: space-between; color: var(--teal-dark); font-size: 11px; font-weight: 630; cursor: pointer; list-style: none; background: #fcfdf9; }
summary::-webkit-details-marker { display: none; }
.summary-arrow { font-size: 17px; transition: transform .2s; }
details[open] .summary-arrow { transform: rotate(90deg); }
.elected-list { padding: 0 25px 18px; }
.elected-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.elected-row:last-child { border-bottom: 0; }
.elected-number { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #f0f4ed; color: #829183; font-size: 9px; }
.elected-row strong { font-weight: 600; }
.elected-row small { font-size: 9px; color: #91a094; }
.elected-phase { font-size: 8px; font-weight: 560; padding: 3px 5px; border-radius: 3px; background: #f2f5ee; color: #829182; margin-left: auto; }

.rounds-panel { margin-top: 23px; }
.round-heading { align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.round-navigation { display: flex; align-items: center; gap: 8px; flex: none; }
.round-navigation select { height: 36px; min-width: 155px; max-width: 220px; font-size: 11px; }
.round-detail { display: grid; grid-template-columns: minmax(245px, .65fr) minmax(0, 1.35fr); }
.round-explanation { padding: 24px 25px; border-right: 1px solid var(--line); background: #fafcf7; }
.round-explanation h3 { font-size: 16px; font-weight: 610; line-height: 1.4; margin-bottom: 19px; }
.round-formula { color: #728679; font-size: 11px; line-height: 1.65; }
.round-formula p { margin-bottom: 10px; }
.round-formula strong { color: var(--teal-dark); }
.formula { padding: 18px 21px; background: #edf6ef; border: 1px solid #dbe9dc; border-radius: 8px; color: var(--teal-dark); font-size: 19px; font-variant-numeric: tabular-nums; font-weight: 550; line-height: 1.6; margin: 15px 0; }
.formula small { display: block; font-size: 10px; font-weight: 450; color: #7c9180; margin-top: 7px; }
.formula .operator { color: #93ad99; padding: 0 8px; font-weight: 400; }
.round-table td, #round-table td { font-size: 10px; }
.winner-row, tr.winner { background: #eff7ef !important; }
.excluded-row, tr.excluded { opacity: .62; }
.reason { font-size: 9px; color: #849286; line-height: 1.45; }
.page-footnote { display: flex; gap: 8px; align-items: flex-start; color: #93a091; font-size: 9px; margin: 17px 0 0; line-height: 1.6; }
.footnote-mark { display: inline-flex; justify-content: center; align-items: center; width: 12px; height: 12px; font-size: 8px; border: 1px solid #b6c3b2; border-radius: 50%; flex: none; margin-top: 1px; }
.main-footer { max-width: 1510px; margin: 32px auto 0; padding: 20px 40px 25px; display: flex; justify-content: space-between; color: #a1aa9d; border-top: 1px solid #e4e8de; font-size: 9px; }
.main-footer span:first-child { font-size: 8px; letter-spacing: 1.6px; }

.view-intro { margin: 30px 0 28px; max-width: 680px; }
.view-intro .section-kicker { margin-bottom: 12px; }
.view-intro h2 { font-size: 33px; font-weight: 550; margin-bottom: 12px; letter-spacing: -1.4px; }
.view-intro p { font-size: 13px; color: #7e8c80; line-height: 1.7; margin: 0; }
.lesson-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 24px; }
.lesson-steps { display: grid; gap: 8px; align-content: start; }
.lesson-step, .step-button { display: flex; align-items: center; gap: 11px; padding: 15px 14px; background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: left; color: #7b8c7c; font-size: 12px; font-weight: 590; width: 100%; }
.lesson-step.active, .step-button.active, .lesson-step[aria-current="step"], .step-button[aria-current="step"] { color: var(--teal-dark); background: #e9f3ea; border-color: #cfe1ce; }
.step-number { border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: #edf0e8; color: #8d9d86; font-size: 10px; flex: none; }
.lesson-step.active .step-number, .step-button.active .step-number { color: #fff; background: var(--teal); }
.lesson-content { padding: 32px 37px; font-size: 14px; line-height: 1.8; color: #6f8271; min-height: 340px; }
.lesson-content h2, .lesson-content h3 { color: var(--ink); font-size: 29px; font-weight: 550; letter-spacing: -1.1px; margin-bottom: 17px; }
.lesson-content h4 { color: var(--ink); font-size: 18px; margin: 20px 0 10px; }
.lesson-content strong { color: var(--ink); font-weight: 650; }
.lesson-content p:last-child { margin-bottom: 0; }
.lesson-content ul, .lesson-content ol { padding-left: 20px; }
.lesson-content li { padding-left: 4px; margin-bottom: 8px; }
.lesson-content .formula { font-size: 27px; padding: 23px 24px; margin: 25px 0; }
.lesson-content .formula strong { color: var(--teal-dark); }
.lesson-navigation { padding: 19px 37px; border-top: 1px solid var(--line); background: #fafcf7; display: flex; justify-content: space-between; gap: 14px; }
.step-card { background: #f7faf2; padding: 20px; border-radius: 8px; border: 1px solid #e3eadb; margin-top: 17px; }
.notice, .warning-box { padding: 14px 17px; border-radius: 7px; font-size: 11px; line-height: 1.65; background: #fff5e5; border: 1px solid #eedfbe; color: #8d7044; margin: 15px 0; }
.notice.info { background: #edf5ee; border-color: #d6e4d5; color: #5f8065; }
.faq-section { margin-top: 38px; display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 29px; }
.faq-section h3 { font-size: 25px; font-weight: 550; max-width: 200px; }
.faq-list { border-top: 1px solid #dce3d6; }
.faq-list details { border-bottom: 1px solid #dce3d6; }
.faq-list summary { position: relative; padding: 18px 35px 18px 0; font-size: 13px; font-weight: 570; cursor: pointer; list-style: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 3px; top: 14px; font-size: 21px; font-weight: 330; color: #80967e; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: #7c8f79; font-size: 12px; line-height: 1.8; margin: 0 25px 20px 0; }

.source-content { display: grid; gap: 20px; }
.source-card { padding: 25px 27px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: #778b74; font-size: 12px; line-height: 1.7; }
.source-card h3 { color: var(--ink); font-size: 20px; margin-bottom: 14px; }
.source-card h4 { color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.source-card p:last-child { margin-bottom: 0; }
.source-card li { margin-bottom: 8px; }
.source-card ul { padding-left: 19px; }
.source-card a { overflow-wrap: anywhere; }
.source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.source-note { font-size: 11px; color: #8a9b81; }
.data-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.import-panel { margin-top: 24px; }
.import-body { padding: 0 25px 25px; }
.text-muted { color: #819079; font-size: 12px; line-height: 1.75; }
.import-body .field-label { display: block; margin: 20px 0 8px; }
textarea { display: block; width: 100%; background: #f9fbf5; padding: 13px; border: 1px solid #d9e2d2; border-radius: 7px; resize: vertical; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: #547154; }
textarea::placeholder { color: #9baa90; }
.import-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.file-button { cursor: pointer; }
.import-status { margin-top: 10px; font-size: 11px; line-height: 1.65; color: #7c8f70; }
.import-status:empty { display: none; }
.empty-state { color: #94a28b; padding: 35px 15px; font-size: 12px; line-height: 1.7; text-align: center; }
.error-state { background: #fff1e9; padding: 20px; border-radius: 8px; color: #a2644b; }
code { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; background: #f0f4e9; border-radius: 3px; padding: 2px 5px; color: #587654; }
pre { overflow: auto; padding: 16px; border-radius: 8px; background: #f4f7ee; font-size: 11px; }
pre code { background: transparent; padding: 0; }

.modal { width: min(480px, calc(100vw - 32px)); padding: 0; max-height: min(90vh, 750px); border: 1px solid #dce4d4; border-radius: 17px; background: #fff; color: var(--ink); box-shadow: 0 25px 100px #112b3c33; }
.modal::backdrop { background: #102b3d85; backdrop-filter: blur(4px); }
.modal-heading { padding: 30px 32px 22px; }
.modal-heading h2 { font-size: 31px; font-weight: 530; line-height: 1.2; margin: 14px 0; letter-spacing: -1.1px; }
.modal-heading p { font-size: 12px; line-height: 1.7; color: #829379; margin-bottom: 0; }
.modal-body { padding: 0 32px 28px; }
.modal .field { gap: 7px; }
.modal .field label { font-size: 11px; }
.modal .field input { border: 1px solid #d5e0cc; border-radius: 6px; padding: 10px 11px; font-size: 14px; background: #fbfcf8; color: var(--ink); }
.transfer-direction { color: #9db48f; text-align: center; padding: 5px; font-size: 18px; }
.amount-field { margin-top: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 32px; background: #f6f9f1; border-top: 1px solid var(--border); }
.toast { position: fixed; z-index: 100; bottom: 24px; left: calc(50% + var(--sidebar-width)/2); transform: translate(-50%, 12px); background: var(--navy); color: #fff; border: 1px solid #355166; box-shadow: 0 5px 25px #142b3c22; border-radius: 9px; padding: 13px 20px; font-size: 12px; opacity: 0; pointer-events: none; max-width: min(600px, 85vw); transition: opacity .2s, transform .2s; }
.toast:not(:empty), .toast.visible, .toast.show { opacity: 1; transform: translate(-50%,0); }

@media (min-width: 1600px) {
  main { padding-top: 50px; }
  .page-header { margin-bottom: 36px; }
  .controls-list { max-height: 620px; }
  .chamber-visual { max-width: 520px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 196px; }
  .sidebar { padding-inline: 17px; }
  .brand-name { font-size: 19px; }
  .sidebar-kicker { font-size: 7px; letter-spacing: 1.7px; }
  .nav-item { font-size: 11px; gap: 8px; padding-inline: 10px; }
  main { padding: 32px 25px 0; }
  .main-footer { padding-inline: 25px; }
  h1 { font-size: 38px; letter-spacing: -1.8px; }
  .header-help { padding: 8px 10px; font-size: 10px; }
  .toolbar { gap: 14px; padding-inline: 16px; }
  .toolbar select { font-size: 11px; max-width: 220px; }
  .toolbar-actions { gap: 6px; }
  .toolbar-actions .badge { font-size: 8px; padding: 4px 6px; }
  .metrics { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 27px; }
  .workspace-grid { grid-template-columns: minmax(280px,.84fr) minmax(360px,1.3fr); gap: 16px; }
  .panel-heading { padding-inline: 20px; }
  .panel-heading h2 { font-size: 16px; }
  .live-label { display: none; }
  .segmented-control { margin-inline: 20px; }
  .controls-list { padding-inline: 20px; }
  .controls-footer { padding-inline: 20px; }
  .round-detail { grid-template-columns: minmax(240px,.78fr) minmax(0,1.22fr); }
  .lesson-layout { grid-template-columns: 185px minmax(0,1fr); gap: 17px; }
  .lesson-content { padding: 28px; }
  .lesson-navigation { padding-inline: 28px; }
}
@media (max-width: 1050px) {
  :root { --sidebar-width: 174px; }
  .sidebar { padding-inline: 13px; }
  .brand { padding-inline: 4px; gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .sidebar-kicker { margin-left: 4px; letter-spacing: 1.1px; }
  .nav-item { padding-inline: 8px; font-size: 10px; }
  .nav-item svg { width: 16px; height: 16px; }
  main { padding-inline: 22px; }
  h1 { font-size: 34px; letter-spacing: -1.6px; }
  .page-header { gap: 10px; }
  .page-header p { font-size: 11px; }
  .header-help { font-size: 9px; }
  .toolbar { flex-wrap: wrap; gap: 12px 16px; }
  .toolbar-actions { margin-left: auto; }
  .toolbar-actions .badge { display: none; }
  .metrics { gap: 9px; }
  .stat-card { padding: 14px 12px; }
  .stat-label { font-size: 8px; letter-spacing: .7px; }
  .stat-value { font-size: 25px; }
  .stat-note { font-size: 9px; }
  .workspace-grid { grid-template-columns: minmax(250px,.88fr) minmax(330px,1.12fr); gap: 14px; }
  .panel-heading { padding: 20px 17px 16px; }
  .panel-heading h2 { font-size: 15px; }
  .section-kicker { font-size: 7px; letter-spacing: 1.1px; }
  .tiny-label { display: none; }
  .segmented-control { margin-inline: 17px; }
  .segmented-control button { font-size: 10px; }
  .controls-list { padding-inline: 17px; }
  .controls-footer { padding-inline: 17px; }
  .group-name, .candidate-name { font-size: 11px; }
  .vote-input { width: 78px; min-width: 66px; font-size: 11px; }
  th, td { padding-inline: 8px; }
  th:first-child, td:first-child { padding-left: 17px; }
  th:last-child, td:last-child { padding-right: 17px; }
  .chamber-legend { gap: 6px 10px; padding-inline: 17px; }
  .chamber-center strong { font-size: 33px; }
  .chamber-center { bottom: 17px; }
  .round-detail { grid-template-columns: 1fr; }
  .round-explanation { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .round-explanation h3 { margin-bottom: 12px; }
  .round-formula { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
  .round-formula .formula { margin: 0; }
  .round-navigation select { min-width: 130px; max-width: 160px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lesson-step, .step-button { padding: 10px; font-size: 10px; }
  .faq-section { grid-template-columns: 1fr; gap: 13px; }
  .faq-section h3 { max-width: none; }
}
@media (max-width: 860px) {
  :root { --sidebar-width: 0px; }
  .sidebar { position: static; width: 100%; padding: 17px 23px 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
  .brand { padding: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 16px; }
  .brand-name br { display: none; }
  .brand-name strong { margin-left: 3px; }
  .sidebar-kicker { margin: 0; align-self: center; font-size: 7px; }
  .main-nav { grid-column: 1/-1; display: flex; margin: 16px -4px 0; gap: 8px; }
  .nav-item { flex: 1; border-radius: 7px 7px 0 0; padding: 11px 13px 12px; border-bottom: 0; justify-content: center; min-height: 42px; font-size: 11px; }
  .nav-item.active { background: #294557; }
  .nav-arrow, .sidebar-note, .sidebar-footer { display: none; }
  .page-shell { margin: 0; }
  main { padding: 28px 23px 0; }
  .page-header { margin-bottom: 24px; }
  .eyebrow { font-size: 8px; margin-bottom: 13px; }
  h1 { font-size: 37px; }
  .header-help { font-size: 10px; padding: 9px 12px; }
  .page-header p { font-size: 12px; }
  .workspace-grid { grid-template-columns: minmax(265px,.86fr) minmax(330px,1.14fr); }
  .stat-label { font-size: 9px; }
  .toolbar-actions .badge { display: inline-flex; }
  .toast { left: 50%; }
}
@media (max-width: 680px) {
  .sidebar { padding: 15px 17px 0; }
  .sidebar-kicker { font-size: 6px; letter-spacing: .8px; }
  .main-nav { margin-top: 15px; gap: 3px; }
  .nav-item { padding: 10px 7px; font-size: 10px; gap: 6px; }
  .nav-item svg { width: 15px; }
  main { padding: 26px 17px 0; }
  .page-header { align-items: flex-start; }
  h1 { font-size: 34px; line-height: 1.1; max-width: 335px; letter-spacing: -1.7px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .page-header p { font-size: 11px; max-width: 300px; line-height: 1.7; }
  .header-help { display: none; }
  .toolbar { gap: 15px; padding: 15px; border-radius: 9px; }
  .toolbar .field { flex: 1 1 140px; }
  .toolbar .seats-field { flex: 0 0 62px; }
  .toolbar select { max-width: 100%; font-size: 11px; }
  .toolbar-divider { display: none; }
  .toolbar-actions { flex: 1 1 100%; padding-top: 11px; border-top: 1px solid var(--line); justify-content: space-between; }
  .toolbar-actions .badge { margin-right: auto; }
  .toolbar-actions .export-button { flex-basis: 100%; margin-top: 4px; }
  .toolbar-actions .button { min-height: 28px; padding-block: 4px; font-size: 10px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 17px 0; }
  .stat-card { padding: 15px; }
  .stat-value { font-size: 29px; }
  .stat-note { font-size: 9px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 18px; }
  .controls-list { max-height: 360px; }
  .controls-heading h2, .panel-heading h2 { font-size: 18px; }
  .section-kicker { font-size: 8px; letter-spacing: 1.4px; }
  .tiny-label { display: block; }
  .panel-heading { padding: 23px 21px 17px; }
  .segmented-control { margin-inline: 21px; }
  .segmented-control button { font-size: 11px; }
  .controls-list { padding-inline: 21px; }
  .controls-footer { padding-inline: 21px; }
  .group-name, .candidate-name { font-size: 12px; }
  .vote-input { width: 100px; height: 37px; font-size: 13px; }
  .group-row, .candidate-row { padding-block: 13px; }
  .live-label { display: inline-flex; font-size: 6px; }
  .chamber-visual { max-width: 460px; }
  .chamber-center { bottom: 24px; }
  .chamber-center strong { font-size: 39px; }
  .chamber-legend { padding: 0 21px 22px; gap: 8px 13px; }
  .legend-item { font-size: 10px; }
  table { font-size: 11px; }
  th { font-size: 9px; padding-block: 12px; }
  td { padding-block: 12px; }
  th:first-child, td:first-child { padding-left: 21px; }
  th:last-child, td:last-child { padding-right: 21px; }
  .rounds-panel { margin-top: 18px; }
  .round-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .round-navigation { width: 100%; }
  .round-navigation select { flex: 1; max-width: none; }
  .round-explanation { padding: 21px; }
  .round-formula { display: block; }
  .round-formula .formula { margin: 12px 0; }
  .main-footer { margin-top: 25px; padding: 18px 17px 22px; font-size: 8px; gap: 12px; }
  .view-intro { margin-top: 15px; }
  .view-intro h2 { font-size: 29px; }
  .view-intro p { font-size: 12px; }
  .lesson-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .lesson-step, .step-button { padding: 9px; font-size: 10px; gap: 8px; }
  .lesson-content { padding: 25px 23px; min-height: 0; font-size: 13px; }
  .lesson-content h2, .lesson-content h3 { font-size: 25px; }
  .lesson-content .formula { padding: 18px; font-size: 23px; }
  .lesson-navigation { padding: 17px 20px; }
  .lesson-navigation .button { font-size: 10px; padding: 9px 10px; }
  .faq-section { margin-top: 30px; }
  .faq-section h3 { font-size: 24px; }
  .source-card { padding: 22px; }
  .source-grid { grid-template-columns: 1fr; }
  .import-panel .panel-heading { display: block; }
  .import-panel .badge { margin-top: 15px; }
  .import-body { padding: 0 21px 23px; }
  .import-body .text-muted { font-size: 11px; }
  .import-actions .button { font-size: 10px; }
  .modal-heading { padding: 27px 25px 21px; }
  .modal-body { padding-inline: 25px; }
  .modal-actions { padding-inline: 25px; }
  .toast { width: max-content; max-width: calc(100vw - 34px); bottom: 17px; font-size: 11px; }
}
@media (max-width: 390px) {
  .sidebar-kicker { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .brand { justify-content: center; }
  .nav-item { font-size: 9px; }
  h1 { font-size: 31px; }
  .live-label { display: none; }
  .chamber-center { bottom: 17px; }
  .chamber-center strong { font-size: 31px; }
  .chamber-center small, .chamber-center span { font-size: 8px; }
  .panel-heading h2 { font-size: 17px; }
  .toolbar .field { flex-basis: 100%; }
  .toolbar .field + .field { border-top: 1px solid var(--line); padding-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .toolbar-actions, .header-help, .controls-panel, .round-navigation, .import-panel, .toast, .main-footer { display: none !important; }
  .page-shell { margin: 0; }
  body { background: #fff; }
  main { padding: 0; }
  .workspace-grid { display: block; }
  .panel { break-inside: avoid; box-shadow: none; }
  .panel, .stat-card { border-color: #bbb; }
  .metrics { gap: 10px; }
  .chamber-visual { max-width: 430px; }
  .elected-section[open] { break-inside: auto; }
}

/* Simulation controls and data-rich views. */
.group-row { display: block; padding: 18px 0; }
.group-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.group-info, .candidate-info { display:flex; gap:9px; align-items:flex-start; }
.group-info .party-dot, .candidate-info .party-dot { margin-top:5px; }
.group-name, .candidate-name { display:block; font-size:13px; }
.group-meta, .candidate-meta { font-size:11px; color:#667b78; }
.seat-count { padding:5px 8px; height:auto; white-space:nowrap; gap:5px; }
.seat-count small { font-size:10px; font-weight:500; color:#6f8176; }
.row-grid { margin-top:12px; }
.input-label { font-size:11px; color:#5a716b; }
.input-label input { display:block; margin-top:5px; }
.vote-input { font-size:14px; height:38px; }
.group-actions { font-size:11px; color:#71817e; }
.group-actions button { font-size:11px; padding:4px 0; }
.control-instruction { font-size:12px; line-height:1.65; color:#607670; margin:4px 0 9px; }
.candidate-elected { color:#08705a; font-size:10px; display:inline-block; margin-left:5px; }
.candidate-row .vote-input { width:92px; }
.controls-list { max-height:658px; }
.load-more { margin:18px 0; }
.badge.simulation { background:#fff0dc; color:#865a1a; }
.badge.success { background:#dcefe5; color:#166849; }
.legend-item { padding:4px 5px; background:transparent; border:0; font-size:11px; color:#4d685f; }
.legend-item:hover { background:#f0f5ee; border-radius:4px; }
.chamber-center strong small { display:inline; font-size:19px; margin:0 0 0 3px; letter-spacing:-.4px; }
.chamber-center span { font-size:11px; color:#587066; }
.chamber-visual g:focus { outline:none; }
.chamber-visual g:focus rect { stroke:#142b3c; stroke-width:3px; }
.stat-value { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.stat-label { font-size:10px; }
.stat-note { font-size:11px; color:#667b75; }
.stat-value .delta { font-size:10px; letter-spacing:0; }
.outcome-summary { font-size:12px; }
.comparison-note { margin-top:7px; color:#805b29; }
.result-row th { border-bottom:1px solid var(--line); font-size:11px; letter-spacing:0; }
.result-row .party-dot, #round-table .party-dot { margin-right:7px; }
table { font-size:12px; }
th { font-size:10px; }
.table-note { padding:12px 23px; color:#637970; font-size:11px; line-height:1.65; margin:0; }
#round-table td { font-size:11px; }
#round-table th { letter-spacing:0; }
.winning-row { background:#e9f4ed !important; }
.round-formula { font-size:12px; }
.round-formula .formula { display:flex; flex-wrap:wrap; gap:2px; font-size:20px; padding:16px; }
.round-formula .formula .operator { padding:0 4px; }
.elected-row { font-size:12px; }
.elected-phase { font-size:10px; }
.left-candidates { padding:14px 0 0; font-size:12px; color:#9a543c; }
.left-candidates p { margin:7px 0 0; }
.text-muted { color:#657a73; }
.import-help { margin:12px 0 20px; font-size:12px; }
.import-help summary { cursor:pointer; color:var(--teal-dark); font-weight:600; }
.import-help p { margin:12px 0; line-height:1.7; }
.import-help code { background:#edf3ed; padding:2px 4px; border-radius:3px; }
.toast:not(.show) { opacity:0; transform:translate(-50%,12px); }
.toolbar .field label { font-size:9px; }
.toolbar-actions .button { font-size:11px; }
.segmented-control button, select, .search-field input { font-size:12px; }
.nav-item { font-size:13px; }
.page-footnote { font-size:11px; color:#64776d; }
@media (max-width:680px) {
 .controls-list { max-height:450px; }
 .group-name, .candidate-name { font-size:13px; }
 .toolbar select { max-width:100%; }
 .chamber-center strong small { font-size:18px; }
 .round-formula .formula { margin:12px 0; }
 .elected-row { flex-wrap:wrap; }
 .elected-phase { margin-left:32px; }
}
.lesson-step > span:last-child { display:block; min-width:0; }
.lesson-step strong { display:block; line-height:1.35; }
.lesson-step small { display:block; margin-top:5px; font-size:10px; font-weight:450; line-height:1.45; }
.lesson-context { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
.source-details, .reconciliation-detail { padding:14px 0; border-top:1px solid var(--border); }
.source-details summary, .reconciliation-detail summary { cursor:pointer; color:var(--teal-dark); font-weight:600; }
.source-details[open] summary, .reconciliation-detail[open] summary { margin-bottom:14px; }
.source-card { color:#5c746b; font-size:13px; }
.source-card .source-note { color:#647c70; }
.nav-arrow { font-size:0; }
.nav-arrow::after { content:'→'; font-size:18px; }
.group-actions button span, .summary-arrow { font-family:Arial,sans-serif; }
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} }

.statera-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; margin: -22px 8px 32px; color: #fff; text-decoration: none; font: 700 18px/1 Georgia, serif; }
.statera-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0b2435; color: #c69a44; font: italic 700 19px Georgia, serif; }
.statera-brand small { display: block; margin-top: 3px; color: #90c6ae; font: 700 7px/1.2 Inter, sans-serif; letter-spacing: .16em; }
@media (max-width: 860px) { .statera-brand { grid-column: 1 / -1; margin: 13px 0 0; font-size: 15px; } .statera-mark { width: 27px; height: 27px; font-size: 16px; } }
@media (max-width: 600px) { .main-footer { flex-wrap: wrap; } }

.statera-brand { margin-top: -22px; margin-bottom: 24px; }
.statera-logo-frame { position: relative; display: block; width: 158px; height: 126px; overflow: hidden; background: #fff; border-radius: 5px; }
.statera-logo-frame img { position: absolute; width: 632px; max-width: none; height: auto; left: -57px; top: -33px; }
@media (max-width: 860px) { .statera-brand { margin: 13px 0 0; } .statera-logo-frame { width: 126px; height: 101px; } .statera-logo-frame img { width: 506px; left: -46px; top: -26px; } }

/* Identidade Statera: verde profundo, dourado e papel claro. */
:root {
  --navy: #064833;
  --navy-soft: #0c5b40;
  --teal: #126344;
  --teal-dark: #084b34;
  --teal-pale: #edf5ee;
  --paper: #f7f6f1;
  --ink: #193329;
  --muted: #586b60;
  --muted-light: #78887d;
  --border: #dedfd5;
  --line: #eceee7;
  --shadow: 0 4px 22px rgba(12, 64, 42, .045);
}
body { background: var(--paper); }
h1, h2, h3, .brand-name, .sidebar-note-number { font-family: Georgia, 'Times New Roman', serif; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-weight: 500; }
h1 em { color: #0b6545; }
.sidebar { background: #084c35; border-left: 5px solid #b98a3d; overflow-y: auto; }
.brand-mark, .nav-arrow { color: #d2b476; }
.brand-name { letter-spacing: -.4px; }
.sidebar-kicker { color: #d6c5a0; }
.nav-item { color: #d2e2d7; }
.nav-item:hover { background: #146248; color: #fff; }
.nav-item.active, .nav-item[aria-current="page"] { background: #1b6549; border-color: #a98b50; color: #fff; }
.sidebar-note-number { color: #d0b77f; }
.sidebar-note p { color: #f0f5ee; }
.sidebar-note > span:last-child, .sidebar-footer div > span { color: #c0d4c5; }
.sidebar-footer { border-color: #3a765a; color: #e1ece2; }
.status-dot { background: #d4af68; }
.statera-logo-frame { border: 1px solid #d7c092; }
.eyebrow { color: #6e775f; }
.eyebrow-line { background: #b58a40; }
.section-kicker { color: #956c28; }
.button.primary { background: #0c5a3d; border-color: #0c5a3d; color: #fff; }
.button.primary:hover { background: #083f2d; border-color: #083f2d; }
.button.secondary { border-color: #d4d7cb; }
.button.secondary:hover { border-color: #a88b55; background: #fcfaf4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .file-button:focus-within { outline-color: #b18437; }
.toolbar, .panel, .stat-card { box-shadow: var(--shadow); }
.panel, .stat-card, .toolbar { border-color: #dfdfd4; }
.stat-card.accent, .stat-card.highlight { background: #eef4eb; border-color: #d6e4d4; }
.stat-card.accent::before, .stat-card.highlight::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #b68a40; }
.segmented-control { background: #f1f3eb; border-color: #e6e9dd; }
.segmented-control button.active, .segmented-control button[aria-selected="true"] { color: #084b34; }
.controls-footer, .round-explanation, .outcome-summary { background: #f8faf5; }
thead { background: #f1f3ec; color: #617264; }
.formula { background: #f0f5ed; border-color: #d7e5d5; }
.winning-row { background: #e8f2e7 !important; }
.main-footer { color: #66766a; border-top-color: #d6ddcf; }
.main-footer strong { color: #0b573b; }
.toast { background: #064833; border-color: #b28c4a; }
@media (max-width: 860px) {
  .sidebar { border-left: 0; border-top: 4px solid #b98a3d; overflow: visible; }
  .nav-item.active, .nav-item[aria-current="page"] { background: #1b6549; }
}
@media print { body { background: #fff; } }

/* No celular, o total fica fora do desenho para não cobrir as cadeiras. */
@media (max-width: 680px) {
  .chamber-visual { padding: 0 14px; }
  .chamber-center { position: static; width: auto; margin: 0 auto 14px; }
  .chamber-center strong { font-size: 30px; letter-spacing: -1px; }
  .chamber-center strong small { font-size: 16px; }
  .chamber-center span { margin-top: 4px; font-size: 11px; }
  .chamber-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; padding: 0 20px 20px; }
  .legend-item { min-width: 0; min-height: 36px; justify-content: flex-start; text-align: left; white-space: normal; line-height: 1.35; }
  .legend-item strong { margin-left: auto; }
}
