:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --border: #d7e2ec;
    --text: #0f172a;
    --muted: #475569;
    --primary: #0f172a;
    --accent: #0f766e;
    --success: #166534;
    --success-bg: #dcfce7;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(13, 148, 136, 0.12), transparent 28%), linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
    color: var(--text);
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { padding: 0.1rem 0.35rem; border-radius: 8px; background: #e2e8f0; font-size: 0.9rem; }
.app-shell { min-height: 100vh; }
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(215,226,236,0.7); position: sticky; top: 0; z-index: 10;
}
.brand-lockup { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; }
.brand { color: var(--primary); font-family: 'Poppins', 'Segoe UI', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-subtitle { margin: 0; color: var(--muted); font-size: 0.9rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.topbar-user { color: var(--muted); font-size: 0.95rem; }
.topbar-toggle-btn { padding: 0.4rem 0.6rem; font-size: 1.5rem; line-height: 1; min-height: 0; background: transparent; border: none; color: var(--primary); cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.topbar-toggle-btn:hover { color: var(--accent); transform: scale(1.05); }
.vote-mobile-toggle { display: none; }
.shell-grid { display: grid; grid-template-columns: 1fr; transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.shell-grid-admin { grid-template-columns: 260px 1fr; }
body.sidebar-collapsed .shell-grid-admin { grid-template-columns: 0px 1fr; }
body.sidebar-collapsed .sidebar { overflow: hidden; padding-left: 0; padding-right: 0; border-right: none; opacity: 0; margin-left: -1px; }
.sidebar { padding: 1.5rem 1rem; border-right: 1px solid var(--border); background: rgba(255,255,255,0.65); transition: all 0.3s ease; white-space: nowrap; opacity: 1; overflow: hidden; }
.nav-link { display: block; padding: 0.9rem 1rem; border-radius: 16px; margin-bottom: 0.4rem; color: var(--muted); font-weight: 600; }
.nav-link:hover, .nav-link.active { background: var(--primary); color: #fff; text-decoration: none; }
.content-area { padding: 1.5rem; }
.hero-shell, .state-shell { max-width: 1180px; margin: 0 auto; }
.auth-shell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: stretch; }
.hero-panel, .card, .state-card {
    border: 1px solid rgba(215,226,236,0.9); border-radius: var(--radius); background: rgba(255,255,255,0.88); box-shadow: var(--shadow);
}
.hero-panel { padding: 2.5rem; background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(15,118,110,0.92)); color: #fff; }
.auth-card { padding: 2rem; }
.eyebrow { display: inline-flex; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.hero-panel .eyebrow, .state-card .eyebrow { color: #bfdbfe; }
.hero-title, .page-title, .section-title { margin: 0; font-family: 'Poppins', 'Segoe UI', sans-serif; line-height: 1.1; }
.hero-title { margin-top: 1rem; font-size: clamp(2rem, 5vw, 3.25rem); }
.hero-copy, .page-copy, .section-copy, .summary-note, .form-footnote, .state-card p { color: var(--muted); line-height: 1.7; }
.hero-panel .hero-copy { color: rgba(255,255,255,0.86); }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-badge, .pill {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.85rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; background: #e2e8f0; color: var(--primary);
}
.pill-success { background: var(--success-bg); color: var(--success); }
.card { padding: 1.5rem; }
.stat-card strong { display: block; margin-top: 0.5rem; font-size: 2rem; font-family: 'Poppins', 'Segoe UI', sans-serif; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.span-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-label, .summary-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem 1rem; background: #fff; color: var(--text); font: inherit;
}
.input:focus, .select:focus, .textarea:focus, .btn:focus, .nav-link:focus, .candidate-card:focus-within {
    outline: 3px solid rgba(15,118,110,0.2); outline-offset: 2px; border-color: var(--accent);
}
.form-actions, .inline-form, .table-actions, .modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.8rem 1.15rem; border-radius: 14px;
    border: 1px solid transparent; font-weight: 700; font-family: 'Poppins', 'Segoe UI', sans-serif; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0.55rem 0.8rem; font-size: 0.85rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { border-color: var(--border); background: #fff; color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.alert { padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid transparent; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(185,28,28,0.18); }
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(22,101,52,0.18); }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.candidate-card { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbfd); cursor: pointer; }
.candidate-radio { margin-top: 0.25rem; }
.candidate-avatar-wrap { flex-shrink: 0; }
.candidate-avatar { width: 68px; height: 68px; border-radius: 20px; object-fit: cover; border: 1px solid var(--border); }
.placeholder-avatar { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.candidate-body p, .summary-note { margin: 0.35rem 0 0; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row.compact { padding: 0.75rem 0; }
.review-layout, .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.table-wrap { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 720px; border-collapse: collapse; border: 2px solid var(--primary); }
.table th, .table td { padding: 0.9rem 0.75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); background: #f1f5f9; border-bottom: 2px solid var(--primary); }
.table tbody tr { transition: background-color 0.15s ease; }
.table tbody tr:hover { background-color: #f8fafc; }
.table-responsive-compact { min-width: 640px; }
.table-responsive-wide { min-width: 880px; }
.agent-cell { max-width: 360px; word-break: break-word; }
.empty-state-card {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(148, 163, 184, 0.72);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f4f8fc);
}
.empty-state-card strong,
.empty-state-row strong {
    display: block;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--primary);
}
.candidate-empty-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.candidate-empty-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(215, 226, 236, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.workflow-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,253,0.96));
}
.workflow-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}
.workflow-step {
    display: flex;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}
.workflow-step strong {
    display: block;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.workflow-step p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}
.workflow-step-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}
.workflow-step-active {
    border-color: rgba(15, 118, 110, 0.24);
    background: linear-gradient(180deg, #f0fdfa, #ecfeff);
}
.workflow-step-active .workflow-step-number {
    background: linear-gradient(180deg, #0f766e, #155e75);
    color: #ffffff;
}
.reference-box { padding: 1rem; border-radius: 14px; background: #f8fafc; border: 1px dashed #94a3b8; }
.toggle-row { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 20; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.5); }
.modal-card { position: relative; max-width: 460px; margin: 12vh auto 0; padding: 1.5rem; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 30; opacity: 0; transition: opacity 0.3s ease; }
body.sidebar-open { overflow: hidden; }
body.sidebar-open .sidebar-backdrop { display: block; opacity: 1; }

@media (max-width: 960px) {
    .auth-shell, .dashboard-grid, .review-layout, .stats-grid, .shell-grid-admin, .shell-grid-vote { grid-template-columns: 1fr; }
    .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; width: 280px; transform: translateX(-100%); border-right: 1px solid var(--border); border-bottom: none; }
    body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow); }
}
@media (max-width: 960px) {
    .grid-form, .page-header { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
    .topbar { flex-wrap: wrap; }
    .vote-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .topbar-actions { width: 100%; justify-content: space-between; margin-top: 0.5rem; }
    .content-area, .hero-panel, .auth-card, .card { padding: 1.2rem; }
    .candidate-empty-strip, .workflow-strip { grid-template-columns: 1fr; }
    .btn, .input, .select, .textarea, .nav-link { min-height: 48px; }
    .btn-sm { min-height: 44px; }
}
.app-shell-vote {
    background: linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%);
}
.shell-grid-vote {
    grid-template-columns: 240px 1fr;
}
body.sidebar-collapsed .shell-grid-vote {
    grid-template-columns: 0px 1fr;
}
.content-area-vote {
    padding: 1.5rem 1.5rem 2rem;
}
.vote-alerts {
    max-width: 1180px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}
.vote-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
}
.voter-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem 1.5rem;
    color: #ffffff;
    background: linear-gradient(180deg, #17365d 0%, #214a7b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.voter-hero-title {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.05;
}
.voter-hero-subtitle {
    margin: 0.7rem 0 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 0.7rem;
    max-width: 34rem;
}
.voter-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.4rem;
    text-align: right;
}
.voter-welcome,
.voter-division {
    margin: 0;
    color: #ffffff;
}
.voter-welcome {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 700;
}
.voter-division {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
}
.btn-hero {
    min-height: 38px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.ballot-panel {
    border: 1px solid #d7dde7;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(22, 39, 69, 0.08);
    padding: 1.4rem 1.2rem;
}
.ballot-panel-heading {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #e1e7ef;
}
.ballot-panel .section-title {
    color: #25456f;
    font-size: clamp(1.5rem, 2vw, 2rem);
}
.election-info-grid {
    display: grid;
    gap: 1rem;
}
.election-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 1.05rem;
}
.election-info-label {
    min-width: 10.5rem;
    color: #5b6b86;
    font-weight: 600;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}
.status-badge-open {
    background: #2cb34a;
    color: #ffffff;
}
.ballot-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}
.showcase-card {
    display: block;
    cursor: pointer;
}
.showcase-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.showcase-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d7dde7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(18, 37, 64, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.showcase-card:hover .showcase-frame {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(18, 37, 64, 0.12);
}
.showcase-selected {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    background: #1661b5;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
}
.showcase-media {
    display: block;
    aspect-ratio: 4 / 4;
    background: linear-gradient(180deg, #eff3f7, #dbe5ef);
}
.showcase-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showcase-media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #335f95, #1f3f69);
}
.showcase-placeholder-letter {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
}
.showcase-body {
    padding: 1rem 1rem 0.8rem;
    min-height: 7.75rem;
}
.showcase-name {
    display: block;
    color: #213b65;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
}
.showcase-role {
    display: block;
    margin-top: 0.3rem;
    color: #5f6f88;
    font-size: 0.95rem;
    line-height: 1.4;
}
.showcase-check {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 1rem;
    border: 2px solid #b8c3d4;
    border-radius: 999px;
    background: #ffffff;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.showcase-input:checked + .showcase-frame {
    border-color: #1e65b8;
    box-shadow: 0 18px 34px rgba(25, 76, 142, 0.16);
}
.showcase-input:checked + .showcase-frame .showcase-selected {
    opacity: 1;
    visibility: visible;
}
.showcase-input:checked + .showcase-frame .showcase-check {
    border-color: #1e65b8;
    background: #1e65b8;
}
.showcase-input:checked + .showcase-frame .showcase-check::before {
    content: '\2713';
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}
.review-summary-list {
    display: grid;
    gap: 0.8rem;
}
.review-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 1.05rem;
}
.review-summary-label {
    min-width: 10.5rem;
    color: #5b6b86;
    font-weight: 600;
}
.review-summary-list-final .review-summary-row {
    padding: 0.15rem 0;
}
.ballot-footer-actions {
    display: flex;
    justify-content: end;
    padding-top: 1rem;
    border-top: 1px solid #e1e7ef;
}
.ballot-footer-actions-between {
    justify-content: space-between;
}
.btn-ballot {
    min-width: 180px;
    min-height: 48px;
    border-radius: 10px;
    background: #1567c5;
}
.btn-ballot-secondary {
    min-width: 150px;
    min-height: 48px;
    border-radius: 10px;
}
.modal-card-vote {
    max-width: 520px;
}
@media (max-width: 1100px) {
    .ballot-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .voter-hero {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 1.5rem 1rem 1.25rem;
    }
    .voter-hero-meta {
        align-items: start;
        text-align: left;
    }
    .vote-page,
    .vote-alerts {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .ballot-panel {
        padding: 1rem;
    }
    .ballot-showcase-grid {
        grid-template-columns: 1fr;
    }
    .election-info-row,
    .review-summary-row,
    .ballot-footer-actions,
    .ballot-footer-actions-between {
        flex-direction: column;
        align-items: stretch;
    }
    .election-info-label,
    .review-summary-label {
        min-width: 0;
    }
}

.admin-users-header {
    align-items: stretch;
}
.admin-users-status-card {
    min-width: 280px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,247,245,0.96));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.admin-users-status-card strong {
    display: block;
    margin-top: 0.35rem;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
}
.admin-user-workbench {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.admin-user-card {
    position: relative;
    overflow: hidden;
}
.admin-user-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #1d4ed8);
}
.admin-user-editor {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}
.admin-user-danger-zone {
    margin-left: auto;
}
.admin-user-directory-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.admin-user-actions {
    justify-content: flex-start;
}
.table-row-active td {
    background: rgba(15, 118, 110, 0.05);
}
@media (max-width: 1180px) {
    .admin-user-workbench {
        grid-template-columns: 1fr;
    }
}

