.vote-summary{margin:14px 0;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:10px}
.vote-summary-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.vote-summary-heading p,.vote-summary-basis{font-size:12px;color:var(--muted);margin-top:3px}
.vote-comparison{--result-lula:#d81f32;--result-flavio:#3c59d9;margin:18px 0 22px;font-variant-numeric:tabular-nums}
.vote-result+.vote-result{margin-top:22px}
.vote-result-heading,.vote-change-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.vote-result-heading h3,.vote-change-heading h3{font-size:13px;font-weight:650;margin:0}
.vote-result-heading>span,.vote-change-heading>span{font-size:12px;color:var(--muted)}
.vote-result-heading>span strong{font-weight:600;color:var(--ink)}
.vote-result-labels{display:flex;justify-content:space-between;gap:20px;margin:10px 0 6px}
.vote-result-labels>div{flex:1;min-width:0}
.vote-result-labels>div:last-child{text-align:right}
.vote-result-labels strong{font-size:15px;line-height:1.4;font-weight:700}
.vote-result-labels small{font-size:10px;font-weight:500;margin-left:4px}
.vote-result-lula{color:var(--result-lula)}
.vote-result-flavio{color:var(--result-flavio)}
.vote-result-fallback{display:none;font-size:11px;line-height:1.5;margin-top:2px}
.vote-result-chart{display:flex;position:relative;isolation:isolate;height:44px;border-radius:6px;overflow:hidden;background:#dce3eb}
.vote-result-segment{display:flex;align-items:center;gap:10px;flex:none;min-width:0;overflow:hidden;white-space:nowrap;color:#fff}
.vote-result-segment b{font-size:23px;font-weight:750;line-height:1.2;margin-left:12px}
.vote-result-segment small{font-size:12px;font-weight:500}
.vote-result-chart>.vote-result-lula{background:var(--result-lula);color:#fff}
.vote-result-chart>.vote-result-flavio{background:var(--result-flavio);color:#fff;flex-direction:row-reverse}
.vote-result-chart>.vote-result-flavio b{margin-left:0;margin-right:12px}
.vote-result-chart>.vote-result-others{background:#cbd5e1}
.vote-result-midpoint{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#fff;pointer-events:none}
.vote-result-midpoint>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:2px 4px;background:#243546;color:#fff;border-radius:3px;font-size:10px;line-height:1.2;font-weight:600}
.vote-result-other{margin:5px 0 0;text-align:center;font-size:11px;line-height:1.5;color:var(--muted)}
.vote-result-other:empty{display:none}
.vote-result-message{margin:6px 0 0;padding:12px;background:var(--soft);font-size:12px;line-height:1.5;color:var(--muted)}
.vote-result[data-compact=true] .vote-result-fallback{display:block}
.vote-result[data-compact=true] .vote-result-segment>b,.vote-result[data-compact=true] .vote-result-segment>small{display:none}
.vote-change-summary{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}
.vote-change-candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:10px 0 8px}
.vote-change-candidates>div{min-width:0}
.vote-change-candidates dt{font-size:12px;font-weight:650;line-height:1.4}
.vote-change-candidates dd{margin:3px 0 0}
.vote-change-candidates dd strong{display:block;font-size:19px;line-height:1.35;font-weight:700;color:var(--ink)}
.vote-change-candidates dd span{display:block;margin-top:2px;font-size:11px;line-height:1.5;color:var(--muted)}
@media(max-width:760px){.vote-result-fallback{display:block}.vote-result-segment>b,.vote-result-segment>small{display:none}.vote-result-chart{height:28px}.vote-result-labels strong{font-size:13px}.vote-change-candidates{gap:10px}.vote-change-candidates dt{min-height:34px}.vote-change-candidates dd strong{font-size:16px}.vote-result-heading>span{font-size:11px}}
.vote-summary-unavailable{font-size:13px;line-height:1.5;margin-top:12px;padding:10px 12px;background:var(--soft);border:1px solid var(--line);border-radius:6px;color:var(--ink)}
.vote-summary-unavailable a{display:block;margin-top:6px;font-weight:600}
.saved-scenarios{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;font-size:13px}
.saved-scenarios button{min-height:36px;padding:6px 10px;font-size:12px}
.saved-scenarios button[aria-pressed=true]{background:#e3eef3;color:#164e63;border-color:#9ab4c4;font-weight:650}
.saved-scenario-help{font-size:12px;line-height:1.5;margin-top:6px;color:var(--muted)}
.scenario-rule-controls{margin-top:12px;padding:10px 12px;background:var(--soft);border:1px solid var(--line);border-radius:8px}
.scenario-rule-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px}
.scenario-rule-heading strong{font-size:13px}
.scenario-rule-heading span{color:var(--muted)}
.scenario-rule-heading button{margin-left:auto;min-height:32px;padding:4px 9px;font-size:12px}
.scenario-rules{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.scenario-rule-chip{display:flex;align-items:stretch;overflow:hidden;border:1px solid #cbd8e0;border-radius:6px;background:#fff}
.scenario-rule-toggle,.scenario-rule-edit{min-height:32px;padding:4px 8px;border:0;border-radius:0;font-size:12px}
.scenario-rule-toggle[aria-pressed=true]{background:#e3eef3;color:#164e63;font-weight:650}
.scenario-rule-toggle[aria-pressed=false]{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.scenario-rule-edit{border-left:1px solid var(--line);min-width:31px;padding-inline:6px;color:var(--blue);font-size:15px}
.scenario-rules-empty{font-size:12px;color:var(--muted)}
.scenario-rule-hint{font-size:11px;line-height:1.4;color:var(--muted);margin-top:7px}
.vote-exclude-help{font-size:12px;line-height:1.5;color:var(--muted);margin-top:7px}
.vote-compare-status{font-size:12px;line-height:1.5;color:var(--muted);margin:6px 0}
.vote-compare-status[data-state=error]{color:#8c2932}
@media(max-width:450px){.scenario-rule-heading button{margin-left:0}.scenario-rule-toggle{min-height:40px}.scenario-rule-edit{min-height:40px}}
.vote-summary-scenario{font-size:12px;line-height:1.5;padding:8px 10px;margin:12px 0 0;background:var(--soft);border-left:3px solid var(--blue);border-radius:3px}
.attempt-manual-context{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}
.attempt-manual-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.attempt-manual-heading h3{font-size:14px;margin:0}
.attempt-manual-heading>span,.attempt-manual-status,.attempt-manual-coverage,.attempt-manual-note{font-size:12px;line-height:1.5;color:var(--muted)}
.attempt-manual-status,.attempt-manual-coverage{margin:6px 0 10px}
.attempt-manual-candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;font-variant-numeric:tabular-nums}
.attempt-manual-candidate{border-left:3px solid var(--line);padding:5px 10px;min-width:0}
.attempt-manual-candidate.lula{border-color:var(--lula)}.attempt-manual-candidate.flavio{border-color:var(--blue)}
.attempt-manual-candidate h4{font-size:12px;margin:0 0 3px}.attempt-manual-candidate strong{font-size:20px;line-height:1.3}
.attempt-manual-candidate span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.attempt-manual-note{margin:9px 0 0}
.vote-summary-status{font-size:12px;line-height:1.5;color:var(--muted);margin-top:12px}
.vote-summary.has-error .vote-summary-status{color:#8c2932}
.vote-summary-method{font-size:12px;color:var(--muted);margin-top:8px}
.vote-summary-method summary{color:var(--ink);font-weight:600}
.vote-summary-method p{margin:8px 0}
.vote-summary-method ul{margin:8px 0;padding-left:20px}
.vote-summary-method li{margin:4px 0}
.filter-impact{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}
.filter-impact-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.filter-impact-heading h3{font-size:14px;margin:0}
.filter-impact-heading>span,.filter-impact-status,.filter-impact-method,.filter-impact-note{font-size:12px;line-height:1.5;color:var(--muted)}
.filter-impact-status,.filter-impact-method{margin:6px 0 10px}
.filter-impact-note{margin-top:8px}
.filter-impact-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:6px}
.filter-impact-table{width:100%;min-width:650px;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.filter-impact-table th,.filter-impact-table td{position:static;min-width:0;height:auto;padding:9px 10px;text-align:right;border:0;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}
.filter-impact-table th:first-child{width:31%;text-align:left;font-weight:500;line-height:1.4}
.filter-impact-table thead th{background:var(--soft);font-weight:650;font-size:12px;white-space:normal;overflow-wrap:normal}
.filter-impact-table thead th:first-child{font-weight:650}
.filter-impact-table th small{display:block;font-size:11px;font-weight:400;margin-top:2px}
.filter-impact-table td{white-space:nowrap;font-weight:600}
.filter-impact-table tbody tr:nth-child(even)>th{background:#f7f9fb}
.filter-impact-table tbody tr:hover>th{background:#edf4f8}
.filter-impact-table tfoot th,.filter-impact-table tfoot td{font-weight:700;background:var(--soft);border-top:2px solid var(--line);border-bottom:0}
.filter-impact-order{color:var(--muted);display:inline-block;min-width:20px;font-size:12px}
.auth-breakdown{display:block;color:var(--worker);font-size:10px;line-height:1.45;font-weight:500;white-space:nowrap}
@media(max-width:760px){.filter-impact-table th,.filter-impact-table td{padding:8px;font-size:12px}.filter-impact-table th:first-child{width:30%}}
.percentage-bands{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}
.percentage-bands-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.percentage-bands-heading h3{font-size:14px;margin:0}
.percentage-bands-heading span,.percentage-bands-intro{font-size:12px;color:var(--muted)}
.percentage-bands-intro{line-height:1.5;margin:5px 0 12px}
.percentage-bands-layout{display:grid;grid-template-columns:minmax(420px,1.3fr) minmax(230px,1fr);gap:24px;align-items:start}
.percentage-bands-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;font-variant-numeric:tabular-nums}
.percentage-bands-table th,.percentage-bands-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle;white-space:normal;min-width:0}
.percentage-bands-table td{height:auto;background:transparent}
.percentage-bands-table th:last-child,.percentage-bands-table td:last-child{border-right:0}
.percentage-bands-table th:first-child{text-align:left;width:30%;font-weight:500}
.percentage-bands-table thead th{position:static;overflow-wrap:normal;background:var(--soft);font-weight:650;font-size:13px}
.percentage-bands-table th small{display:block;font-size:11px;font-weight:400;margin-top:2px}
.percentage-bands-table tbody td{font-weight:650}
.percentage-bands-table tbody tr:first-child{background:#f7f9fb}
.percentage-bands-table .worker{color:var(--worker)}
.percentage-bands-table tfoot th,.percentage-bands-table tfoot td{font-size:12px;color:var(--muted);font-weight:400;padding:5px 10px}
.percentage-bands-table tfoot tr:first-child th,.percentage-bands-table tfoot tr:first-child td{border-top:2px solid var(--line);padding-top:8px}
#percentage-bands-toggle{margin-top:8px;min-height:36px;font-size:12px}
.percentage-bands-notes{font-size:12px;line-height:1.55;color:var(--muted)}
.percentage-bands-notes p{margin:0 0 12px}
.percentage-bands-notes b{font-weight:600;color:var(--ink)}
.section-view-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
.section-view-tabs button{font-size:13px;min-height:40px;display:flex;align-items:center;gap:8px}
.section-view-tabs button span{font-size:11px;border-radius:4px;background:var(--soft);padding:2px 5px;font-variant-numeric:tabular-nums}
.section-view-tabs button[aria-pressed=true]{border-color:var(--blue);color:var(--blue);background:#edf5f8;font-weight:650}
.section-view-tabs p{font-size:12px;line-height:1.5;color:var(--muted);flex:1;min-width:240px;margin-left:6px}
.identity .exclusion-reason{color:#69491e;line-height:1.4;margin-top:5px}
@media(max-width:450px){.section-view-tabs{padding:12px}.section-view-tabs button{min-height:44px;flex:1;justify-content:center}.section-view-tabs p{min-width:0;flex-basis:100%;margin:2px 0 0}}
@media(max-width:900px){.percentage-bands-layout{grid-template-columns:1fr;gap:12px}.percentage-bands-notes p{margin:0 0 6px}}
@media(max-width:450px){.percentage-bands-table th,.percentage-bands-table td{padding:7px 4px;font-size:12px}.percentage-bands-table thead th{font-size:12px}.percentage-bands-table th small{font-size:11px}.percentage-bands-table tfoot th,.percentage-bands-table tfoot td{font-size:11px;padding:5px 4px}.percentage-bands-table th:first-child{width:30%}#percentage-bands-toggle{min-height:44px;width:100%}}
@media(max-width:900px){.attempt-manual-candidates{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.vote-summary{padding:14px 12px}.attempt-manual-candidates{grid-template-columns:1fr;gap:6px}.attempt-manual-candidate{padding:6px 9px}}
