*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --green-50: #ecfdf5;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 22px 55px rgba(15, 23, 42, 0.13);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-top: 4.5rem;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a[class*="bg-"] {
    cursor: pointer;
}

input,
select,
textarea {
    color: var(--gray-900);
    background: var(--white);
    min-height: 2.75rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    outline: none;
}

label {
    color: var(--gray-700);
    font-weight: 600;
}

table {
    border-collapse: collapse;
}

th {
    color: var(--gray-700);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td,
th {
    vertical-align: middle;
}

video,
canvas {
    max-width: 100%;
    height: auto;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 4.5rem;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.app-menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
}

.app-menu-button span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0 auto;
    background: var(--gray-900);
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.app-nav-open .app-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.app-nav-open .app-menu-button span:nth-child(2) {
    opacity: 0;
}

.app-nav-open .app-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--gray-900);
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--white);
    background: var(--blue-600);
    border-radius: 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.app-topnav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
}

.app-topnav a,
.app-nav-link {
    color: var(--gray-700);
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    font-weight: 700;
}

.app-topnav a:hover,
.app-nav-link:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.app-userbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    color: var(--gray-600);
    font-weight: 700;
}

.app-nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.65rem 1rem;
    color: var(--white);
    background: var(--blue-600);
    border-radius: 0.75rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.app-nav-action:hover {
    background: var(--blue-700);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
    transform: translateY(-1px);
}

.app-nav-action-danger {
    background: var(--red-600);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.16);
}

.app-nav-action-danger:hover {
    background: var(--red-700);
}

.app-sidebar {
    position: fixed;
    top: 4.5rem;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(21rem, calc(100vw - 2rem));
    padding: 1.25rem;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    box-shadow: 22px 0 55px rgba(15, 23, 42, 0.16);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    overflow-y: auto;
}

.app-nav-open .app-sidebar {
    transform: translateX(0);
}

.app-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.5rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.app-sidebar-head div {
    display: grid;
    gap: 0.1rem;
}

.app-sidebar-head span:last-child {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.app-side-links {
    display: grid;
    gap: 0.35rem;
    padding-top: 1rem;
}

.app-side-links a {
    display: flex;
    align-items: center;
    min-height: 2.9rem;
    padding: 0.75rem 0.9rem;
    color: var(--gray-700);
    border-radius: 0.85rem;
    font-weight: 750;
}

.app-side-links a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.app-sidebar-backdrop {
    position: fixed;
    inset: 4.5rem 0 0 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.app-nav-open .app-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 1.5rem; }
.p-10 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.py-5 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.15rem; padding-bottom: 1.15rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-8 { padding-top: 2rem; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1rem; }
.space-y-10 > * + * { margin-top: 1.75rem; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 999px; }

.border { border: 1px solid var(--gray-300); }
.border-2 { border: 2px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-green-100 { background-color: var(--green-100); }
.bg-green-600 { background-color: var(--green-600); }
.bg-red-100 { background-color: var(--red-100); }
.bg-red-600 { background-color: var(--red-600); }

.text-white { color: var(--white); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-600 { color: var(--blue-600); }
.text-green-600 { color: var(--green-600); }
.text-green-700 { color: var(--green-700); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1rem; line-height: 1.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    gap: 2rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
}

.landing-hero-copy h1 {
    max-width: 46rem;
    margin: 0.35rem 0 1rem;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 0.98;
}

.landing-kicker {
    color: var(--blue-600);
    font-weight: 800;
}

.landing-lead {
    max-width: 42rem;
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 700;
}

.landing-note {
    max-width: 46rem;
    color: var(--gray-600);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--gray-200);
    font-weight: 800;
    transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.app-button-primary {
    color: var(--white);
    background: var(--blue-600);
    border-color: var(--blue-600);
}

.app-button-primary:hover {
    background: var(--blue-700);
}

.app-button-light {
    color: var(--blue-600);
    background: var(--white);
}

.app-button-light:hover,
.app-nav-link:hover {
    background: var(--blue-50);
    box-shadow: var(--shadow-sm);
}

.landing-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-xl);
}

.mini-election-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 1rem;
}

.mini-election-card p {
    margin: 0.1rem 0 0;
    color: var(--gray-600);
}

