:root {
    --primary-900: #001742;
    --primary-800: #002366;
    --primary-700: #0a347f;
    --primary-100: #e8eef9;
    --accent-gold: #c5a021;
    --accent-gold-soft: #f4ebc8;
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #edf0f5;
    --gray-200: #dbe1ea;
    --gray-400: #7e8798;
    --gray-600: #4f5b70;
    --text-900: #12213c;
    --success-700: #0f7a4a;
    --success-100: #e6f6ee;
    --warning-700: #9a6b00;
    --warning-100: #fff6dc;
    --danger-700: #b22234;
    --danger-100: #ffe8eb;
    --shadow-soft: 0 10px 26px rgba(0, 35, 102, 0.08);
    --shadow-strong: 0 18px 36px rgba(0, 35, 102, 0.14);
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-900);
    font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 35, 102, 0.1), transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(197, 160, 33, 0.14), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8f9fb 40%, #f2f5fa);
    min-height: 100vh;
}

.container {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0.95rem 1.1rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(0, 23, 66, 0.98), rgba(0, 35, 102, 0.94));
    border-bottom: 3px solid rgba(197, 160, 33, 0.9);
    box-shadow: 0 12px 28px rgba(0, 23, 66, 0.2);
    backdrop-filter: blur(14px);
}

.topbar .container {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(0.92rem, 2vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0.15px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.78rem;
    min-width: 0;
}

.brand-mark > span {
    line-height: 1.15;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 10px rgba(0, 23, 66, 0.32);
}

.brand-logo {
    width: clamp(58px, 7vw, 78px);
    height: clamp(58px, 7vw, 78px);
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 249, 0.96));
    border: 2px solid rgba(197, 160, 33, 0.86);
    padding: 0.28rem;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.12),
        0 10px 24px rgba(0, 23, 66, 0.38);
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
}

nav a {
    color: #eaf1ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.76rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}

nav a:hover,
nav a.active {
    background: rgba(197, 160, 33, 0.22);
    border-color: rgba(197, 160, 33, 0.85);
    transform: translateY(-1px);
}

.logo-rail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.institution-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(197, 160, 33, 0.7);
    padding: 0.12rem;
    flex: 0 0 auto;
}

main.container {
    padding-top: 1.2rem;
    padding-bottom: 1.5rem;
}

.small {
    font-size: 0.8rem;
}

.card {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-top: 3px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    padding: 1.2rem 1.15rem;
    margin: 1rem 0;
    animation: cardFade 360ms ease;
}

@keyframes cardFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    box-shadow: var(--shadow-strong);
}

.hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(197, 160, 33, 0.26), transparent 34%),
        linear-gradient(138deg, rgba(0, 35, 102, 0.18), rgba(10, 52, 127, 0.1)),
        rgba(255, 255, 255, 0.78);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0.85rem;
    box-shadow: var(--shadow-soft);
}

.countdown-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-700);
    margin: 0 0 0.6rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.countdown-cell {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: #f7f9fd;
    text-align: center;
    padding: 0.55rem 0.35rem;
}

.countdown-cell strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-800);
    line-height: 1.1;
}

.countdown-cell span {
    font-size: 0.68rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

h1,
h2,
h3 {
    margin-top: 0;
    margin-bottom: 0.46rem;
    line-height: 1.2;
    color: var(--primary-900);
}

h1 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: 0.2px;
    font-weight: 700;
}

p {
    line-height: 1.62;
    margin: 0.25rem 0 0.5rem;
}

.muted {
    color: var(--gray-600);
}

a {
    color: var(--primary-700);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    margin-top: 0.7rem;
}

.actions .btn {
    min-width: 180px;
}

form {
    display: grid;
    gap: 0.82rem;
}

label {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--primary-900);
    font-weight: 600;
}

input,
select,
textarea,
button,
.btn {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 0.7rem 0.8rem;
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.14);
}

button,
.btn {
    width: auto;
    border: 1px solid transparent;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

button:hover,
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 35, 102, 0.24);
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #1a3f82, #0f336e);
}

