.admin-body {
    margin: 0;
}

.admin-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    flex: 0 0 16rem;
    width: 16rem;
    height: 100vh;
    overflow: auto;
    padding: 1rem;
}

.admin-sidebar-switch {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.admin-sidebar-footer {
    padding-top: 0.75rem;
}

.admin-impersonation-banner {
    padding: 0.5rem 0;
    background: #ffc107;
    color: #212529;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem;
}

.admin-section {
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-left: 4px solid var(--bs-primary, #0d6efd);
    border-radius: 0.5rem;
    background: var(--bs-body-bg, #fff);
}

.admin-section-title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.admin-nav .admin-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
}

.admin-nav .admin-nav-link:hover {
    text-decoration: underline;
}

.admin-nav .admin-nav-link-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.admin-nav-meta {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.admin-nav-count {
    font-variant-numeric: tabular-nums;
}

.admin-nav-online {
    color: rgba(144, 238, 144, 0.95);
}

.admin-nav-label {
    margin: 0.85rem 0 0.2rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-basis: auto;
    }
}

.stage-timeline .badge { min-width: 5rem; }
.live-board { font-size: 1.25rem; }
.live-board h1 { font-size: 2.5rem; }

/* Student Admin theme mapped onto Bootstrap components. Admin pages are outside this scope. */
.student-admin-theme {
    --bs-body-font-family: var(--sp-font-family);
    --bs-body-color: var(--sp-text);
    --bs-body-bg: var(--sp-page-bg);
    --bs-modal-bg: #ffffff;
    --bs-modal-header-bg: #ffffff;
    --bs-border-color: var(--sp-border);
    --bs-primary: var(--sp-accent);
    --bs-link-color: var(--sp-accent);
    --bs-link-hover-color: var(--sp-accent-hover);
    --bs-card-bg: var(--sp-card-surface);
    --bs-card-border-color: var(--sp-border);
    --bs-card-border-radius: var(--sp-radius-card);
    --bs-card-cap-bg: var(--sp-card-surface);
    --bs-card-box-shadow: none;
}

.student-admin-theme h1 {
    color: var(--sp-title);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
}

.student-admin-theme h2 {
    color: var(--sp-title-card);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
}

.student-admin-theme .text-secondary,
.student-admin-theme .text-muted {
    color: var(--sp-text-muted) !important;
}

html:has(body.student-admin-theme) {
    min-height: 100%;
}

.student-admin-theme {
    --student-nav-height: 3.5rem;
    --student-all-available-banner-height: 0px;
    --student-workspace-sticky-top: calc(
        var(--student-nav-height) + var(--student-all-available-banner-height) + var(--sp-space-4)
    );
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.student-admin-theme.has-all-available-banner {
    --student-all-available-banner-height: 4.25rem;
}

.student-admin-theme > .student-admin-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

.student-admin-theme > .student-admin-main:has(.student-workspace) {
    overflow: visible;
    padding: var(--sp-space-4) var(--sp-space-3) var(--sp-space-5);
}

.student-admin-theme > .student-admin-main:has(.student-landing) {
    padding: var(--sp-space-5) var(--sp-space-3) var(--sp-space-5);
}

.student-team-members {
    margin-top: var(--sp-space-4);
}

.student-team-members h2 {
    margin-bottom: var(--sp-space-3);
}

.student-all-available-banner {
    position: sticky;
    top: var(--student-nav-height);
    z-index: 30;
    flex: 0 0 auto;
    min-height: var(--student-all-available-banner-height);
    box-sizing: border-box;
    background: var(--sp-card-surface, #fff);
    border-bottom: 1px solid var(--sp-border);
    padding: var(--sp-space-3) var(--sp-space-3);
}

.student-all-available-banner-grid {
    --student-sidebar-width: 20rem;
    width: 100%;
}

.student-admin-theme.student-banner-align-narrow .student-all-available-banner-inner {
    width: min(100%, 40rem);
    margin-inline: auto;
}

.student-admin-theme.student-banner-align-workspace-2col .student-all-available-banner-grid,
.student-admin-theme.student-banner-align-workspace-3col .student-all-available-banner-grid {
    display: grid;
    align-items: start;
    gap: var(--sp-space-4);
    grid-template-columns: minmax(0, 1fr);
}

.student-admin-theme.student-banner-align-workspace-2col .student-all-available-banner-inner,
.student-admin-theme.student-banner-align-workspace-3col .student-all-available-banner-inner {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
}

@media (min-width: 992px) {
    .student-admin-theme.student-banner-align-workspace-2col .student-all-available-banner,
    .student-admin-theme.student-banner-align-workspace-3col .student-all-available-banner {
        padding-inline: var(--sp-space-4);
    }

    .student-admin-theme.student-banner-align-workspace-3col .student-all-available-banner-grid {
        grid-template-columns: var(--student-sidebar-width) minmax(0, 1fr) var(--student-sidebar-width);
        gap: var(--sp-space-5);
    }

    .student-admin-theme.student-banner-align-workspace-3col .student-all-available-banner-inner {
        grid-column: 2;
    }

    .student-admin-theme.student-banner-align-workspace-2col .student-all-available-banner-grid {
        grid-template-columns: minmax(0, 1fr) var(--student-sidebar-width);
        gap: var(--sp-space-5);
    }

    .student-admin-theme.student-banner-align-workspace-2col .student-all-available-banner-inner {
        grid-column: 1;
    }
}

.student-all-available-banner-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.student-all-available-banner-body {
    margin-top: var(--sp-space-1);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--sp-text-secondary, inherit);
}

.student-all-available-banner-body p:last-child {
    margin-bottom: 0;
}

.student-dashboard-header {
    width: min(100%, 40rem);
    margin-inline: auto;
    margin-bottom: var(--sp-space-4);
}

.student-dashboard-stage-notice {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.student-dashboard-header .student-dashboard-stage-notice + .student-dashboard-review-actions--top {
    margin-top: var(--sp-space-4);
}

.student-dashboard-review-actions--top {
    width: 100%;
    margin: var(--sp-space-4) 0 var(--sp-space-5);
}

.student-dashboard-review-actions--bottom {
    margin-top: var(--sp-space-5);
    margin-bottom: var(--sp-space-4);
    padding-top: var(--sp-space-4);
    border-top: 1px solid var(--sp-border);
}

.student-landing {
    width: min(100%, 40rem);
    margin-inline: auto;
}

.student-landing-title {
    margin-bottom: var(--sp-space-4);
}

.student-landing-body {
    margin-bottom: var(--sp-space-5);
    color: var(--sp-text);
    line-height: 1.55;
}

.student-landing-body p:last-child {
    margin-bottom: 0;
}

.student-landing-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-space-3);
}

.student-thanks {
    width: min(100%, 42rem);
    margin-inline: auto;
    padding: var(--sp-space-5) 0;
}

.student-thanks-icon {
    font-size: 2.25rem;
    color: var(--sp-accent);
    margin-bottom: var(--sp-space-3);
}

.student-thanks--complete .student-thanks-icon {
    color: var(--bs-success);
}

.student-thanks--draft .student-thanks-icon {
    color: var(--bs-warning);
}

.student-thanks-headline {
    margin-bottom: var(--sp-space-3);
}

.student-thanks-lead {
    font-size: 1.05rem;
    margin-bottom: var(--sp-space-3);
}

.student-thanks-detail {
    color: var(--sp-text-muted);
    margin-bottom: var(--sp-space-4);
}

.student-thanks-next {
    margin-bottom: var(--sp-space-5);
    padding: var(--sp-space-4);
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #d1d1d1;
}

.student-thanks-next-title {
    margin-bottom: var(--sp-space-2);
}

.student-thanks-steps {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--sp-text);
}

.student-thanks-steps li + li {
    margin-top: var(--sp-space-2);
}

.student-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-space-3);
    align-items: center;
}

