.elx-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.elx-card {
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(16, 43, 67, 0.08);
    overflow: hidden;
}

.elx-header {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(180deg, #5b87b3 0%, #4c75a0 45%, #3f6488 100%);
    color: #fff;
}

.elx-header-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.elx-header-copy {
    min-width: 0;
}

.elx-kicker,
.elx-panel-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.elx-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.elx-header h1,
.elx-panel h2 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.elx-header h1 {
    color: #fff;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
}

.elx-lead {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.5;
}

.elx-surface {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
}

.elx-panel {
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(16, 43, 67, 0.06);
    padding: 1.25rem;
}

.elx-panel--intro {
    border-top: 6px solid #8c9bab;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.elx-panel--archive {
    border-top: 6px solid #2f6f8f;
    background: linear-gradient(180deg, #f9fcfd 0%, #ffffff 100%);
}

.elx-panel-heading,
.elx-subpanel-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.elx-panel-kicker {
    color: #4c75a0;
}

.elx-html-copy {
    color: #31506c;
    line-height: 1.7;
}

.elx-html-copy > :first-child {
    margin-top: 0;
}

.elx-year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.elx-year-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #d0dae3;
    background: #fff;
    color: #31506c;
    font-weight: 600;
    text-decoration: none;
}

.elx-year-pill:hover,
.elx-year-pill:focus {
    color: #16324a;
    text-decoration: none;
    border-color: #8da7c0;
    background: #f7fbff;
}

.elx-year-pill.is-active {
    border-color: #1e6d73;
    background: #f3fbfb;
    color: #16324a;
    box-shadow: 0 0 0 3px rgba(30, 109, 115, 0.16);
}

.elx-entry-stack {
    display: grid;
    gap: 1rem;
}

.elx-entry {
    display: grid;
    gap: 1rem;
}

.elx-workspace {
    background: linear-gradient(180deg, #f8fbfd 0%, #f1f6fa 100%);
    border: 1px solid #d7e1ea;
    border-top: 6px solid #4c75a0;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(16, 43, 67, 0.08);
    overflow: hidden;
}

.elx-status {
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.75rem;
    text-transform: uppercase;
}

.elx-status.is-upcoming { background: #0f6cbd; }
.elx-status.is-active { background: #b96b00; }
.elx-status.is-certified { background: #2f7d32; }
.elx-status.is-archived { background: #5d6870; }
.elx-status.is-default { background: #465a63; }

.elx-entry-title {
    color: #16324a;
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.elx-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding: 1.3rem 1.35rem 1.1rem;
    background: linear-gradient(180deg, #f6f9fc 0%, #eef4f8 100%);
    border-bottom: 1px solid #d6e1ea;
}

.elx-workspace-heading {
    min-width: 0;
}

.elx-workspace-status {
    flex-shrink: 0;
}

.elx-workspace-alert {
    margin: 1rem 1.35rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.elx-workspace-alert--default {
    background: #eaf3fb;
    border-color: #bfd6ea;
    color: #16324a;
}

.elx-workspace-alert--success {
    background: #eaf7eb;
    border-color: #badbbc;
    color: #184c1b;
}

.elx-workspace-alert--warning {
    background: #fff4db;
    border-color: #f0d69a;
    color: #6f4d08;
}

.elx-workspace-alert--danger {
    background: #fdeaea;
    border-color: #edb9b9;
    color: #7a1f1f;
}

.elx-workspace-alert-title {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
}

.elx-workspace-alert-body > :first-child {
    margin-top: 0;
}

.elx-workspace-alert-body > :last-child {
    margin-bottom: 0;
}

.elx-workspace-grid {
    padding: 0.85rem 1.35rem 1.35rem;
    margin-top: 0;
}

.elx-seats {
    color: #31506c;
    line-height: 1.7;
}

.elx-stack-block {
    min-width: 0;
}

.elx-seat-grid {
    display: grid;
    gap: 0.85rem;
}

.elx-race-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d8e1ea;
    border-top: 6px solid #2f6f8f;
    border-radius: 12px;
    overflow: hidden;
}

.elx-race-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: start;
    margin-bottom: 0;
    padding: 0.95rem 1.1rem 0.85rem;
    background: linear-gradient(180deg, #eef5fb 0%, #f7fbff 100%);
    border-bottom: 1px solid #dbe7f1;
}

.elx-race-title-wrap {
    min-width: 0;
}

.elx-race-title {
    color: #16324a;
    font-size: 1.02rem;
    font-weight: 700;
}

.elx-race-place {
    color: #5d6f82;
    font-weight: 600;
    margin-top: 0.18rem;
}

.elx-race-meta {
    color: #5d6f82;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.elx-race-candidates {
    display: grid;
    gap: 0.65rem;
    padding: 0.95rem 1.1rem;
}

.elx-candidate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid #ebf0f3;
}

.elx-candidate-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.elx-candidate-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    align-items: center;
}

.elx-candidate-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    min-height: 1.6rem;
    border-radius: 999px;
    background: #edf4f9;
    color: #31506c;
    font-weight: 700;
}

.elx-candidate-name {
    color: #16324a;
    font-weight: 700;
}

.elx-candidate-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f8;
    color: #5d6f82;
    font-size: 0.8rem;
    font-weight: 700;
}

.elx-candidate-stats {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.elx-candidate-progress {
    grid-column: 1 / -1;
    height: 0.72rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: #e8eef3;
    overflow: hidden;
}

.elx-candidate-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4d2cff 0%, #2f56d6 100%);
}

.elx-candidate-percent {
    color: #5d6f82;
    font-weight: 700;
}

.elx-candidate-votes {
    color: #16324a;
    font-size: 1.02rem;
    font-weight: 800;
}

.elx-race-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.1rem 1rem;
    background: linear-gradient(180deg, #f8fbfe 0%, #edf4fa 100%);
    border-top: 1px solid #dbe7f1;
}

.elx-race-outcome {
    color: #16324a;
    font-weight: 700;
}

.elx-race-total {
    margin-left: auto;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.85rem;
    align-items: baseline;
    color: #31506c;
    font-weight: 700;
    text-align: right;
}

.elx-race-total-label {
    color: #5d6f82;
    font-weight: 700;
}

.elx-race-total-value {
    color: #16324a;
    font-size: 1.02rem;
    font-weight: 800;
}

.elx-column-heading {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    min-height: 0.3rem;
    margin-bottom: 0.7rem;
    padding: 0;
}

.elx-column-kicker {
    margin: 0 0 0.35rem;
    color: #4c75a0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.elx-column-title {
    margin: 0;
    color: #16324a;
    font-size: 1.42rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.elx-sidebar-stack {
    display: grid;
    gap: 0.85rem;
}

.elx-section-title {
    margin: 0 0 0.75rem;
    color: #16324a;
    font-size: 1rem;
    font-weight: 700;
}

.elx-detail-card,
.elx-docs-card,
.elx-rich-card,
.elx-doc-card,
.elx-result-card {
    background: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(16, 43, 67, 0.06);
}

.elx-detail-card,
.elx-docs-card {
    border-top: 6px solid #2f6f8f;
    overflow: hidden;
}

.elx-rich-card {
    padding: 1.1rem;
}

.elx-sidebar-card-header {
    padding: 0.9rem 1.05rem 0.8rem;
    background: linear-gradient(180deg, #eef5fb 0%, #f7fbff 100%);
    border-bottom: 1px solid #dbe7f1;
}

.elx-sidebar-card-header .elx-section-title {
    margin-bottom: 0;
}

.elx-sidebar-card-body {
    padding: 1.05rem;
}

.elx-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #ebf0f3;
}

.elx-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.elx-detail-row:first-of-type {
    padding-top: 0;
}

.elx-detail-label {
    color: #5d6f82;
    font-weight: 700;
}

.elx-detail-value {
    color: #16324a;
    text-align: right;
}

.elx-subpanel {
    background: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    padding: 1.1rem;
    margin: 0 1.35rem 1.35rem;
}

.elx-doc-list {
    display: grid;
    gap: 0.85rem;
}

.elx-doc-list-item {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #ebf0f3;
}

.elx-doc-list-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.elx-doc-card,
.elx-result-card {
    height: 100%;
    padding: 1rem;
}

.elx-doc-title,
.elx-result-label {
    color: #16324a;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.elx-doc-link {
    color: #153f6d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.elx-doc-link:hover,
.elx-doc-link:focus {
    color: #0f3258;
}

.elx-result-value {
    color: #16324a;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.elx-empty {
    padding: 1rem;
    border-radius: 10px;
    border: 1px dashed #cfd9e2;
    background: #f7fafc;
    color: #5d6f82;
}

.elx-empty--nested {
    padding: 0.85rem;
}

@media (max-width: 900px) {
    .elx-header-row {
        display: grid;
        align-items: start;
    }

    .elx-workspace-header {
        display: grid;
    }

    .elx-workspace-alert {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .elx-workspace-grid {
        padding: 1rem;
    }

    .elx-subpanel {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    .elx-detail-row {
        flex-direction: column;
    }

    .elx-detail-value {
        text-align: left;
    }

    .elx-candidate-row {
        grid-template-columns: 1fr;
    }

    .elx-candidate-stats {
        justify-content: flex-start;
    }

    .elx-column-heading {
        min-height: 0;
    }

}