.auth-shell-premium {
    align-items: start;
}
.auth-hero-premium {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(191, 219, 254, 0.16), transparent 24%), linear-gradient(145deg, #0f2340 0%, #11456b 52%, #0f766e 100%);
}
.auth-hero-premium::after {
    content: '';
    position: absolute;
    inset: auto -60px -90px auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 65%);
}
.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.auth-info-grid,
.auth-step-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
.auth-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-info-card,
.auth-step-card {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.auth-info-card strong,
.auth-step-card strong {
    display: block;
    color: #ffffff;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.auth-info-card .summary-note,
.auth-step-card p {
    margin: 0.35rem 0 0;
    color: rgba(255,255,255,0.78);
}
.auth-step-number {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
}
.auth-card-premium {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.auth-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.auth-status-pill {
    background: linear-gradient(180deg, #d9f99d, #86efac);
    color: #14532d;
}
.auth-progress-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}
.auth-progress-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}
.auth-progress-item span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--primary);
    font-weight: 700;
}
.auth-progress-item strong {
    font-size: 0.92rem;
    line-height: 1.3;
}
.auth-progress-active {
    border-color: rgba(15, 118, 110, 0.22);
    background: linear-gradient(180deg, #f0fdfa, #ecfeff);
}
.auth-progress-active span {
    background: linear-gradient(180deg, #0f766e, #155e75);
    color: #ffffff;
}
.auth-form-premium .field-hint {
    color: #64748b;
    font-size: 0.86rem;
}
.auth-live-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfdff, #f5f8fc);
}
.auth-live-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-live-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 42px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #ffffff;
    color: #5b6b86;
    font-size: 0.92rem;
    font-weight: 600;
}
.auth-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: 0 0 0 6px rgba(203, 213, 225, 0.18);
}
.auth-live-item.is-valid {
    border-color: rgba(22, 101, 52, 0.22);
    background: #f0fdf4;
    color: #166534;
}
.auth-live-item.is-valid .auth-live-dot {
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.14);
}
.auth-submit-premium {
    min-height: 50px;
    border-radius: 16px;
    background: linear-gradient(180deg, #10213b, #0f172a);
}
.auth-foot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.auth-reference-box {
    background: linear-gradient(180deg, #f8fbff, #f1f5f9);
}
.auth-action-row {
    justify-content: space-between;
}
@media (max-width: 960px) {
    .auth-info-grid,
    .auth-foot-grid,
    .auth-live-panel-grid,
    .auth-progress-strip {
        grid-template-columns: 1fr;
    }
}

.card-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.candidate-empty-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.candidate-empty-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(215, 226, 236, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.candidate-empty-card strong {
    display: block;
    margin-top: 0.35rem;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    color: var(--primary);
}
.empty-state-row {
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}
.empty-state-row strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--primary);
}
.field-hint {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.4;
}
@media (max-width: 960px) {
    .candidate-empty-strip {
        grid-template-columns: 1fr;
    }
}

.admin-empty-state {
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98));
}
.table-empty {
    color: #64748b;
    text-align: center;
    padding: 1.5rem 0.75rem;
}


.auth-screen-body {
    background:
        radial-gradient(circle at 10% 15%, rgba(20, 184, 166, 0.14), transparent 24%),
        radial-gradient(circle at 88% 20%, rgba(99, 102, 241, 0.1), transparent 30%),
        linear-gradient(180deg, #e9f0f7 0%, #f4f7fb 100%);
    color: #1e293b;
}

.topbar-auth {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(148, 163, 184, 0.3);
}

.topbar-auth .brand {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    color: #1f2937;
}

.topbar-auth .brand-subtitle {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: #475569;
}

.shell-grid-auth {
    display: block;
}

.content-area-auth {
    padding: 2rem 1.5rem 3rem;
}

.auth-alerts {
    max-width: 1100px;
    margin: 0 auto 1rem;
}

.auth-portal {
    max-width: 1100px;
    margin: 0 auto;
}

.auth-stage {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 60px rgba(51, 65, 85, 0.12);
}

.auth-stage-compact {
    grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1fr);
}

.auth-rail {
    position: relative;
    padding: 2.25rem 2rem;
    background: linear-gradient(165deg, #334155 0%, #3f4f64 55%, #14b8a6 100%);
    color: #f8fafc;
}

.auth-rail::after {
    content: '';
    position: absolute;
    inset: auto -52px -52px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-mark,
.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-mark {
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.08);
}

.auth-headline {
    margin: 1rem 0 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.auth-lead {
    max-width: 20rem;
    margin: 1rem 0 0;
    color: rgba(248, 250, 252, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-rail-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
}

.auth-rail-item {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.22rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-rail-item strong {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 0.94rem;
}

.auth-rail-item span {
    color: rgba(248, 250, 252, 0.76);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-surface {
    display: grid;
    align-content: start;
    gap: 1.4rem;
    padding: 2.2rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: #334155;
}

.auth-surface-head {
    display: grid;
    gap: 0.5rem;
}

.auth-kicker {
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.1);
}

.auth-surface-title {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #1e293b;
}

.auth-form-simple {
    display: grid;
    gap: 1rem;
}

.auth-grid-tight {
    gap: 0.9rem;
}

.auth-form-simple .field {
    gap: 0.45rem;
}

.auth-form-simple .field-label {
    font-size: 0.76rem;
    color: #475569;
}

.auth-form-simple .input,
.auth-form-simple .select {
    min-height: 50px;
    border-radius: 16px;
    border-color: #94a3b8;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(148, 163, 184, 0.08);
}

.auth-form-simple .input:focus,
.auth-form-simple .select:focus {
    outline: 3px solid rgba(37, 99, 235, 0.14);
    border-color: #2563eb;
}

.auth-cta {
    min-height: 52px;
    margin-top: 0.2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #334155, #1e293b);
}

.auth-cta:hover {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
}

.auth-inline-note {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: #475569;
    font-size: 0.94rem;
}

.auth-inline-note a {
    font-weight: 700;
    text-decoration: none;
    color: #0f766e;
}

.auth-inline-note a:hover {
    text-decoration: underline;
}
.auth-inline-note a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .content-area-auth {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-stage,
    .auth-stage-compact {
        grid-template-columns: 1fr;
    }

    .auth-rail,
    .auth-surface {
        padding: 1.4rem;
    }

    .auth-lead {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .topbar-auth {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-inline-note {
        flex-direction: column;
    }
}

.auth-simple-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.auth-simple-card {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(51, 65, 85, 0.12);
}

.auth-simple-head {
    display: grid;
    gap: 0.55rem;
}

.auth-simple-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-simple-title {
    margin: 0;
    color: #334155;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.auth-simple-copy {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.auth-inline-note-simple {
    padding-top: 1rem;
}

@media (max-width: 640px) {
    .auth-simple-card {
        padding: 1.2rem;
        border-radius: 20px;
    }

    .auth-simple-wrap {
        max-width: 100%;
    }
}
.auth-motion-shell {
    position: relative;
}

.auth-motion-shell::before {
    content: '';
    position: absolute;
    inset: -18px auto auto -18px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2), transparent 68%);
    pointer-events: none;
    animation: authFloat 6s ease-in-out infinite;
}

.auth-motion-card {
    position: relative;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    animation: authCardIn 420ms ease-out forwards;
}

.auth-motion-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 18%, transparent 36%);
    transform: translateX(-140%);
    animation: authSheen 5.5s ease-in-out infinite 1.1s;
    pointer-events: none;
}

.auth-reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: authReveal 360ms ease-out forwards;
}

.auth-reveal-1 { animation-delay: 80ms; }
.auth-reveal-2 { animation-delay: 140ms; }
.auth-reveal-3 { animation-delay: 200ms; }
.auth-reveal-4 { animation-delay: 260ms; }

.auth-status-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.auth-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 140ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.auth-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: transform 140ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.auth-status-chip.is-ready {
    border-color: rgba(20, 184, 166, 0.28);
    background: rgba(20, 184, 166, 0.08);
    color: #0f766e;
    transform: translateY(-1px);
}

.auth-status-chip.is-ready .auth-status-dot {
    background: #14b8a6;
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12);
    transform: scale(1.08);
}

.auth-input {
    transition: transform 140ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.auth-input:hover {
    transform: translateY(-1px);
}

.auth-cta {
    position: relative;
    transition: transform 160ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(99, 102, 241, 0.16);
}

.auth-cta:active {
    transform: translateY(0) scale(0.985);
}

.auth-meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.auth-meter-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #5eead4);
    transition: width 220ms ease-out, background 220ms ease-out;
}

.auth-meter-bar.is-strong {
    background: linear-gradient(90deg, #14b8a6, #6366f1);
}

.auth-meter-bar.is-full {
    background: linear-gradient(90deg, #14b8a6, #6366f1, #4f46e5);
}

@keyframes authCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(10px, 12px, 0);
    }
}

