.app-shell{display:flex;flex-direction:column;min-height:100vh}.app-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 2rem;background:linear-gradient(135deg,#1c64f2,#1f2937);color:#fff;box-shadow:0 2px 12px #0003}.brand{display:flex;flex-direction:column}.brand-school{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.9}.brand-title{font-size:1.4rem;font-weight:600}.brand-subtitle{font-size:.85rem;opacity:.85}.station-count-badge{display:flex;flex-direction:column;align-items:flex-end;padding:.5rem 1rem;background-color:#ffffff26;border:1px solid rgba(255,255,255,.3);border-radius:12px}.station-count-label{font-size:.75rem;opacity:.85}.station-count-value{font-size:1.5rem;font-weight:700;line-height:1.2}.election-type-banner{padding:.6rem 2rem;background-color:#fef3c7;color:#92400e;font-weight:600;text-align:center;font-size:.95rem;letter-spacing:.02em}.app-nav{display:flex;gap:1rem}.nav-link{color:#ffffffbf;text-decoration:none;font-weight:500;padding:.5rem .75rem;border-radius:999px;transition:background .2s ease,color .2s ease}.nav-link:hover{color:#fff;background-color:#ffffff1a}.nav-link-active{color:#111827;background-color:#fff}.app-main{flex:1;padding:2rem;display:flex;justify-content:center;align-items:center;background:radial-gradient(circle at top left,#e0e7ff,#f8fafc 65%)}.app-shell-voting{height:100vh;height:100dvh;min-height:0;overflow:hidden}.app-shell-voting .app-header{padding:.3rem 1rem;flex-shrink:0}.app-shell-voting .brand{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:.75rem}.app-shell-voting .brand-title{font-size:1.05rem}.app-shell-voting .brand-subtitle{display:none}.app-shell-voting .station-count-badge{flex-direction:row;align-items:center;gap:.5rem;padding:.1rem .6rem;border-radius:8px;flex-shrink:0}.app-shell-voting .station-count-value{font-size:1.1rem}.app-shell-voting .election-type-banner{padding:.15rem 1rem;font-size:.85rem;flex-shrink:0}.app-shell-voting .app-main{min-height:0;padding:.5rem;align-items:flex-start;overflow-y:auto}.page-card{width:min(720px,100%);background:#fff;padding:2rem;border-radius:24px;box-shadow:0 20px 60px #0f172a1f;display:flex;flex-direction:column;gap:1.5rem}@media (max-width: 420px){.page-card{padding:1.25rem}}.page-card.admin{width:min(1400px,95%)}.page-card h1{margin:0;font-size:2rem;color:#111827}.page-card p{margin:0;color:#4b5563;font-size:1.05rem}.page-actions{display:flex;gap:1rem;flex-wrap:wrap}.button{background-color:#1c64f2;color:#fff;border:none;border-radius:12px;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:transform .15s ease,box-shadow .15s ease}.button:hover{transform:translateY(-1px);box-shadow:0 12px 20px #1c64f238}.button:disabled{background-color:#93c5fd;cursor:not-allowed;box-shadow:none}.form{display:flex;flex-direction:column;gap:.75rem}.form-label{font-size:.95rem;font-weight:600;color:#1f2937}.form-input{padding:.75rem 1rem;border-radius:10px;border:1px solid #cbd5f5;font-size:1rem}.form-input:focus{outline:2px solid #1c64f2;outline-offset:2px}.codes-tab{display:flex;flex-direction:column;gap:1rem}.codes-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem}.codes-pickers{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:center}.codes-picker-label{font-size:.85rem;color:#475569;font-weight:600;margin-right:.4rem}.codes-seg{display:inline-flex;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden;background:#fff;vertical-align:middle}.codes-seg button{border:none;background:none;padding:.55rem 1.1rem;font:inherit;font-weight:600;color:#334155;cursor:pointer;min-height:42px}.codes-seg button[aria-pressed=true]{background:#1d4ed8;color:#fff}.codes-steps{display:flex;flex-wrap:wrap;gap:.6rem}.codes-step{flex:1 1 200px;display:flex;gap:.7rem;align-items:center;text-align:left;padding:.75rem 1rem;border-radius:12px;border:2px solid #cbd5e1;background:#fff;color:#334155;font:inherit;cursor:pointer}.codes-step.more{flex:0 1 180px}.codes-step[aria-selected=true]{border-color:#1d4ed8;background:#eff6ff;color:#1e3a8a}.codes-step-num{width:30px;height:30px;border-radius:15px;background:#e2e8f0;color:#334155;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}.codes-step[aria-selected=true] .codes-step-num{background:#1d4ed8;color:#fff}.codes-step strong{display:block}.codes-step small{font-size:.8rem}.codes-note{margin:0;padding:.7rem 1rem;background:#fff;border:1px solid #cbd5e1;border-radius:10px;color:#334155}.codes-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.9rem}.codes-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.6rem}.codes-card h3{margin:0;font-size:1.05rem;display:flex;gap:.6rem;align-items:center}.codes-card p{margin:0;font-size:.9rem;color:#475569}.codes-card .button{align-self:flex-start;margin-top:auto}.codes-progress{height:10px;background:#e2e8f0;border-radius:5px;overflow:hidden}.codes-progress div{height:10px;background:#1d4ed8}.codes-fresh-start{background:#fff;border:1px dashed #94a3b8;border-radius:14px;padding:.9rem 1.1rem;display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:center;justify-content:space-between}.codes-panel>div{margin-bottom:0!important}.codes-panel{scroll-margin-top:1rem}.codes-fresh-start p{margin:.25rem 0 0;color:#475569;font-size:.9rem}.codes-quiet-btn{background:#fff!important;color:#1f2937!important;border:1px solid #cbd5e1!important}.codes-danger-btn{background:#fff!important;color:#991b1b!important;border:1px solid #fca5a5!important}.codes-quiet-btn:disabled,.codes-danger-btn:disabled{opacity:.45;cursor:not-allowed}.codes-list{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.8rem}.codes-list-head{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between}.codes-list-head h3{margin:0;font-size:1.05rem}.codes-chips{display:flex;flex-wrap:wrap;gap:.45rem}.codes-chip{padding:.4rem .85rem;border-radius:999px;border:2px solid #cbd5e1;font:inherit;font-size:.88rem;font-weight:600;color:#1f2937;cursor:pointer;min-height:40px}.codes-chip[aria-pressed=true]{border-color:#1d4ed8;box-shadow:0 0 0 1px #1d4ed8;color:#1e3a8a}.codes-table{width:100%;border-collapse:collapse}.codes-table th{text-align:left;font-size:.8rem;color:#475569;font-weight:600;padding:.55rem .6rem;border-bottom:2px solid #e2e8f0}.codes-table td{padding:.55rem .6rem;border-bottom:1px solid #eef2f7;vertical-align:middle}.codes-table .codes-group td{background:#f1f5f9;font-weight:700;color:#334155}.codes-table .codes-right{text-align:right}.codes-code{font-family:Consolas,Courier New,monospace;font-weight:700;letter-spacing:.04em}.codes-sub{display:block;font-size:.78rem;font-weight:600;color:#6d28d9;letter-spacing:0;font-family:inherit}.codes-pill{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.8rem;font-weight:700;border:1px solid transparent;white-space:nowrap}.codes-actions{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:flex-end;align-items:center}.codes-actions .button{padding:.5rem .9rem;font-size:.9rem}.codes-link{background:none;border:none;font:inherit;font-weight:600;font-size:.9rem;color:#1d4ed8;cursor:pointer;padding:.5rem;min-height:40px}.codes-link.red{color:#991b1b}.codes-link.purple{color:#6d28d9}.codes-link:disabled{opacity:.5;cursor:default}.codes-checklist{padding:.9rem 1.1rem;border-radius:14px;border:2px solid #fb923c;background:#fff7ed;color:#431407;display:flex;flex-direction:column;gap:.5rem}.codes-checklist.done{border-color:#22c55e;background:#f0fdf4;color:#14532d}.codes-checklist .codes-progress{background:#fed7aa}.codes-checklist .codes-progress div{background:#c2410c}.codes-checklist.done .codes-progress div{background:#16a34a}@media (max-width: 640px){.codes-table thead{display:none}.codes-table,.codes-table tbody,.codes-table tr,.codes-table td{display:block;width:100%;box-sizing:border-box}.codes-table tr:not(.codes-group){border:1px solid #e2e8f0;border-radius:12px;margin-bottom:.6rem;padding:.4rem .2rem;background:#fff}.codes-table td{border-bottom:none;padding:.25rem .6rem}.codes-table td[data-label]:before{content:attr(data-label) ": ";font-size:.8rem;color:#64748b;font-weight:600}.codes-table .codes-group td{border-radius:8px;margin:.6rem 0 .4rem}.codes-table .codes-right{text-align:left}.codes-actions{justify-content:flex-start}.codes-actions .button{flex:1 1 auto;min-height:44px}}.admin{gap:2rem}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;width:100%}.admin-panel{background:#f9fafb;border-radius:18px;padding:1.5rem;box-shadow:0 6px 20px #0f172a14,inset 0 0 0 1px #0f172a0d;display:flex;flex-direction:column;gap:1rem}.admin-tabs{display:flex;flex-wrap:wrap;gap:.3rem;padding:.35rem;margin:1.25rem 0 1.5rem;background:#e2e8f5;border-radius:14px;box-shadow:inset 0 1px 3px #0f172a14}.admin-tab-button{border:none;background:transparent;color:#475569;font-weight:600;font-size:.92rem;padding:.55rem 1.1rem;border-radius:10px;cursor:pointer;min-height:44px;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}.candidate-action{min-height:40px;min-width:40px}.admin-tab-button:hover{background:#1c64f21f;color:#1c64f2}.admin-tab-button.active{background:#1c64f2;color:#fff;box-shadow:0 6px 14px #1c64f259}.admin-actions{display:flex;gap:.5rem;flex-wrap:wrap}.status{margin:0;font-weight:600;color:#1f2937}.result-card{background:#fff;border-radius:14px;padding:1rem;box-shadow:0 8px 20px #0f172a14}.result-card h3{margin-top:0;margin-bottom:.75rem;color:#1f2937}.result-card ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.result-card li{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;color:#374151}.badge{background-color:#1c64f2;color:#fff;border-radius:999px;padding:.25rem .75rem;font-weight:600}.message{margin:0;font-weight:600}.message.success{color:#15803d}.message.error{color:#dc2626}.dashboard-panel{gap:1.25rem}.dashboard-title-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}.dashboard-title-row h2{margin:0}.dashboard-title-row h2:before{content:"🗳️ "}.poll-status-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .85rem;border-radius:999px;font-weight:700;font-size:.85rem}.poll-status-pill.is-open{background:#dcfce7;color:#15803d}.poll-status-pill.is-closed{background:#fee2e2;color:#b91c1c}.poll-status-dot{width:.5rem;height:.5rem;border-radius:50%;background:currentColor}.status-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem}.status-card{display:flex;gap:.6rem;align-items:flex-start;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:.75rem .9rem}.status-card-danger{border-color:#fca5a5;background:#fef2f2}.status-card-icon{font-size:1.3rem;line-height:1}.status-card-title{margin:0;font-size:.75rem;font-weight:700;color:#1f2937;text-transform:uppercase;letter-spacing:.03em}.status-card-value{margin:.15rem 0 0;font-size:.95rem;font-weight:600;color:#111827}.status-card-hint{margin:.3rem 0 -.5rem;font-size:.62rem;color:#6b7280;line-height:1.3;transform:scale(.8);transform-origin:top left}.dashboard-section{border-top:1px solid #e5e7eb;padding-top:1rem;display:flex;flex-direction:column;gap:.6rem}.dashboard-section-title{margin:0;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}.admin-panel:fullscreen,.admin-panel:-webkit-full-screen{width:100vw;height:100vh;max-width:none;max-height:none;overflow:auto;box-sizing:border-box;padding:.6rem .75rem!important}.live-house-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}@media (max-width: 1200px){.live-house-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 640px){.live-house-grid{grid-template-columns:1fr}}.live-house-card{background:#fff;border:2px solid #e5e7eb;border-radius:10px;padding:.4rem .5rem .35rem;overflow:hidden}.live-house-card h3{margin:-.4rem -.5rem .3rem;padding:.3rem .5rem;font-size:.95rem;font-weight:700;line-height:1.2;border-radius:8px 8px 0 0}.live-house-post{padding:.2rem 0;border-top:1px solid #9ca3af}.live-house-post:first-of-type{border-top:none;padding-top:0}.live-house-post-label{margin:0 0 -.1rem;font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:#374151;transform:scale(.8);transform-origin:top left}.live-candidate-row{display:flex;justify-content:space-between;gap:.5rem;font-size:.85rem;line-height:1.25;padding:0;color:#111827}.live-candidate-row.leader{font-weight:700;color:#16a34a}.live-post-total{display:flex;justify-content:space-between;gap:.5rem;margin-top:.3rem;padding-top:.3rem;border-top:1px dashed #d1d5db;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:#4b5563}.admin-panel:fullscreen .live-candidate-row,.admin-panel:-webkit-full-screen .live-candidate-row{font-size:clamp(.8rem,1.55vh,1.3rem)}.admin-panel:fullscreen .live-house-post-label,.admin-panel:-webkit-full-screen .live-house-post-label{font-size:clamp(.72rem,1.25vh,1rem);transform:none;margin:0}.admin-panel:fullscreen .live-post-total,.admin-panel:-webkit-full-screen .live-post-total{font-size:clamp(.72rem,1.2vh,1rem)}.admin-panel:fullscreen .live-school-grid,.admin-panel:-webkit-full-screen .live-school-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.live-school-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,240px));gap:.75rem}.live-post-card{background:#fff;border:2px solid #e5e7eb;border-radius:10px;padding:.5rem .75rem;overflow:hidden}.live-post-card h3{margin:-.5rem -.75rem .5rem;padding:.45rem .75rem;font-size:.85rem;font-weight:700;border-radius:8px 8px 0 0}@media (max-width: 640px){.app-main:has(.page-card.admin){padding:.5rem}.page-card.admin{width:100%;padding:.85rem;border-radius:14px;gap:1rem}.page-card.admin h1{font-size:1.5rem}.admin-panel{padding:.75rem;border-radius:12px}.admin-tabs{display:grid;grid-template-columns:1fr 1fr;margin:.75rem 0 1rem}.admin-tab-button{padding:.5rem .4rem;font-size:.85rem}}.report-page{width:min(900px,100%);background:#fff;padding:2rem;border-radius:24px;box-shadow:0 20px 60px #0f172a1f;color:#111827}.report-status{padding:2rem;text-align:center;color:#4b5563}.report-error{color:#dc2626}.report-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.report-school-name{margin:0;font-size:.85rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4b5563}.report-page h1{margin:0 0 .25rem;font-size:1.75rem}.report-meta{margin:0 0 1.5rem;color:#6b7280;font-size:.95rem}.report-house{margin:1.5rem 0;padding:1rem;border:2px solid #e5e7eb;border-radius:12px}.report-house h2{margin:0 0 1rem;font-size:1.25rem;border-bottom:2px solid #3b82f6;padding-bottom:.5rem}.report-table{width:100%;border-collapse:collapse;margin-bottom:1.25rem}.report-table th{text-align:left;background:#f3f4f6;padding:.5rem .75rem;font-size:.9rem}.report-table td{padding:.5rem .75rem;border-bottom:1px solid #e5e7eb;overflow-wrap:anywhere}.report-votes{text-align:right;font-weight:600;width:8rem}.report-winner{background:#f0fdf4;font-weight:600}.report-result-word{font-weight:800}.report-final-status{margin:0 0 1.5rem;padding:.5rem .75rem;border:2px solid #111827;font-weight:700}.report-table th.report-branch-heading{background:#e5e7eb;font-size:1rem}.report-branch-total td{border-top:2px solid #111827;font-weight:700}.report-signature{margin-top:2rem;break-before:avoid;break-inside:avoid}.report-empty{color:#6b7280;font-style:italic}.report-code-cell{font-family:Courier New,Courier,monospace;font-weight:700;letter-spacing:.05em}.report-unallotted{color:#b91c1c;font-weight:700}.report-sealed-note{font-size:.85em;color:#1e293b}.report-repoll-note{font-size:.85em;color:#6d28d9;font-weight:600}@page{margin:14mm}@media print{.no-print,.app-header,.election-type-banner{display:none!important}.app-shell,.app-main{display:block!important;min-height:0!important}.app-main{padding:0!important;background:none!important}.report-page{box-shadow:none;border-radius:0;width:100%;padding:0}.report-table thead{display:table-header-group}.report-table tr{break-inside:avoid}.report-page h1,.report-page h2,.report-page h3{break-after:avoid}.report-house{break-inside:avoid}}.evm-panel{background:linear-gradient(180deg,#e8ecf3,#ccd3e0);border:2px solid #94a3b8;border-radius:16px;padding:1rem;box-shadow:inset 0 2px 3px #ffffffb3,inset 0 -6px 10px #0f172a1f,0 12px 28px #0f172a2e}.evm-header{background:linear-gradient(180deg,#1e3a8a,#17296b);color:#f8fafc;border-radius:10px;padding:.6rem .9rem;font-weight:700;letter-spacing:.06em;text-align:center;margin-bottom:.85rem;font-size:.8rem;text-transform:uppercase}.evm-rows{display:flex;flex-direction:column;gap:.6rem}.evm-row{display:flex;align-items:center;gap:.6rem;width:100%;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;padding:.5rem .65rem;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background-color .15s ease;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.evm-row:hover{border-color:#94a3b8}.evm-row:active{border-color:#1c64f2;background:#eef2ff}.evm-row.selected{border-color:#16a34a;background:#f0fdf4}.evm-slno{width:26px;height:26px;border-radius:5px;background:#1e293b;color:#f8fafc;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;flex-shrink:0}.evm-name{flex:1;font-weight:600;color:#1f2937;font-size:1rem;min-width:84px;word-break:normal;overflow-wrap:break-word}.evm-indicator{display:flex;flex-direction:column;align-items:center;gap:.3rem;flex-shrink:0}.evm-led{width:12px;height:12px;border-radius:50%;background:#7f1d1d;box-shadow:inset 0 1px 2px #00000080;flex-shrink:0;transition:background-color .15s ease,box-shadow .15s ease}.evm-row.selected .evm-led{background:#ef4444;box-shadow:0 0 9px 3px #ef4444d9,inset 0 1px 1px #fff9}.evm-vote-swatch{width:32px;height:22px;border-radius:5px;background:linear-gradient(180deg,#2563eb,#1d4ed8);box-shadow:0 2px #1e40af,0 3px 5px #00000040;flex-shrink:0;transition:transform .1s ease,box-shadow .1s ease}.evm-row.selected .evm-vote-swatch{transform:translateY(3px);box-shadow:0 0 #1e40af,inset 0 2px 4px #0006}.ballot-card{max-height:100%;padding:.6rem 1rem;gap:.5rem;border-radius:16px}.ballot-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.4rem}.ballot-scroll>*{flex-shrink:0}.ballot-title-row,.ballot-post-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:.75rem}.ballot-post-row{justify-content:flex-start}.ballot-card h1{font-size:1.25rem}.ballot-card p{font-size:.95rem}.ballot-post-name{font-weight:600;color:#1f2937}.ballot-footer{flex-shrink:0;display:flex;flex-direction:column;gap:.35rem}.ballot-footer .page-actions{justify-content:space-between}.ballot-more{padding:.25rem .6rem;text-align:center;font-weight:700;color:#92400e!important;background-color:#fef3c7;border:1px solid #f59e0b;border-radius:8px}.ballot-warning{padding:.25rem .6rem;font-weight:700;color:#b45309!important;background-color:#fffbeb;border:2px solid #f59e0b;border-radius:8px}.ballot-review-rows{display:flex;flex-direction:column;gap:.4rem}.ballot-review-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.3rem .75rem;background-color:#f0fdf4;border:2px solid #16a34a;border-radius:10px}.ballot-review-row>div{min-width:0}.ballot-review-post{font-size:.8rem!important;font-weight:600;color:#15803d!important}.ballot-review-name{font-size:1.05rem!important;font-weight:600;color:#166534!important}.ballot-card .button{padding:.5rem 1.25rem}.ballot-card .evm-panel{padding:.4rem;border-radius:12px;box-shadow:inset 0 2px 3px #ffffffb3,inset 0 -6px 10px #0f172a1f}.ballot-card .evm-header{padding:.2rem .75rem;margin-bottom:.4rem;border-radius:8px}.ballot-card .evm-rows{gap:.3rem}.ballot-card .evm-row{padding:.3rem .6rem}@media (min-width: 600px){.ballot-card .evm-indicator{flex-direction:row;gap:.6rem}}:root{color-scheme:light dark;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.5;font-weight:400;background-color:#f7f7f9;color:#1f2933}body{margin:0;min-height:100vh}*{box-sizing:border-box}button{font:inherit}
