/* Santa Vitória RP — interface de resultados revisada */
:root{--gold:#dfb238;--olive:#829744;--ink:#252a33}
.results-view main{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px));max-width:920px}
.result-shell{max-width:760px}.result-shell .card{padding:22px;margin:18px 0;border-radius:20px}.result-shell .notice{margin:18px 0;padding:16px 18px;font-size:15px;background:#f5f2e5}.result-shell .notice b{font-weight:600}.election-head{padding:20px 18px;gap:16px}.pilltabs{gap:9px;padding:12px 0}.pilltabs button{padding:12px 18px}.candidate{padding:24px;margin:18px 0;border:1.5px solid #c8b263;border-radius:20px;box-shadow:0 2px 10px #20202006}.candidate h2{margin:10px 0 15px;overflow-wrap:anywhere}.portrait-ring{--share:0%;width:94px;height:94px;flex:0 0 auto;padding:4px;border-radius:50%;background:conic-gradient(#d9ae38 0 var(--share),#e8e8e4 var(--share) 100%);display:grid;place-items:center}.portrait-ring img{width:100%;height:100%;min-width:0;min-height:0;border:4px solid white;border-radius:50%;object-fit:cover;background:#eee}.candidate .votes{font-size:17px}.candidate-progress{display:none}.result-shell .progress{height:42px;border-radius:12px;background:#e7e9d7}.result-shell .progress b{font-size:21px;line-height:42px;font-weight:650;color:#171b13}.result-shell .progress i{background:#a6b75e}.result-shell button.progress{width:100%;display:block;padding:0;border:0}.result-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);z-index:20;display:flex;flex-wrap:nowrap;align-items:stretch;gap:2px;background:#fff;border-radius:17px 17px 0 0;box-shadow:0 -3px 20px #0002;padding:12px 7px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #eeefea}.result-nav button,.result-nav a{min-width:0;flex:1;font-size:11px;line-height:1.25;padding:4px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.result-nav svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.results-view #toast{bottom:calc(90px + env(safe-area-inset-bottom,0px))}.results-view footer{padding-bottom:100px}.telao .result-nav{display:none}.control-note{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:12px;color:#716544;margin:8px 0 0}.control-note button{font-size:12px;padding:5px 10px}.admin-head{position:static}.stack{gap:16px}.stack label{gap:7px}input,select{max-width:100%;min-width:0}input[type=date]{min-width:0;width:100%;appearance:none}.biglink{overflow-wrap:anywhere}.admin-table input{width:110px}
/* Full-width bottom-sheet modals, with their own scrolling area. */
dialog.profile-sheet,dialog.location-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,680px);max-width:100%;height:calc(100dvh - 70px);max-height:calc(100dvh - 70px);padding:0;border-radius:20px 20px 0 0;background:#fff;overflow:hidden;color:#262a31;box-shadow:0 -8px 50px #0002}dialog.profile-sheet[open],dialog.location-sheet[open]{display:flex;flex-direction:column}dialog::backdrop{background:#0006}.profile-sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.profile-hero{position:relative;height:182px;isolation:isolate}.waves{position:absolute;width:100%;height:100%;inset:0;z-index:-1}.profile-ring{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:118px;height:118px;padding:5px;background:conic-gradient(#dfb238 0 var(--share),#fff var(--share) 100%)}.profile-ring img{border:4px solid #fff8}.sheet-close,.sheet-x{border:0;background:transparent;color:#e2b332;font-size:34px;line-height:1;font-weight:400;padding:6px 12px}.sheet-close{position:absolute;right:12px;top:10px;color:white}.profile-content{padding:8px 22px 35px}.profile-result{text-align:center;color:#bd9b3a;font-size:19px;font-weight:750;margin:4px 0 17px}.profile-status{text-align:center;margin:0 0 15px}.profile-name{text-align:center;font-size:21px;line-height:1.3;margin:0 0 18px;overflow-wrap:anywhere}.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:23px}.profile-actions button{border-radius:999px;min-height:45px;font-size:14px;padding:10px 6px}.profile-actions .secondary{border:0;box-shadow:0 3px 10px #0002}.profile-fields{display:grid;gap:22px}.profile-field{min-width:0;overflow-wrap:anywhere}.profile-field b{display:block;font-size:17px;font-weight:720;line-height:1.4}.profile-field small{display:block;font-size:13px;margin-top:4px;color:#555}.profile-three{display:grid;grid-template-columns:0.85fr 1.2fr 1fr;gap:12px}.profile-extra{padding-top:16px;border-top:1px solid #e3e3e3;display:grid;gap:12px}.vice-photo{width:80px;height:90px;object-fit:cover;border-radius:8px}.profile-navigation{flex:0 0 auto;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;background:#e2b43c;padding:10px 8px calc(10px + env(safe-area-inset-bottom,0px));color:#201a0f;text-align:center}.profile-navigation b{display:block;font-size:20px}.profile-navigation button{background:transparent;border:0;font-weight:400;font-size:27px;padding:4px}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:18px 18px 12px;gap:10px;flex:0 0 auto}.sheet-head h2{margin:0;font-size:clamp(20px,5vw,27px);color:#dcb032;letter-spacing:.06em;line-height:1.2}.location-body{flex:1;overflow:auto;padding:0 20px}.location-field{display:block;text-align:left;padding:18px 0;width:100%;background:white;color:#151515;border:0;border-bottom:1px solid #dfb238;border-radius:0;font-weight:400}.location-field small{display:block;font-size:16px;color:#444;margin-bottom:4px}.location-field b{font-size:21px;line-height:1.3}.location-field span{display:flex;justify-content:space-between;align-items:center;gap:10px}.location-field i{font-style:normal;font-size:25px;font-weight:700;color:#333}.sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 20px calc(22px + env(safe-area-inset-bottom,0px));flex:0 0 auto}.sheet-actions button{padding:14px 5px;background:#e9c43c;color:#121212}.sheet-actions .secondary{background:white;border:1px solid #dcb032}.location-search{padding:0 20px 13px;flex:0 0 auto}.location-search input{border:0;border-radius:12px;background:#eaeaea;padding:12px 14px;font-size:17px}.location-list{overflow:auto;min-height:0;flex:1;padding:0 17px calc(15px + env(safe-area-inset-bottom,0px))}.location-item{display:flex;align-items:center;gap:16px;background:white;color:#333;border-radius:0;border-bottom:1px solid #ddd;width:100%;min-height:53px;padding:10px 0;text-align:left;font-size:18px;font-weight:400}.region-flag{width:70px;height:45px;object-fit:cover;flex:0 0 auto}.location-item span{flex:1}.location-check{font-size:22px}.location-empty{padding:20px 0}.tag.runoff{background:#f0e5b9;padding:7px 20px;text-transform:none}.tag.runoff:before{display:none}.tag.elected,.tag.not-elected,.tag.runoff{font-size:14px}
@media(max-width:650px){main{padding:0 13px;margin:16px auto}.candidate{padding:20px}.portrait-ring{width:82px;height:82px}.profile-ring{width:114px;height:114px}.result-shell .card{padding:17px}.result-shell .card .row{gap:8px}.result-shell .card .row b{font-size:14px}.profile-content{padding-left:20px;padding-right:20px}.profile-field b{font-size:16px}.result-nav button,.result-nav a{font-size:10px}.candidate .percent{font-size:34px}.candidate .votes{font-size:16px}.candidate h2{font-size:21px}.admin-head{position:static}.card{padding:17px}.stack{gap:15px}.grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}.profile-hero{height:174px}}
@media(max-width:350px){.profile-three{gap:7px}.profile-field b{font-size:14px}.profile-field small{font-size:11px}.profile-content{padding-inline:15px}.result-nav button,.result-nav a{font-size:9px}}
.count-settings{border-top:1px solid #e7e6df;padding-top:16px;margin-top:18px}.count-settings h3{margin:0}.count-settings input[type=radio]{width:18px;height:18px;flex-shrink:0;accent-color:#9db14c}.count-settings label.check{font-size:15px;font-weight:500;align-items:center}.count-settings [hidden]{display:none!important}
