body {
    background: #f5f7fb;
    color: #1f2937;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.login-shell {
    min-height: 80vh;
    display: grid;
    place-items: center;
}

.login-panel,
.panel,
.metric,
.table-shell,
.score-item,
.empty-state {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.login-panel {
    width: min(420px, 100%);
    padding: 2rem;
}

.panel {
    padding: 1rem;
}

.metric {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric span {
    color: #64748b;
}

.metric strong {
    font-size: 1.8rem;
}

.table-shell {
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #eef2f7;
    color: #334155;
    white-space: nowrap;
}

.sort-link {
    color: inherit;
    text-decoration: none;
}

.filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .75rem;
}

.score-item {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.rank-1 {
    background: #f59e0b;
}

.rank-2 {
    background: #64748b;
}

.rank-3 {
    background: #b45309;
}

.rank-other {
    background: #334155;
}

.class-ranking-row {
    cursor: pointer;
}

.class-ranking-row.is-selected {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.class-ranking-row:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: -3px;
}

.sport-breakdown {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.sport-bars {
    display: grid;
    gap: .75rem;
}

.sport-bar {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr minmax(3rem, auto);
    align-items: center;
    gap: .75rem;
}

.sport-bar-label {
    color: #334155;
    font-weight: 600;
}

.sport-bar-track {
    background: #e5e7eb;
    border-radius: 999px;
    height: .85rem;
    overflow: hidden;
}

.sport-bar-fill {
    background: #2563eb;
    border-radius: inherit;
    height: 100%;
    min-width: .35rem;
}

.sport-bar-value {
    font-weight: 700;
    text-align: right;
}

.toast-zone {
    width: calc(100% + var(--bs-gutter-x, 1.5rem));
    max-width: none;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

.toast-zone .alert {
    width: 100%;
    box-sizing: border-box;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.per-page-select {
    width: 5.5rem;
}

.import-issues {
    max-height: 18rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.import-issues thead th {
    position: sticky;
    top: 0;
    background: #eef2f7;
}

@media (max-width: 768px) {
    main.container-fluid {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .score-item {
        align-items: stretch;
        flex-direction: column;
    }

    .score-item .text-end {
        text-align: left !important;
    }

    .sport-bar {
        grid-template-columns: 1fr minmax(3rem, auto);
    }

    .sport-bar-track {
        grid-column: 1 / -1;
    }
}
