:root {
    color-scheme: light;
    --ink: #172521;
    --muted: #52645e;
    --green: #123c35;
    --green-light: #dcebe5;
    --coral: #a73d2c;
    --gold: #f1bc52;
    --line: #cbd5d0;
    --paper: #ffffff;
    --wash: #f1f5f2;
    --focus: #d18900;
    font-size: 18px;
}
* { box-sizing: border-box; }
small, .small, .form-text, .table, code { font-size: 1rem; } /* piso de 18px: acessibilidade para idosos */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 18ch; margin-bottom: .45rem; font-size: 2.65rem; line-height: 1.12; font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.25; font-weight: 700; }
a { color: #174c41; text-underline-offset: .18em; }
a:hover { color: #8b321f; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 5; padding: .7rem; background: white; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Arial, sans-serif; font-size: 1rem; letter-spacing: .04em; }
.brand small { color: var(--muted); font-family: Arial, sans-serif; font-size: 1rem; }
.brand-mark { display: grid; width: 2.7rem; aspect-ratio: 1; place-items: center; border-radius: .45rem; background: var(--green); color: white; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; }
.header-inner nav { display: flex; gap: 1.4rem; font-family: Arial, sans-serif; font-size: 1rem; }
.page-content { min-height: calc(100vh - 9rem); padding-top: 2.5rem; padding-bottom: 4rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-family: Arial, sans-serif; font-size: 1rem; }
.footer-inner { min-height: 3.5rem; }
.intro-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; padding: 1.5rem 0 2rem; border-bottom: 4px solid var(--gold); }
.compact-band { align-items: center; padding-top: .5rem; }
.eyebrow { margin-bottom: .6rem; color: #8b321f; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.intro-copy, .lead-copy { max-width: 55ch; margin-bottom: 0; color: var(--muted); }
.status-block { display: flex; align-items: center; gap: .5rem; white-space: nowrap; font-family: Arial, sans-serif; font-weight: 700; }
.status-dot { width: .8rem; aspect-ratio: 1; border-radius: 50%; background: #727e79; }
.status-dot.is-open { background: #24774f; box-shadow: 0 0 0 .25rem #d7ebdf; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: clamp(2rem, 5vw, 5rem); }
.content-section { min-width: 0; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.content-section > p { color: var(--muted); }
.document-link { display: flex; align-items: center; gap: .9rem; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-left: 5px solid var(--coral); color: var(--ink); text-decoration: none; }
.document-link:hover { background: var(--wash); }
.document-link strong, .document-link small { display: block; }
.document-link small { color: var(--muted); }
.document-link > span:last-child { margin-left: auto; color: #174c41; font-size: 1.2rem; }
.document-icon { padding: .3rem .45rem; background: #f8e5df; color: #802c1e; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 800; }
.details-list, .receipt-data { margin: 1.5rem 0 0; }
.details-list div, .receipt-data div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-weight: 400; }
dd { margin: 0; text-align: right; font-weight: 700; }
.form-stack { display: grid; gap: .8rem; }
.form-stack label, fieldset legend { font-weight: 700; }
.form-control { min-height: 3.2rem; border-color: #65766f; color: var(--ink); font-size: 1rem; }
.form-control:focus, .form-check-input:focus, .btn:focus-visible, a:focus-visible { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.btn { min-height: 3rem; padding: .65rem 1rem; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: #20584c; --bs-btn-hover-border-color: #20584c; --bs-btn-active-bg: #0d302b; }
.btn-outline-secondary { --bs-btn-color: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green); --bs-btn-hover-border-color: var(--green); }
.status-note { padding: 1rem; border-left: 4px solid var(--coral); background: #fbefeb; }
.narrow-section { max-width: 42rem; margin: 2rem auto; }
.narrow-section h1 { margin-bottom: 1rem; }
.code-input { max-width: 15rem; font-family: Arial, sans-serif; font-size: 1.5rem; letter-spacing: .15em; }
.status-pill { padding: .4rem .7rem; border: 1px solid #24774f; border-radius: 2rem; color: #195a3b; font-family: Arial, sans-serif; font-weight: 700; }
.vote-section { max-width: 54rem; }
.vote-form { margin-top: 2rem; }
.vote-form fieldset { display: grid; gap: .7rem; border: 0; padding: 0; }
.vote-form legend { margin-bottom: .2rem; font-size: 1.15rem; }
.choice-row, .consent-row { display: flex; align-items: center; gap: .8rem; min-height: 4rem; padding: .75rem 1rem; border: 1px solid var(--line); cursor: pointer; }
.choice-row:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.form-check-input { width: 1.35rem; height: 1.35rem; margin: 0; border-color: #54665e; }
.consent-row { justify-content: flex-start; margin-top: .5rem; background: var(--wash); }
.confirmation-section { padding: 2rem; border-left: 5px solid var(--gold); background: var(--wash); }
.confirmation-choice { margin: 1.4rem 0; color: var(--green); font-size: 1.8rem; font-weight: 700; }
.receipt-section { border-top: 5px solid var(--green); }
.receipt-data { margin: 1.5rem 0; padding: .5rem 1rem; background: var(--wash); }
.receipt-data dd { max-width: 65%; overflow-wrap: anywhere; font-family: Arial, sans-serif; }
.verification-forms { display: grid; gap: 2rem; margin: 1.5rem 0; }
.result-message { padding: 1rem; border-left: 5px solid var(--green); background: var(--green-light); font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.metric { min-height: 8rem; padding: 1rem; border-top: 4px solid var(--green); background: var(--wash); }
.metric:nth-child(2) { border-color: var(--coral); }
.metric:nth-child(3) { border-color: #d49b1e; }
.metric:nth-child(4) { border-color: #346c85; }
.metric span, .metric strong, .metric small { display: block; }
.metric span { color: var(--muted); }
.metric strong { margin-top: .4rem; font-family: Arial, sans-serif; font-size: 1.8rem; }
.metric small { color: var(--muted); }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.results-heading h2 { margin-bottom: .6rem; }
.result-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.result-line { display: flex; justify-content: space-between; padding: .9rem 1rem; border-left: 4px solid var(--green); background: var(--wash); }
.result-line:nth-child(2) { border-color: var(--coral); }
.result-line:nth-child(3) { border-color: #d49b1e; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); }
.table th { color: var(--muted); font-weight: 700; }
.close-section { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.close-section p { margin-bottom: 0; }
.btn-danger { --bs-btn-bg: #8c2c20; --bs-btn-border-color: #8c2c20; }
.button-row { display: flex; gap: .7rem; }
.report-section { break-inside: avoid; }
.code-list { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.code-list li { padding: .25rem .5rem; background: var(--wash); font-family: Arial, sans-serif; }
.alert { border-radius: .25rem; font-size: 1.05rem; }
.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: #174c41; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .35rem; }
.pdf-frame { display: block; width: 100%; height: 70vh; min-height: 24rem; margin: 1rem 0; border: 1px solid var(--line); }
.quorum-bar { width: 100%; height: 1rem; margin-top: .5rem; accent-color: var(--green); }
.result-message.is-negative { border-color: var(--coral); background: #fbefeb; }
.ata { max-width: 75ch; color: var(--ink) !important; text-align: justify; }
.signatures { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 4rem; }
.signatures span { min-width: 16rem; padding-top: .5rem; border-top: 1px solid var(--ink); text-align: center; }
.btn:disabled { opacity: .75; }
.presential-search { max-width: 28rem; }
.pending-filter { max-width: 28rem; margin: .5rem 0 1rem; }
.pending-table { max-height: 32rem; overflow-y: auto; border: 1px solid var(--line); }
.pending-table thead th { position: sticky; top: 0; background: var(--paper); }
.audit-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin: 1rem 0; }
.audit-filter label { flex-basis: 100%; font-weight: 700; }
.audit-filter select { max-width: 26rem; }
.pagination-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.btn.is-busy { opacity: 1; cursor: progress; }
.btn.is-busy::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .6rem; vertical-align: -.15em; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::before { animation: none; } }
.busy-note { margin: 0; padding: .9rem 1rem; border-left: 4px solid var(--gold); background: #fff8e6; font-weight: 700; }
.narrow-form { max-width: 28rem; }
.setup-section { padding: 1.5rem; border: 2px solid var(--gold); background: #fffaf0; }
.setup-checklist { padding-left: 1.4rem; }
.setup-checklist li { margin-bottom: .4rem; }
.setup-checklist li.is-done::marker { color: #24774f; font-weight: 700; }
.setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.setup-card { align-content: start; padding: 1.1rem; border: 1px solid var(--line); background: #fff; }
.setup-card h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.setup-card fieldset { border: 0; padding: 0; margin: 0; }
.quorum-inputs { display: flex; align-items: center; gap: .6rem; }
.quorum-inputs input { max-width: 7rem; }
.form-select { min-height: 3.2rem; font-size: 1rem; }
@media (max-width: 960px) { .setup-grid { grid-template-columns: 1fr; } }
.sms-credits { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: 1rem; padding: 1rem; border-left: 4px solid #346c85; background: var(--wash); }
.sms-credits strong { font-family: Arial, sans-serif; font-size: 1.8rem; }
.sms-credits small { flex-basis: 100%; color: var(--muted); }
.sms-error { color: #8c2c20; font-weight: 700; }
.test-banner { padding: .6rem 1rem; background: #f1bc52; color: #172521; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; text-align: center; }
.test-code { padding: 1rem; border: 2px dashed #a36b00; background: #fff4d6; }
.test-code-value { display: inline-block; margin-left: .4rem; font-family: Arial, sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: .15em; }
@media (max-width: 760px) {
    h1 { font-size: 2rem; }
    .page-content { padding-top: 1.25rem; }
    .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: .7rem; padding-bottom: .7rem; }
    .header-inner nav { width: 100%; justify-content: space-between; }
    .intro-band { align-items: flex-start; flex-direction: column; gap: .8rem; }
    .two-column { grid-template-columns: 1fr; gap: .5rem; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .result-bars { grid-template-columns: 1fr; }
    .close-section { align-items: stretch; flex-direction: column; }
    .close-section form, .close-section button { width: 100%; }
    .details-list div, .receipt-data div { align-items: flex-start; flex-direction: column; gap: .2rem; }
    dd { text-align: left; }
    .button-row { flex-wrap: wrap; }
}
@media print {
    body { font-size: 12pt; }
    .site-header, .site-footer, .print-hide, .skip-link { display: none !important; }
    .page-content { width: 100%; max-width: none; padding: 0; }
    .content-section { border-color: #777; }
    a { color: black; }
}.public-partial { margin-bottom: 1.5rem; }
.public-partial .results-heading { margin-top: 0; }
.public-partial .result-line strong { font-family: Arial, sans-serif; font-size: 1.5rem; }
.public-partial .result-line small { color: var(--muted); font-size: 1rem; font-weight: 400; }
.partial-updated, .partial-note { color: var(--muted); font-family: Arial, sans-serif; }
.partial-note { margin: .4rem 0 0; }
