.logo{width:240px;max-width:100%;background:#345442;border-radius:12px;padding:14px;margin-bottom:24px}.brand img{width:82px;height:48px;object-fit:contain;background:#345442;border-radius:8px;padding:4px}.voter-head{display:flex;align-items:center;gap:20px;margin:24px 0}.voter-head img{width:135px;background:#080808;border-radius:12px;padding:9px}.voter-head span{font-weight:700;letter-spacing:1px}.vote-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce6de;border-radius:15px;padding:14px;margin:12px 0;background:#fff}.vote-choice span{font-size:18px}.pass-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:30px 0}.pass-card{padding:20px;border:1px dashed #a7b4ab;border-radius:15px;background:#fff;text-align:center;break-inside:avoid}.pass-card img{width:150px;background:#000;border-radius:8px}.qr{display:flex;justify-content:center;margin:15px}.secret-url{font-size:10px;overflow-wrap:anywhere}.projector{background:#fff}.presentation{max-width:1450px;margin:4vh auto;padding:4vw}.presentation h1{font-size:clamp(45px,6vw,100px);line-height:1.12}.presentation #state{font-size:24px;color:#66766a}.project-row{display:flex;align-items:center;gap:25px;margin:24px 0;font-size:clamp(20px,2.2vw,34px)}.project-row span{width:24%}.project-track{height:52px;background:#eef1ef;border-radius:10px;overflow:hidden;flex:1}.project-track>div{height:100%;background:#ad8062;transition:width .5s}.project-row b{min-width:115px}.projection-footer{display:flex;justify-content:space-between;border-top:1px solid #eee;margin-top:45px;padding-top:25px}.offices [draggable=true]{cursor:grab}.offices [draggable=true]:active{cursor:grabbing}@media print{button,header,.notice{display:none!important}.pass-grid{grid-template-columns:repeat(2,1fr)}.pass-card{page-break-inside:avoid}}

/* v3: green identity, readable full-width branding */
header{background:#284b3a;color:#fff;border-bottom-color:#355c47}header .brand small{color:#e3e9e2}header .outline{color:#fff;border-color:#86a18d}header .ghost{background:#e9efe8;color:#254735}header .user-chip{color:#e3e9e2}
.brand img{width:clamp(130px,18vw,225px);height:auto;max-height:100px;object-fit:contain;background:#080b09;padding:8px;border-radius:10px;flex-shrink:0}.header-inner{min-height:116px}.brand b{font-size:clamp(15px,1.7vw,21px)}.brand small{font-size:12px}.voter-head img{width:clamp(170px,30vw,260px);height:auto}.login-panel .logo{width:min(100%,360px)}
.edit-office,.edit-item{margin:12px 0}.edit-office summary,.edit-item summary{cursor:pointer;color:#315b42;font-size:13px;font-weight:700}.edit-item{margin-left:auto}.edit-item form{margin-top:8px}.edit-item input{min-width:130px}.danger{background:#9a3d39!important;color:#fff}.shared-link{overflow-wrap:anywhere;font-size:12px}.shared-link a{color:#294b3a;text-decoration:underline}
@media(max-width:700px){.header-inner{align-items:flex-start;flex-wrap:wrap;gap:10px;padding:12px}.brand{width:100%;gap:10px}.brand img{width:clamp(115px,38vw,175px);max-height:95px}.brand small{font-size:10px}.header-actions{width:100%;justify-content:space-between;flex-wrap:wrap}.header-actions .outline{padding:8px 10px;font-size:12px}.voter-head{flex-wrap:wrap}.edit-item{width:100%}}

/* Editor de slides - v4 */
.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:28px 0 18px}.editor-toolbar h2{margin:5px 0}.editor-toolbar p{margin:0;color:#65746b}.editor-buttons{display:flex;gap:8px;flex-wrap:wrap}.slide-editor{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:18px;align-items:start}.slide-sidebar{background:#e9eee9;border-radius:18px;padding:12px;max-height:78vh;overflow:auto;position:sticky;top:14px}.slide-sidebar-title{font-size:12px;font-weight:800;letter-spacing:.09em;color:#426052;padding:10px}.slide-thumbnails{display:flex!important;flex-direction:column!important;gap:10px!important}.slide-thumb{padding:12px!important;border:2px solid transparent!important;cursor:pointer;min-height:90px;background:white!important;border-radius:12px!important;box-shadow:0 2px 10px #173b3010}.slide-thumb.selected{border-color:#b18c65!important;box-shadow:0 0 0 2px #b18c6533}.slide-thumb .office-head{display:flex;align-items:center;gap:6px}.slide-thumb h3{font-size:15px!important;margin:4px 0!important;overflow-wrap:anywhere}.slide-thumb .eyebrow{font-size:9px!important}.slide-thumb .candidate-list,.slide-thumb .edit-office,.slide-thumb .winner,.slide-thumb .status{display:none!important}.slide-sidebar #saveOrder{width:100%;margin-top:10px}.add-slide-link{display:block;text-align:center;margin-top:12px}.slide-workspace{min-width:0;background:#dfe7e0;padding:16px;border-radius:18px}.slide-workspace-top{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#526d5d;margin-bottom:12px}.slide-stage{display:block!important}.slide-detail{min-height:400px!important;background:#fff!important;border-radius:14px!important;padding:clamp(18px,4vw,42px)!important;box-shadow:0 8px 28px #102a2015}.slide-detail[hidden]{display:none!important}.slide-detail h3{font-size:clamp(25px,3vw,42px)!important}.slide-empty{display:none;padding:35px;text-align:center}.slide-detail .office-footer{display:flex;flex-wrap:wrap;gap:12px}.slide-detail .inline{flex-wrap:wrap}.slide-detail .inline input{min-width:0;flex:1}.slide-thumb:focus-visible{outline:3px solid #b18c65}@media(max-width:760px){.editor-toolbar{align-items:flex-start;flex-direction:column}.slide-editor{display:block}.slide-sidebar{position:static;max-height:none;margin-bottom:14px}.slide-thumbnails{flex-direction:row!important;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory}.slide-thumb{min-width:160px;max-width:200px;flex:0 0 65%;scroll-snap-align:start}.slide-workspace{padding:9px}.slide-detail{min-height:350px!important}.slide-workspace-top{font-size:10px}}
/* v5: botoes de navegacao legiveis e sem acao quando no limite */
.editor-buttons button{background:#284b3c!important;color:#fff!important;border:1px solid #284b3c!important;min-width:125px;min-height:42px}
.editor-buttons button:disabled{opacity:.45;cursor:not-allowed}
.slide-thumb.selected{border-color:#ad8062!important}

/* V6: miniaturas somente para navegacao; edicao no slide principal */
.slide-thumb{cursor:pointer;user-select:none}.slide-thumb:hover{outline:2px solid #ae866c}.slide-thumb.selected{outline:2px solid #ae866c}.slide-candidates{margin:20px 0}.slide-candidates h4{font-size:1rem;margin:0 0 12px}.slide-candidate{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0;border-bottom:1px solid #e4e9e4}.slide-candidate strong{flex:1;min-width:110px}.slide-candidate details{min-width:150px}.slide-detail .edit-office{margin:16px 0;padding:12px;border:1px solid #dce6df;border-radius:12px}.slide-detail details form{margin:10px 0}.slide-detail .edit-item form{display:flex;flex-wrap:wrap;gap:8px}.slide-detail .edit-item input{min-width:120px;max-width:100%}@media(max-width:640px){.slide-candidate{align-items:flex-start}.slide-candidate details{width:100%}}

/* V7 - Contraste WCAG: textos claros nos controles com fundo verde */
button:not(.ghost):not(.outline):not(:disabled),
button:not(.ghost):not(.outline):not(:disabled) *,
input[type="submit"], input[type="button"],
.slide-sidebar #saveOrder, .slide-sidebar #saveOrder *,
.slide-detail button:not(.outline):not(.ghost),
.slide-detail button:not(.outline):not(.ghost) *,
.editor-buttons button:not(:disabled),
.editor-buttons button:not(:disabled) * {
  color:#ffffff !important; -webkit-text-fill-color:#ffffff !important;
}
button:not(.ghost):not(.outline):hover:not(:disabled),
.slide-sidebar #saveOrder:hover {background-color:#36654e !important;}
button:disabled {opacity:.55;cursor:not-allowed;}
button:focus-visible, .slide-thumb:focus-visible {outline:3px solid #c79c70;outline-offset:3px;}
button.danger, button.danger * {color:#fff !important;-webkit-text-fill-color:#fff !important;}
/* Controles claros mantem texto escuro e legivel */
button.ghost, button.outline, a.outline {color:#254735 !important;-webkit-text-fill-color:#254735 !important;}
header button.outline {color:#fff !important;-webkit-text-fill-color:#fff !important;}
.editor-buttons button {color:#fff !important;-webkit-text-fill-color:#fff !important;}
