/* MANDATO V18 — painéis de estratégia, mapa, urna e governabilidade. */
.v18-layout,.v18-urna-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:16px;padding:22px 0 38px;align-items:start}
.v18-urna-grid{padding:15px 0;grid-template-columns:1.15fr 1fr}
.v18-urna-grid .v18-ufs{max-height:240px}
.v18-card{min-width:0;margin-bottom:14px;border:1px solid #36516b;background:#152840;border-radius:16px;padding:18px;color:#edf6ff;box-shadow:0 10px 32px #0002}
.v18-card h2,.v18-governo h2,.v18-history h2{font-family:var(--fd);font-size:1.65rem;color:#f2fbff;margin:0 0 6px}
.v18-card h3{font-family:var(--fd);font-size:1.15rem;margin:0 0 8px;color:#eef8ff}
.v18-card h4{font-size:.96rem;margin:16px 0 8px}
.v18-muted,.v18-hint,.v18-map-caption{color:#a7bdd4;font-size:.85rem;line-height:1.5}
.v18-hint{margin-top:8px}.v18-map-caption{font-size:.72rem}
.v18-topline{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;margin-bottom:10px}
.v18-tag{display:inline-flex;align-items:center;background:#214a5a;border:1px solid #35787d;border-radius:100px;padding:5px 10px;font-size:.75rem;color:#c0fff6;font-weight:700}
.v18-map-wrap{background:#0c1c2d;border:1px solid #2a4860;border-radius:15px;padding:12px 8px 3px;margin:16px 0 10px;text-align:center}
.v18-map{display:block;max-width:600px;width:100%;height:auto;margin:0 auto;aspect-ratio:460/453;filter:drop-shadow(0 6px 6px #0003)}
.v18-uf{stroke:#0a2134;stroke-width:1.2px;cursor:pointer;transition:opacity .17s,fill .17s,stroke .17s}
.v18-uf:hover,.v18-uf:focus-visible{stroke:#d2fffc;stroke-width:2.5px;opacity:1!important;outline:none}
.v18-uf.ativo{stroke:#ffffff;stroke-width:3px;filter:drop-shadow(0 0 3px #b4fffa)}
.v18-ufs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px;max-height:310px;overflow-y:auto;padding-right:4px}
.v18-state-button{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 6px;text-align:left;padding:8px;border:1px solid #3a5269;border-radius:9px;background:#102137;color:#f3f8ff;min-width:0}
.v18-state-button:hover,.v18-state-button.ativo{background:#224b5b;border-color:#6edcca}
.v18-state-button b{font-size:.82rem;color:#6bdfd4}.v18-state-button span{font-size:.75rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.v18-state-button small{grid-column:1/-1;font-size:.67rem;color:#bed0df}
.v18-bar{height:7px;background:#0d1e2f;border-radius:7px;overflow:hidden;margin:3px 0 9px}.v18-bar i{display:block;height:100%;border-radius:7px}
.v18-poll-line,.v18-result-line{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.86rem;padding:7px 0}.v18-poll-line b,.v18-result-line strong{white-space:nowrap;color:#e7faff}
.v18-result-line{border-bottom:1px solid #ffffff14}.v18-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:9px}
.v18-action-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.v18-action-row .btn{white-space:normal}
.v18-ballot{display:grid;grid-template-columns:1fr 290px;gap:16px;margin-top:16px;padding:18px;border-radius:14px;background:#b0b8a8;border:4px solid #919b89}
.v18-ballot-screen{min-height:310px;background:#e8ece3;border:4px inset #acb4a4;border-radius:4px;color:#1a2824;padding:22px}
.v18-ballot-screen p{font-size:13px;color:#4d5a55}.v18-ballot-screen h3{font-size:25px;color:#1f2925;margin-top:8px}.v18-ballot-digits{display:flex;gap:8px;margin:24px 0}.v18-ballot-digits span{display:grid;place-items:center;border:2px solid #344038;width:46px;height:60px;font-size:30px;font-weight:800;background:#f9fbf7;color:#0c1513}
.v18-ballot-name{display:grid;gap:5px}.v18-ballot-name strong{font-size:22px}.v18-ballot-name small{font-size:15px}
.v18-keypad{background:#302f2c;padding:12px;border-radius:9px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}.v18-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.v18-keys button{min-height:46px;background:#121415;color:white;border:1px solid #555;border-radius:4px;box-shadow:0 3px 1px #050505;font-weight:800;font-size:1.2rem}.v18-keys button:last-child{grid-column:2}
.v18-key-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.v18-key-actions button{border:0;min-height:57px;border-radius:4px;padding:5px;font-weight:900;color:#151515;font-size:11px}.v18-branco{background:#e5e5e5}.v18-corrige{background:#f68b31}.v18-confirma{background:#55bb7c}
.v18-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.v18-counts>div{background:#0c2138;border:1px solid #36516b;padding:10px;border-radius:9px;min-width:0}.v18-counts small{display:block;color:#afc4d9}.v18-counts b{display:block;font-size:1.1rem;overflow-wrap:anywhere}
.v18-apuracao-details{margin-top:20px;border-top:1px solid #ffffff27;padding-top:15px}.v18-apuracao-details h3{margin:0 0 10px}.v18-apuracao-details .v18-map{max-width:370px}.v18-apuracao-details .v18-card{padding:12px}.v18-apuracao-details .v18-card .v18-result-line{font-size:.79rem}
.v18-governo,.v18-history{padding:22px 0 40px}.v18-gov-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:15px}
.v18-kpi{background:#153148;padding:11px;border:1px solid #3d5d6d;border-radius:12px;min-width:0}.v18-kpi small{color:#bfd1e0;display:block}.v18-kpi strong{font-size:1.35rem;display:block}
.v18-gov-columns,.v18-hist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.v18-office{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #ffffff1d;flex-wrap:wrap}.v18-office>div{flex:1 1 190px}.v18-office small{display:block;color:#a5bace;font-size:.74rem}.v18-office select{min-width:116px;max-width:160px;padding:7px;border:1px solid #54718a;background:#0c1c2e;border-radius:8px}.v18-office button{min-width:75px}
.v18-log{list-style:none;padding:0;max-height:260px;overflow-y:auto}.v18-log li{padding:7px 10px;border-left:2px solid #40c1ae;margin:5px 0;background:#ffffff06;font-size:.81rem}.v18-law{font-size:.81rem;margin:8px 0}.v18-crise{border-color:#cd9344;background:#3b2b27}.v18-next{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;background:#153e45;border:1px solid #6bddd2;border-radius:14px;padding:16px}.v18-next small{display:block;color:#bbd7d7;font-size:.8rem}
.v18-history .v18-card{margin-top:14px}.v18-state-history{max-height:270px;overflow:auto}.v18-state-history>div{display:grid;grid-template-columns:35px 1fr auto;gap:7px;border-bottom:1px solid #ffffff20;padding:8px 2px;font-size:.78rem}.v18-state-history span{overflow:hidden;text-overflow:ellipsis}.v18-state-history strong{white-space:nowrap}
.mbox.largo{width:min(1180px,100%)}
@media(max-width:1024px){.v18-gov-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.v18-ufs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.v18-layout,.v18-urna-grid,.v18-gov-columns,.v18-hist-grid{grid-template-columns:1fr}.v18-ballot{grid-template-columns:1fr}.v18-keypad{max-width:350px;width:100%;justify-self:center}.v18-state-history>div{grid-template-columns:32px 1fr}.v18-state-history strong{grid-column:2}.v18-gov-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v18-card{padding:14px}.v18-next .btn{width:100%}}
@media(max-width:430px){.v18-ufs{grid-template-columns:repeat(2,minmax(0,1fr))}.v18-office select{max-width:100%;width:100%}.v18-office .btn{flex:1}.v18-counts b{font-size:.88rem}.v18-ballot-screen{min-height:255px;padding:13px}}
@media(prefers-reduced-motion:reduce){.v18-uf{transition:none}}