.student-thanks-action-form {
    margin: 0;
}

.char-counter {
    margin-top: var(--sp-space-1);
    margin-bottom: 0;
    text-align: right;
    color: var(--sp-text-muted);
    font-size: 0.8125rem;
}

@media (min-width: 992px) {
    .student-admin-theme > .student-admin-main:has(.student-workspace) {
        padding-inline: var(--sp-space-4);
    }
}

.auth-portal {
    max-width: 26.25rem;
}

.auth-portal-powered-by {
    margin-top: 1.75rem;
    padding-bottom: 0.5rem;
}

.auth-portal-powered-by .digital-camp-powered-by {
    align-items: center;
    width: 100%;
}

.auth-portal-powered-by .student-admin-footer-logo-link {
    margin-inline: auto;
}

.auth-portal-badge {
    display: inline-block;
    margin: 0;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-portal-student .auth-portal-badge--current {
    background: var(--sp-accent);
    color: var(--sp-accent-text);
}

.auth-portal-staff {
    --sp-page-bg: #d8dee8;
    --sp-main-bg: #eef1f6;
    --sp-accent: #1e3a5f;
    --sp-accent-hover: #152a45;
    --sp-accent-text: #ffffff;
}

.auth-portal-staff .auth-portal-badge--current {
    background: #1e3a5f;
    color: #ffffff;
}

.auth-portal-title {
    color: var(--sp-title);
}

.auth-portal-lead {
    font-size: 0.9375rem;
}

.auth-portal-card--staff {
    border-top: 3px solid #1e3a5f;
}

.auth-portal-card:not(.auth-portal-card--staff) {
    border-top: 3px solid var(--sp-accent);
}

.auth-portal-staff .btn-primary,
.auth-portal-btn-staff {
    --bs-btn-bg: #1e3a5f;
    --bs-btn-border-color: #1e3a5f;
    --bs-btn-hover-bg: #152a45;
    --bs-btn-hover-border-color: #152a45;
    --bs-btn-active-bg: #152a45;
    --bs-btn-active-border-color: #152a45;
}

.auth-portal-switch {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--sp-border-strong);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.55);
}

.auth-portal-staff .auth-portal-switch {
    background: rgba(255, 255, 255, 0.85);
}

.auth-portal-switch-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sp-text-muted);
}

.auth-portal-switch-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.35rem;
    color: var(--sp-text);
    text-decoration: none;
}

.auth-portal-switch-link:hover {
    color: var(--sp-accent);
}

.auth-portal-switch-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #3a0ca3;
    color: #ffffff;
    font-size: 1.1rem;
}

.auth-portal-switch-icon--staff {
    background: #1e3a5f;
    color: #fff;
}

.entry-switch {
    max-width: 26.25rem;
}

.entry-switch > input,
.entry-panel-login > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.entry-choice,
.entry-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-choice {
    margin-bottom: 0.75rem;
}

.entry-choice label,
.entry-method label {
    flex: 1 1 auto;
    margin: 0;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    background: var(--sp-card-surface);
    color: var(--sp-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.entry-or {
    flex: 0 0 auto;
    color: var(--sp-text-muted);
    font-size: 0.875rem;
}

.entry-method {
    margin-bottom: 1rem;
}

.entry-method label {
    border-radius: 0.5rem;
    font-size: 0.8125rem;
}

#entry-new:checked ~ .entry-choice label[for="entry-new"],
#entry-login:checked ~ .entry-choice label[for="entry-login"],
#method-password:checked ~ .entry-method label[for="method-password"],
#method-link:checked ~ .entry-method label[for="method-link"] {
    border-color: var(--sp-accent);
    background: var(--sp-accent);
    color: var(--sp-accent-text);
}

.entry-panel-login,
#entry-login:checked ~ .card .entry-panel-new,
#method-link:checked ~ .method-password,
.method-link {
    display: none;
}

#entry-login:checked ~ .card .entry-panel-login,
#method-password:checked ~ .method-password,
#method-link:checked ~ .method-link {
    display: block;
}

.student-admin-theme .navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--student-nav-height);
    background: var(--sp-nav-surface);
    border-bottom: 1px solid var(--sp-nav-surface);
    --bs-navbar-color: var(--sp-nav-link);
    --bs-navbar-hover-color: var(--sp-nav-link);
    --bs-navbar-brand-color: var(--sp-nav-link);
    --bs-navbar-brand-hover-color: var(--sp-nav-link);
    --bs-navbar-toggler-border-color: rgb(255 255 255 / 40%);
    --bs-navbar-toggler-focus-shadow-width: 0;
}

