/* v1.3.0 — assigned booth workflow & SweetAlert polish */
.candidate{overflow:hidden}
.candidate-selected-badge{position:absolute;top:14px;right:14px;z-index:3;display:none;padding:7px 11px;border-radius:999px;background:#fff;color:#15803d;font-size:.74rem;font-weight:900;letter-spacing:.04em;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.candidate.selected{background:linear-gradient(145deg,#15803d,#16a34a);border-color:#166534;color:#fff;box-shadow:0 0 0 5px rgba(22,163,74,.22),0 18px 35px rgba(21,128,61,.28);transform:translateY(-3px)}
.candidate.selected:hover{border-color:#14532d}
.candidate.selected .muted{color:#dcfce7}
.candidate.selected .candidate-number{background:#fff;color:#15803d}
.candidate.selected .candidate-selected-badge{display:inline-flex}
.candidate.selected .candidate-photo{outline:4px solid rgba(255,255,255,.72)}
.ballot-confirm-card{position:sticky;bottom:12px;z-index:10}
.final-check-label{display:flex;gap:11px;align-items:flex-start;font-size:1.02rem}
.final-check-label input{width:21px;height:21px;margin-top:3px;accent-color:#15803d;flex:0 0 auto}
.swal-candidate-choice{margin:18px auto 14px;padding:18px;border-radius:16px;background:#dcfce7;color:#14532d;display:grid;gap:5px;max-width:360px}
.swal-candidate-choice span{font-size:.86rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.swal-candidate-choice strong{font-size:1.35rem}
.swal2-popup{border-radius:22px!important}
.swal2-confirm,.swal2-cancel{border-radius:11px!important;font-weight:800!important}

.empty-state{padding:24px;border:1px dashed #cbd5e1;border-radius:14px;color:var(--muted);text-align:center;background:#f8fafc}
.empty-state.compact{padding:14px}
.search-result{width:100%;display:flex;justify-content:flex-start;text-align:left;margin-bottom:8px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;cursor:pointer;color:var(--text)}
.search-result:hover{border-color:#5eead4;background:#f0fdfa}
.voter-check-card{padding:17px;border-radius:15px;background:#f8fafc;border:1px solid var(--line)}
.status-line{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted)}
.info-panel{padding:14px 16px;border-radius:13px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}
.booth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.booth-option{display:flex;align-items:center;gap:10px;text-align:left;border:2px solid var(--line);border-radius:14px;background:#fff;padding:12px;cursor:pointer;color:var(--text);min-height:76px}
.booth-option small{display:block;color:var(--muted);margin-top:2px}
.booth-option-number{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e2e8f0;font-size:1.2rem;font-weight:900;flex:0 0 auto}
.booth-option.state-available:hover,.booth-option.selected{border-color:var(--primary);background:#ecfdf5}
.booth-option.selected{box-shadow:0 0 0 3px rgba(15,118,110,.13)}
.booth-option.selected .booth-option-number{background:var(--primary);color:#fff}
.booth-option:disabled{cursor:not-allowed;opacity:.72}
.booth-option.state-assigned{background:#fffbeb;border-color:#fde68a}
.booth-option.state-in_use{background:#eff6ff;border-color:#bfdbfe}
.booth-option.state-offline{background:#fef2f2;border-color:#fecaca}.booth-option.state-disabled{background:#f1f5f9}
.assignment-result{text-align:center;padding:12px 0}
.assignment-check,.booth-ready-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:2.2rem;font-weight:900;margin:0 auto 14px}
.assigned-booth-number{width:110px;height:110px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(145deg,var(--primary),#14b8a6);color:#fff;font-size:4rem;font-weight:950;margin:20px auto 12px;box-shadow:0 16px 35px rgba(15,118,110,.25)}

.booth-setup-card{color:var(--text);text-align:center;transition:.2s}
.booth-setup-card:hover{transform:translateY(-4px);border-color:#5eead4}
.booth-setup-number{width:82px;height:82px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,var(--primary),#14b8a6);color:#fff;font-size:2.8rem;font-weight:950;margin:0 auto 14px}
.booth-kiosk{max-width:1000px;margin:auto}
.booth-kiosk-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.booth-kiosk-head h1{margin:3px 0 0;font-size:2rem}
.booth-waiting-card,.booth-assigned-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow);padding:clamp(30px,6vw,70px);text-align:center;min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.booth-waiting-card h2{font-size:2.2rem;margin:20px 0 8px}
.booth-waiting-card p{max-width:620px;font-size:1.05rem}
.waiting-pulse{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;background:#ccfbf1;position:relative}
.waiting-pulse:before,.waiting-pulse:after{content:"";position:absolute;inset:0;border-radius:50%;border:3px solid #14b8a6;animation:boothPulse 2s infinite}
.waiting-pulse:after{animation-delay:1s}
.waiting-pulse span{width:42px;height:42px;border-radius:50%;background:var(--primary)}
@keyframes boothPulse{0%{transform:scale(.75);opacity:1}100%{transform:scale(1.55);opacity:0}}
.booth-assigned-card{border:3px solid #16a34a;background:linear-gradient(180deg,#f0fdf4,#fff)}
.assigned-voter-name{font-size:clamp(2.2rem,6vw,4.5rem);line-height:1.05;margin:12px 0}
.assigned-voter-address{font-size:clamp(1.1rem,2.3vw,1.55rem);color:var(--muted);margin:0 0 22px}
.crosscheck-box{max-width:680px;padding:15px 18px;border-radius:14px;background:#dcfce7;color:#14532d;font-weight:750;margin-bottom:24px}
.booth-assigned-card form{width:min(650px,100%)}
.ballot-head{padding:16px 20px;border-radius:18px;background:#fff;border:1px solid var(--line)}
.vote-success-card{padding:38px}
.integrity-box{padding:14px;border-radius:13px;background:#f0fdf4;color:#166534;margin-bottom:20px}

@media(max-width:760px){
  .booth-grid{grid-template-columns:1fr}
  .booth-option{min-height:68px}
  .booth-waiting-card,.booth-assigned-card{min-height:430px;padding:28px 18px}
  .booth-kiosk-head{align-items:flex-start}
  .assigned-voter-name{font-size:2.35rem}
  .ballot-confirm-card{position:static}
}


/* v1.3.2 — kiosk-only booths & live results monitor */
.kiosk-body,.monitor-body{background:var(--bg);min-height:100vh}
.kiosk-topbar,.monitor-topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:40}
.kiosk-content{padding:22px;min-height:calc(100vh - 64px)}
.monitor-content{padding:24px;max-width:1680px;margin:auto}
.monitor-topbar>div{display:flex;align-items:center;gap:9px}.monitor-dot{color:var(--primary)}
.ballot-action-only{padding:18px 22px}.ballot-action-note{text-align:center;color:var(--muted);margin:0 0 14px}
.results-title-row{align-items:center}.refresh-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:#ecfdf5;color:#166534;font-size:.78rem;font-weight:800}
.refresh-pulse{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.5);animation:refreshPulse 1.8s infinite}
@keyframes refreshPulse{70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.result-chart-card{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr);align-items:center;gap:26px;min-height:400px}
.result-chart-copy h2{font-size:clamp(1.6rem,3vw,2.35rem);margin:6px 0 8px}.result-chart-canvas{height:350px;min-width:0}
.chart-legend{display:grid;gap:10px;margin-top:22px;max-height:210px;overflow:auto;padding-right:6px}.chart-legend-item{display:grid;grid-template-columns:14px 1fr;gap:10px;align-items:start}.chart-legend-item>span{width:14px;height:14px;border-radius:4px;margin-top:4px}.chart-legend-item div{display:grid}.chart-legend-item small{color:var(--muted)}
.result-candidate-card{min-height:300px;display:flex;flex-direction:column;justify-content:center}.result-summary-card h2{font-size:2rem;margin:8px 0 0}.compact-head{margin-bottom:14px;align-items:center}
.result-vote-scroll{max-height:526px;overflow:auto}.result-log-table thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--line)}.result-log-table tbody tr{height:48px}
.receipt-code-small{font:800 .88rem ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.025em}.result-ballot-number{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-weight:900}
@media(max-width:900px){.result-chart-card{grid-template-columns:1fr}.result-chart-canvas{height:320px}.monitor-content,.kiosk-content{padding:14px}.kiosk-topbar,.monitor-topbar{padding:0 14px}.monitor-topbar .small{display:none}}
@media(max-width:680px){.result-chart-canvas{height:280px}.result-candidate-grid{grid-template-columns:1fr}.result-summary-card .grid-4{grid-template-columns:1fr 1fr}.ballot-action-only{padding:15px}.kiosk-content{padding:10px}}

/* v1.3.3 — two-step standalone TPS registration */
.registration-body{background:var(--bg);min-height:100vh}
.registration-topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 26px;position:sticky;top:0;z-index:50}
.registration-brand{display:flex;align-items:center;gap:12px}.registration-brand>div{display:grid;line-height:1.2}.registration-brand strong{font-size:1.02rem}.registration-brand small{color:var(--muted);margin-top:3px}
.registration-operator{display:flex;align-items:center;gap:10px}.btn-compact{padding:8px 12px;font-size:.82rem}
.registration-progress{width:min(760px,calc(100% - 32px));margin:20px auto 0;display:grid;grid-template-columns:max-content minmax(50px,1fr) max-content;align-items:center;gap:12px}
.registration-step{display:flex;align-items:center;gap:9px;color:#94a3b8}.registration-step span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#64748b;font-weight:900}.registration-step strong{font-size:.86rem;white-space:nowrap}
.registration-step.active{color:var(--text)}.registration-step.active span{background:var(--primary);color:#fff;box-shadow:0 0 0 5px rgba(15,118,110,.12)}.registration-step.done{color:#166534}.registration-step.done span{background:#22c55e;color:#fff}
.registration-progress-line{height:3px;background:#e2e8f0;border-radius:999px}.registration-progress-line.done{background:#22c55e}
.registration-content{padding:22px 24px 42px}.registration-page{width:min(1220px,100%);margin:auto}.registration-page-head{align-items:center}.registration-page-head .title{margin-top:8px}
.registration-scan-card,.registration-manual-card{max-width:920px;margin-left:auto;margin-right:auto}.registration-card-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}.registration-card-heading h2{font-size:1.22rem;margin:0 0 3px}.registration-card-heading p{margin:0;color:var(--muted)}.registration-heading-number{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:1.15rem;font-weight:900;flex:0 0 auto}
.qr-reader-shell{position:relative;width:min(580px,100%);margin:auto}.qr-reader-shell #qr-reader{border:0!important;background:#f8fafc;border-radius:18px;overflow:hidden}.qr-reader-shell #qr-reader>div:first-child{border-radius:18px}.qr-reader-shell #qr-reader button{appearance:none;border:0;border-radius:10px;padding:9px 14px;background:var(--primary);color:#fff;font-weight:800;cursor:pointer}.qr-reader-shell #qr-reader select{border:1px solid #cbd5e1;border-radius:9px;padding:8px;background:#fff}.scan-processing{position:absolute;inset:0;background:rgba(255,255,255,.94);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10;color:var(--primary)}
.register-divider{max-width:920px;margin:18px auto;display:flex;align-items:center;gap:14px;color:#94a3b8;font-size:.72rem;font-weight:900;letter-spacing:.1em}.register-divider:before,.register-divider:after{content:"";height:1px;background:var(--line);flex:1}
.registration-search-form{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:10px}.form-control-lg{padding:14px 16px;font-size:1rem}.registration-search-hint{margin:11px 0 8px}.registration-results{display:grid;gap:10px}
.registration-result-card{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff}.registration-result-main{display:flex;align-items:center;gap:13px;min-width:0}.registration-result-avatar{width:48px;height:48px;border-radius:14px;background:#ccfbf1;color:var(--primary);display:grid;place-items:center;font-size:1.3rem;font-weight:950;flex:0 0 auto}.registration-result-main strong{font-size:1.03rem}.registration-result-main p{margin:2px 0 7px;color:var(--muted);word-break:break-word}
.selected-voter-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:20px;border-left:5px solid var(--primary)}.selected-voter-icon{width:64px;height:64px;border-radius:18px;background:linear-gradient(145deg,var(--primary),#14b8a6);color:#fff;display:grid;place-items:center;font-size:2rem;font-weight:950}.selected-voter-copy h2{margin:2px 0;font-size:1.55rem}.selected-voter-copy p{margin:0;color:var(--muted)}.selected-voter-status{display:grid;justify-items:end;gap:6px}.selected-voter-status small{color:var(--muted)}
.registration-photo-grid{align-items:stretch}.registration-camera-card,.registration-booth-card{min-height:515px}.registration-card-muted{background:#f8fafc}.registration-camera-box{max-height:390px}.camera-loading{position:absolute;inset:0;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.registration-camera-actions{margin-top:12px}.photo-status{text-align:center;margin-top:10px;color:var(--muted);font-weight:700}.photo-status.ready{color:#15803d}.photo-already-taken{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.photo-already-taken h3{margin:4px 0}.photo-already-taken p{max-width:420px}
.registration-booth-grid{grid-template-columns:1fr;gap:12px}.registration-booth-grid .booth-option{min-height:88px}.booth-live-note{margin-top:15px;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:.84rem}
.registration-submit-card{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:22px;border:2px solid #a7f3d0}.registration-submit-card p{margin:3px 0 0}.registration-submit-card .btn{min-width:285px}
.swal-booth-number{width:92px;height:92px;border-radius:24px;display:grid;place-items:center;margin:18px auto 8px;background:linear-gradient(145deg,var(--primary),#14b8a6);color:#fff;font-size:3.6rem;font-weight:950;box-shadow:0 15px 30px rgba(15,118,110,.25)}
@media(max-width:800px){.registration-content{padding:16px 14px 32px}.registration-topbar{padding:0 14px}.registration-operator .small{display:none}.registration-progress{grid-template-columns:1fr 34px 1fr}.registration-progress-line{width:34px}.registration-step{justify-content:center}.registration-step strong{white-space:normal;font-size:.76rem}.registration-photo-grid{grid-template-columns:1fr}.registration-camera-card,.registration-booth-card{min-height:auto}.selected-voter-summary{grid-template-columns:auto 1fr}.selected-voter-status{grid-column:1/-1;justify-items:start}.registration-submit-card{align-items:stretch;flex-direction:column}.registration-submit-card .btn{width:100%;min-width:0}}
@media(max-width:620px){.registration-topbar{height:64px}.registration-brand small,.registration-operator .btn{display:none}.registration-progress{margin-top:14px}.registration-search-form{grid-template-columns:1fr}.registration-result-card{align-items:stretch;flex-direction:column}.registration-result-card .btn{width:100%}.registration-page-head{align-items:flex-start}.registration-page-head>.badge{display:none}.selected-voter-summary{grid-template-columns:1fr;text-align:center}.selected-voter-icon{margin:auto}.selected-voter-status{justify-items:center}.registration-card-heading{align-items:center}.registration-scan-card,.registration-manual-card{padding:18px}}


/* v1.3.4 — standalone layout stability */
.kiosk-body,.monitor-body,.registration-body{width:100%;min-width:0;overflow-x:hidden}
.kiosk-topbar,.monitor-topbar,.registration-topbar{width:100%;min-width:0}
.kiosk-content,.monitor-content,.registration-content{width:100%;min-width:0;overflow-x:hidden}
.booth-kiosk,.results-monitor,.registration-page{width:100%;min-width:0}
.booth-kiosk-head>*,.result-chart-card>*,.registration-photo-grid>*{min-width:0}
.result-candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.registration-photo-grid{grid-template-columns:minmax(0,1fr) minmax(330px,.8fr)}
.registration-camera-card,.registration-booth-card{overflow:hidden}
.qr-reader-shell,#qr-reader{max-width:100%}
#qr-reader video,#qr-reader img{max-width:100%!important;height:auto!important}
.candidate-grid{align-items:stretch}
.candidate{min-width:0}
.candidate h2,.candidate h3{overflow-wrap:anywhere}
.result-chart-canvas canvas{max-width:100%!important}
.table-wrap{max-width:100%}
@media(max-width:980px){
  .result-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .registration-photo-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .result-candidate-grid{grid-template-columns:1fr}
  .kiosk-topbar,.monitor-topbar,.registration-topbar{gap:10px}
  .kiosk-topbar .badge{font-size:.68rem}
  .monitor-topbar>div:first-child span:not(.monitor-dot){display:none}
}

/* v1.3.5 — exact voter-code lookup & testing reset controls */
.registration-manual-card #search{text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-weight:800;letter-spacing:.04em}
.results-action-bar{justify-content:flex-end}
.results-action-bar .inline-form{display:inline-flex;margin:0}
.results-action-bar .btn:disabled{opacity:.62;cursor:wait;transform:none}
@media(max-width:760px){
  .results-action-bar{width:100%;justify-content:flex-start}
  .results-action-bar .refresh-badge{order:4;width:100%;justify-content:center}
  .results-action-bar .inline-form{flex:1}
  .results-action-bar .inline-form .btn{width:100%}
}

/* v1.3.8 — compact headers and single-screen TPS operations */
.kiosk-data-header{
  height:82px;
  padding:0 22px;
  gap:22px;
  position:relative;
  flex-wrap:nowrap;
}
.kiosk-header-brand{flex:0 0 auto;white-space:nowrap}
.kiosk-header-brand strong{font-size:1rem}
.kiosk-header-context{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  overflow:hidden;
}
.kiosk-header-field{
  min-width:0;
  padding:0 20px;
  display:grid;
  gap:2px;
  border-left:1px solid var(--line);
  line-height:1.15;
}
.kiosk-header-field:first-child{border-left:0}
.kiosk-header-field small{font-size:.64rem;color:var(--muted);font-weight:850;letter-spacing:.08em}
.kiosk-header-field strong{font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
.kiosk-header-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px}

.kiosk-body{height:100dvh;overflow:hidden}
.kiosk-content{
  height:calc(100dvh - 82px);
  min-height:0;
  padding:14px 18px;
  display:block;
  overflow:hidden;
}
.booth-kiosk{height:100%;max-width:1180px}
.booth-screen-card{
  height:100%;
  min-height:0;
  padding:24px;
}
.booth-screen-card .waiting-pulse{width:88px;height:88px}
.booth-screen-card .waiting-pulse span{width:34px;height:34px}
.booth-screen-card h2{font-size:clamp(1.7rem,3.2vw,2.45rem);margin:14px 0 8px}
.booth-assigned-card .booth-ready-icon{width:60px;height:60px;font-size:1.8rem;margin-bottom:6px}
.booth-assigned-card form{width:min(620px,100%);margin-top:18px}
.booth-help-text{margin:12px 0 0}

.kiosk-ballot-form{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.kiosk-candidate-grid{
  flex:1 1 auto;
  min-height:0;
  gap:14px;
}
.kiosk-candidate-card{
  min-height:0;
  height:100%;
  padding:12px;
  display:flex;
  flex-direction:column;
}
.kiosk-candidate-card .candidate-number{
  width:44px;
  height:44px;
  margin-bottom:8px;
  flex:0 0 auto;
}
.kiosk-candidate-card .candidate-photo{
  width:100%;
  height:clamp(170px,32dvh,285px);
  aspect-ratio:auto;
  flex:0 1 auto;
}
.candidate-photo-placeholder{display:grid;place-items:center;font-size:3.5rem}
.kiosk-candidate-card h2{
  margin:9px 0 2px;
  font-size:clamp(1.25rem,2.1vw,1.8rem);
  line-height:1.15;
}
.kiosk-candidate-card .candidate-running-mate{margin:2px 0;font-size:.88rem}
.kiosk-candidate-card .candidate-vision{
  margin:5px 0 0;
  font-size:.78rem;
  line-height:1.35;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.kiosk-ballot-action{
  position:static;
  margin:0;
  padding:9px 12px;
  flex:0 0 auto;
}
.kiosk-ballot-action .btn{padding:12px 18px}

.registration-data-header{
  height:84px;
  padding:0 20px;
  gap:18px;
  flex-wrap:nowrap;
}
.registration-header-context{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}
.registration-header-field{
  min-width:0;
  display:grid;
  gap:2px;
  padding:0 15px;
  border-left:1px solid var(--line);
  line-height:1.15;
}
.registration-header-field:first-child{border-left:0}
.registration-header-field small{font-size:.61rem;color:var(--muted);font-weight:850;letter-spacing:.08em}
.registration-header-field strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:24vw}
.registration-code-header-field strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.03em}
.registration-operator{flex:0 0 auto}

.registration-body{height:100dvh;overflow:hidden}
.registration-content{
  height:calc(100dvh - 84px);
  min-height:0;
  padding:14px 18px 42px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.registration-screen-page{height:100%;min-height:0}
.registration-scan-workspace{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr);
  gap:16px;
}
.registration-work-card{
  min-height:0;
  height:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:18px;
}
.registration-card-heading-compact{margin-bottom:12px;align-items:center}
.registration-card-heading-compact h2{margin:0;font-size:1.08rem}
.registration-card-heading-compact .registration-heading-number{width:34px;height:34px;font-size:1rem}
.registration-scan-card .qr-reader-shell{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.registration-scan-card #qr-reader{width:min(610px,100%);max-height:100%;overflow:hidden}
.registration-scan-card #qr-reader video{
  height:clamp(260px,48dvh,455px)!important;
  max-height:48dvh!important;
  object-fit:cover!important;
}
.registration-search-form-stacked{grid-template-columns:1fr;gap:10px}
.registration-manual-card .registration-results{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-right:3px;
}
.registration-manual-card .registration-search-hint{margin:10px 0}

.registration-photo-page{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.registration-photo-workspace{
  flex:1 1 auto;
  min-height:0;
  gap:14px;
  align-items:stretch;
}
.registration-photo-workspace .registration-camera-card,
.registration-photo-workspace .registration-booth-card{
  min-height:0;
  height:100%;
  padding:16px;
  display:flex;
  flex-direction:column;
}
.registration-camera-box{
  flex:1 1 auto;
  min-height:220px;
  max-height:none;
}
.registration-camera-actions{margin-top:9px}
.photo-status{margin-top:6px;font-size:.82rem}
.registration-booth-grid{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-right:3px;
}
.registration-booth-grid .booth-option{min-height:72px;padding:10px}
.booth-live-note{margin-top:8px}
.photo-already-taken{min-height:0;flex:1 1 auto}
.registration-submit-strip{
  flex:0 0 auto;
  margin:0;
  min-height:62px;
  padding:10px 14px;
}
.registration-submit-strip .btn{min-width:260px}

@media (max-width:1100px){
  .registration-admin-name{display:none}
  .registration-header-field{padding:0 10px}
  .kiosk-header-field{padding:0 12px}
}

@media (max-width:900px), (max-height:640px){
  .kiosk-body,.registration-body{height:auto;min-height:100vh;overflow:auto}
  .kiosk-content,.registration-content{height:auto;min-height:calc(100vh - 72px);overflow:visible}
  .kiosk-data-header,.registration-data-header{height:auto;min-height:72px;padding-top:10px;padding-bottom:10px;flex-wrap:wrap}
  .kiosk-header-context,.registration-header-context{order:3;flex-basis:100%;justify-content:flex-start;overflow:visible}
  .kiosk-header-field strong,.registration-header-field strong{max-width:45vw}
  .booth-screen-card{min-height:430px}
  .kiosk-ballot-form{height:auto}
  .kiosk-candidate-card{height:auto}
  .registration-scan-workspace{grid-template-columns:1fr;height:auto}
  .registration-work-card{height:auto;overflow:visible}
  .registration-photo-workspace{grid-template-columns:1fr}
  .registration-photo-workspace .registration-camera-card,.registration-photo-workspace .registration-booth-card{height:auto}
  .registration-submit-strip{flex-direction:column;align-items:stretch}
  .registration-submit-strip .btn{width:100%;min-width:0}
}

@media (max-width:620px){
  .kiosk-data-header,.registration-data-header{gap:10px;padding-left:12px;padding-right:12px}
  .kiosk-header-brand strong{font-size:.88rem}
  .kiosk-header-field,.registration-header-field{padding:0 8px}
  .kiosk-header-field strong,.registration-header-field strong{max-width:62vw;font-size:.78rem}
  .registration-voter-header-field,.registration-code-header-field{flex:1 1 100%}
  .registration-operator .badge{display:none}
  .registration-content,.kiosk-content{padding:10px}
  .registration-work-card{padding:14px}
}
.booth-kiosk-success{height:100%;display:grid;place-items:center;max-width:760px;margin:auto}
.booth-kiosk-success .vote-success-card{width:100%;padding:26px}
.vote-success-icon{margin:0 auto 12px;width:62px;height:62px;font-size:1.7rem}
.vote-success-card .title{margin:0 0 5px}
.vote-success-receipt{font-size:1.25rem;margin:16px 0}

/* v1.4.1 — inline voter headers & duplicate-info cleanup */
.registration-data-header,
.kiosk-data-header{
  height:70px;
  min-height:70px;
}
.registration-content,
.kiosk-content{
  height:calc(100dvh - 70px);
}
.registration-header-context,
.kiosk-header-context{
  justify-content:center;
  gap:0;
}
.registration-header-field,
.kiosk-header-field{
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 14px;
  white-space:nowrap;
}
.registration-header-field small,
.kiosk-header-field small{
  flex:0 0 auto;
  margin:0;
  line-height:1;
}
.registration-header-field strong,
.kiosk-header-field strong{
  display:block;
  min-width:0;
  max-width:30vw;
  line-height:1.1;
}
.registration-code-header-field strong{
  max-width:18vw;
}
.registration-stage-header-field strong{
  max-width:26vw;
}
.registration-bottom-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0;
  min-height:62px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.registration-bottom-actions .btn{
  min-width:250px;
}
.registration-bottom-actions .registration-scan-another{
  min-width:210px;
}
.booth-assigned-card{
  border:1px solid var(--line);
  background:#fff;
}
.booth-assigned-card h2{
  max-width:760px;
}
.kiosk-ballot-page .kiosk-content{
  padding-top:10px;
}

@media (max-width:1100px){
  .registration-header-field,
  .kiosk-header-field{padding:0 9px;gap:5px}
  .registration-header-field strong,
  .kiosk-header-field strong{max-width:27vw;font-size:.8rem}
  .registration-header-field small,
  .kiosk-header-field small{font-size:.57rem}
}

@media (max-width:900px), (max-height:640px){
  .registration-data-header,
  .kiosk-data-header{
    min-height:70px;
    height:auto;
  }
  .registration-content,
  .kiosk-content{
    height:auto;
    min-height:calc(100vh - 70px);
  }
  .registration-header-context,
  .kiosk-header-context{
    display:flex;
    flex-wrap:wrap;
    row-gap:7px;
  }
  .registration-header-field strong,
  .kiosk-header-field strong{max-width:48vw}
}

@media (max-width:680px){
  .registration-header-field,
  .kiosk-header-field{
    flex:1 1 100%;
    border-left:0;
    padding:2px 0;
  }
  .registration-header-field strong,
  .kiosk-header-field strong{max-width:72vw}
  .registration-bottom-actions{
    flex-direction:column-reverse;
    align-items:stretch;
  }
  .registration-bottom-actions .btn,
  .registration-bottom-actions .registration-scan-another{
    width:100%;
    min-width:0;
  }
}

/* v1.4.3 result-code matrix */
.result-code-matrix th,.result-code-matrix td{text-align:center;vertical-align:middle}.result-code-matrix thead th{min-width:210px}.result-code-matrix tfoot th{position:sticky;bottom:0;z-index:4;background:#ecfdf5;color:#065f46;border-top:2px solid #99f6e4;box-shadow:0 -1px 0 var(--line)}

/* v1.4.5 — result choice log table */
.result-choice-log{min-width:760px}
.result-choice-log th,.result-choice-log td{vertical-align:middle}
.result-choice-log thead th{background:#fef200;color:#111827;font-weight:900;text-align:center;white-space:nowrap}
.result-choice-log .result-log-no{width:72px;min-width:72px;text-align:center}
.result-choice-log .result-log-code{min-width:240px;text-align:left}
.result-choice-log .result-log-candidate{min-width:120px;text-align:center}
.result-choice-log tbody td:nth-child(2){text-align:left}
.result-choice-log .result-choice-mark{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#dcfce7;color:#15803d;font-size:1rem;font-weight:950}
.result-choice-log tfoot th{position:sticky;bottom:0;z-index:4;background:#dbeafe;color:#0f172a;border-top:2px solid #93c5fd;box-shadow:0 -1px 0 var(--line);font-weight:950;text-align:center}
.result-choice-log tfoot th:first-child{text-align:center}
@media(max-width:760px){.result-choice-log{min-width:680px}.result-choice-log .result-log-code{min-width:210px}.result-choice-log .result-log-candidate{min-width:105px}}

/* v1.4.6 — center result choice mark inside the full candidate cell */
.result-choice-log td.result-choice-cell{padding:0;text-align:center!important;vertical-align:middle!important}
.result-choice-log .result-choice-center{display:flex;align-items:center;justify-content:center;width:100%;min-height:66px;margin:0 auto}
.result-choice-log .result-choice-mark{margin:0 auto;flex:0 0 auto}

/* v1.5.1 — TPS auto queue / hospital-style booth dispatch */
.registration-autoqueue-page{max-width:980px;margin:0 auto;height:100%;display:flex;flex-direction:column;gap:12px}
.registration-autoqueue-card{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:18px}
.registration-autoqueue-camera{flex:1 1 auto;min-height:280px;max-height:calc(100dvh - 285px)}
.registration-already-queued{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.swal-queue-number{margin:16px auto 0;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:14px;background:#e0f2fe;color:#075985;font-weight:900;font-size:1.05rem}

.monitor-brand-line{display:flex;align-items:center;gap:10px;min-width:0}
.monitor-logo{width:38px;height:38px;border-radius:10px;object-fit:cover;flex:0 0 auto}
.tps-monitor-page{display:flex;flex-direction:column;gap:16px;min-width:0}
.tps-monitor-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.tps-monitor-summary>div{display:flex;align-items:center;gap:9px}
.tps-monitor-summary-right{justify-content:flex-end}
.queue-count-label{font-size:.82rem;color:var(--muted)}
.queue-count-number{font-size:1.55rem;line-height:1;color:#0f766e}
.booth-monitor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.booth-monitor-card{position:relative;min-height:190px;border:2px solid var(--line);border-radius:16px;padding:15px;background:#fff;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px;overflow:hidden}
.booth-monitor-card.state-available{border-color:#86efac;background:linear-gradient(180deg,#f0fdf4,#fff)}
.booth-monitor-card.state-assigned{border-color:#60a5fa;background:linear-gradient(180deg,#eff6ff,#fff)}
.booth-monitor-card.state-in-use{border-color:#f59e0b;background:linear-gradient(180deg,#fffbeb,#fff)}
.booth-monitor-card.state-offline{border-color:#cbd5e1;background:#f8fafc}
.booth-monitor-card.state-preparing{border-color:#c4b5fd;background:linear-gradient(180deg,#f5f3ff,#fff)}
.booth-monitor-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.booth-monitor-card-head>div{display:flex;align-items:center;gap:9px;min-width:0}
.booth-monitor-number{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#0f172a;color:#fff;font-size:1.1rem;font-weight:900}
.booth-monitor-status{padding:6px 9px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.68rem;font-weight:900;letter-spacing:.04em;white-space:nowrap}
.state-available .booth-monitor-status{background:#dcfce7;color:#166534}
.state-assigned .booth-monitor-status{background:#dbeafe;color:#1d4ed8}
.state-in-use .booth-monitor-status{background:#fef3c7;color:#92400e}
.state-offline .booth-monitor-status{background:#e2e8f0;color:#475569}
.state-preparing .booth-monitor-status{background:#ede9fe;color:#6d28d9}
.booth-monitor-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:900;font-size:1rem;letter-spacing:.02em;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.78);border:1px solid rgba(148,163,184,.25)}
.booth-monitor-voter{display:flex;flex-direction:column;gap:3px;min-height:42px}
.booth-monitor-voter strong{font-size:1.03rem;line-height:1.15}
.booth-monitor-voter small{color:var(--muted);line-height:1.25}
.booth-monitor-voter-hidden strong{color:#92400e}
.booth-monitor-empty{flex:1 1 auto;display:grid;place-items:center;text-align:center;color:var(--muted);font-weight:750;min-height:72px}
.booth-monitor-card .booth-release{margin-top:auto;width:100%}
.tps-queue-card{padding:0;overflow:hidden}
.tps-queue-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}
.tps-queue-heading h2{margin:0 0 3px;font-size:1.08rem}
.tps-queue-heading p{margin:0}
.tps-queue-table-wrap{max-height:420px;overflow:auto}
.tps-queue-table{margin:0;min-width:850px}
.tps-queue-table thead th{position:sticky;top:0;z-index:3;background:#f8fafc}
.tps-queue-table td,.tps-queue-table th{vertical-align:middle}

@media(max-width:900px){
  .tps-monitor-summary,.tps-queue-heading{align-items:flex-start;flex-direction:column}
  .tps-monitor-summary-right{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .booth-monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .registration-autoqueue-camera{max-height:none}
}
@media(max-width:620px){
  .booth-monitor-grid{grid-template-columns:1fr}
  .monitor-brand-line .monitor-dot,.monitor-brand-line>span:last-child{display:none}
}


/* v1.7.13 — one-shot booth cast + non-clickable success screen */
.ballot-submitting .candidate-grid,
.ballot-submitting .candidate,
.ballot-submitting .ballot-confirm-card{
  pointer-events:none!important;
  user-select:none;
}
.ballot-submitting .candidate{opacity:.82}
.ballot-submitting button[type="submit"]{
  opacity:.72;
  cursor:wait!important;
  transform:none!important;
}
.booth-kiosk-success-locked{
  pointer-events:none;
  user-select:none;
}
.vote-success-next-status{
  margin-top:20px;
  padding:14px 18px;
  border-radius:12px;
  background:#e2e8f0;
  color:#475569;
  font-weight:800;
}
.vote-success-next-status strong{color:#0f766e}

/* v1.8.6 — booth direct-card confirmation + elderly-friendly confirmation */
#tps-ballot[data-card-cast="1"] .candidate-simple{
  border-width:3px;
  border-radius:24px;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
#tps-ballot[data-card-cast="1"] .candidate-simple:hover{
  box-shadow:0 16px 34px rgba(15,118,110,.16);
}
#tps-ballot[data-card-cast="1"] .candidate-number-large{
  width:70px;
  height:70px;
  font-size:2rem;
  font-weight:950;
  margin-bottom:0;
}
#tps-ballot[data-card-cast="1"] .candidate-photo-frame-voting{
  border-radius:18px;
  overflow:hidden;
}
#tps-ballot[data-card-cast="1"] .candidate-name-simple{
  font-weight:950;
  letter-spacing:-.02em;
}
.ballot-tap-hint{
  width:min(860px,100%);
  margin:22px auto 8px;
  padding:18px 22px;
  border:2px solid #99f6e4;
  border-radius:18px;
  background:#f0fdfa;
  color:#134e4a;
  text-align:center;
  display:grid;
  gap:5px;
}
.ballot-tap-hint strong{font-size:1.12rem;font-weight:950}
.ballot-tap-hint span{font-size:.96rem;line-height:1.45}

.swal-booth-vote-popup{
  padding:30px 30px 34px!important;
  border-radius:30px!important;
}
.swal-booth-vote-title{
  font-size:clamp(1.8rem,4vw,2.55rem)!important;
  line-height:1.1!important;
  font-weight:950!important;
  color:#0f172a!important;
}
.swal-booth-vote-copy{
  margin:4px 0 14px;
  font-size:1.18rem;
  font-weight:800;
  color:#334155;
}
.swal-booth-vote-choice{
  width:100%;
  margin:0 auto 18px;
  padding:22px;
  border:3px solid #86efac;
  border-radius:24px;
  background:#f0fdf4;
  color:#14532d;
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:22px;
  align-items:stretch;
  text-align:left;
}
.swal-booth-vote-number,
.swal-booth-vote-name{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}
.swal-booth-vote-number{
  text-align:center;
  border-right:2px solid #bbf7d0;
  padding-right:20px;
}
.swal-booth-vote-choice span{
  font-size:1rem;
  line-height:1.1;
  font-weight:950;
  letter-spacing:.06em;
  color:#166534;
}
.swal-booth-vote-number strong{
  font-size:4.8rem;
  line-height:.95;
  font-weight:1000;
  color:#14532d;
}
.swal-booth-vote-name strong{
  font-size:clamp(1.8rem,4vw,2.5rem);
  line-height:1.08;
  font-weight:1000;
  color:#14532d;
  overflow-wrap:anywhere;
}
.swal-booth-vote-warning{
  padding:16px 18px;
  border-radius:16px;
  background:#fff7ed;
  border:2px solid #fed7aa;
  color:#9a3412;
  font-size:1.05rem;
  line-height:1.45;
  font-weight:750;
}
.swal-booth-vote-actions{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px!important;
  margin:30px 0 0!important;
}
.swal-booth-vote-confirm,
.swal-booth-vote-cancel{
  width:100%!important;
  min-width:0!important;
  min-height:82px!important;
  margin:0!important;
  padding:18px 24px!important;
  border-radius:18px!important;
  font-size:1.35rem!important;
  line-height:1.15!important;
  font-weight:1000!important;
  box-shadow:0 8px 18px rgba(15,23,42,.15)!important;
}
.swal-booth-vote-confirm{border:4px solid #14532d!important}
.swal-booth-vote-cancel{border:4px solid #7f1d1d!important}

@media(max-width:680px){
  #tps-ballot[data-card-cast="1"] .candidate-number-large{width:64px;height:64px;font-size:1.85rem}
  #tps-ballot[data-card-cast="1"] .candidate-photo-frame-voting{min-height:220px}
  .ballot-tap-hint{margin-top:16px;padding:15px 16px}
  .swal-booth-vote-popup{padding:22px 16px 24px!important}
  .swal-booth-vote-choice{grid-template-columns:105px minmax(0,1fr);gap:14px;padding:16px}
  .swal-booth-vote-number{padding-right:12px}
  .swal-booth-vote-number strong{font-size:3.8rem}
  .swal-booth-vote-name strong{font-size:1.75rem}
  .swal-booth-vote-actions{grid-template-columns:1fr;gap:16px!important;margin-top:22px!important}
  .swal-booth-vote-confirm,.swal-booth-vote-cancel{min-height:74px!important;font-size:1.25rem!important}
}


/* v1.8.7 — enlarge booth confirmation popup to approximately Bootstrap col-10 */
.swal-booth-vote-popup{
  width:min(1460px,83.333vw)!important;
  max-width:calc(100vw - 40px)!important;
  padding:38px 44px 42px!important;
}
.swal-booth-vote-title{
  font-size:clamp(2.15rem,3vw,3rem)!important;
  margin-bottom:8px!important;
}
.swal-booth-vote-copy{
  margin:8px 0 20px;
  font-size:1.4rem;
}
.swal-booth-vote-choice{
  width:100%;
  margin:0 auto 24px;
  padding:32px 36px;
  grid-template-columns:240px minmax(0,1fr);
  gap:34px;
  border-radius:28px;
}
.swal-booth-vote-number{
  padding-right:30px;
}
.swal-booth-vote-choice span{
  font-size:1.2rem;
}
.swal-booth-vote-number strong{
  font-size:6.4rem;
}
.swal-booth-vote-name strong{
  font-size:clamp(2.45rem,4vw,4rem);
  line-height:1.05;
}
.swal-booth-vote-warning{
  padding:20px 24px;
  font-size:1.22rem;
  line-height:1.5;
}
.swal-booth-vote-actions{
  gap:42px!important;
  margin-top:36px!important;
}
.swal-booth-vote-confirm,
.swal-booth-vote-cancel{
  min-height:96px!important;
  padding:22px 30px!important;
  font-size:1.55rem!important;
  border-radius:20px!important;
}

@media(max-width:900px){
  .swal-booth-vote-popup{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    padding:26px 20px 28px!important;
  }
  .swal-booth-vote-choice{
    grid-template-columns:135px minmax(0,1fr);
    gap:18px;
    padding:20px;
  }
  .swal-booth-vote-number{padding-right:16px}
  .swal-booth-vote-number strong{font-size:4.4rem}
  .swal-booth-vote-name strong{font-size:clamp(1.9rem,7vw,2.7rem)}
  .swal-booth-vote-actions{gap:22px!important}
}

@media(max-width:580px){
  .swal-booth-vote-popup{padding:22px 14px 24px!important}
  .swal-booth-vote-title{font-size:1.85rem!important}
  .swal-booth-vote-copy{font-size:1.12rem}
  .swal-booth-vote-choice{
    grid-template-columns:105px minmax(0,1fr);
    gap:12px;
    padding:16px 14px;
  }
  .swal-booth-vote-number{padding-right:10px}
  .swal-booth-vote-choice span{font-size:.9rem}
  .swal-booth-vote-number strong{font-size:3.7rem}
  .swal-booth-vote-name strong{font-size:1.75rem}
  .swal-booth-vote-warning{font-size:1rem;padding:15px 14px}
  .swal-booth-vote-actions{grid-template-columns:1fr!important;gap:16px!important;margin-top:22px!important}
  .swal-booth-vote-confirm,.swal-booth-vote-cancel{min-height:78px!important;font-size:1.25rem!important}
}

/* v1.8.8 — fix SweetAlert width fallback and keep confirmation card horizontal */
.swal-booth-vote-popup{
  width:82vw!important;
  max-width:1480px!important;
  min-width:0!important;
  max-height:94vh!important;
  overflow-y:auto!important;
  padding:28px 40px 32px!important;
}
.swal-booth-vote-popup .swal2-html-container{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  overflow:visible!important;
}
.swal-booth-vote-choice{
  width:100%!important;
  min-height:200px!important;
  grid-template-columns:minmax(190px,24%) minmax(0,76%)!important;
  align-items:center!important;
  padding:24px 30px!important;
  gap:30px!important;
}
.swal-booth-vote-number,
.swal-booth-vote-name{
  min-width:0!important;
}
.swal-booth-vote-number strong{
  font-size:clamp(4.8rem,7vw,7rem)!important;
}
.swal-booth-vote-name strong{
  display:block!important;
  width:100%!important;
  font-size:clamp(2.5rem,3.6vw,4.4rem)!important;
  line-height:1.05!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.swal-booth-vote-warning{
  margin-top:4px!important;
}
.swal-booth-vote-actions{
  max-width:1100px!important;
  margin:26px auto 0!important;
  gap:48px!important;
}
.swal-booth-vote-confirm,
.swal-booth-vote-cancel{
  min-height:88px!important;
}

@media(max-width:1000px){
  .swal-booth-vote-popup{
    width:94vw!important;
    max-width:94vw!important;
    padding:24px 22px 26px!important;
  }
  .swal-booth-vote-choice{
    grid-template-columns:minmax(150px,28%) minmax(0,72%)!important;
    min-height:180px!important;
    padding:20px 22px!important;
    gap:22px!important;
  }
  .swal-booth-vote-number strong{font-size:4.8rem!important}
  .swal-booth-vote-name strong{font-size:clamp(2rem,5vw,3.2rem)!important}
}

@media(max-width:620px){
  .swal-booth-vote-popup{
    width:96vw!important;
    max-width:96vw!important;
    max-height:96vh!important;
    padding:18px 14px 20px!important;
  }
  .swal-booth-vote-choice{
    grid-template-columns:110px minmax(0,1fr)!important;
    min-height:150px!important;
    padding:15px!important;
    gap:14px!important;
  }
  .swal-booth-vote-number{padding-right:10px!important}
  .swal-booth-vote-number strong{font-size:3.6rem!important}
  .swal-booth-vote-name strong{font-size:1.7rem!important}
  .swal-booth-vote-actions{
    grid-template-columns:1fr!important;
    gap:14px!important;
    margin-top:18px!important;
  }
}


/* v1.8.9 — Booth vote confirmation uses a dedicated custom modal (no SweetAlert) */
body.booth-vote-modal-open{overflow:hidden!important}
.booth-vote-confirm-overlay{
  position:fixed;
  inset:0;
  z-index:20000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.68);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  animation:boothVoteFadeIn .14s ease-out both;
}
.booth-vote-confirm-overlay.is-closing{animation:boothVoteFadeOut .12s ease-in both}
.booth-vote-confirm-modal{
  width:min(84vw,1380px);
  max-height:94vh;
  overflow:auto;
  box-sizing:border-box;
  padding:30px 42px 36px;
  border:1px solid #dbe4ee;
  border-radius:30px;
  background:#fff;
  box-shadow:0 30px 90px rgba(15,23,42,.35);
  color:#0f172a;
  text-align:center;
  animation:boothVotePopIn .16s ease-out both;
}
.booth-vote-confirm-icon{
  width:58px;
  height:58px;
  margin:0 auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#dbeafe;
  color:#2563eb;
  font-size:2rem;
  line-height:1;
  font-weight:1000;
}
.booth-vote-confirm-title{
  margin:0;
  font-size:clamp(2rem,2.6vw,3rem);
  line-height:1.1;
  font-weight:1000;
  color:#0f172a;
}
.booth-vote-confirm-subtitle{
  margin:12px 0 18px;
  font-size:clamp(1.2rem,1.6vw,1.55rem);
  line-height:1.2;
  font-weight:900;
  color:#334155;
}
.booth-vote-confirm-choice{
  width:100%;
  min-height:210px;
  box-sizing:border-box;
  margin:0 auto 20px;
  padding:26px 34px;
  display:grid;
  grid-template-columns:minmax(190px,24%) minmax(0,76%);
  align-items:center;
  gap:32px;
  border:3px solid #86efac;
  border-radius:26px;
  background:#f0fdf4;
  color:#14532d;
  text-align:left;
}
.booth-vote-confirm-number,
.booth-vote-confirm-name{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.booth-vote-confirm-number{
  height:100%;
  align-items:center;
  text-align:center;
  padding-right:28px;
  border-right:2px solid #bbf7d0;
}
.booth-vote-confirm-choice span{
  font-size:clamp(1rem,1.35vw,1.25rem);
  line-height:1.15;
  font-weight:1000;
  letter-spacing:.06em;
  color:#166534;
}
.booth-vote-confirm-number strong{
  font-size:clamp(5.2rem,7vw,7.6rem);
  line-height:.9;
  font-weight:1000;
  color:#14532d;
}
.booth-vote-confirm-name strong{
  display:block;
  width:100%;
  max-width:100%;
  font-size:clamp(2.6rem,3.7vw,4.2rem);
  line-height:1.04;
  font-weight:1000;
  color:#14532d;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:normal;
  hyphens:none;
}
.booth-vote-confirm-warning{
  padding:18px 24px;
  border:2px solid #fed7aa;
  border-radius:18px;
  background:#fff7ed;
  color:#9a3412;
  font-size:clamp(1.05rem,1.35vw,1.3rem);
  line-height:1.45;
  font-weight:800;
}
.booth-vote-confirm-actions{
  width:100%;
  max-width:1120px;
  margin:30px auto 0;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:56px;
}
.booth-vote-confirm-btn{
  width:min(40vw,470px);
  min-height:96px;
  padding:20px 28px;
  border:4px solid transparent;
  border-radius:20px;
  color:#fff;
  font:inherit;
  font-size:clamp(1.3rem,1.7vw,1.65rem);
  line-height:1.1;
  font-weight:1000;
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(15,23,42,.16);
  transition:transform .1s ease,filter .1s ease,box-shadow .1s ease;
}
.booth-vote-confirm-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}
.booth-vote-confirm-btn:active{transform:translateY(1px);box-shadow:0 5px 12px rgba(15,23,42,.16)}
.booth-vote-confirm-btn:focus-visible{outline:5px solid #fbbf24;outline-offset:4px}
.booth-vote-confirm-yes{background:#15803d;border-color:#14532d;margin-right:auto}
.booth-vote-confirm-no{background:#b91c1c;border-color:#7f1d1d;margin-left:auto}

@keyframes boothVoteFadeIn{from{opacity:0}to{opacity:1}}
@keyframes boothVoteFadeOut{from{opacity:1}to{opacity:0}}
@keyframes boothVotePopIn{from{opacity:0;transform:scale(.975) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}

@media(max-width:900px){
  .booth-vote-confirm-overlay{padding:12px}
  .booth-vote-confirm-modal{width:96vw;padding:24px 22px 28px;border-radius:24px}
  .booth-vote-confirm-choice{grid-template-columns:minmax(145px,28%) minmax(0,72%);min-height:180px;padding:21px 24px;gap:22px}
  .booth-vote-confirm-number{padding-right:18px}
  .booth-vote-confirm-number strong{font-size:5rem}
  .booth-vote-confirm-name strong{font-size:clamp(2rem,5vw,3.1rem)}
  .booth-vote-confirm-actions{gap:28px}
}
@media(max-width:620px){
  .booth-vote-confirm-overlay{padding:8px;align-items:center}
  .booth-vote-confirm-modal{width:97vw;max-height:97vh;padding:18px 14px 20px;border-radius:20px}
  .booth-vote-confirm-icon{width:46px;height:46px;font-size:1.6rem;margin-bottom:8px}
  .booth-vote-confirm-title{font-size:1.7rem}
  .booth-vote-confirm-subtitle{font-size:1.08rem;margin:8px 0 12px}
  .booth-vote-confirm-choice{grid-template-columns:100px minmax(0,1fr);min-height:145px;padding:14px;gap:14px;margin-bottom:14px}
  .booth-vote-confirm-number{padding-right:10px}
  .booth-vote-confirm-choice span{font-size:.82rem}
  .booth-vote-confirm-number strong{font-size:3.6rem}
  .booth-vote-confirm-name strong{font-size:clamp(1.55rem,7vw,2.25rem);line-height:1.04}
  .booth-vote-confirm-warning{padding:13px 12px;font-size:.95rem}
  .booth-vote-confirm-actions{display:grid;grid-template-columns:1fr;gap:14px;margin-top:16px}
  .booth-vote-confirm-btn{width:100%;min-height:72px;padding:15px 18px;font-size:1.2rem;border-radius:16px}
  .booth-vote-confirm-yes,.booth-vote-confirm-no{margin-left:0;margin-right:0}
}