.btn-gold {
    background: linear-gradient(135deg, #d7b54a, var(--accent-gold));
    color: #2f2506;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-700);
    border-color: rgba(0, 35, 102, 0.28);
}

.btn-danger {
    background: linear-gradient(135deg, #c23646, #ac1f31);
}

.inline-form {
    display: inline-flex;
    gap: 0.45rem;
}

.inline-form button {
    width: auto;
    min-width: 96px;
}

.table-wrap form {
    display: inline-grid;
}

.candidate-row {
    transition: background-color 0.22s ease, transform 0.2s ease;
}

.candidate-row:hover {
    background: #f7fbff;
}

.candidate-row.is-selected {
    background: #edf5ff;
    outline: 1px solid rgba(0, 35, 102, 0.2);
}

.candidate-position-card {
    background: rgba(255, 255, 255, 0.94);
}

.candidate-position-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.candidate-position-header > div:first-child {
    min-width: 0;
}

.candidate-position-header h2,
.candidate-position-header p {
    margin: 0;
}

.candidate-position-header .status-row {
    justify-content: flex-end;
    margin: 0;
}

.candidate-id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.85rem;
}

.candidate-id-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 35, 102, 0.08);
}

.candidate-id-card.voted-position {
    background: #f7fbff;
    border-color: rgba(0, 35, 102, 0.24);
}

.candidate-id-top {
    display: flex;
    align-items: flex-start;
    gap: 0.78rem;
    padding: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
    background: #f8faff;
}

.candidate-id-photo {
    border-radius: 12px;
}

.candidate-id-info {
    min-width: 0;
    flex: 1;
}

.candidate-id-info h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.candidate-id-info p {
    margin: 0.14rem 0 0.36rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.candidate-id-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.candidate-id-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.candidate-id-meta strong {
    flex: 0 0 auto;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-700);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    border: 1px solid rgba(0, 35, 102, 0.18);
}

.candidate-id-position {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-top: 0.46rem;
    padding: 0.58rem 0.72rem;
    overflow-wrap: anywhere;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8d6, #ffffff);
    color: var(--primary-700);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0;
    border: 1px solid rgba(197, 160, 33, 0.42);
    box-shadow: 0 8px 18px rgba(0, 35, 102, 0.1);
}

.candidate-id-body {
    flex: 1;
    padding: 0.82rem 0.85rem;
}

.candidate-id-body span {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.48rem 0.64rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8d6, #ffffff);
    color: var(--primary-700);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
    border: 1px solid rgba(197, 160, 33, 0.42);
    box-shadow: 0 8px 18px rgba(0, 35, 102, 0.08);
}

.candidate-id-body p {
    margin: 0;
    padding: 0.64rem 0.72rem;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary-700);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.42;
    overflow-wrap: anywhere;
    border: 1px solid rgba(197, 160, 33, 0.32);
}

.candidate-id-footer {
    padding: 0.75rem 0.85rem;
    border-top: 1px solid var(--gray-100);
    background: #fbfcff;
}

.candidate-id-footer .vote-form {
    display: block;
    margin: 0;
}

.candidate-id-footer .vote-btn {
    width: 100%;
}

.candidate-empty-card {
    min-height: auto;
    padding: 0.9rem;
}

.candidate-empty-card p {
    margin: 0;
    color: var(--gray-600);
}

.candidate-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
}

.candidate-photo,
.candidate-avatar-fallback {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    flex: 0 0 100px;
}

.candidate-cell .candidate-photo,
.candidate-cell .candidate-avatar-fallback {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 12px;
    flex: 0 0 100px;
}

.candidate-photo {
    display: block;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(0, 35, 102, 0.2);
    box-shadow: 0 8px 16px rgba(0, 35, 102, 0.14);
    background: #f2f6ff;
}

.candidate-profile-photo-wrap {
    margin: 0.35rem 0 0.75rem;
}

.candidate-profile-photo {
    display: block;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
}

.candidate-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--primary-900);
    background: linear-gradient(135deg, rgba(197, 160, 33, 0.28), rgba(0, 35, 102, 0.14));
    border: 1px solid rgba(0, 35, 102, 0.18);
}

.candidate-cell .candidate-avatar-fallback {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}

.candidate-name {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-900);
}

.vote-btn {
    min-width: 92px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(6, 20, 44, 0.42);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(100%, 420px);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-strong);
    padding: 1rem;
}

.modal-card h3 {
    margin-bottom: 0.4rem;
}

.modal-card .actions {
    margin-top: 0.9rem;
}

.alert {
    border-radius: var(--radius-md);
    padding: 0.76rem 0.9rem;
    margin: 0.8rem 0;
    border: 1px solid transparent;
    animation: cardFade 260ms ease;
}

.alert.error {
    background: var(--danger-100);
    color: var(--danger-700);
    border-color: #f4bcc4;
}

.alert.success {
    background: var(--success-100);
    color: var(--success-700);
    border-color: #bde8cf;
}

.grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric-card {
    border-left: 4px solid var(--accent-gold);
}

.metric-value {
    margin: 0.2rem 0 0;
    font-size: 1.68rem;
    font-weight: 700;
    color: var(--primary-800);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.section-heading h2,
.section-heading p {
    margin: 0;
}

.section-heading .badge {
    flex: 0 0 auto;
}

.analysis-card {
    background:
        radial-gradient(circle at 96% 8%, rgba(197, 160, 33, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.82);
}

.analysis-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.analysis-stat {
    min-height: 94px;
    padding: 0.88rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(0, 35, 102, 0.06);
}

.analysis-stat span,
.snapshot-list span {
    display: block;
    color: var(--gray-600);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.analysis-stat strong {
    display: block;
    margin-top: 0.3rem;
    color: var(--primary-800);
    font-size: 1.72rem;
    line-height: 1;
}

.turnout-panel {
    display: grid;
    grid-template-columns: minmax(130px, 0.28fr) 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 35, 102, 0.12);
    border-radius: 14px;
    background: #f8faff;
}

.turnout-panel strong {
    display: block;
    color: var(--primary-900);
    font-size: 2rem;
    line-height: 1;
}

.turnout-meter {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.turnout-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--success-700), var(--accent-gold));
    transition: width 0.35s ease;
}

.analysis-split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.analysis-split h3 {
    font-size: 1rem;
}

.compact-table th,
.compact-table td {
    padding: 0.58rem 0.56rem;
    font-size: 0.86rem;
}

.snapshot-list {
    display: grid;
    gap: 0.64rem;
}

.snapshot-list p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin: 0;
    padding: 0.76rem 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.snapshot-list strong {
    color: var(--primary-800);
    text-align: right;
}

.voter-status-table table {
    min-width: 860px;
}

.voter-status-table tbody tr {
    transition: background-color 0.22s ease;
}

.voter-status-table tbody tr.voter-has-voted {
    background: rgba(230, 246, 238, 0.55);
}

.voter-status-table tbody tr.voter-not-voted {
    background: rgba(255, 246, 220, 0.5);
}

.live-voter-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.live-voter-actions .btn {
    min-width: 190px;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.45rem 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
    padding: 0.34rem 0.62rem;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.badge-eligible {
    color: var(--success-700);
    background: var(--success-100);
    border-color: #bde8cf;
}

.badge-voted,
.badge-approved,
.badge-paid,
.badge-success {
    color: var(--success-700);
    background: var(--success-100);
    border-color: #bde8cf;
}

.badge-pending,
.badge-unpaid,
.badge-initialized,
.badge-locked {
    color: var(--warning-700);
    background: var(--warning-100);
    border-color: #efdc99;
}

.badge-rejected,
.badge-failed,
.badge-abandoned {
    color: var(--danger-700);
    background: var(--danger-100);
    border-color: #f4bcc4;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.pagination .btn {
    min-width: 110px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gray-200);
}

th,
td {
    border-bottom: 1px solid var(--gray-100);
    padding: 0.72rem 0.64rem;
    text-align: left;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

th {
    color: var(--primary-900);
    background: #eef2f8;
    font-size: 0.84rem;
    letter-spacing: 0.2px;
}

tbody tr:hover {
    background: #f8fbff;
}

tbody tr.voted-position {
    background: #f0f7ff;
}

.card.voted-position {
    border-color: rgba(0, 35, 102, 0.24);
    box-shadow: 0 12px 30px rgba(0, 35, 102, 0.14);
}

.locked-text {
    color: var(--warning-700);
    font-weight: 600;
}

.site-footer {
    border-top: 1px solid rgba(0, 35, 102, 0.14);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.footer-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.8rem;
}

.footer-inner p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.84rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0.85rem 0.8rem;
    }

    .card {
        padding: 1rem 0.95rem;
        border-radius: 14px;
    }

    .brand {
        font-size: 0.86rem;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
        border-radius: 12px;
        padding: 0.22rem;
    }

    nav a {
        font-size: 0.7rem;
        padding: 0.28rem 0.48rem;
    }

    .institution-logo {
        width: 32px;
        height: 32px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .countdown-grid {
        gap: 0.35rem;
    }

    .candidate-position-header {
        align-items: stretch;
        flex-direction: column;
    }

    .candidate-position-header .status-row {
        justify-content: flex-start;
    }

    .candidate-id-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .turnout-panel {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading .badge {
        width: fit-content;
    }

    .analysis-split {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.38rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