.student-admin-theme .navbar .navbar-toggler {
    padding: 0.35rem 0.55rem;
}

.student-admin-theme .navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

body.fa-icons-pending :is(.fa-slab, .fa-slab-duo, .fa-slab-press-duo)::before {
    opacity: 0;
}

body.fa-icons-ready :is(.fa-slab, .fa-slab-duo, .fa-slab-press-duo)::before {
    opacity: 1;
}

.student-admin-theme .navbar .nav-link,
.student-admin-theme .navbar .btn-link {
    color: var(--sp-nav-link);
    font-weight: 600;
}

.student-admin-theme .navbar .nav-link:hover,
.student-admin-theme .navbar .btn-link:hover {
    color: var(--sp-nav-link);
    opacity: 0.85;
}

.student-admin-theme .navbar .nav-link :is(.fa-slab, .fa-slab-duo),
.student-admin-theme .navbar .btn-link :is(.fa-slab, .fa-slab-duo) {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .student-admin-theme .navbar .navbar-brand {
        max-width: calc(100% - 3.5rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .student-admin-theme .navbar .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--sp-space-2) 0 var(--sp-space-3);
    }

    .student-admin-theme .navbar .navbar-collapse .nav-link,
    .student-admin-theme .navbar .navbar-collapse .btn-link.nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: var(--sp-space-2) 0;
        text-align: left;
    }

    .student-admin-theme .navbar .navbar-collapse form {
        width: 100%;
    }

    .student-admin-theme .navbar .navbar-collapse form .btn-link.nav-link {
        width: 100%;
    }
}

.student-admin-theme a.student-admin-hub-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-3);
    min-height: 8.5rem;
    padding: var(--sp-space-4);
    color: var(--sp-text);
    text-decoration: none;
}

.student-admin-theme a.student-admin-hub-card:hover {
    color: var(--sp-text);
}

.student-admin-theme a.student-admin-hub-card:focus-visible {
    outline: 3px solid var(--sp-field-focus-ring);
    outline-offset: 2px;
}

.student-admin-theme .card {
    background: var(--sp-card-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    box-shadow: none;
}

.student-admin-theme .btn {
    border-radius: var(--sp-radius-sm);
    font-weight: 600;
    box-shadow: none;
}

.student-admin-theme .btn-primary {
    --bs-btn-color: var(--sp-accent-text);
    --bs-btn-bg: var(--sp-accent);
    --bs-btn-border-color: var(--sp-accent);
    --bs-btn-hover-color: var(--sp-accent-text);
    --bs-btn-hover-bg: var(--sp-accent-hover);
    --bs-btn-hover-border-color: var(--sp-accent-hover);
    --bs-btn-active-color: var(--sp-accent-text);
    --bs-btn-active-bg: var(--sp-accent-hover);
    --bs-btn-active-border-color: var(--sp-accent-hover);
}

.student-admin-theme .btn-secondary {
    --bs-btn-color: var(--sp-secondary-text);
    --bs-btn-bg: var(--sp-secondary);
    --bs-btn-border-color: var(--sp-secondary);
    --bs-btn-hover-color: var(--sp-secondary-text);
    --bs-btn-hover-bg: var(--sp-secondary-hover);
    --bs-btn-hover-border-color: var(--sp-secondary-hover);
}

.student-admin-theme .btn-outline-primary,
.student-admin-theme .btn-outline-secondary,
.student-admin-theme .btn-outline-danger {
    --bs-btn-color: var(--sp-text);
    --bs-btn-border-color: var(--sp-border-strong);
    --bs-btn-hover-color: var(--sp-text);
    --bs-btn-hover-bg: var(--sp-surface-raised);
    --bs-btn-hover-border-color: var(--sp-border-strong);
    --bs-btn-active-color: var(--sp-text);
    --bs-btn-active-bg: var(--sp-surface-raised);
    --bs-btn-active-border-color: var(--sp-border-strong);
}

.student-admin-theme #withdraw-consent-form .btn-outline-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f7255e;
    --bs-btn-border-color: #f7255e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d91f52;
    --bs-btn-hover-border-color: #d91f52;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c41b49;
    --bs-btn-active-border-color: #c41b49;
    color: #fff;
    background-color: #f7255e;
    border-color: #f7255e;
}

.student-admin-theme #withdraw-consent-form .btn-outline-danger:hover,
.student-admin-theme #withdraw-consent-form .btn-outline-danger:focus-visible {
    color: #fff;
    background-color: #d91f52;
    border-color: #d91f52;
}

.student-admin-theme #delete-account-form .btn-danger,
.student-admin-theme #delete-account-modal .btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f7255e;
    --bs-btn-border-color: #f7255e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d91f52;
    --bs-btn-hover-border-color: #d91f52;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c41b49;
    --bs-btn-active-border-color: #c41b49;
    color: #fff;
    background-color: #f7255e;
    border-color: #f7255e;
}

.student-admin-theme #delete-account-form .btn-danger:hover,
.student-admin-theme #delete-account-form .btn-danger:focus-visible,
.student-admin-theme #delete-account-modal .btn-danger:hover,
.student-admin-theme #delete-account-modal .btn-danger:focus-visible {
    color: #fff;
    background-color: #d91f52;
    border-color: #d91f52;
}

.student-admin-theme .btn:focus-visible,
.student-admin-theme .nav-link:focus-visible,
.student-admin-theme .form-control:focus-visible,
.student-admin-theme .form-select:focus-visible,
.student-admin-theme .form-check-input:focus-visible {
    outline: 3px solid var(--sp-field-focus-ring);
    outline-offset: 2px;
}

.student-admin-theme .form-label {
    color: var(--sp-field-label);
    font-weight: 500;
}

.student-admin-theme .form-control,
.student-admin-theme .form-select {
    color: var(--sp-field-text);
    background: var(--sp-field-bg);
    border-color: var(--sp-field-border);
    border-radius: var(--sp-radius-sm);
}