@keyframes authSheen {
    0%, 100% {
        transform: translateX(-140%);
    }
    28%, 60% {
        transform: translateX(160%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-motion-shell::before,
    .auth-motion-card,
    .auth-motion-card::after,
    .auth-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .auth-status-chip,
    .auth-status-dot,
    .auth-input,
    .auth-cta,
    .auth-meter-bar {
        transition: none !important;
    }
}
.admin-dashboard-view {
    --admin-bg-1: #fff8f0;
    --admin-bg-2: #f3efe7;
    --admin-panel: #fffdf9;
    --admin-ink: #2f241c;
    --admin-muted: #6b5b4d;
    --admin-line: rgba(120, 91, 63, 0.16);
    --admin-accent: #c2410c;
    --admin-accent-soft: rgba(194, 65, 12, 0.1);
    --admin-highlight: #0f766e;
}

.admin-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1.25rem;
    padding: 1.6rem;
    border: 1px solid var(--admin-line);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--admin-bg-1) 0%, var(--admin-bg-2) 100%);
    box-shadow: 0 20px 44px rgba(47, 36, 28, 0.08);
}

.admin-dashboard-hero-copy {
    display: grid;
    gap: 0.6rem;
}

.admin-dashboard-kicker,
.admin-panel-kicker,
.admin-dashboard-card-label {
    margin: 0;
    color: var(--admin-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-dashboard-title {
    margin: 0;
    color: var(--admin-ink);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.admin-dashboard-copy {
    margin: 0;
    max-width: 38rem;
    color: var(--admin-muted);
    line-height: 1.65;
}

.admin-dashboard-hero-card,
.admin-panel-card,
.admin-metric-card {
    border-color: var(--admin-line);
    background: var(--admin-panel);
}

.admin-dashboard-hero-card {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.92);
}

.admin-dashboard-hero-card strong,
.admin-detail-row strong,
.admin-metric-card strong {
    color: var(--admin-ink);
}

.admin-dashboard-hero-card p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.55;
}

.admin-dashboard-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-dashboard-state-live {
    background: rgba(15, 118, 110, 0.12);
    color: var(--admin-highlight);
}

.admin-dashboard-state-idle {
    background: var(--admin-accent-soft);
    color: var(--admin-accent);
}

.admin-dashboard-stats {
    margin-bottom: 0;
}

.admin-metric-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(47, 36, 28, 0.06);
}

.admin-metric-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
}

.admin-metric-card p {
    margin: 0;
    color: var(--admin-muted);
}

.admin-metric-card strong {
    font-size: 2.2rem;
}