.status-dot {
    width: 0.8rem;
    height: 0.8rem;
    background: var(--green-600);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.landing-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing-stat-grid div,
.date-card,
.election-code-box {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
}

.landing-stat-grid strong,
.date-card strong,
.election-code-box strong {
    color: var(--gray-900);
    font-size: 1.15rem;
}

.landing-stat-grid span,
.date-card span,
.election-code-box span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.election-code-box strong {
    font-size: 2.3rem;
    letter-spacing: 0.08em;
}

.vote-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.org-logo {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--gray-100);
}

.report-box {
    white-space: pre-wrap;
    padding: 1rem;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow-x: auto;
}

/* SmartVote 2026 visual system ------------------------------------------------ */
:root { --navy-950:#0a1930; --navy-900:#0f2444; --navy-800:#16305c; --ink:#101828; --ink-muted:#667085; --line:#e4e7ec; --paper:#f5f7fa; --gold:#c9a227; --sv-blue:#1b4b8a; --sv-green:#0f9d6c; }
body { background:var(--paper); color:#344054; font-family:"Inter",sans-serif; }
h1,h2,h3,h4,.font-display { font-family:"Source Serif 4",Georgia,serif; color:var(--ink); letter-spacing:-.01em; }
.font-mono,.election-code-box strong,.date-card strong { font-family:"IBM Plex Mono",monospace; font-variant-numeric:tabular-nums; }
.app-topbar { height:4.25rem; background:rgba(255,255,255,.97); border-color:var(--line); box-shadow:0 1px 2px rgba(16,24,40,.04); }
.app-brand-mark { background:linear-gradient(135deg,#2563a6,var(--navy-900)); border:1px solid var(--gold); border-radius:8px; }
.app-brand { font-family:"Source Serif 4",Georgia,serif; color:var(--navy-950); }
.app-nav-action { background:var(--sv-blue); border-radius:8px; }
.app-sidebar { background:var(--navy-950); color:#a9b6cc; width:260px; }
.app-sidebar-head { border-color:rgba(255,255,255,.1); color:#fff; }
.app-side-links a { color:#a9b6cc; border-radius:8px; }
.app-side-links a:hover { background:rgba(255,255,255,.07); color:#fff; }
.bg-white { border-color:var(--line)!important; box-shadow:0 1px 2px rgba(16,24,40,.06)!important; }
.rounded-3xl,.rounded-2xl { border-radius:12px!important; }
.bg-blue-600 { background:var(--sv-blue)!important; } .hover\:bg-blue-700:hover { background:#2563a6!important; }
.bg-green-600 { background:var(--sv-green)!important; } .hover\:bg-green-700:hover { background:#0c7f58!important; }
.text-blue-600 { color:var(--sv-blue)!important; } .text-gray-900 { color:var(--ink)!important; } .text-gray-600,.text-gray-500 { color:var(--ink-muted)!important; }
input,select,textarea { border-color:var(--line)!important; border-radius:8px!important; min-height:2.8rem; }
input:focus,select:focus,textarea:focus { border-color:#2563a6!important; box-shadow:0 0 0 4px rgba(37,99,166,.14)!important; }
.surface { background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 1px 2px rgba(16,24,40,.06); }
.pill { display:inline-flex; align-items:center; gap:.35rem; padding:.28rem .7rem; border-radius:999px; font-size:.78rem; font-weight:700; }
.pill-live { color:#0c7f58; background:#e1f5ec; }.pill-live:before { content:""; width:6px;height:6px;border-radius:50%;background:#0f9d6c; }.pill-closed {color:#667085;background:#eef1f5;}
.ballot-option { display:flex;align-items:center;gap:1rem;padding:1rem 1.15rem;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;background:#fff;transition:.15s; }
.ballot-option:hover { border-color:#2563a6;background:#e4edf9; }.ballot-option input { position:absolute;opacity:0; }.ballot-bubble {width:24px;height:24px;border:2px solid #667085;border-radius:50%;flex:none;display:grid;place-items:center;}.ballot-bubble:after {content:"";width:12px;height:12px;border-radius:50%;background:#0f9d6c;transform:scale(0);transition:.15s}.ballot-option input:checked~.ballot-bubble{border-color:#0f9d6c}.ballot-option input:checked~.ballot-bubble:after{transform:scale(1)}.ballot-option:has(input:checked){border-color:#0f9d6c;background:#e1f5ec}.ballot-option .candidate-photo{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--line)}
.result-row+.result-row{margin-top:1.15rem}.bar-track{height:10px;background:#eef1f5;border-radius:999px;overflow:hidden}.bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#1b4b8a,#2563a6)}.leading .bar-fill{background:linear-gradient(90deg,#0c7f58,#0f9d6c)}
.auth-ui .app-topbar,.auth-ui .app-sidebar,.auth-ui .app-sidebar-backdrop{display:none}.auth-ui{padding-top:0}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,46%) 1fr}.auth-brand{background:var(--navy-950);color:#fff;padding:3rem;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-brand:before{content:"";position:absolute;inset:-30%;background:repeating-radial-gradient(circle at 30% 20%,transparent 0,transparent 18px,rgba(201,162,39,.09) 19px,transparent 20px,transparent 38px);animation:sv-drift 40s linear infinite}.auth-brand>*{position:relative}.auth-seal{width:108px;height:108px;border-radius:50%;border:2px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-size:2rem}.auth-card{width:min(380px,100%);margin:auto}.auth-form-panel{display:grid;place-items:center;background:#fff;padding:2rem}.auth-title{font-size:2rem}@keyframes sv-drift{to{transform:rotate(360deg)}}
.admin-ui .app-topbar{background:var(--navy-950);color:#fff}.admin-ui .app-brand,.admin-ui .app-topnav a,.admin-ui .app-userbar{color:#fff}.admin-ui .app-nav-action{background:#2563a6}.dashboard-grid .surface{padding:1.5rem}.stat-value{font:600 1.9rem "IBM Plex Mono",monospace;color:var(--ink)}.stat-label{font-size:.85rem;color:var(--ink-muted);margin-top:.35rem}.icon-badge{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;margin-bottom:.9rem;background:#e4edf9;color:#1b4b8a}.icon-badge.green{background:#e1f5ec;color:#0c7f58}.icon-badge.gold{background:#fbf3d9;color:#8a6d0c}
@media(max-width:800px){.auth-shell{display:block}.auth-brand{display:none}.admin-ui .app-topbar{background:#fff;color:var(--ink)}.admin-ui .app-brand,.admin-ui .app-topnav a,.admin-ui .app-userbar{color:var(--ink)}}

.candidate-list {
    max-height: 30rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.candidate-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--gray-100);
}

.candidate-choice:hover {
    box-shadow: var(--shadow-sm);
}

.candidate-photo-small {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.9rem;
    background: var(--gray-100);
}

.candidate-photo-tiny {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
    border-radius: 0.7rem;
    background: var(--gray-100);
}

.shadow { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-md); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.transition,
.transition-all {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.underline { text-decoration: underline; }
.divide-y > * + * { border-top: 1px solid var(--gray-200); }

.hover\:bg-blue-700:hover { background-color: var(--blue-700); }
.hover\:bg-green-700:hover { background-color: var(--green-700); }
.hover\:bg-red-700:hover { background-color: var(--red-700); }
.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:border-blue-500:hover { border-color: var(--blue-500); }
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.hover\:underline:hover { text-decoration: underline; }

.focus\:ring-2:focus { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.focus\:ring-blue-500:focus,
.focus\:border-blue-500:focus { border-color: var(--blue-500); }

label:has(.peer:checked) {
    border-color: var(--blue-600);
    background: var(--blue-50);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.12);
}

.peer:checked + .peer-checked\:text-blue-600 {
    color: var(--blue-600);
}

a.bg-blue-600,
a.bg-red-600,
button.bg-blue-600,
button.bg-green-600,
button.bg-red-600 {
    border: 0;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

button.bg-green-600 {
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
}

a.bg-white:hover {
    background: var(--blue-50);
    box-shadow: var(--shadow-sm);
}

button.bg-red-600,
a.bg-red-600 {
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.16);
}

.bg-white.rounded-xl,
.bg-white.rounded-2xl,
.bg-white.rounded-3xl {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body {
        padding-top: 4rem;
    }

    .app-topbar {
        height: 4rem;
        padding: 0 0.9rem;
        gap: 0.65rem;
    }

    .app-brand span:last-child,
    .app-topnav,
    .app-userbar span {
        display: none;
    }

    .app-userbar {
        gap: 0.45rem;
    }

    .app-nav-action,
    .app-nav-link {
        min-height: 2.35rem;
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
    }

    .app-sidebar {
        top: 4rem;
    }

    .app-sidebar-backdrop {
        inset: 4rem 0 0 0;
    }

    .p-8,
    .p-10,
    .p-12 {
        padding: 1.5rem;
    }

    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .flex.justify-between {
        gap: 1rem;
        flex-wrap: wrap;
    }

    table.w-full {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .landing-hero,
    .vote-toolbar {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding-top: 2rem;
    }
}