.student-admin-theme .form-control:focus,
.student-admin-theme .form-select:focus {
    color: var(--sp-field-text);
    background: var(--sp-field-bg);
    border-color: var(--sp-field-border-focus);
    box-shadow: 0 0 0 0.25rem var(--sp-field-focus-ring);
}

.student-admin-theme .form-control:disabled,
.student-admin-theme .form-select:disabled {
    color: var(--sp-field-disabled-text);
    background: var(--sp-field-disabled-bg);
}

.field-validation-bar {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0.4rem 0 0.75rem;
    padding: 0.4rem 0.7rem;
    background: #f7255e;
    color: #fbeee0;
    border-radius: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid,
.consent-statement input.is-invalid {
    border-color: #f7255e;
    box-shadow: 0 0 0 0.2rem rgba(247, 37, 94, 0.28);
}

.student-admin-theme .form-control.is-invalid:focus,
.student-admin-theme .form-select.is-invalid:focus {
    border-color: #f7255e;
    box-shadow: 0 0 0 0.25rem rgba(247, 37, 94, 0.28);
}

.student-admin-theme .alert {
    border-radius: var(--sp-radius-sm);
}

.student-admin-theme .alert-success {
    --bs-alert-color: var(--sp-success-text);
    --bs-alert-bg: var(--sp-success-bg);
    --bs-alert-border-color: var(--sp-success-bg);
    color: var(--sp-success-text);
    background: var(--sp-success-bg);
}

.student-admin-theme .alert-warning {
    --bs-alert-color: var(--sp-warning-text);
    --bs-alert-bg: var(--sp-warning-bg);
    --bs-alert-border-color: var(--sp-warning-bg);
    color: var(--sp-warning-text);
    background: var(--sp-warning-bg);
}

.student-admin-theme .alert-danger {
    --bs-alert-color: var(--sp-danger-text);
    --bs-alert-bg: var(--sp-danger-bg);
    --bs-alert-border-color: var(--sp-danger-bg);
    color: var(--sp-danger-text);
    background: var(--sp-danger-bg);
}

.student-admin-theme .alert-info {
    --bs-alert-color: var(--sp-info-text);
    --bs-alert-bg: var(--sp-info-bg);
    --bs-alert-border-color: var(--sp-info-bg);
    color: var(--sp-info-text);
    background: var(--sp-info-bg);
    border: 2px solid;
}

.student-admin-theme .badge {
    border-radius: 999px;
    font-weight: 600;
}

.student-admin-theme .list-group-item {
    color: var(--sp-text);
    background: var(--sp-card-surface);
    border-color: var(--sp-border);
}

.student-workspace {
    --student-sidebar-width: 20rem;
    --student-workspace-sticky-top: calc(
        var(--student-nav-height) + var(--student-all-available-banner-height, 0px) + var(--sp-space-4)
    );
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--sp-space-4);
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .student-workspace {
        grid-template-columns: var(--student-sidebar-width) minmax(0, 1fr) var(--student-sidebar-width);
        gap: var(--sp-space-5);
    }

    .student-workspace:has(.student-context-column.has-content) {
        grid-template-columns: var(--student-sidebar-width) minmax(0, 1fr) var(--student-sidebar-width);
    }

    .student-workspace:not(:has(.student-context-column.has-content)) {
        grid-template-columns: minmax(0, 1fr) var(--student-sidebar-width);
    }

    .student-workspace:not(:has(.student-context-column.has-content)) .student-context-column {
        display: none;
    }
}

.student-context-column {
    display: none;
    min-width: 0;
}

.student-context-column.has-content {
    display: block;
}

.student-context {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: var(--sp-space-4);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    background: var(--sp-card-surface);
}

.student-context-heading {
    flex: 0 0 auto;
    padding: 0 0 var(--sp-space-3);
}

.student-context:has(.student-context-nav:not(:empty)) .student-context-heading {
    border-bottom: none;
    padding-bottom: 0;
}

.student-context-heading > h1 {
    margin: 0 0 var(--sp-space-3);
    font-size: 1.25rem;
}

.student-context-heading > p.student-stage-intro {
    margin: 0 0 var(--sp-space-3);
}

.student-context-heading > p.text-secondary {
    margin: 0;
    color: #f7255e !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.student-context:has(.student-context-nav > .substage-progress) .student-context-heading > :last-child {
    margin-bottom: 0;
}

.student-context-nav {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 0;
    overflow: auto;
    scrollbar-width: thin;
}

.student-context-nav > .substage-progress {
    margin: 30px 0 0;
    padding-top: var(--sp-space-2);
}

.student-context-tools {
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-2);
    margin-top: var(--sp-space-3);
    padding-top: var(--sp-space-3);
    border-top: 1px solid var(--sp-border);
}

.student-context-tools:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.student-context-tool-btn {
    width: 100%;
    text-align: left;
    white-space: normal;
}

.student-sidebar-modal .modal-content,
.student-sidebar-modal .modal-header,
.student-sidebar-modal .modal-body,
#withdraw-consent-modal .modal-content,
#withdraw-consent-modal .modal-header,
#withdraw-consent-modal .modal-body {
    background: #ffffff;
}

.student-sidebar-modal .modal-content {
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
}

.student-sidebar-modal .modal-header,
#withdraw-consent-modal .modal-header {
    border-bottom-color: var(--sp-border);
}

.student-sidebar-modal-dialog {
    max-width: min(36rem, calc(100vw - 2rem));
}

.student-sidebar-modal-body {
    max-height: min(70vh, 28rem);
    overflow: auto;
}

.student-main-column {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.student-stage {
    min-width: 0;
    container-type: inline-size;
    container-name: stage;
}

.stage-progression-bar {
    position: sticky;
    top: var(--student-workspace-sticky-top);
    z-index: 20;
    width: 100%;
    margin-bottom: var(--sp-space-4);
    padding-bottom: var(--sp-space-3);
    background: var(--sp-main-bg);
    border-bottom: 1px solid var(--sp-border);
    box-shadow: 0 0 0 0.75rem var(--sp-main-bg);
}

.stage-progression-bar::before {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    top: calc(-1 * var(--student-workspace-sticky-top));
    height: var(--student-workspace-sticky-top);
    background: var(--sp-main-bg);
    pointer-events: none;
}

.student-stage-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--sp-space-3);
}