.admin-metric-card-1::before { background: #c2410c; }
.admin-metric-card-2::before { background: #7c3aed; }
.admin-metric-card-3::before { background: #0f766e; }
.admin-metric-card-4::before { background: #ca8a04; }

.admin-dashboard-panels {
    gap: 1.25rem;
}

.admin-panel-card {
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(47, 36, 28, 0.06);
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-panel-card .section-title {
    color: var(--admin-ink);
}

.admin-election-stack {
    display: grid;
    gap: 0.85rem;
}

.admin-detail-row,
.admin-log-row {
    border-color: var(--admin-line);
}

.admin-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--admin-line);
}

.admin-detail-row:last-child {
    border-bottom: none;
}

.admin-detail-row span {
    color: var(--admin-muted);
    font-weight: 600;
}

.admin-empty-card,
.admin-empty-row {
    background: linear-gradient(180deg, #fffdf9, #faf3ea);
    border-color: var(--admin-line);
}

.admin-empty-row p,
.admin-log-row .summary-note {
    color: var(--admin-muted);
}

@media (max-width: 960px) {
    .admin-dashboard-hero {
        grid-template-columns: 1fr;
    }
}
.admin-screen-body {
    background:
        radial-gradient(circle at 12% 10%, rgba(194, 65, 12, 0.09), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(15, 118, 110, 0.1), transparent 26%),
        linear-gradient(180deg, #f7f1e8 0%, #fbf8f2 100%);
}

.app-shell-admin {
    color: #2f241c;
}

.topbar-admin {
    background: rgba(255, 251, 245, 0.92);
    border-bottom-color: rgba(120, 91, 63, 0.14);
}

.topbar-admin .brand,
.topbar-admin .topbar-user {
    color: #2f241c;
}

.topbar-admin .brand-subtitle {
    color: #6b5b4d;
}

.pill-admin-role {
    background: rgba(194, 65, 12, 0.1);
    color: #c2410c;
}

.btn-admin-ghost {
    border-color: rgba(120, 91, 63, 0.18);
    background: #fffdf9;
    color: #2f241c;
}

.shell-grid-admin-theme {
    align-items: start;
}

.sidebar-admin {
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(247, 240, 231, 0.92));
    border-right-color: rgba(120, 91, 63, 0.14);
}

.sidebar-admin .nav-link {
    color: #6b5b4d;
    border: 1px solid transparent;
}

.sidebar-admin .nav-link:hover,
.sidebar-admin .nav-link.active {
    background: #2f241c;
    border-color: #2f241c;
    color: #fffaf5;
}

.sidebar-vote {
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.96), rgba(233, 243, 252, 0.94));
    border-right-color: rgba(59, 130, 246, 0.14);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}

.sidebar-vote .nav-link {
    color: #33506f;
    border: 1px solid transparent;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 240ms ease;
}

.sidebar-vote .nav-link:hover,
.sidebar-vote .nav-link.active {
    background: linear-gradient(135deg, #17365d, #1567c5);
    border-color: rgba(21, 103, 197, 0.22);
    color: #f8fbff;
    transform: translateX(2px);
}

.vote-sidebar-section {
    display: grid;
    gap: 0.35rem;
}

.vote-sidebar-label {
    display: inline-flex;
    margin: 0 0 0.6rem 0.2rem;
    color: #1567c5;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-sidebar-card {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.96));
    box-shadow: 0 14px 30px rgba(21, 103, 197, 0.08);
}

.vote-sidebar-card strong {
    color: #17365d;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.vote-sidebar-card p {
    margin: 0;
    color: #5b6b86;
    line-height: 1.6;
}

.vote-sidebar-pill {
    width: fit-content;
    margin-bottom: 0.15rem;
}

.vote-sidebar-signout {
    margin-top: 0.35rem;
    border-color: rgba(21, 103, 197, 0.18);
    background: #ffffff;
    color: #17365d;
}

.vote-sidebar-signout:hover {
    border-color: rgba(21, 103, 197, 0.32);
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #0f3b68;
}

.content-area-admin {
    padding: 1.75rem;
}

.content-area-admin .page-header .eyebrow,
.content-area-admin .summary-label,
.content-area-admin .field-label {
    color: #c2410c;
}

.content-area-admin .page-title,
.content-area-admin .section-title,
.content-area-admin h3,
.content-area-admin strong {
    color: #2f241c;
}

.content-area-admin .page-copy,
.content-area-admin .section-copy,
.content-area-admin .summary-note,
.content-area-admin p,
.content-area-admin td,
.content-area-admin th,
.content-area-admin label,
.content-area-admin span {
    color: #6b5b4d;
}

.content-area-admin .card,
.content-area-admin .reference-box,
.content-area-admin .empty-state-card,
.content-area-admin .empty-state-row,
.content-area-admin .modal-card {
    border-color: rgba(120, 91, 63, 0.14);
    background: #fffdf9;
    box-shadow: 0 14px 32px rgba(47, 36, 28, 0.05);
}

.content-area-admin .table th,
.content-area-admin .table td,
.content-area-admin .summary-row,
.content-area-admin .admin-detail-row,
.content-area-admin .admin-log-row {
    border-color: rgba(120, 91, 63, 0.14);
}

.content-area-admin .table th {
    color: #8a6f59;
}

.content-area-admin .input,
.content-area-admin .select,
.content-area-admin .textarea {
    border-color: rgba(120, 91, 63, 0.18);
    background: #fffaf5;
    color: #2f241c;
}

.content-area-admin .input:focus,
.content-area-admin .select:focus,
.content-area-admin .textarea:focus,
.content-area-admin .btn:focus,
.content-area-admin .nav-link:focus {
    outline: 3px solid rgba(15, 118, 110, 0.12);
    border-color: #0f766e;
}

.content-area-admin .btn-primary {
    background: linear-gradient(180deg, #2f241c, #4a3628);
    color: #fffaf5;
}

.content-area-admin .btn-primary:hover {
    background: linear-gradient(180deg, #c2410c, #9a3412);
}

.content-area-admin .btn-ghost {
    border-color: rgba(120, 91, 63, 0.18);
    background: #fffaf5;
    color: #2f241c;
}

.content-area-admin .btn-danger {
    background: linear-gradient(180deg, #b91c1c, #991b1b);
}

.content-area-admin .pill {
    background: rgba(194, 65, 12, 0.1);
    color: #c2410c;
}

.content-area-admin .pill-success {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.admin-alerts {
    margin-bottom: 1rem;
}

.alert-admin.alert-success {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.16);
    color: #0f766e;
}

.alert-admin.alert-error {
    background: rgba(185, 28, 28, 0.1);
    border-color: rgba(185, 28, 28, 0.14);
    color: #991b1b;
}

@media (max-width: 960px) {
    .content-area-admin {
        padding: 1rem;
    }

    .sidebar-admin {
        border-right: none;
        border-bottom: 1px solid rgba(120, 91, 63, 0.14);
    }
}
.vote-preview-shell {
    display: grid;
    gap: 1.5rem;
}

.vote-preview-card,
.vote-preview-panel {
    max-width: 1180px;
    margin: 0 auto;
}

.vote-preview-meta {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e1e7ef;
}

.vote-preview-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.vote-preview-grid {
    opacity: 0.96;
}

.showcase-card-locked {
    cursor: not-allowed;
}

.showcase-frame-locked {
    border-color: #d9e2ec;
    box-shadow: 0 10px 24px rgba(18, 37, 64, 0.08);
}

.showcase-selected-locked {
    opacity: 1;
    visibility: visible;
    background: #64748b;
}

.showcase-check-locked {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.showcase-check-locked::before {
    content: '\1F512';
    font-size: 0.95rem;
    color: #64748b;
}

@media (max-width: 720px) {
    .vote-preview-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
.vote-preview-shell {
    display: grid;
    gap: 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
}

.vote-preview-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.4rem;
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    transform: translateY(18px);
    opacity: 0;
    animation: votePreviewRise 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vote-preview-banner::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, #14b8a6, #334155);
}

.vote-preview-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 100%);
    transform: translateX(-125%);
    animation: votePreviewSweep 5.5s ease-in-out 0.9s infinite;
    pointer-events: none;
}

.vote-preview-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vote-preview-title {
    margin: 0.45rem 0 0;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.vote-preview-summary {
    max-width: 48rem;
    margin: 0.85rem 0 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.vote-preview-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0;
}

.vote-preview-fact {
    display: grid;
    gap: 0.4rem;
    padding: 0.95rem 1rem;
    background: rgba(241, 245, 249, 0.88);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 18px;
    min-width: 0;
}

.vote-preview-fact-wide {
    grid-column: 1 / -1;
}

.vote-preview-fact dt {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-preview-fact dd {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.vote-preview-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #334155;
    color: #f8fafc;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.vote-preview-groups {
    display: grid;
    gap: 1.35rem;
}

.vote-preview-group {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.15rem;
    padding: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    transform: translateY(24px);
    opacity: 0;
    animation: votePreviewRise 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(120ms + (var(--preview-index) * 110ms));
}

.vote-preview-group::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.75), rgba(99, 102, 241, 0.22), transparent 85%);
}

.vote-preview-group-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.vote-preview-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.vote-preview-group-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.vote-preview-group-note {
    margin: 0.45rem 0 0;
    color: #64748b;
    line-height: 1.6;
}

.vote-preview-candidate-list {
    display: grid;
    gap: 0.85rem;
}

.vote-preview-candidate {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.05rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 20px;
    transform: translateX(-18px);
    opacity: 0;
    animation: votePreviewSlide 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(220ms + (var(--preview-index) * 110ms) + (var(--candidate-index) * 70ms));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    will-change: transform, opacity;
}

.vote-preview-candidate::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #14b8a6, #6366f1);
    opacity: 0.95;
}

.vote-preview-candidate:hover {
    transform: translateX(0) translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.vote-preview-candidate-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: center;
    min-width: 0;
}

.vote-preview-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #334155, #1e293b);
    color: #f8fafc;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vote-preview-avatar-placeholder {
    background: linear-gradient(180deg, #334155, #0f172a);
}

.vote-preview-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-preview-avatar-letter {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.vote-preview-candidate-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.vote-preview-candidate-name {
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.35;
}

.vote-preview-candidate-role {
    color: #475569;
    line-height: 1.55;
}

.vote-preview-candidate-state {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0.75rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vote-preview-lock-dot {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    background: rgba(99, 102, 241, 0.08);
    position: relative;
    flex-shrink: 0;
}

.vote-preview-lock-dot::before {
    content: '\1F512';
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-size: 0.82rem;
}

.vote-preview-empty {
    max-width: 1160px;
    margin: 0 auto;
}

@keyframes votePreviewRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes votePreviewSlide {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes votePreviewSweep {
    0%,
    18%,
    100% {
        transform: translateX(-125%);
    }
    45%,
    62% {
        transform: translateX(125%);
    }
}

@media (max-width: 820px) {
    .vote-preview-facts,
    .vote-preview-candidate,
    .vote-preview-group-head {
        grid-template-columns: 1fr;
    }

    .vote-preview-candidate-state {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-preview-banner,
    .vote-preview-banner::after,
    .vote-preview-group,
    .vote-preview-candidate {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .vote-preview-candidate,
    .vote-preview-candidate:hover {
        transition: none;
        transform: none;
    }
}
.vote-preview-shell-spotlight {
    display: grid;
    gap: 1.6rem;
    max-width: 1180px;
    margin: 0 auto;
}

.vote-preview-banner-spotlight {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.4rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.99));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    transform: translateY(18px);
    opacity: 0;
    animation: votePreviewRise 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vote-preview-banner-spotlight::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: clamp(96px, 14vw, 180px);
    background: linear-gradient(180deg, #334155, #0f172a);
    clip-path: polygon(0 0, 100% 0, 68% 100%, 0 100%);
}

.vote-preview-banner-spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(20, 184, 166, 0.12) 38%, transparent 68%);
    transform: translateX(-120%);
    animation: votePreviewSweep 6s ease-in-out 0.9s infinite;
    pointer-events: none;
}

.vote-preview-banner-spotlight .vote-preview-banner-copy,
.vote-preview-banner-spotlight .vote-preview-facts {
    position: relative;
    z-index: 1;
}

.vote-preview-banner-spotlight .vote-preview-title {
    max-width: 13ch;
    margin: 0.55rem 0 0;
    color: #0f172a;
    font-size: clamp(2.1rem, 3.4vw, 3.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.vote-preview-banner-spotlight .vote-preview-summary {
    max-width: 42rem;
    margin: 0.9rem 0 0;
    color: #475569;
    line-height: 1.7;
}

.vote-preview-facts-spotlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.vote-preview-facts-spotlight .vote-preview-fact {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 18px;
}

.vote-preview-groups-spotlight {
    display: grid;
    gap: 1.5rem;
}

.vote-preview-group-spotlight {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.25rem;
    padding: 1.45rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.07);
    transform: translateY(24px);
    opacity: 0;
    animation: votePreviewRise 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(120ms + (var(--preview-index) * 110ms));
}

.vote-preview-group-spotlight::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: linear-gradient(180deg, #14b8a6, #6366f1);
}

.vote-preview-group-head-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.vote-preview-group-spotlight .vote-preview-group-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.75rem, 2.2vw, 2.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.vote-preview-group-spotlight .vote-preview-group-note {
    max-width: 42rem;
    margin: 0.5rem 0 0;
    color: #64748b;
    line-height: 1.6;
}

.vote-preview-kicker-section {
    margin-bottom: 0.85rem;
}

.vote-preview-candidate-state-head {
    padding-top: 0.2rem;
}

.vote-preview-spotlight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 1.15rem;
}

.vote-preview-featured-candidate {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    min-height: 320px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 62%, #eef2ff 100%);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 24px;
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    animation: votePreviewRiseScale 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(220ms + (var(--preview-index) * 110ms));
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.vote-preview-featured-candidate::after {
    content: '';
    position: absolute;
    inset: auto -10% -30% auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.24), rgba(20, 184, 166, 0));
    pointer-events: none;
}

.vote-preview-featured-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #334155, #0f172a);
}

.vote-preview-featured-media-placeholder {
    background: linear-gradient(180deg, #334155, #1e293b);
}

.vote-preview-featured-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-preview-featured-letter {
    color: #f8fafc;
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.08em;
}

.vote-preview-featured-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 0.8rem;
    padding: 1.5rem 1.5rem 1.6rem;
}

.vote-preview-featured-label {
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-preview-featured-name {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.vote-preview-featured-role {
    max-width: 30rem;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.vote-preview-featured-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    margin-top: 0.25rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.vote-preview-queue {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.vote-preview-queue-head,
.vote-preview-queue-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 18px;
}

.vote-preview-queue-empty {
    display: grid;
    justify-content: start;
}

.vote-preview-queue-empty p {
    margin: 0.35rem 0 0;
    color: #64748b;
}

.vote-preview-queue-label,
.vote-preview-queue-count {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vote-preview-queue-item {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.05rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 20px;
    transform: translateX(-18px);
    opacity: 0;
    animation: votePreviewSlide 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(320ms + (var(--preview-index) * 110ms) + (var(--candidate-index) * 85ms));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    will-change: transform, opacity;
}

.vote-preview-queue-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #14b8a6, #6366f1);
}

.vote-preview-queue-item:hover {
    transform: translateX(0) translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.vote-preview-group-spotlight .vote-preview-candidate-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: center;
    min-width: 0;
}

.vote-preview-group-spotlight .vote-preview-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #334155, #1e293b);
    color: #f8fafc;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vote-preview-group-spotlight .vote-preview-avatar-placeholder {
    background: linear-gradient(180deg, #334155, #0f172a);
}

.vote-preview-group-spotlight .vote-preview-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-preview-group-spotlight .vote-preview-avatar-letter {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.vote-preview-group-spotlight .vote-preview-candidate-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.vote-preview-group-spotlight .vote-preview-candidate-name {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.35;
}

.vote-preview-group-spotlight .vote-preview-candidate-role {
    color: #475569;
    line-height: 1.55;
}

@keyframes votePreviewRiseScale {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .vote-preview-facts-spotlight,
    .vote-preview-group-head-spotlight,
    .vote-preview-spotlight-layout,
    .vote-preview-featured-candidate,
    .vote-preview-queue-item {
        grid-template-columns: 1fr;
    }

    .vote-preview-candidate-state-head,
    .vote-preview-group-spotlight .vote-preview-candidate-state {
        white-space: normal;
    }

    .vote-preview-queue-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .vote-preview-banner-spotlight,
    .vote-preview-group-spotlight {
        padding: 1.15rem;
        border-radius: 22px;
    }

    .vote-preview-banner-spotlight::before {
        width: 72px;
    }

    .vote-preview-featured-copy {
        padding: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-preview-banner-spotlight,
    .vote-preview-banner-spotlight::after,
    .vote-preview-group-spotlight,
    .vote-preview-featured-candidate,
    .vote-preview-queue-item {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .vote-preview-queue-item,
    .vote-preview-queue-item:hover {
        transition: none;
        transform: none;
    }
}
.vote-preview-shell-slate {
    display: grid;
    gap: 1.7rem;
    max-width: 1180px;
    margin: 0 auto;
}

.vote-preview-banner-slate {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.35rem;
    padding: 1.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.07);
    transform: translateY(18px);
    opacity: 0;
    animation: votePreviewRise 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.vote-preview-banner-slate::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 14px;
    background: linear-gradient(180deg, #334155, #14b8a6);
}

.vote-preview-banner-slate::after {
    content: '';
    position: absolute;
    inset: auto 2rem -3rem auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.16), rgba(20, 184, 166, 0));
    pointer-events: none;
}

.vote-preview-banner-copy-slate,
.vote-preview-facts-slate {
    position: relative;
    z-index: 1;
}

.vote-preview-banner-slate .vote-preview-title {
    max-width: 12ch;
    margin: 0.55rem 0 0;
    color: #0f172a;
    font-size: clamp(2.2rem, 3.5vw, 3.7rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.vote-preview-banner-slate .vote-preview-summary {
    max-width: 48rem;
    margin: 0.9rem 0 0;
    color: #475569;
    line-height: 1.75;
}

.vote-preview-facts-slate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin: 0;
}

.vote-preview-fact-slate {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    background: rgba(241, 245, 249, 0.72);
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 18px;
}

.vote-preview-fact-slate dt {
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-preview-fact-slate dd {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.vote-preview-groups-slate {
    display: grid;
    gap: 1.55rem;
}

.vote-preview-group-slate {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.2rem;
    padding: 1.45rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.06);
    transform: translateY(24px);
    opacity: 0;
    animation: votePreviewRise 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(120ms + (var(--preview-index) * 110ms));
}

.vote-preview-group-slate::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #334155, rgba(20, 184, 166, 0.55), transparent 78%);
}

.vote-preview-group-head-slate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.vote-preview-group-title-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.vote-preview-slate-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 18px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.vote-preview-group-title-slate {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.85rem, 2.4vw, 2.8rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.vote-preview-group-note-slate {
    max-width: 42rem;
    margin: 0.45rem 0 0;
    color: #64748b;
    line-height: 1.65;
}

.vote-preview-candidate-state-slate {
    padding-top: 0.2rem;
}

.vote-preview-slate-list {
    display: grid;
    gap: 0.9rem;
}

.vote-preview-slate-item {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 1.05rem;
    align-items: center;
    min-height: 150px;
    padding: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 24px;
    transform: translateY(18px);
    opacity: 0;
    animation: votePreviewRise 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(220ms + (var(--preview-index) * 100ms) + (var(--candidate-index) * 80ms));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    will-change: transform, opacity;
}

.vote-preview-slate-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #334155, #14b8a6);
}

.vote-preview-slate-item:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.34);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.vote-preview-slate-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 130px;
    border-radius: 18px;
    background: linear-gradient(180deg, #334155, #0f172a);
    overflow: hidden;
}

.vote-preview-slate-media-placeholder {
    background: linear-gradient(180deg, #334155, #1e293b);
}

.vote-preview-slate-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-preview-slate-letter {
    color: #f8fafc;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.vote-preview-slate-body {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

.vote-preview-slate-copy {
    display: grid;
    gap: 0.3rem;
}

.vote-preview-slate-name {
    color: #0f172a;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.vote-preview-slate-role {
    max-width: 40rem;
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.vote-preview-slate-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vote-preview-slate-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.1);
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.vote-preview-slate-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0.8rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .vote-preview-facts-slate,
    .vote-preview-group-head-slate,
    .vote-preview-slate-item {
        grid-template-columns: 1fr;
    }

    .vote-preview-group-title-wrap {
        grid-template-columns: auto 1fr;
    }

    .vote-preview-slate-lock,
    .vote-preview-candidate-state-slate {
        padding-left: 0;
        white-space: normal;
    }

    .vote-preview-slate-media {
        min-height: 210px;
    }
}

@media (max-width: 640px) {
    .vote-preview-banner-slate,
    .vote-preview-group-slate {
        padding: 1.15rem;
        border-radius: 22px;
    }

    .vote-preview-banner-slate .vote-preview-title {
        max-width: none;
    }

    .vote-preview-slate-number {
        width: 2.7rem;
        height: 2.7rem;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-preview-banner-slate,
    .vote-preview-group-slate,
    .vote-preview-slate-item {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .vote-preview-slate-item,
    .vote-preview-slate-item:hover {
        transition: none;
        transform: none;
    }
}
.vote-preview-banner-slate {
    background: linear-gradient(180deg, #fffefb, #faf7f2);
    border-color: rgba(120, 113, 108, 0.18);
    box-shadow: 0 28px 70px rgba(68, 64, 60, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.vote-preview-banner-slate::before {
    background: linear-gradient(180deg, #44403c, #14b8a6);
}

.vote-preview-banner-slate::after {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0));
}

.vote-preview-banner-slate .vote-preview-title,
.vote-preview-group-title-slate,
.vote-preview-slate-name,
.vote-preview-fact-slate dd {
    color: #1f2937;
}

.vote-preview-banner-slate .vote-preview-summary,
.vote-preview-group-note-slate,
.vote-preview-slate-role {
    color: #57534e;
}

.vote-preview-fact-slate {
    background: rgba(250, 247, 242, 0.92);
    border-color: rgba(168, 162, 158, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.vote-preview-fact-slate dt {
    color: #78716c;
}

.vote-preview-group-slate {
    background: linear-gradient(180deg, #fffefb, #fcfaf7);
    border-color: rgba(120, 113, 108, 0.16);
    box-shadow: 0 24px 56px rgba(68, 64, 60, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.vote-preview-group-slate::before {
    background: linear-gradient(90deg, #57534e, rgba(20, 184, 166, 0.42), transparent 78%);
}

.vote-preview-slate-number {
    background: #f3ede4;
    color: #57534e;
    box-shadow: inset 0 0 0 1px rgba(168, 162, 158, 0.24);
}

.vote-preview-slate-item {
    background: linear-gradient(135deg, #fffefb, #f8f5ef);
    border-color: rgba(168, 162, 158, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.vote-preview-slate-item::before {
    background: linear-gradient(180deg, #57534e, #14b8a6);
}

.vote-preview-slate-item:hover {
    border-color: rgba(20, 184, 166, 0.28);
    box-shadow: 0 18px 34px rgba(68, 64, 60, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.vote-preview-slate-media {
    background: linear-gradient(180deg, #57534e, #292524);
}

.vote-preview-slate-media-placeholder {
    background: linear-gradient(180deg, #57534e, #44403c);
}

.vote-preview-slate-tag {
    background: rgba(20, 184, 166, 0.08);
    color: #0f766e;
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.12);
}

.vote-preview-slate-lock,
.vote-preview-candidate-state-slate {
    color: #57534e;
}

.vote-preview-lock-dot {
    border-color: rgba(20, 184, 166, 0.2);
    background: rgba(20, 184, 166, 0.08);
}
.vote-preview-banner-slate-rich {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
    gap: 1.2rem;
    align-items: start;
}

.vote-preview-facts-slate-rich {
    grid-column: 1 / -1;
}

.vote-preview-live-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-height: 100%;
    padding: 1.2rem 1.25rem;
    background: linear-gradient(180deg, rgba(68, 64, 60, 0.98), rgba(41, 37, 36, 0.98));
    border: 1px solid rgba(120, 113, 108, 0.24);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    transform: translateY(14px);
    opacity: 0;
    animation: votePreviewRise 620ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.vote-preview-live-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #14b8a6, #f59e0b);
}

.vote-preview-live-panel::after {
    content: '';
    position: absolute;
    inset: auto -2.5rem -3rem auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0));
    pointer-events: none;
}

.vote-preview-live-label,
.vote-preview-live-zone {
    position: relative;
    z-index: 1;
}

.vote-preview-live-label {
    color: rgba(240, 253, 250, 0.84);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vote-preview-live-time {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #ffffff;
}

.vote-preview-live-date {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.98rem;
    line-height: 1.55;
}

.vote-preview-live-zone {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.45rem;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(236, 253, 245, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vote-preview-fact-emphasis {
    grid-column: span 1;
    background: linear-gradient(180deg, #f8f3ea, #f6efe5);
}

.vote-preview-fact-emphasis dd {
    font-size: 1.1rem;
}

@media (max-width: 920px) {
    .vote-preview-banner-slate-rich {
        grid-template-columns: 1fr;
    }

    .vote-preview-live-panel {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-preview-live-panel {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
.vote-page-mobile {
    display: grid;
    gap: 1rem;
    max-width: 860px;
    padding-bottom: 7rem;
}

.vote-mobile-header {
    display: grid;
    gap: 0.65rem;
    padding: 0.35rem 0 0.15rem;
}

.vote-mobile-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.1);
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-mobile-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.vote-mobile-subtitle {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.vote-mobile-overview {
    display: grid;
    gap: 0.75rem;
}

.vote-mobile-overview-card {
    display: grid;
    gap: 0.22rem;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.vote-mobile-overview-primary {
    border-color: rgba(20, 184, 166, 0.24);
}

.vote-mobile-overview-label {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-mobile-overview-card strong {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.45;
}

.vote-mobile-overview-meta,
.vote-mobile-status-dot {
    color: #475569;
    line-height: 1.5;
}

.vote-mobile-groups {
    display: grid;
    gap: 0.9rem;
}

.vote-mobile-group {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.86);
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.vote-mobile-group-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.vote-mobile-group-step {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-mobile-group-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.vote-mobile-group-rule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vote-mobile-choice-list {
    display: grid;
    gap: 0.7rem;
}

.vote-mobile-choice {
    display: block;
    cursor: pointer;
}

.vote-mobile-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vote-mobile-choice-frame {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 84px;
    padding: 0.8rem;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vote-mobile-choice:hover .vote-mobile-choice-frame {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.vote-mobile-choice-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #334155, #0f172a);
}

.vote-mobile-choice-media-placeholder {
    background: linear-gradient(180deg, #334155, #1e293b);
}

.vote-mobile-choice-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vote-mobile-choice-letter {
    color: #f8fafc;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.vote-mobile-choice-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.vote-mobile-choice-name {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.vote-mobile-choice-role {
    color: #64748b;
    line-height: 1.5;
}

.vote-mobile-choice-mark {
    width: 26px;
    height: 26px;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame {
    border-color: #14b8a6;
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.12);
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame .vote-mobile-choice-mark {
    border-color: #14b8a6;
    background: #14b8a6;
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame .vote-mobile-choice-mark::before {
    content: '\2713';
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.vote-mobile-submitbar {
    position: fixed;
    left: max(0.85rem, env(safe-area-inset-left));
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
}

.vote-mobile-submitbar-copy {
    display: grid;
    gap: 0.14rem;
}

.vote-mobile-submitbar-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-mobile-submitbar-count {
    color: #0f172a;
    font-size: 1.08rem;
}

.vote-mobile-submitbar-note {
    color: #475569;
    line-height: 1.45;
}

.vote-mobile-submit {
    min-width: 148px;
    min-height: 52px;
    border-radius: 16px;
    background: #334155;
}

@media (min-width: 900px) {
    .vote-page-mobile {
        gap: 1.2rem;
        padding-bottom: 2rem;
    }

    .vote-mobile-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vote-mobile-submitbar {
        position: sticky;
        bottom: 1rem;
        left: auto;
        right: auto;
        margin-top: 0.4rem;
    }
}

@media (max-width: 640px) {
    .vote-page-mobile {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .vote-mobile-group-head,
    .vote-mobile-choice-frame,
    .vote-mobile-submitbar {
        grid-template-columns: 1fr;
    }

    .vote-mobile-group-head {
        display: grid;
    }

    .vote-mobile-choice-frame {
        display: grid;
    }

    .vote-mobile-choice-mark {
        justify-self: start;
    }

    .vote-mobile-submit {
        width: 100%;
    }
}
.vote-preview-countdown {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.22rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vote-preview-countdown-label {
    color: rgba(240, 253, 250, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-preview-countdown-value {
    color: #fef3c7;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
}
.vote-mobile-choice-frame {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 76px;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
}

.vote-mobile-choice-media {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.vote-mobile-choice-letter {
    font-size: 1.35rem;
}

.vote-mobile-choice-name {
    font-size: 0.98rem;
}

.vote-mobile-choice-role {
    font-size: 0.92rem;
}

.vote-mobile-choice-state {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    min-width: 72px;
}

.vote-mobile-choice-mark {
    width: 28px;
    height: 28px;
}

.vote-mobile-choice-state-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 1));
    border-color: #14b8a6;
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.12);
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame .vote-mobile-choice-state-label {
    color: #0f766e;
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame .vote-mobile-choice-state-label::before {
    content: 'Selected';
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame .vote-mobile-choice-state-label {
    font-size: 0;
}

.vote-mobile-choice-input:checked + .vote-mobile-choice-frame .vote-mobile-choice-state-label::before {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.vote-preview-slate-item {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    min-height: 114px;
    padding: 0.7rem;
    border-radius: 20px;
}

.vote-preview-slate-media {
    min-height: 96px;
    border-radius: 14px;
}

.vote-preview-slate-letter {
    font-size: 2rem;
}

.vote-preview-slate-name {
    font-size: clamp(1.15rem, 1.6vw, 1.6rem);
}

.vote-preview-slate-role {
    line-height: 1.55;
}

@media (max-width: 640px) {
    .vote-mobile-choice-frame {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.7rem;
    }

    .vote-mobile-choice-state {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: center;
        min-width: 0;
    }

    .vote-preview-slate-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .vote-preview-slate-lock {
        grid-column: 1 / -1;
    }
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
}

.brand-lockup:hover {
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    background: #ffffff;
    flex-shrink: 0;
}

.brand-copy {
    display: grid;
    gap: 0.18rem;
}

.voter-hero-logo .voter-hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.voter-hero-brand-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .voter-hero-logo .voter-hero-brand {
        align-items: flex-start;
    }

    .voter-hero-brand-logo {
        width: 68px;
        height: 68px;
    }
}

.results-monitor {
    display: grid;
    gap: 1.5rem;
}

.results-monitor-hero {
    position: relative;
    display: grid;
    gap: 1.25rem;
    padding: 1.75rem;
    background: linear-gradient(140deg, #fffdf8 0%, #f7f2e8 58%, #efe7db 100%);
    border: 1px solid rgba(120, 113, 108, 0.18);
    box-shadow: 0 24px 60px rgba(65, 54, 43, 0.08);
    overflow: hidden;
}

.results-monitor-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.5rem;
    background: linear-gradient(180deg, #8b5e34 0%, #14b8a6 100%);
}

.results-monitor-masthead {
    display: grid;
    gap: 0.65rem;
    max-width: 54rem;
    padding-left: 0.75rem;
}

.results-monitor-kicker,
.results-lane-kicker,
.results-monitor-feed-label,
.results-monitor-signal-label,
.results-monitor-empty-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c6a59;
    font-weight: 700;
}

.results-monitor-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: #1f2937;
    max-width: 11ch;
}

.results-monitor-copy {
    margin: 0;
    max-width: 58rem;
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.7;
}

.results-monitor-command-rail {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.results-monitor-signal {
    display: grid;
    gap: 0.5rem;
    padding: 1.15rem 1.2rem;
    background: rgba(255, 252, 245, 0.88);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.results-monitor-signal-primary {
    background: linear-gradient(135deg, #2b3130 0%, #3f342b 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.results-monitor-signal-primary .results-monitor-signal-label,
.results-monitor-signal-primary .results-monitor-signal-value,
.results-monitor-signal-primary .results-monitor-signal-meta {
    color: #f8f3eb;
}

.results-monitor-signal-value {
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.results-monitor-signal-meta,
.results-monitor-feed-value,
.results-candidate-platform {
    margin: 0;
    color: #5b6470;
}

.results-monitor-status,
.results-monitor-inline-value {
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #1f2937;
}

.results-monitor-signal-stack {
    align-content: space-between;
}

.results-monitor-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.results-monitor-feed-item {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.15rem;
    background: #fffdfa;
    border: 1px solid rgba(120, 113, 108, 0.14);
}

.results-monitor-feed-refresh {
    background: linear-gradient(135deg, #2a3433 0%, #374644 100%);
}

.results-monitor-feed-refresh .results-monitor-feed-label,
.results-monitor-feed-refresh .results-monitor-feed-value,
.results-monitor-feed-refresh .results-monitor-pulse {
    color: #f7f4ed;
}

.results-monitor-feed-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

.results-monitor-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.results-monitor-pulse span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #14b8a6;
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    animation: results-monitor-pulse 1.8s ease-out infinite;
}

.results-monitor-lanes {
    display: grid;
    gap: 1.25rem;
}

.results-lane {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, #fffdfa 0%, #fbf7ef 100%);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: 0 22px 48px rgba(68, 56, 44, 0.06);
    transform: translateY(18px);
    opacity: 0;
    animation: results-lane-rise 0.6s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: calc(var(--lane-index, 0) * 110ms);
}

.results-lane-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(120, 113, 108, 0.12);
}

.results-lane-title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #1f2937;
}

.results-lane-score {
    display: grid;
    justify-items: end;
    color: #6b7280;
}

.results-lane-score strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #1f2937;
}

.results-lane-candidates {
    display: grid;
    gap: 0.9rem;
}

.results-candidate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(120, 113, 108, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.results-candidate::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.35rem;
    background: #8f7b67;
}

.results-candidate.is-leading {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 18px 34px rgba(20, 184, 166, 0.12);
}

.results-candidate.is-leading::before {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

.results-candidate:hover {
    transform: translateY(-2px);
}

.results-candidate-media {
    width: 5rem;
    height: 5rem;
    overflow: hidden;
    background: #ddd4c7;
    border: 1px solid rgba(120, 113, 108, 0.16);
}

.results-candidate-media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #453a33 0%, #6f655f 100%);
}

.results-candidate-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.results-candidate-letter {
    font-size: 2rem;
    font-weight: 800;
    color: #f9f5ee;
}

.results-candidate-body {
    display: grid;
    gap: 0.75rem;
}

.results-candidate-copy,
.results-candidate-scoreboard {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-candidate-name {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #1f2937;
}

.results-candidate-votes {
    font-size: 1.05rem;
    color: #1f2937;
}

.results-candidate-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.results-candidate-meter {
    height: 0.5rem;
    background: rgba(191, 173, 151, 0.24);
    overflow: hidden;
}

.results-candidate-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8b5e34 0%, #14b8a6 100%);
    transition: width 280ms ease;
}

.results-monitor-empty {
    display: grid;
    gap: 0.75rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #fffdfa 0%, #f6efe5 100%);
    border: 1px solid rgba(120, 113, 108, 0.14);
}

.results-monitor-empty h2,
.results-monitor-empty p {
    margin: 0;
}

.monitor-flash {
    animation: results-monitor-flash 420ms ease;
}

@keyframes results-monitor-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(20, 184, 166, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

@keyframes results-lane-rise {
    from {
        transform: translateY(18px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes results-monitor-flash {
    0% {
        color: #14b8a6;
        transform: translateY(-1px);
    }
    100% {
        color: inherit;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .results-monitor-command-rail,
    .results-monitor-feed {
        grid-template-columns: 1fr;
    }

    .results-candidate-copy,
    .results-candidate-scoreboard,
    .results-lane-head {
        align-items: start;
        justify-content: start;
    }
}

@media (max-width: 720px) {
    .results-monitor-hero,
    .results-lane,
    .results-monitor-empty {
        padding: 1.1rem;
    }

    .results-candidate {
        grid-template-columns: 1fr;
    }

    .results-candidate-media {
        width: 4.25rem;
        height: 4.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .results-monitor-pulse span,
    .results-lane,
    .monitor-flash {
        animation: none;
    }

    .results-candidate,
    .results-candidate-meter span {
        transition: none;
    }
}

.vote-mobile-header-rich {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.vote-mobile-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.vote-mobile-live-results {
    min-width: 10.5rem;
}

.vote-mobile-overview-rich {
    align-items: stretch;
}

.vote-mobile-overview-timer strong {
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.vote-preview-actions,
.vote-results-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.vote-results-monitor .results-monitor-title {
    max-width: 13ch;
}

.vote-results-inline-small {
    font-size: 1rem;
    line-height: 1.3;
}

@media (max-width: 720px) {
    .vote-mobile-header-rich {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-mobile-header-actions,
    .vote-preview-actions,
    .vote-results-actions {
        justify-content: stretch;
    }

    .vote-mobile-live-results,
    .vote-preview-actions .btn,
    .vote-results-actions .btn {
        width: 100%;
    }
}


.pill-voter-role {
    background: rgba(20, 184, 166, 0.1);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.2);
}

.auth-inline-note-utility {
    justify-content: flex-end;
    margin-top: -0.35rem;
    margin-bottom: 0.35rem;
}

.auth-inline-note-utility a {
    font-weight: 700;
    color: #334155;
}

.vote-screen-body .content-area-vote {
    padding-top: 1.5rem;
}

.brand-lockup {
    min-width: 0;
    max-width: min(100%, 28rem);
}

.brand-logo {
    display: block;
    max-width: 58px;
    max-height: 58px;
}

.brand-copy {
    min-width: 0;
}

.brand,
.brand-subtitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.auth-brand-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.auth-brand-title {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
    color: #334155;
}

@media (max-width: 720px) {
    .auth-brand-logo {
        width: 56px;
        height: 56px;
    }

    .auth-brand-title {
        font-size: 0.86rem;
    }
}

.vote-results-stage {
    display: grid;
    gap: 1.6rem;
}

.vote-results-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
    gap: 1.2rem;
    padding: 1.8rem;
    background: linear-gradient(145deg, #fffdf8 0%, #f3eee3 62%, #e8ddd0 100%);
    border: 1px solid rgba(120, 113, 108, 0.16);
    box-shadow: 0 24px 60px rgba(73, 59, 44, 0.08);
    position: relative;
    overflow: hidden;
}

.vote-results-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.5rem;
    background: linear-gradient(180deg, #14b8a6 0%, #8b5e34 100%);
}

.vote-results-hero-copy {
    display: grid;
    gap: 0.8rem;
    padding-left: 0.75rem;
    align-content: start;
}

.vote-results-kicker,
.vote-results-lane-step,
.vote-results-metric-label,
.vote-results-feature-label,
.vote-results-empty-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c6a59;
    font-weight: 800;
}

.vote-results-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    color: #1f2937;
    max-width: 11ch;
}

.vote-results-copy {
    margin: 0;
    color: #475569;
    max-width: 52rem;
    font-size: 1.04rem;
    line-height: 1.75;
}

.vote-results-clock {
    display: grid;
    gap: 0.6rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, #2d2a27 0%, #43352f 100%);
    color: #f8f4ed;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.vote-results-clock-label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 249, 240, 0.76);
}

.vote-results-clock-time {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.vote-results-clock-date {
    color: rgba(255, 249, 240, 0.82);
}

.vote-results-clock-actions {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vote-results-ribbon {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.vote-results-metric {
    display: grid;
    gap: 0.45rem;
    padding: 1.15rem 1.2rem;
    background: #fffdfa;
    border: 1px solid rgba(120, 113, 108, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.vote-results-metric-primary {
    background: linear-gradient(135deg, #25303a 0%, #0f766e 100%);
}

.vote-results-metric-primary .vote-results-metric-label,
.vote-results-metric-primary .vote-results-metric-value,
.vote-results-metric-primary .vote-results-metric-copy {
    color: #f8fafc;
}

.vote-results-metric-value {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
}

.vote-results-metric-inline {
    font-size: 1.3rem;
    line-height: 1.2;
    color: #1f2937;
}

.vote-results-metric-copy {
    margin: 0;
    color: #64748b;
}

.vote-results-lanes {
    display: grid;
    gap: 1.25rem;
}

.vote-results-lane {
    display: grid;
    gap: 1rem;
    padding: 1.3rem;
    background: linear-gradient(180deg, #fffdf9 0%, #f8f2e8 100%);
    border: 1px solid rgba(120, 113, 108, 0.14);
    box-shadow: 0 24px 50px rgba(63, 53, 42, 0.06);
    opacity: 0;
    transform: translateY(20px);
    animation: vote-results-rise 0.65s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: calc(var(--lane-index, 0) * 100ms);
}

.vote-results-lane-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(120, 113, 108, 0.12);
}

.vote-results-lane-title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #1f2937;
}

.vote-results-lane-meta {
    display: grid;
    justify-items: end;
    color: #6b7280;
}

.vote-results-lane-meta strong {
    font-size: 2rem;
    line-height: 1;
    color: #1f2937;
}

.vote-results-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1rem;
}

.vote-results-feature {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 113, 108, 0.12);
    position: relative;
    overflow: hidden;
}

.vote-results-feature::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.4rem;
    background: #8f7b67;
}

.vote-results-feature.is-leading::before {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

.vote-results-feature-media {
    min-height: 260px;
    background: #e7dccf;
    overflow: hidden;
    border: 1px solid rgba(120, 113, 108, 0.12);
}

.vote-results-feature-media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #403833 0%, #756a61 100%);
}

.vote-results-feature-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vote-results-feature-letter {
    font-size: 4rem;
    font-weight: 800;
    color: #fffdf9;
}

.vote-results-feature-copy {
    display: grid;
    align-content: center;
    gap: 0.7rem;
}

.vote-results-feature-name {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #1f2937;
}

.vote-results-feature-platform,
.vote-results-queue-platform {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.vote-results-feature-score {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.vote-results-feature-score strong {
    font-size: 1.3rem;
    color: #1f2937;
}

.vote-results-feature-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

.vote-results-feature-meter {
    height: 0.65rem;
    background: rgba(191, 173, 151, 0.24);
    overflow: hidden;
}

.vote-results-feature-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8b5e34 0%, #14b8a6 100%);
    transition: width 260ms ease;
}

.vote-results-queue {
    display: grid;
    gap: 0.85rem;
}

.vote-results-queue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(120, 113, 108, 0.12);
}

.vote-results-queue-item.is-leading {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.1);
}

.vote-results-queue-name {
    font-size: 1.15rem;
    color: #1f2937;
}

.vote-results-queue-score {
    display: grid;
    justify-items: end;
    color: #6b7280;
}

.vote-results-queue-score strong {
    font-size: 1.8rem;
    line-height: 1;
    color: #1f2937;
}

.vote-results-empty {
    display: grid;
    gap: 0.75rem;
    padding: 1.6rem;
    background: linear-gradient(135deg, #fffdfa 0%, #f4ecdf 100%);
    border: 1px solid rgba(120, 113, 108, 0.14);
}

.vote-results-empty h2,
.vote-results-empty p {
    margin: 0;
}

@keyframes vote-results-rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .vote-results-hero,
    .vote-results-ribbon,
    .vote-results-feature-grid,
    .vote-results-feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .vote-results-hero,
    .vote-results-lane,
    .vote-results-empty {
        padding: 1.1rem;
    }

    .vote-results-title {
        max-width: 100%;
    }

    .vote-results-feature-media {
        min-height: 220px;
    }

    .vote-results-lane-head {
        align-items: start;
        justify-content: start;
        flex-direction: column;
    }

    .vote-results-queue-item {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vote-results-lane,
    .vote-results-feature-meter span {
        animation: none;
        transition: none;
    }
}

.vote-results-stage {
    gap: 1.85rem;
}

.vote-results-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 1.4rem;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(139, 94, 52, 0.12), transparent 32%),
        linear-gradient(145deg, #fffefb 0%, #f5ede2 55%, #eadbc8 100%);
    border-radius: 1.8rem;
}

.vote-results-hero-copy {
    gap: 1rem;
}

.vote-results-title {
    max-width: 12ch;
}

.vote-results-action-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.vote-results-inline-note {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #6b5a4b;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
}

.vote-results-clock {
    border-radius: 1.6rem;
    gap: 0.9rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.vote-results-clock::after {
    content: '';
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18) 0%, rgba(20, 184, 166, 0) 72%);
}

.vote-results-status-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.vote-results-status-band > div {
    display: grid;
    gap: 0.3rem;
}

.vote-results-status-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 249, 240, 0.72);
    font-weight: 700;
}

.vote-results-status-band strong {
    font-size: 1.25rem;
    line-height: 1.1;
}

.vote-results-ribbon {
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.925fr));
}

.vote-results-metric {
    border-radius: 1.45rem;
}

.vote-results-lanes {
    gap: 1.5rem;
}

.vote-results-lane {
    gap: 1.25rem;
    padding: 1.55rem;
    border-radius: 1.7rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        linear-gradient(145deg, #fffdf9 0%, #f5ebdf 100%);
}

.vote-results-feature-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 1.1rem;
}

.vote-results-feature {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.1rem;
    border-radius: 1.4rem;
    box-shadow: 0 20px 44px rgba(57, 45, 32, 0.08);
}

.vote-results-feature-media,
.vote-results-feature-media-placeholder {
    border-radius: 1.1rem;
}

.vote-results-feature-media {
    min-height: 360px;
}

.vote-results-feature-copy {
    align-content: space-between;
    padding: 0.2rem 0;
}

.vote-results-feature-name {
    max-width: 10ch;
}

.vote-results-feature-platform,
.vote-results-queue-platform {
    font-size: 0.98rem;
}

.vote-results-feature-score strong {
    font-size: 1.45rem;
}

.vote-results-feature-meter {
    border-radius: 999px;
}

.vote-results-queue {
    align-content: start;
}

.vote-results-queue-item {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    border-radius: 1.15rem;
    padding: 1rem 1.05rem;
}

.vote-results-queue-rank {
    width: 3rem;
    height: 3rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.12);
    color: #7a5a3e;
    font-weight: 800;
    font-size: 1rem;
}

.vote-results-queue-item.is-leading .vote-results-queue-rank {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.vote-results-empty {
    border-radius: 1.5rem;
}

.monitor-flash {
    animation: vote-results-flash 0.45s ease;
}

@keyframes vote-results-flash {
    0% { color: #0f766e; }
    100% { color: inherit; }
}

@media (max-width: 1080px) {
    .vote-results-hero,
    .vote-results-ribbon,
    .vote-results-feature-grid,
    .vote-results-feature {
        grid-template-columns: 1fr;
    }

    .vote-results-title,
    .vote-results-feature-name {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .vote-results-hero,
    .vote-results-lane,
    .vote-results-empty,
    .vote-results-metric {
        border-radius: 1.2rem;
    }

    .vote-results-feature-media {
        min-height: 260px;
    }

    .vote-results-queue-item {
        grid-template-columns: 1fr;
    }

    .vote-results-queue-rank {
        width: 2.5rem;
        height: 2.5rem;
    }

    .vote-results-status-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .vote-results-stage {
        gap: 1.25rem;
    }

    .vote-results-hero {
        padding: 1.2rem;
        gap: 1rem;
    }

    .vote-results-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 0.98;
        letter-spacing: -0.05em;
    }

    .vote-results-copy {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .vote-results-action-row {
        position: sticky;
        bottom: 0.75rem;
        z-index: 4;
    }

    .vote-results-action-row .btn {
        min-height: 48px;
        padding-inline: 1rem;
    }

    .vote-results-ribbon {
        gap: 0.85rem;
    }

    .vote-results-metric {
        padding: 1rem;
    }

    .vote-results-lane {
        padding: 1.1rem;
    }

    .vote-results-lane-title {
        font-size: clamp(1.45rem, 7vw, 2.15rem);
    }

    .vote-results-feature {
        padding: 0.9rem;
    }

    .vote-results-feature-media {
        min-height: 220px;
    }

    .vote-results-feature-name {
        font-size: clamp(1.55rem, 7vw, 2.35rem);
        line-height: 0.96;
    }

    .vote-results-queue {
        gap: 0.7rem;
    }

    .vote-results-queue-item {
        gap: 0.75rem;
        padding: 0.85rem 0.9rem;
    }

    .vote-results-queue-score {
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .vote-results-hero {
        border-radius: 1.1rem;
    }

    .vote-results-clock {
        padding: 1.1rem;
    }

    .vote-results-clock-time {
        font-size: 2.25rem;
    }

    .vote-results-inline-note {
        width: 100%;
        justify-content: center;
    }

    .vote-results-metric {
        border-radius: 1rem;
    }

    .vote-results-lane {
        border-radius: 1.1rem;
    }

    .vote-results-feature,
    .vote-results-empty {
        border-radius: 1rem;
    }

    .vote-results-feature-media,
    .vote-results-feature-media-placeholder {
        border-radius: 0.9rem;
    }
}


.topbar-vote {
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(120, 113, 108, 0.14);
}

.topbar-vote .brand {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}

.topbar-vote .brand-subtitle {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: #5b6b86;
}

.topbar-vote .brand-logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
}

.topbar-vote .topbar-toggle-btn {
    color: #17365d;
}

.topbar-vote .topbar-toggle-btn:hover {
    color: #1567c5;
}

.topbar-vote .topbar-user {
    color: #47627f;
}

.topbar-vote .topbar-actions {
    display: none;
}

.vote-results-stage {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}

.vote-results-hero-simple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(120, 113, 108, 0.14);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, #fffefb 0%, #f5ede2 100%);
}

.vote-results-title-simple {
    margin: 0.15rem 0 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: #1f2937;
}

.vote-results-copy-simple {
    margin: 0.45rem 0 0;
    color: #475569;
}

.vote-results-clock-simple {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #1f2937;
    color: #f8fafc;
}

.vote-results-clock-simple strong {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1;
}

.vote-results-clock-simple span {
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.9rem;
}

.vote-results-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.vote-results-summary-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(120, 113, 108, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.vote-results-summary-card.is-strong {
    background: linear-gradient(135deg, #25303a 0%, #0f766e 100%);
    color: #f8fafc;
}

.vote-results-summary-card.is-strong p,
.vote-results-summary-card.is-strong .vote-results-summary-label {
    color: rgba(248, 250, 252, 0.86);
}

.vote-results-summary-label {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c6a59;
    font-weight: 800;
}

.vote-results-summary-card strong {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.vote-results-summary-card p {
    margin: 0;
    color: #64748b;
}

.vote-results-board {
    display: grid;
    gap: 1rem;
}

.vote-results-position {
    display: grid;
    gap: 0.95rem;
    padding: 1.2rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(120, 113, 108, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.vote-results-position-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(120, 113, 108, 0.12);
}

.vote-results-position-title {
    margin: 0.15rem 0 0;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #1f2937;
}

.vote-results-position-total {
    font-size: 1rem;
    color: #475569;
}

.vote-results-candidate-list {
    display: grid;
    gap: 0.85rem;
}

.vote-results-candidate-row {
    display: grid;
    grid-template-columns: 52px 80px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(120, 113, 108, 0.12);
    background: #fffdfa;
}

.vote-results-candidate-row.is-priority {
    border-color: rgba(20, 184, 166, 0.28);
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.08);
}

.vote-results-candidate-rank {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.12);
    color: #7a5a3e;
    font-weight: 800;
    font-size: 1rem;
}

.vote-results-candidate-row.is-priority .vote-results-candidate-rank {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.vote-results-candidate-media {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 18px;
    background: #e7dccf;
}

.vote-results-candidate-media.is-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #403833 0%, #756a61 100%);
}

.vote-results-candidate-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vote-results-candidate-letter {
    font-size: 2rem;
    font-weight: 800;
    color: #fffdf9;
}

.vote-results-candidate-copy {
    display: grid;
    gap: 0.45rem;
}

.vote-results-candidate-name {
    font-size: 1.1rem;
    color: #1f2937;
}

.vote-results-candidate-platform {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.vote-results-candidate-meter {
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(191, 173, 151, 0.24);
    overflow: hidden;
}

.vote-results-candidate-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8b5e34 0%, #14b8a6 100%);
}

.vote-results-candidate-score {
    display: grid;
    justify-items: end;
    gap: 0.15rem;
    color: #64748b;
}

.vote-results-candidate-score strong {
    font-size: 1.7rem;
    line-height: 1;
    color: #1f2937;
}

@media (max-width: 980px) {
    .vote-results-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vote-results-candidate-row {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .vote-results-candidate-score {
        grid-column: 2 / -1;
        justify-items: start;
    }
}

@media (max-width: 720px) {
    .vote-results-hero-simple,
    .vote-results-position {
        padding: 1rem;
    }

    .vote-results-hero-simple {
        grid-template-columns: 1fr;
    }

    .vote-results-clock-simple {
        justify-items: start;
    }

    .vote-results-summary-grid {
        grid-template-columns: 1fr;
    }

    .vote-results-candidate-row {
        grid-template-columns: 44px 60px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.8rem;
    }

    .vote-results-candidate-rank {
        width: 44px;
        height: 44px;
    }

    .vote-results-candidate-media {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .vote-results-candidate-name {
        font-size: 1rem;
    }
}

/* admin-responsive-stack */
@media (max-width: 820px) {
    .grid-form {
        grid-template-columns: 1fr;
    }

    .card-head-row,
    .summary-row,
    .admin-detail-row,
    .admin-panel-head,
    .results-lane-head {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-row,
    .admin-detail-row {
        gap: 0.5rem;
    }
}

@media (max-width: 720px) {
    .table-wrap.table-wrap-stack {
        overflow-x: visible;
    }

    .table-wrap-stack .table,
    .table-wrap-stack .table-responsive-compact,
    .table-wrap-stack .table-responsive-wide {
        min-width: 0;
        border: none;
        background: transparent;
    }

    .table-wrap-stack .table thead {
        display: none;
    }

    .table-wrap-stack .table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .table-wrap-stack .table tr {
        display: grid;
        gap: 0.65rem;
        padding: 1rem;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(255,255,255,0.92);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .table-wrap-stack .table td {
        display: grid;
        gap: 0.35rem;
        padding: 0;
        border: none;
    }

    .table-wrap-stack .table td::before {
        content: attr(data-label);
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .table-wrap-stack .table td[data-label="Actions"]::before,
    .table-wrap-stack .table td[data-label="Action"]::before {
        margin-bottom: 0.15rem;
    }

    .table-wrap-stack .table td[data-label="Actions"],
    .table-wrap-stack .table td[data-label="Action"],
    .table-wrap-stack .table .table-actions,
    .table-wrap-stack .table .admin-user-actions {
        justify-content: stretch;
    }

    .table-wrap-stack .table .table-actions > *,
    .table-wrap-stack .table .admin-user-actions > *,
    .table-wrap-stack .table .table-actions .btn,
    .table-wrap-stack .table .admin-user-actions .btn,
    .table-wrap-stack .table .table-actions form {
        width: 100%;
    }

    .table-wrap-stack .table .table-actions form {
        display: block;
    }
}


/* voter-responsive-pass */
.vote-review-page {
    padding-bottom: 1.5rem;
}

.vote-review-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.vote-review-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vote-review-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(21, 103, 197, 0.1);
    color: #1567c5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vote-review-list {
    gap: 0.95rem;
}

.vote-review-row {
    padding: 0.95rem 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.vote-review-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.vote-review-choice {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.45;
}

.vote-review-actions .btn {
    min-width: 168px;
}

.vote-review-modal {
    width: min(520px, calc(100vw - 1rem));
}

.vote-success-state {
    max-width: 720px;
    margin: 0 auto;
}

.vote-success-state .reference-box {
    overflow-wrap: anywhere;
}

.vote-mobile-header-actions,
.vote-mobile-header-copy,
.vote-mobile-overview-card,
.vote-mobile-choice-copy,
.vote-mobile-submitbar-copy,
.vote-results-summary-card,
.vote-results-candidate-copy {
    min-width: 0;
}

.vote-mobile-overview-card strong,
.vote-mobile-overview-meta,
.vote-mobile-choice-name,
.vote-mobile-choice-role,
.vote-results-summary-card strong,
.vote-results-summary-card p,
.vote-results-position-title,
.vote-results-position-total,
.vote-results-candidate-name,
.vote-results-candidate-platform {
    overflow-wrap: anywhere;
}

.vote-results-position-head {
    align-items: start;
}

.vote-results-candidate-score {
    min-width: 72px;
}

@media (max-width: 820px) {
    .voter-hero-brand,
    .vote-mobile-header-rich,
    .vote-results-position-head,
    .vote-review-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-mobile-live-results,
    .vote-review-actions .btn,
    .vote-review-actions form,
    .vote-review-actions .btn-ballot,
    .vote-review-actions .btn-ballot-secondary {
        width: 100%;
    }

    .vote-review-actions {
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .vote-mobile-group {
        padding: 0.85rem;
    }

    .vote-mobile-group-rule {
        white-space: normal;
        justify-content: flex-start;
        width: fit-content;
        max-width: 100%;
    }

    .vote-mobile-choice-frame {
        align-items: start;
    }

    .vote-mobile-choice-copy {
        gap: 0.3rem;
    }

    .vote-mobile-choice-state-label {
        line-height: 1.35;
    }

    .vote-mobile-submitbar {
        padding: 0.8rem;
        border-radius: 18px;
    }

    .vote-results-position-head {
        gap: 0.55rem;
    }

    .vote-results-candidate-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .vote-results-candidate-media {
        grid-row: span 2;
    }

    .vote-results-candidate-score {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        justify-content: start;
        align-items: baseline;
        gap: 0.35rem;
    }

    .vote-results-candidate-score strong {
        font-size: 1.3rem;
    }

    .vote-results-clock-simple strong {
        font-size: 1.3rem;
    }

    .vote-review-row {
        padding: 0.85rem 0.9rem;
    }

    .vote-review-modal .modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .vote-review-modal .modal-actions .btn {
        width: 100%;
    }

    .vote-success-state .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-success-state .form-actions .btn {
        width: 100%;
    }
}


/* ui-polish-pass */
.premium-modal-header > div,
.premium-modal-status-bar > div:first-child,
.vote-review-heading > div {
    min-width: 0;
}

.close-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 999px;
}

.premium-modal-status-bar strong,
.vote-review-choice,
.vote-results-summary-card strong,
.vote-results-candidate-name,
.vote-results-position-title,
.vote-mobile-title,
.vote-mobile-group-title {
    text-wrap: balance;
}

.vote-review-panel,
.vote-success-state {
    box-shadow: 0 18px 42px rgba(22, 39, 69, 0.09);
}

.vote-review-actions {
    gap: 0.85rem;
}

.vote-review-actions .btn-ballot {
    box-shadow: 0 12px 26px rgba(21, 103, 197, 0.16);
}

.vote-review-modal p,
.vote-success-state .page-copy,
.vote-results-summary-card p,
.vote-mobile-choice-role,
.vote-mobile-overview-meta {
    max-width: 62ch;
}

.vote-success-state .reference-box {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vote-results-summary-card,
.vote-results-position,
.vote-mobile-group,
.vote-mobile-overview-card,
.vote-review-row {
    backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
    .premium-modal-container {
        border-width: 2px;
    }

    .close-modal-btn {
        align-self: flex-end !important;
    }

    .vote-review-badge {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
    }

    .vote-review-actions {
        padding-top: 0.85rem;
    }

    .vote-results-summary-card,
    .vote-results-position,
    .vote-mobile-overview-card,
    .vote-mobile-group,
    .vote-review-row {
        border-radius: 14px;
    }
}


/* responsive-hotfix-closed-preview */
.vote-preview-banner-copy-slate,
.vote-preview-live-panel,
.vote-preview-facts-slate-rich,
.vote-preview-fact-slate,
.vote-preview-slate-body,
.vote-preview-slate-copy,
.vote-preview-group-title-wrap {
    min-width: 0;
}

.vote-preview-banner-slate .vote-preview-title,
.vote-preview-live-time,
.vote-preview-fact-slate dd,
.vote-preview-slate-name,
.vote-preview-slate-role,
.vote-preview-group-title-slate,
.vote-preview-group-note-slate {
    overflow-wrap: anywhere;
}

@media (max-width: 915px) {
    .vote-preview-banner-slate .vote-preview-title {
        font-size: clamp(1.9rem, 6vw, 3rem);
        line-height: 0.94;
        max-width: 11ch;
    }

    .vote-preview-live-panel {
        padding: 1rem 1rem 1.05rem;
    }
}

@media (max-width: 720px) {
    .vote-preview-banner-slate {
        gap: 1rem;
        padding: 1rem;
    }

    .vote-preview-banner-slate .vote-preview-title {
        font-size: clamp(1.65rem, 8vw, 2.3rem);
        line-height: 0.96;
        max-width: 10ch;
    }

    .vote-preview-banner-slate .vote-preview-summary {
        margin-top: 0.65rem;
        line-height: 1.6;
    }

    .vote-preview-actions {
        width: 100%;
    }

    .vote-preview-actions .btn {
        width: min(100%, 18rem);
        justify-content: center;
    }

    .vote-preview-live-time {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .vote-preview-live-date,
    .vote-preview-countdown-value {
        font-size: 0.95rem;
    }

    .vote-preview-facts-slate {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .vote-preview-banner-slate .vote-preview-title {
        font-size: clamp(1.45rem, 9vw, 1.95rem);
        max-width: 9ch;
    }

    .vote-preview-live-panel {
        border-radius: 18px;
    }

    .vote-preview-slate-item {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .vote-preview-slate-name {
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .vote-preview-slate-role {
        line-height: 1.55;
    }
}