.student-stage-body {
    width: 100%;
    padding-bottom: var(--sp-space-5);
}

.student-stage-body :is(h2, h4) {
    margin: 0 0 var(--sp-space-5);
    color: var(--sp-title);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.invest-allocation-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.invest-remaining-wrap {
    margin-left: auto;
    text-align: right;
    flex: 0 0 auto;
}

.invest-remaining-label,
.invest-total-line {
    display: block;
    color: var(--bs-secondary-color, #6c757d);
}

.invest-remaining-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.invest-remaining-value.is-over {
    color: var(--bs-danger, #dc3545);
}

.invest-total-error {
    margin: 0.35rem 0 0;
    color: var(--bs-danger, #dc3545);
    font-weight: 600;
}

.invest-finalist + .invest-finalist {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.1));
}

.invest-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.student-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--sp-space-4);
}

.password-generate {
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.password-tool {
    display: grid;
    place-items: center;
    width: 2.75rem;
    padding: 0;
    color: var(--sp-text);
}

.password-tool i {
    font-size: 1rem;
    line-height: 1;
}

.student-stage-withdrawn {
    margin: 0 0 var(--sp-space-4);
    padding: var(--sp-space-4);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    background: var(--sp-card-surface);
}

.student-progress-hello {
    margin: 0;
    overflow-wrap: break-word;
    color: var(--sp-title);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.student-progress-identity {
    margin-bottom: var(--sp-space-4);
}

.student-progress-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-space-2);
    margin-bottom: var(--sp-space-3);
}

.student-progress-label {
    margin-bottom: 0;
}

.student-progress-percent {
    flex: 0 0 auto;
}

.student-progress-team-title,
.student-team-page-title {
    display: flex;
    align-items: center;
    gap: var(--sp-space-3);
    margin: 0;
}

.student-team-page-title {
    margin-bottom: var(--sp-space-4);
}

.student-team-avatar {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--sp-surface-raised);
}

.student-stage-toolbar h1 {
    margin-bottom: 0;
}

.stage-progression {
    display: flex;
    align-items: flex-start;
    justify-content: safe center;
    gap: 0;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 0 0 1rem;
    list-style: none;
    overflow: hidden;
}

.stage-progression-step {
    position: relative;
    flex: 1 1 0;
    max-width: 9.5rem;
    min-width: 0;
    text-align: center;
}

.stage-progression-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: calc(50% + 1.4rem);
    width: max(0px, calc(100% - 2.8rem));
    height: 2px;
    background: var(--sp-border-strong);
}

.stage-progression-step a,
.stage-progression-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-space-2);
    color: var(--sp-text);
    text-decoration: none;
}

.stage-progression-icon,
.stage-progression-lock {
    font-size: 1rem;
    line-height: 1;
}

.student-resume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-space-3);
    text-align: center;
}

.student-resume .btn {
    min-width: 12rem;
}

.stage-progression-step a:hover .stage-progression-number,
.stage-progression-step a:focus-visible .stage-progression-number {
    background: var(--sp-accent);
    color: var(--sp-accent-text);
}

.stage-progression-step a:focus-visible {
    outline: 3px solid var(--sp-field-focus-ring);
    outline-offset: 3px;
    border-radius: var(--sp-radius-sm);
}

.stage-progression-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--sp-accent);
    border-radius: 50%;
    background: var(--sp-card-surface);
    color: var(--sp-accent);
    font-weight: 700;
    line-height: 1;
}

.stage-progression-step.is-complete .stage-progression-number {
    background: var(--sp-accent);
    color: var(--sp-accent-text);
}

.stage-progression-step.is-locked .stage-progression-number,
.stage-progression-step.is-locked a:hover .stage-progression-number,
.stage-progression-step.is-locked a:focus-visible .stage-progression-number {
    background: var(--sp-card-surface);
    border-color: var(--sp-border-strong);
    color: var(--sp-text-muted);
}

.stage-progression-step.is-required .stage-progression-number,
.stage-progression-step.is-required a:hover .stage-progression-number,
.stage-progression-step.is-required a:focus-visible .stage-progression-number,
.stage-progression-step.is-preview .stage-progression-number,
.stage-progression-step.is-preview a:hover .stage-progression-number,
.stage-progression-step.is-preview a:focus-visible .stage-progression-number {
    background: var(--sp-card-surface);
    border-color: var(--sp-accent);
    color: var(--sp-accent);
}

.stage-progression-step.is-draft .stage-progression-number,
.stage-progression-step.is-draft a:hover .stage-progression-number,
.stage-progression-step.is-draft a:focus-visible .stage-progression-number {
    background: #fff8e6;
    border-color: #c9a227;
    color: #9a6700;
}

.student-stage-intro {
    margin: 0 0 var(--sp-space-4);
    color: var(--sp-text);
    font-size: 1rem;
    line-height: 1.5;
}

.consent-block {
    margin: var(--sp-space-4) 0;
    padding: 0;
    border: 0;
}

.consent-block legend {
    margin-bottom: var(--sp-space-3);
}

.consent-statement {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-space-3);
    margin: 0 0 var(--sp-space-3);
    color: var(--sp-text);
    line-height: 1.45;
}

.consent-statement input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
}

.consent-participant {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: var(--sp-space-3);
    margin-top: var(--sp-space-4);
}

.consent-name {
    text-transform: uppercase;
}

.consent-confirmed {
    margin: 0;
    padding-left: 1.25rem;
}

@media (max-width: 767.98px) {
    .consent-participant {
        grid-template-columns: 1fr;
    }
}

.substage-progress {
    margin: 0 0 var(--sp-space-4);
}

.substage-kicker {
    margin: 0 0 var(--sp-space-2);
    color: var(--sp-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.substage-steps {
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.substage-step {
    flex: none;
    min-width: 0;
}

.substage-step-marker {
    display: flex;
    align-items: center;
    gap: var(--sp-space-2);
    min-width: 0;
    padding: var(--sp-space-2) var(--sp-space-3);
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    background: var(--sp-hub-card-rest-surface);
}

.substage-step.is-current .substage-step-marker {
    border-color: var(--sp-hub-card-rest-border);
    background: var(--sp-hub-card-rest-surface);
}

.substage-step.is-complete .substage-step-marker {
    background: var(--sp-success-bg);
}

.substage-step-index {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid var(--sp-accent);
    border-radius: 50%;
    background: var(--sp-card-surface);
    color: var(--sp-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

.substage-step-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--sp-title);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.substage-steps.is-compact .substage-step-name {
    display: block;
    white-space: normal;
}

.survey-choices {
    display: grid;
    gap: var(--sp-space-2);
    margin-top: var(--sp-space-2);
}

.survey-choice {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-space-3);
    margin: 0;
    color: var(--sp-text);
    line-height: 1.4;
}

.survey-choice input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
}

.survey-opt-in-email {
    margin-top: 0.75rem;
}

.substage-step.is-current .substage-step-index {
    background: #f7255e;
    border-color: #f7255e;
    color: var(--sp-hub-card-rest-surface);
}

.substage-step.is-complete .substage-step-index {
    background: #fff;
    border-color: var(--sp-accent);
    color: var(--sp-accent);
}

.substage-step.is-complete.is-current .substage-step-marker {
    border-color: var(--sp-hub-card-rest-border);
}

.substage-step.is-complete.is-current .substage-step-index {
    background: #fff;
    border-color: var(--sp-accent);
    color: var(--sp-accent);
}

.substage-step.is-incomplete .substage-step-marker {
    background: var(--sp-card-surface);
}

.substage-step.is-locked .substage-step-index {
    background: var(--sp-card-surface);
    border-color: var(--sp-border-strong);
    color: var(--sp-text-muted);
}

.substage-step.is-locked .substage-step-name {
    color: var(--sp-text-muted);
}

a.substage-step-marker:hover .substage-step-name,
a.substage-step-marker:focus-visible .substage-step-name {
    text-decoration: underline;
}

a.substage-step-marker:focus-visible {
    outline: 2px solid var(--sp-accent);
    outline-offset: 3px;
    border-radius: var(--sp-radius-sm);
}

.modal-header .btn-close {
    padding: calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);
    margin: calc(-.5 * var(--bs-modal-header-padding-y)) calc(-0 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto;
}

.save-result-modal .modal-content {
    background: var(--sp-card-surface);
    color: var(--sp-text);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
}

.save-result-modal.is-success .modal-header {
    background: var(--sp-success-bg);
    color: var(--sp-success-text);
}

.save-result-modal.is-failure .modal-header {
    background: var(--sp-danger-bg);
    color: var(--sp-danger-text);
}

.student-stage-locked {
    margin: 0 0 15px;
    padding: var(--sp-space-4);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    background: #f7255e;
    color: #ffffff;
}

.stage-progression-step.is-current .stage-progression-number,
.stage-progression-step.is-current a:hover .stage-progression-number,
.stage-progression-step.is-current a:focus-visible .stage-progression-number {
    background: #f7255e;
    border-color: #f7255e;
    color: var(--sp-hub-card-rest-surface);
    outline: none;
}

.star-rating {
    --star-active: #f5b301;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    width: 100%;
    margin-top: var(--sp-space-2);
}

.star-rating-choice {
    position: relative;
    margin: 0;
    color: var(--sp-border-strong);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.star-rating-choice input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.star-rating-choice:has(input:checked),
.star-rating-choice:has(input:checked) ~ .star-rating-choice {
    color: var(--star-active);
}

.star-rating:not(:has(input:disabled)):hover .star-rating-choice {
    color: var(--sp-border-strong);
}

.star-rating:not(:has(input:disabled)) .star-rating-choice:hover,
.star-rating:not(:has(input:disabled)) .star-rating-choice:hover ~ .star-rating-choice {
    color: var(--star-active);
}

.star-rating-choice:has(input:disabled),
.star-rating-choice input:disabled {
    cursor: default;
}

.star-rating-choice:focus-within {
    outline: 3px solid var(--sp-field-focus-ring);
    outline-offset: 2px;
    border-radius: var(--sp-radius-sm);
}

.rating-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: var(--sp-space-2);
}

.rating-number-choice {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.rating-number-choice input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.rating-number-choice span {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--sp-border-strong);
    border-radius: 0.5rem;
    background: var(--sp-card-surface);
    color: var(--sp-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.rating-number-choice:has(input:checked) span {
    background: var(--sp-accent);
    border-color: var(--sp-accent);
    color: var(--sp-accent-text);
}

.rating-numbers:not(:has(input:disabled)) .rating-number-choice:hover span {
    border-color: var(--sp-accent);
    color: var(--sp-accent);
}

.rating-numbers:not(:has(input:disabled)) .rating-number-choice:has(input:checked):hover span {
    background: var(--sp-accent);
    color: var(--sp-accent-text);
}

.rating-number-choice:has(input:disabled),
.rating-number-choice input:disabled {
    cursor: default;
}

.rating-number-choice:focus-within {
    outline: 3px solid var(--sp-field-focus-ring);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.stage-progression-name {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@container stage (max-width: 58rem) {
    .stage-progression-name {
        -webkit-line-clamp: 1;
    }
}

@container stage (max-width: 42rem) {
    .stage-progression {
        padding-bottom: 0.75rem;
    }

    .stage-progression-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }

    .stage-progression-step:not(:last-child)::after {
        top: 0.95rem;
        left: calc(50% + 1.1rem);
        width: max(0px, calc(100% - 2.2rem));
    }

    .stage-progression-name {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.student-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: var(--sp-space-3);
    margin-bottom: var(--sp-space-3);
}

.student-progress-actions {
    display: flex;
    flex: 0 0 auto;
    gap: var(--sp-space-2);
}

.student-progress-body {
    flex: 1 1 auto;
    min-height: 0;
}

.student-progress-head .student-admin-card-subtitle {
    margin-bottom: 0;
}

.student-progress-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: var(--student-sidebar-width);
    min-width: 0;
}

.student-admin-footer--empty {
    display: none;
}

.student-sidebar-branding {
    flex: 0 0 auto;
    width: 100%;
    margin-top: var(--sp-space-4);
    padding-top: var(--sp-space-2);
}

.student-sidebar-branding .student-admin-footer-powered {
    width: 100%;
}

.student-sidebar-branding .student-admin-footer-logo-link {
    display: block;
    width: 50%;
    max-width: 10rem;
}

.student-sidebar-branding .student-admin-footer-logo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 180 / 44;
    object-fit: contain;
    object-position: left center;
}

.student-progress {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: var(--sp-space-4);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-card);
    background: var(--sp-card-surface);
}

@media (min-width: 992px) {
    .student-context-column.has-content,
    .student-progress-column {
        position: sticky;
        top: var(--student-workspace-sticky-top);
        z-index: 10;
        align-self: start;
        max-height: calc(100dvh - var(--student-workspace-sticky-top) - var(--sp-space-4));
        background: var(--sp-main-bg);
    }

    .student-context-column.has-content::before,
    .student-progress-column::before {
        content: '';
        position: absolute;
        right: 0;
        left: 0;
        top: calc(-1 * var(--student-workspace-sticky-top));
        height: var(--student-workspace-sticky-top);
        background: var(--sp-main-bg);
        pointer-events: none;
    }

    .student-context-column.has-content .student-context,
    .student-progress-column .student-progress {
        position: relative;
        z-index: 1;
        max-height: inherit;
        overflow: auto;
        scrollbar-width: thin;
    }

    .student-context-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: calc(-1 * var(--sp-space-4)) calc(-1 * var(--sp-space-4)) 0;
        padding: var(--sp-space-4) var(--sp-space-4) var(--sp-space-3);
        background: var(--sp-card-surface);
    }
}

.student-workspace:not(.is-collapsed) [data-progress="show"] {
    display: none;
}

a.student-progress-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.student-progress-card-link:hover .student-progress-card,
a.student-progress-card-link:focus-visible .student-progress-card {
    border-color: var(--sp-hub-card-rest-border);
    background: var(--sp-hub-card-rest-surface);
}

a.student-progress-card-link:focus-visible {
    outline: none;
}

a.student-progress-card-link:focus-visible .student-progress-card {
    outline: 3px solid var(--sp-field-focus-ring);
    outline-offset: 2px;
}

.student-progress-card-link + .student-progress-card-link,
.student-progress-card-link + .student-progress-card,
.student-progress-card + .student-progress-card-link,
.student-progress-card + .student-progress-card {
    margin-top: var(--sp-space-2);
}

.student-progress-card-body {
    padding: var(--sp-space-2) var(--sp-space-3);
}

.student-progress-card.is-complete .student-progress-card-body {
    background: var(--sp-success-bg);
}

.student-progress-card.is-complete .student-admin-badge {
    background: #fff;
}

.student-progress-card.is-draft .student-progress-card-body {
    background: #fff8e6;
}

.student-progress-card.is-draft .student-progress-card-status {
    color: #9a6700;
}

.student-progress-card.is-current {
    background: var(--sp-hub-card-rest-surface);
    border-color: var(--sp-hub-card-rest-border);
}

.student-progress-card-heading {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.3;
}

.student-progress-card-row {
    display: flex;
    align-items: center;
    gap: var(--sp-space-2);
    width: 100%;
    font-weight: 600;
}

.student-progress-card-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-progress-card-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--sp-space-1);
    color: var(--sp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.student-progress-card .student-admin-badge {
    flex: 0 0 auto;
}

.student-progress-substage-percent {
    background: var(--sp-surface-raised);
    color: var(--sp-text);
}

@media (min-width: 992px) {
    .student-workspace.is-collapsed {
        grid-template-columns: var(--student-sidebar-width) minmax(0, 1fr) auto;
    }

    .student-workspace.is-collapsed:not(:has(.student-context-column.has-content)) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .student-workspace.is-collapsed .student-progress-column {
        width: auto;
        max-height: none;
    }

    .student-workspace.is-collapsed .student-progress {
        width: auto;
        max-height: none;
        overflow: visible;
    }

    .student-workspace.is-collapsed .student-progress-hello,
    .student-workspace.is-collapsed .student-progress-body,
    .student-workspace.is-collapsed [data-progress="close"] {
        display: none;
    }

    .student-workspace.is-collapsed .student-progress-head {
        margin-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .student-workspace,
    .student-workspace.is-collapsed {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-space-3);
    }

    .student-workspace:has(.student-context-column.has-content) {
        grid-template-areas:
            "progress"
            "context"
            "main";
    }

    .student-workspace:not(:has(.student-context-column.has-content)) {
        grid-template-areas:
            "progress"
            "main";
    }

    .student-context-column.has-content {
        display: block;
        grid-area: context;
        position: static;
        max-height: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .student-context {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
        overflow-wrap: anywhere;
    }

    .student-context-heading {
        position: static;
        margin: 0;
        padding: 0 0 var(--sp-space-3);
        max-width: 100%;
    }

    .student-context-heading > :is(h1, p) {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .student-main-column {
        grid-area: main;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: visible;
    }

    .student-workspace {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: visible;
    }

    .student-admin-theme > .student-admin-main:has(.student-workspace) {
        overflow-x: visible;
    }

    .stage-progression-bar {
        box-shadow: none;
        width: 100vw;
        max-width: 100vw;
        margin-inline: calc(50% - 50vw);
        padding-inline: var(--sp-space-3);
        box-sizing: border-box;
    }

    .stage-progression-bar::before {
        display: none;
    }

    .stage-progression {
        justify-content: flex-start;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 1rem;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .stage-progression-step {
        flex: 0 0 auto;
        min-width: 2.75rem;
        max-width: none;
    }

    .student-progress-column {
        grid-area: progress;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        position: static;
        max-height: none;
        min-width: 0;
        box-sizing: border-box;
    }

    .student-workspace:not(.is-open) .student-progress {
        width: 100%;
        height: auto;
    }

    .student-workspace:not(.is-open) .student-progress-hello,
    .student-workspace:not(.is-open) .student-progress-body,
    .student-workspace:not(.is-open) [data-progress="close"] {
        display: none;
    }

    .student-workspace:not(.is-open) .student-progress-head {
        margin-bottom: 0;
    }

    .student-workspace:not(.is-open) [data-progress="show"] {
        display: inline-block;
    }

    .student-workspace.is-open .student-progress-column {
        width: 100%;
        min-width: 0;
        height: auto;
        align-self: stretch;
    }

    .student-workspace.is-open .student-progress {
        height: auto;
        max-height: min(70vh, 28rem);
        overflow: auto;
    }

    .student-workspace.is-open [data-progress="show"] {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .student-admin-theme .d-flex.flex-wrap.gap-2 > .btn {
        width: 100%;
    }

    .student-progress-toggle {
        width: auto;
    }
}

.review-team-panel.has-team {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sp-field-border, #dee2e6);
}

.allocation-count {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.invest-results-table .invest-results-col-growth {
    background-color: rgba(25, 135, 84, 0.1);
}

.invest-results-table .invest-results-col-growth-total {
    background-color: rgba(25, 135, 84, 0.18);
}

.invest-results-table .invest-results-col-impact {
    background-color: rgba(13, 110, 253, 0.1);
}

.invest-results-table .invest-results-col-impact-total {
    background-color: rgba(13, 110, 253, 0.18);
}

.invest-results-table .invest-results-col-overall {
    background-color: rgba(33, 37, 41, 0.08);
    font-weight: 600;
}

.invest-results-table thead .invest-results-col-growth,
.invest-results-table thead .invest-results-col-impact,
.invest-results-table thead .invest-results-col-overall {
    border-bottom-width: 2px;
}

.results-calculation > summary.results-calculation-summary,
.results-example > summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.results-calculation > summary.results-calculation-summary::-webkit-details-marker,
.results-example > summary::-webkit-details-marker {
    display: none;
}

.results-calculation > summary.results-calculation-summary {
    padding: 1rem 1.25rem;
}

.results-calculation > summary.results-calculation-summary::before,
.results-example > summary::before {
    content: '▸ ';
}

.results-calculation[open] > summary.results-calculation-summary::before,
.results-example[open] > summary::before {
    content: '▾ ';
}

.review-voted {
    margin-bottom: 1.25rem;
}

.review-voted-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-voted-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--sp-field-border, #dee2e6);
    border-radius: var(--sp-radius-sm, 0.375rem);
    background: var(--sp-field-bg, #fff);
    color: inherit;
    text-decoration: none;
}

.review-voted-team:hover,
.review-voted-team.is-current {
    border-color: rgba(247, 37, 94, 0.45);
    background: rgba(247, 37, 94, 0.08);
    color: inherit;
}

.review-team-picker {
    position: relative;
}

.review-team-picker-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    max-height: 16rem;
    margin: 0;
    padding: 0.25rem 0;
    overflow: auto;
    list-style: none;
    background: var(--sp-field-bg, #fff);
    color: var(--sp-field-text, inherit);
    border: 1px solid var(--sp-field-border, #ced4da);
    border-radius: var(--sp-radius-sm, 0.375rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.review-team-picker-list[hidden],
.review-team-picker-list > li[hidden] {
    display: none;
}

.review-team-picker-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.review-team-picker-option.is-active,
.review-team-picker-option:hover {
    background: rgba(247, 37, 94, 0.08);
}

.review-team-picker-status {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .student-admin-theme .btn,
    .student-progress {
        transition: none;
    }
}

/* Admin — VentureLab insights */
.insights-page {
    max-width: 72rem;
}

.insights-brief-kicker,
.insights-step-label {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.insights-framing {
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 48rem;
}

.insights-block-label {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.insights-evidence-question {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.insights-narrative {
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 48rem;
}

.insights-standard .fw-semibold {
    line-height: 1.5;
}

.insights-answer-block + .insights-answer-block {
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.insights-lead {
    max-width: 42rem;
    line-height: 1.55;
}

.insights-meta-pill {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.insights-jump-label {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .insights-jump .card-body {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .insights-jump-label {
        margin-bottom: 0 !important;
    }
}

.insights-jump-pills .nav-link {
    --bs-nav-pills-link-active-bg: var(--bs-primary, #0d6efd);
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
}

.insights-skill {
    scroll-margin-top: 1rem;
}

.insights-skill-index {
    color: var(--bs-primary, #0d6efd);
    display: inline-block;
    font-variant-numeric: tabular-nums;
    margin-right: 0.35rem;
    min-width: 1.25rem;
}

.insights-definition {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 48rem;
}

.insights-stat {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.insights-stat-value {
    font-size: 1.65rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.insights-stat-label {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.insights-details-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insights-details {
    border: 1px solid var(--bs-border-color, #dee2e6);
    overflow: hidden;
}

.insights-details-summary {
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
    padding: 0.75rem 1rem;
    user-select: none;
}

.insights-details-summary::-webkit-details-marker {
    display: none;
}

.insights-details-summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.45rem;
    transition: transform 0.15s ease;
}

.insights-details[open] .insights-details-summary::before {
    transform: rotate(90deg);
}

.insights-details-body {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding: 0.75rem 1rem 1rem;
}

.insights-details-body:has(.table-responsive) {
    padding: 0;
}

.insights-source-list {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.875rem;
    padding-left: 1.15rem;
}

.insights-quotes-heading {
    margin-bottom: 0.75rem;
}

.insights-quotes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insights-quote {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
    border-left: 4px solid var(--bs-primary, #0d6efd);
    border-radius: 0.375rem;
    margin: 0;
    padding: 1rem 1.1rem;
}

.insights-quote-text {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

.insights-quote-source {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8125rem;
    margin: 0;
}

.insights-empty {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-style: dashed !important;
}

.insights-footer {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.insights-table th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
