:root {
    --bg: #011b3c;
    --bg-deep: #02112a;
    --bg-mid: #0a2b59;
    --surface: rgba(4, 28, 65, 0.78);
    --surface-strong: rgba(1, 27, 60, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.05);
    --border: rgba(84, 201, 244, 0.22);
    --border-strong: rgba(244, 120, 32, 0.3);
    --text: #f5f9ff;
    --muted: #b5c6e4;
    --orange: #f47820;
    --cyan: #54c9f4;
    --green: #87c545;
    --purple: #9b51e0;
    --yellow: #d2d629;
    --teal: #2bccaf;
    --red: #e24248;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --radius-sm: 18px;
    --font-main: "Aptos Display", "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(circle at 14% 12%, rgba(84, 201, 244, 0.18), transparent 24%),
        radial-gradient(circle at 86% 18%, rgba(244, 120, 32, 0.18), transparent 26%),
        radial-gradient(circle at 72% 76%, rgba(155, 81, 224, 0.18), transparent 18%),
        radial-gradient(circle at 22% 80%, rgba(135, 197, 69, 0.14), transparent 20%),
        linear-gradient(140deg, #010d20 0%, #011b3c 42%, #072a57 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background:
        linear-gradient(rgba(84, 201, 244, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 201, 244, 0.04) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

body::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 25%, transparent 75%, rgba(255, 255, 255, 0.03));
    opacity: 0.65;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: white;
}

.text-light-emphasis {
    color: var(--muted) !important;
}

.page-shell {
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 1;
}

.tech-grid {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(transparent 0, rgba(84, 201, 244, 0.025) 48%, transparent 100%),
        linear-gradient(90deg, transparent 0, rgba(244, 120, 32, 0.025) 52%, transparent 100%);
    background-size: 100% 180px, 260px 100%;
    pointer-events: none;
    z-index: -1;
}

.brand-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.brand-float {
    position: absolute;
    opacity: 0.16;
    filter: drop-shadow(0 0 30px rgba(84, 201, 244, 0.25));
}

.gear-spin {
    animation: gearSpin 24s linear infinite;
}

.gear-orange {
    top: 9rem;
    right: -3rem;
    width: 15rem;
}

.gear-blue {
    left: -4rem;
    bottom: 15rem;
    width: 11rem;
    animation-duration: 28s;
    animation-direction: reverse;
}

.gear-green {
    right: -2.8rem;
    bottom: 6.5rem;
    width: 5.8rem;
    opacity: 0.1;
    animation-duration: 18s;
}

.gear-ghost {
    position: absolute;
    top: 10rem;
    left: 12%;
    width: 24rem;
    opacity: 0.05;
    animation: drift 16s ease-in-out infinite;
}

.brand-watermark {
    position: absolute;
    left: 6.5rem;
    bottom: 2.3rem;
    width: min(34rem, 40vw);
    opacity: 0.04;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(1, 16, 37, 0.78);
    border-bottom: 1px solid rgba(84, 201, 244, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.signal-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), var(--cyan), var(--green), transparent);
    opacity: 0.9;
}

.navbar {
    padding: 0.9rem 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
}

.brand-logo-shell {
    width: 4rem;
    height: 4rem;
    border-radius: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(244, 120, 32, 0.16), rgba(84, 201, 244, 0.16)),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(84, 201, 244, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 14px 30px rgba(0, 0, 0, 0.2);
}

.brand-headmark {
    width: 3rem;
    height: auto;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    align-items: center;
    text-align: center;
}

.brand-wordmark {
    width: clamp(11rem, 19vw, 15rem);
    height: auto;
    display: block;
}

.brand-lockup small {
    color: rgba(181, 198, 228, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.nav-link {
    color: rgba(245, 249, 255, 0.78);
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--cyan), var(--green));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: white;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
}

.nav-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown .dropdown-menu {
    margin-top: 0.7rem;
    padding: 0.55rem;
    min-width: 13rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(84, 201, 244, 0.18);
    background:
        linear-gradient(180deg, rgba(11, 39, 80, 0.98), rgba(1, 27, 60, 0.96)),
        rgba(1, 27, 60, 0.96);
    box-shadow:
        0 24px 42px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(84, 201, 244, 0.06);
}

.nav-dropdown .dropdown-item {
    border-radius: 0.95rem;
    padding: 0.75rem 0.9rem;
    color: rgba(245, 249, 255, 0.86);
    font-weight: 700;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus {
    color: white;
    background:
        linear-gradient(135deg, rgba(244, 120, 32, 0.16), rgba(84, 201, 244, 0.16)),
        rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.nav-toggle {
    border-color: rgba(84, 201, 244, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(84, 201, 244, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 20px rgba(0, 0, 0, 0.12);
}

.language-switcher-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.language-chip {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(245, 249, 255, 0.78);
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.language-chip:hover,
.language-chip:focus {
    color: white;
    background: rgba(84, 201, 244, 0.14);
    transform: translateY(-1px);
}

.language-chip.is-active {
    color: white;
    background: linear-gradient(135deg, rgba(244, 120, 32, 0.94), rgba(84, 201, 244, 0.88));
    box-shadow: 0 10px 24px rgba(84, 201, 244, 0.18);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-chip {
    display: grid;
    gap: 0.1rem;
    min-width: min(20rem, 100%);
    padding: 0.65rem 1rem 0.7rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(84, 201, 244, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 20px rgba(0, 0, 0, 0.12);
}

.account-chip-label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-chip strong {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.2;
    word-break: break-word;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
    border: 1px solid rgba(84, 201, 244, 0.14);
}

.btn-brand {
    border: none;
    color: white;
    background: linear-gradient(135deg, var(--orange), #ff9948 48%, var(--cyan));
    box-shadow: 0 18px 38px rgba(244, 120, 32, 0.22);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.btn-brand:hover,
.btn-brand:focus {
    color: white;
    background: linear-gradient(135deg, #ff8737, var(--orange) 45%, #69d5ff);
}

@media (max-width: 991.98px) {
    .language-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-actions,
    .account-toolbar {
        width: 100%;
    }

    .account-chip {
        width: 100%;
        min-width: 0;
    }
}

.btn-outline-light {
    border-color: rgba(84, 201, 244, 0.24);
    color: var(--text);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(84, 201, 244, 0.1);
    border-color: rgba(84, 201, 244, 0.42);
    color: white;
}

.audit-log-actions {
    align-items: stretch;
}

.audit-log-actions .btn,
.audit-log-actions .user-chip {
    min-height: 100%;
}

.audit-log-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.glass-card,
.hero-panel,
.feature-card,
.subtle-card,
.metric-card,
.auth-card,
.auth-brand-panel,
.status-card,
.dashboard-banner {
    background:
        linear-gradient(180deg, rgba(11, 39, 80, 0.82), rgba(1, 27, 60, 0.82)),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.glass-card::before,
.hero-panel::before,
.feature-card::before,
.subtle-card::before,
.metric-card::before,
.auth-card::before,
.auth-brand-panel::before,
.status-card::before,
.dashboard-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 70%);
    opacity: 0.6;
}

.glass-card,
.auth-card,
.auth-brand-panel {
    padding: 1.75rem;
}

.hero-panel {
    padding: 2.5rem;
}

.subtle-card {
    padding: 1.2rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.feature-card {
    padding: 1.75rem;
}

.feature-card h2,
.glass-card h2,
.auth-card h1,
.hero-panel h1,
.dashboard-banner h1 {
    color: #fbfdff;
}

.feature-step,
.eyebrow,
.mini-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
}

.eyebrow,
.mini-label {
    color: var(--cyan);
}

.feature-step {
    color: var(--yellow);
}

.feature-chip {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
    border: 1px solid rgba(84, 201, 244, 0.14);
}

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

.stack-list p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-banner {
    padding: 1.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-banner-copy {
    display: grid;
    gap: 0.35rem;
    text-align: center;
}

.dashboard-banner-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-mascot {
    width: 5.4rem;
    height: auto;
    filter: drop-shadow(0 12px 25px rgba(84, 201, 244, 0.18));
    animation: mascotFloat 5.5s ease-in-out infinite;
}

.dashboard-mascot.teacher {
    width: 6rem;
}

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

.metric-card {
    padding: 1.3rem 1.35rem;
}

.metric-card:nth-child(1) {
    border-color: rgba(244, 120, 32, 0.32);
}

.metric-card:nth-child(2) {
    border-color: rgba(84, 201, 244, 0.3);
}

.metric-card:nth-child(3) {
    border-color: rgba(135, 197, 69, 0.32);
}

.metric-card:nth-child(4) {
    border-color: rgba(155, 81, 224, 0.28);
}

.metric-card:nth-child(5) {
    border-color: rgba(43, 204, 175, 0.28);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-card strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 2.15rem;
    line-height: 1.1;
}

.quick-links {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-links a {
    color: var(--muted);
    font-weight: 700;
}

.modern-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(84, 201, 244, 0.12);
    margin-bottom: 0;
}

.modern-table thead th {
    color: rgba(245, 249, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom-color: rgba(84, 201, 244, 0.16);
}

.modern-table tbody tr[data-row-link] {
    cursor: pointer;
}

.modern-table tbody tr[data-row-link]:hover > * {
    background-color: rgba(84, 201, 244, 0.05);
}

.table-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.student-entry-link {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.student-entry-link:hover,
.student-entry-link:focus-visible {
    color: var(--cyan);
    text-decoration: underline;
}

.title-with-swatch {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.color-swatch {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    margin-top: 0.28rem;
    border-radius: 999px;
    background: var(--accent-color, var(--cyan));
    box-shadow:
        0 0 0 0.2rem color-mix(in srgb, var(--accent-color, var(--cyan)) 22%, transparent),
        0 0 24px color-mix(in srgb, var(--accent-color, var(--cyan)) 28%, transparent);
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.9rem;
}

.color-picker-item {
    min-width: 0;
}

.color-choice {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 4.1rem;
    padding: 0.9rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(84, 201, 244, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.color-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 201, 244, 0.28);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.color-choice-swatch {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border-radius: 0.95rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 28px rgba(0, 0, 0, 0.2);
}

.color-choice-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.color-choice-copy strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.2;
}

.color-choice-copy span {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-check:checked + .color-choice {
    border-color: color-mix(in srgb, var(--green) 45%, rgba(84, 201, 244, 0.18));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.05);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.2),
        0 0 0 0.18rem rgba(84, 201, 244, 0.14);
}

.btn-check:focus-visible + .color-choice {
    border-color: rgba(84, 201, 244, 0.56);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.2),
        0 0 0 0.2rem rgba(84, 201, 244, 0.18);
}

.guardian-card {
    display: grid;
    gap: 0.55rem;
}

.guardian-card .mini-label {
    color: color-mix(in srgb, var(--green) 56%, #ffffff 44%);
}

.guardian-card .row {
    row-gap: 0.15rem;
}

.student-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.85rem;
}

.student-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.student-choice input {
    flex: 0 0 auto;
}

.student-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 201, 244, 0.28);
}

.student-choice:has(input:checked) {
    border-color: rgba(135, 197, 69, 0.38);
    background:
        linear-gradient(180deg, rgba(135, 197, 69, 0.12), rgba(84, 201, 244, 0.06)),
        rgba(255, 255, 255, 0.05);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(135, 197, 69, 0.1);
}

.student-choice span {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.schedule-block-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.schedule-block-pill {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(84, 201, 244, 0.14);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.schedule-block-pill.is-free {
    color: var(--muted);
}

.schedule-block-pill:not(.is-free) {
    background: rgba(226, 66, 72, 0.12);
    border-color: rgba(226, 66, 72, 0.22);
}

.form-control,
.form-select {
    border-radius: 1rem;
    border: 1px solid rgba(84, 201, 244, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(84, 201, 244, 0.64);
    box-shadow: 0 0 0 0.2rem rgba(84, 201, 244, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-select option {
    color: #081420;
}

select[multiple].form-select {
    min-height: 14rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(84, 201, 244, 0.26);
}

.form-check-input:checked {
    background-color: var(--green);
    border-color: var(--green);
}

.detail-list {
    display: grid;
    gap: 1rem;
}

.detail-list div {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(84, 201, 244, 0.1);
}

.detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.detail-list dd {
    margin: 0;
}

.sequence-list {
    padding-left: 1.25rem;
}

.sequence-list li + li {
    margin-top: 0.35rem;
}

.accent-card {
    --accent-color: var(--cyan);
    border-color: color-mix(in srgb, var(--accent-color) 30%, rgba(84, 201, 244, 0.16));
    box-shadow:
        var(--shadow),
        0 0 0 1px color-mix(in srgb, var(--accent-color) 8%, transparent);
}

.accent-card::after {
    content: "";
    position: absolute;
    inset: auto 1.35rem 0.95rem 1.35rem;
    height: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), transparent 72%);
    opacity: 0.88;
    pointer-events: none;
}

.accent-card::before {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent-color) 55%, #ffffff 45%), transparent 70%);
}

.accent-card > * {
    position: relative;
    z-index: 1;
}

.accent-card .mini-label,
.accent-card .eyebrow {
    color: color-mix(in srgb, var(--accent-color) 72%, #ffffff 28%);
}

.accent-card .progress-shell {
    background: color-mix(in srgb, var(--accent-color) 14%, rgba(255, 255, 255, 0.08));
}

.program-journey-card {
    padding: 1.55rem;
}

.program-journey-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.program-journey-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.program-journey-meta span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(84, 201, 244, 0.1);
}

.program-journey-progress {
    min-width: 8.5rem;
    padding: 0.9rem 1rem;
    border-radius: 1.2rem;
    text-align: right;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(84, 201, 244, 0.12);
}

.program-journey-progress strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
}

.program-journey-progress span {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.program-space-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
    padding-top: 1.1rem;
}

.program-space-map::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.65rem;
    height: 0.28rem;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(84, 201, 244, 0.18), rgba(155, 81, 224, 0.12), rgba(135, 197, 69, 0.18));
    box-shadow: 0 0 0 1px rgba(84, 201, 244, 0.08);
}

.program-space-stop {
    position: relative;
    display: grid;
    gap: 0.9rem;
    transform: translateY(var(--stop-offset, 0));
    z-index: 1;
}

.program-space-track {
    position: absolute;
    top: 4.75rem;
    left: calc(50% - 0.5rem);
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0.25rem rgba(84, 201, 244, 0.05);
}

.program-space-planet-shell {
    position: relative;
    min-height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-space-planet {
    width: 5.8rem;
    height: 5.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.34), transparent 28%),
        radial-gradient(circle at 50% 58%, rgba(1, 27, 60, 0.08), transparent 70%),
        linear-gradient(145deg, rgba(84, 201, 244, 0.86), rgba(1, 27, 60, 0.94));
    box-shadow:
        inset -16px -14px 30px rgba(1, 27, 60, 0.26),
        0 18px 32px rgba(0, 0, 0, 0.24);
}

.program-space-planet::before,
.program-space-planet::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.program-space-planet::before {
    inset: -0.45rem;
    border: 1px dashed rgba(84, 201, 244, 0.28);
}

.program-space-planet::after {
    inset: -0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.program-space-sequence {
    position: relative;
    z-index: 1;
}

.program-space-flag {
    position: absolute;
    top: 0.35rem;
    right: calc(50% - 4.1rem);
    padding: 0.32rem 0.6rem;
    border-radius: 0.7rem 0.7rem 0.7rem 0.1rem;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 62%, #ffffff 38%));
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.program-space-copy {
    display: grid;
    gap: 0.18rem;
    padding: 1rem 1rem 1.05rem;
    min-height: 8rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(84, 201, 244, 0.12);
}

.program-space-copy strong {
    font-size: 1rem;
    line-height: 1.25;
}

.program-space-copy span,
.program-space-copy small {
    color: var(--muted);
}

.program-space-copy small {
    font-size: 0.84rem;
}

.program-space-status {
    color: color-mix(in srgb, var(--accent-color) 76%, #ffffff 24%) !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.program-space-stop.is-completed .program-space-planet {
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.34), transparent 28%),
        radial-gradient(circle at 50% 58%, rgba(1, 27, 60, 0.08), transparent 70%),
        linear-gradient(145deg, rgba(135, 197, 69, 0.96), rgba(43, 204, 175, 0.88));
}

.program-space-stop.is-current .program-space-planet {
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.34), transparent 28%),
        radial-gradient(circle at 50% 58%, rgba(1, 27, 60, 0.08), transparent 70%),
        linear-gradient(145deg, rgba(244, 120, 32, 0.96), rgba(84, 201, 244, 0.86));
}

.program-space-stop.is-history .program-space-planet {
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.28), transparent 28%),
        radial-gradient(circle at 50% 58%, rgba(1, 27, 60, 0.08), transparent 70%),
        linear-gradient(145deg, rgba(43, 204, 175, 0.88), rgba(1, 27, 60, 0.92));
}

.program-space-stop.is-upcoming .program-space-planet {
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 50% 58%, rgba(1, 27, 60, 0.08), transparent 70%),
        linear-gradient(145deg, rgba(34, 61, 107, 0.94), rgba(7, 28, 62, 0.98));
}

.program-space-stop.is-next .program-space-copy,
.program-space-stop.is-current .program-space-copy {
    border-color: color-mix(in srgb, var(--accent-color) 42%, rgba(84, 201, 244, 0.2));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.progress-shell {
    height: 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    width: min(420px, 100%);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--cyan), var(--green));
}

.progress-bar-fill-accent {
    background: linear-gradient(
        90deg,
        var(--accent-color),
        color-mix(in srgb, var(--accent-color) 68%, #ffffff 32%)
    );
}

.status-form {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.status-form .form-select {
    min-width: 10rem;
}

.report-download-form {
    display: grid;
    gap: 0.5rem;
}

.report-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.report-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 1.25rem;
}

.reports-hub-card {
    display: grid;
    gap: 1rem;
}

.reports-hub-card p {
    margin: 0;
}

.reports-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.reports-hub-select {
    display: grid;
    gap: 0.45rem;
}

.attendance-status-select {
    min-width: 10rem;
    max-width: 12rem;
}

.hero-command {
    margin-top: 0.4rem;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy .lead {
    color: var(--muted);
    max-width: 38rem;
}

.hero-wordmark {
    width: min(32rem, 100%);
    display: block;
    margin-top: 1rem;
}

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

.status-card {
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
}

.status-card span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.status-card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.02rem;
}

.hero-stage {
    min-height: 36rem;
    padding: 1.35rem;
    background:
        radial-gradient(circle at 68% 28%, rgba(84, 201, 244, 0.14), transparent 22%),
        radial-gradient(circle at 70% 72%, rgba(244, 120, 32, 0.12), transparent 20%),
        radial-gradient(circle at 32% 84%, rgba(135, 197, 69, 0.1), transparent 16%),
        linear-gradient(160deg, rgba(1, 27, 60, 0.98), rgba(10, 43, 89, 0.82));
}

.hero-stage-grid {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.4rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-stage-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.35rem 0.5rem 0.35rem 0.15rem;
}

.hero-stage-copy-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-stage-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 800;
}

.hero-stage-title-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
}

.hero-stage-panel-gear {
    width: 2.7rem;
    height: auto;
    animation: gearSpin 20s linear infinite;
    filter: drop-shadow(0 0 16px rgba(135, 197, 69, 0.3));
}

.hero-stage-title {
    margin: 0;
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #f9fcff;
}

.hero-stage-subtitle {
    color: rgba(245, 249, 255, 0.76);
    font-size: 0.95rem;
    line-height: 1.4;
}

.hero-stage-visual {
    position: relative;
    min-height: 33rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.2rem 0.6rem 0;
}

.hero-stage-ring {
    position: absolute;
    inset: 12% 10% 5%;
    border-radius: 46% 46% 38% 38% / 40% 40% 54% 54%;
    border: 1px solid rgba(84, 201, 244, 0.16);
    background:
        radial-gradient(circle at 50% 46%, rgba(84, 201, 244, 0.12), transparent 56%),
        linear-gradient(180deg, rgba(84, 201, 244, 0.04), rgba(255, 255, 255, 0));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(84, 201, 244, 0.03);
}

.hero-stage-glow {
    position: absolute;
    left: 50%;
    bottom: 9%;
    width: 17rem;
    height: 17rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(84, 201, 244, 0.24) 0%, rgba(84, 201, 244, 0.08) 44%, transparent 76%);
    filter: blur(12px);
    z-index: 1;
    transform: translateX(-50%);
}

.hero-rocko-main {
    position: relative;
    width: min(18rem, 84%);
    height: auto;
    z-index: 2;
    animation: mascotFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.34));
    margin-bottom: -0.45rem;
}

.hero-gear {
    position: absolute;
    z-index: 1;
    opacity: 0.3;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.06));
}

.hero-gear-blue {
    width: 5.5rem;
    top: 1.4rem;
    right: 1.6rem;
    animation: gearSpin 22s linear infinite;
}

.hero-gear-green {
    width: 4.4rem;
    left: 1.25rem;
    bottom: 1.75rem;
    animation: gearSpin 16s linear infinite reverse;
}

.hero-stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-stage-tags span {
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(84, 201, 244, 0.12);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

.feature-icon {
    width: 3.4rem;
    height: auto;
    display: block;
    margin: 0.85rem 0 1rem;
}

.feature-icon-ghost {
    opacity: 0.72;
}

.brand-story-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
}

.brand-story-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
}

.brand-story-card.secondary {
    background:
        linear-gradient(180deg, rgba(155, 81, 224, 0.16), rgba(1, 27, 60, 0.78)),
        var(--surface);
}

.story-rocko {
    width: 7.5rem;
    height: auto;
    animation: mascotFloat 6.5s ease-in-out infinite;
}

.story-gear {
    width: 6.5rem;
    height: auto;
    animation: gearSpin 22s linear infinite;
}

.auth-shell {
    min-height: calc(100vh - 13rem);
    display: grid;
    place-items: center;
}

.auth-console {
    width: min(100%, 68rem);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: stretch;
}

.auth-brand-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    min-height: 100%;
    background:
        radial-gradient(circle at 78% 26%, rgba(84, 201, 244, 0.14), transparent 24%),
        radial-gradient(circle at 28% 84%, rgba(135, 197, 69, 0.12), transparent 18%),
        linear-gradient(160deg, rgba(8, 32, 68, 0.96), rgba(3, 21, 49, 0.92));
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 25rem;
    text-align: center;
    margin-inline: auto;
}

.auth-brand-wordmark {
    width: min(18rem, 100%);
    display: block;
    margin: 1rem auto 0.9rem;
}

.auth-brand-title {
    margin: 0 0 0.95rem;
    max-width: 24rem;
    font-size: clamp(2.2rem, 4vw, 3.15rem);
    line-height: 0.93;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #fbfdff;
    margin-inline: auto;
    text-align: center;
}

.auth-brand-description {
    margin: 0;
    max-width: 24rem;
    font-size: 1rem;
    line-height: 1.55;
    margin-inline: auto;
}

.auth-console-compact {
    width: min(100%, 58rem);
    grid-template-columns: 0.88fr 1.12fr;
}

.auth-brand-content-centered {
    display: grid;
    justify-items: center;
}

.auth-stage {
    position: relative;
    min-height: 22rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.8rem 0 0;
    overflow: hidden;
}

.auth-stage-orbit {
    position: absolute;
    inset: 7% 12% 3%;
    border-radius: 44% 44% 38% 38% / 38% 38% 58% 58%;
    border: 1px solid rgba(84, 201, 244, 0.16);
    background:
        radial-gradient(circle at 50% 44%, rgba(84, 201, 244, 0.12), transparent 54%),
        linear-gradient(180deg, rgba(84, 201, 244, 0.04), rgba(255, 255, 255, 0));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(84, 201, 244, 0.03);
}

.auth-stage-glow {
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(84, 201, 244, 0.24) 0%, rgba(244, 120, 32, 0.12) 44%, transparent 76%);
    filter: blur(14px);
    transform: translateX(-50%);
}

.auth-rocko {
    position: relative;
    width: min(15rem, 62%);
    max-width: 100%;
    height: auto;
    z-index: 2;
    animation: mascotFloat 6.4s ease-in-out infinite;
    filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.34));
    margin-bottom: 0.4rem;
}

.auth-card {
    width: 100%;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-wordmark {
    width: min(18rem, 100%);
    display: block;
}

.narrow-form {
    max-width: 68rem;
}

.narrow-card {
    max-width: 42rem;
    margin: 0 auto;
}

.alert-glass {
    border-radius: 1rem;
    border: 1px solid rgba(84, 201, 244, 0.14);
}

.alert-success {
    background: rgba(135, 197, 69, 0.16);
    color: white;
}

.alert-danger {
    background: rgba(226, 66, 72, 0.16);
    color: white;
}

.page-footer {
    padding: 0 0 2rem;
    color: var(--muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand img:first-child {
    width: 2rem;
    height: auto;
}

.footer-wordmark {
    width: 8.8rem;
    height: auto;
}

.calendar-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(20rem, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.calendar-board {
    padding: 1.2rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.calendar-weekdays div {
    padding: 0.2rem 0.35rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
}

.calendar-day {
    min-height: 9.6rem;
    padding: 0.65rem;
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(84, 201, 244, 0.12);
    position: relative;
}

.calendar-day.is-muted {
    opacity: 0.55;
}

.calendar-day.is-today {
    border-color: rgba(244, 120, 32, 0.48);
    box-shadow: inset 0 0 0 1px rgba(244, 120, 32, 0.14);
}

.calendar-day.has-sessions {
    border-color: rgba(84, 201, 244, 0.22);
}

.calendar-day-trigger {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0.15rem;
    background: transparent;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
    cursor: pointer;
}

.calendar-day-trigger:hover,
.calendar-day-trigger:focus-visible {
    color: inherit;
}

.calendar-day-trigger:hover .calendar-day-open-hint,
.calendar-day-trigger:focus-visible .calendar-day-open-hint {
    color: white;
    transform: translateX(2px);
}

.calendar-day-trigger:focus-visible {
    outline: 2px solid rgba(84, 201, 244, 0.5);
    outline-offset: 0.2rem;
    border-radius: 0.95rem;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: 800;
}

.calendar-day-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(226, 66, 72, 0.12);
    border: 1px solid rgba(226, 66, 72, 0.2);
    color: #ffd9db;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-day-summary {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.1rem;
    min-height: 0;
}

.calendar-day-stat {
    font-size: 2rem;
    font-weight: 900;
    line-height: 0.84;
    color: #f7fbff;
}

.calendar-day-stat.is-closure {
    font-size: 1.05rem;
    line-height: 1.1;
}

.calendar-day-stat-label {
    color: rgba(214, 227, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 100%;
}

.calendar-day-note {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.25;
}

.calendar-day-peek-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.calendar-day-peek-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    background: rgba(84, 201, 244, 0.1);
    border: 1px solid rgba(84, 201, 244, 0.16);
    color: #ddf8ff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.calendar-day-peek-pill.is-subtle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.calendar-day-empty {
    color: rgba(214, 227, 255, 0.38);
    font-size: 0.78rem;
    font-weight: 700;
}

.calendar-day-open-hint {
    margin-top: auto;
    color: rgba(84, 201, 244, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

body.calendar-overlay-open {
    overflow: hidden;
}

.calendar-day-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(1, 11, 28, 0.5);
    backdrop-filter: blur(12px);
}

.calendar-day-overlay[hidden] {
    display: none !important;
}

.calendar-day-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
}

.calendar-day-overlay-shell {
    position: relative;
    z-index: 1;
    width: min(92rem, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
}

.calendar-day-panel-label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.calendar-day-overlay-panel {
    padding: 1.5rem;
}

.calendar-day-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.calendar-day-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.calendar-day-overlay-title {
    margin: 0.3rem 0 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1;
}

.calendar-day-overlay-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.calendar-day-overlay-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.74rem;
    border-radius: 999px;
    background: rgba(84, 201, 244, 0.1);
    border: 1px solid rgba(84, 201, 244, 0.16);
    color: #ddf8ff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-day-overlay-stat.is-subtle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.calendar-day-overlay-stat.is-closure {
    background: rgba(226, 66, 72, 0.12);
    border-color: rgba(226, 66, 72, 0.2);
    color: #ffd9db;
}

.calendar-day-expanded-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.86fr);
    gap: 1rem;
}

.calendar-day-expanded-main,
.calendar-day-expanded-side {
    min-width: 0;
}

.calendar-day-expanded-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.calendar-day-sidecard,
.calendar-day-timeline-shell {
    display: grid;
    gap: 0.9rem;
    padding: 1.05rem;
    border-radius: 1.3rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(84, 201, 244, 0.12);
}

.calendar-day-timeline {
    position: relative;
    padding-left: 5.25rem;
    border-radius: 1.2rem;
    background: rgba(1, 14, 34, 0.42);
    border: 1px solid rgba(84, 201, 244, 0.08);
    overflow: hidden;
}

.calendar-day-timeline-markers {
    position: absolute;
    inset: 0;
}

.calendar-day-timeline-marker {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 0.8rem;
    align-items: center;
    pointer-events: none;
}

.calendar-day-timeline-label {
    color: rgba(214, 227, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.calendar-day-timeline-line {
    display: block;
    height: 1px;
    background: rgba(84, 201, 244, 0.12);
}

.calendar-day-timeline-blocks {
    position: absolute;
    inset: 0 0 0 5.25rem;
}

.calendar-day-timeline-block {
    position: absolute;
    left: 0.55rem;
    right: 0.75rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(84, 201, 244, 0.24), rgba(84, 201, 244, 0.12)),
        rgba(7, 28, 58, 0.92);
    border: 1px solid rgba(84, 201, 244, 0.3);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
    color: var(--text);
    min-height: 4.2rem;
}

.calendar-day-timeline-block.is-link {
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.calendar-day-timeline-block.is-link:hover {
    transform: translateY(-1px);
    border-color: rgba(84, 201, 244, 0.42);
    background:
        linear-gradient(135deg, rgba(84, 201, 244, 0.32), rgba(84, 201, 244, 0.16)),
        rgba(7, 28, 58, 0.96);
    color: white;
}

.calendar-day-timeline-time {
    color: #dff9ff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-day-timeline-title {
    font-weight: 900;
    line-height: 1.15;
}

.calendar-day-timeline-detail {
    color: rgba(214, 227, 255, 0.82);
    font-size: 0.84rem;
}

.calendar-day-empty-state {
    display: grid;
    place-items: center;
    min-height: 24rem;
    padding: 2rem;
    text-align: center;
    border-radius: 1.4rem;
    border: 1px dashed rgba(84, 201, 244, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.calendar-day-empty-state strong {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.calendar-session-stack,
.calendar-closure-stack {
    display: grid;
    gap: 0.55rem;
}

.calendar-session-block {
    display: grid;
    grid-template-columns: minmax(0, 6.1rem) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.75rem 0.8rem;
    border-radius: 0.95rem;
    background: rgba(84, 201, 244, 0.08);
    border: 1px solid rgba(84, 201, 244, 0.16);
    color: var(--text);
}

.calendar-session-block.is-link {
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.calendar-session-block.is-link:hover {
    transform: translateY(-1px);
    border-color: rgba(84, 201, 244, 0.28);
    background: rgba(84, 201, 244, 0.12);
    color: white;
}

.calendar-session-time {
    color: #54c9f4;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-session-copy {
    display: grid;
    gap: 0.15rem;
}

.calendar-session-title {
    font-weight: 800;
    line-height: 1.2;
}

.calendar-session-title-link {
    color: inherit;
    font-weight: 800;
    line-height: 1.2;
}

.calendar-session-title-link:hover {
    color: white;
}

.calendar-session-detail {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.calendar-session-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.calendar-closure-note {
    display: grid;
    gap: 0.16rem;
    padding: 0.72rem 0.8rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(226, 66, 72, 0.18);
    background: rgba(226, 66, 72, 0.08);
}

.calendar-closure-note.tone-holiday {
    border-color: rgba(210, 214, 41, 0.24);
    background: rgba(210, 214, 41, 0.1);
}

.calendar-closure-note.tone-closure {
    border-color: rgba(226, 66, 72, 0.18);
    background: rgba(226, 66, 72, 0.08);
}

.calendar-closure-title {
    font-weight: 800;
}

.calendar-closure-detail {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.calendar-sidebar {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.calendar-agenda {
    display: grid;
    gap: 0.9rem;
}

.calendar-agenda-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.calendar-agenda-manage {
    grid-template-columns: auto 1fr auto;
}

.calendar-agenda-date {
    min-width: 4.6rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-agenda-title {
    display: block;
    color: var(--text);
    font-weight: 800;
}

.calendar-agenda-time {
    color: #54c9f4;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.18rem;
}

.calendar-agenda-detail {
    margin-top: 0.2rem;
    font-size: 0.88rem;
}

@keyframes gearSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes mascotFloat {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1199.98px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-stage {
        min-height: 34rem;
    }

    .hero-stage-visual {
        min-height: 31rem;
    }

    .brand-story-grid {
        grid-template-columns: 1fr;
    }

    .calendar-shell {
        grid-template-columns: 1fr;
    }

    .calendar-day-expanded-grid {
        grid-template-columns: 1fr;
    }

    .report-scope-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hero-command .row {
        row-gap: 1.5rem;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-status-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage-visual {
        min-height: 25rem;
        padding: 0;
    }

    .auth-console {
        grid-template-columns: 1fr;
    }

    .brand-watermark {
        width: 46vw;
        left: 2.2rem;
        bottom: 1.9rem;
    }

    .program-space-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        padding-top: 1.25rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .glass-card,
    .feature-card,
    .auth-card,
    .auth-brand-panel,
    .dashboard-banner,
    .status-card {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .report-scope-grid {
        grid-template-columns: 1fr;
    }

    .brand-wordmark {
        width: 9.5rem;
    }

    .hero-stage {
        min-height: 28rem;
    }

    .hero-stage-grid {
        gap: 1rem;
    }

    .hero-stage-panel {
        padding: 0;
    }

    .hero-stage-title {
        font-size: 1.85rem;
    }

    .hero-stage-subtitle {
        font-size: 0.88rem;
    }

    .hero-stage-visual {
        min-height: 19rem;
    }

    .hero-stage-ring {
        inset: 10% 10% 6%;
    }

    .hero-rocko-main {
        width: 11.2rem;
    }

    .calendar-day {
        min-height: 8rem;
    }

    .calendar-day-stat {
        font-size: 1.35rem;
    }

    .calendar-day-overlay {
        padding: 0.65rem;
    }

    .calendar-day-overlay-shell {
        width: 100%;
        max-height: calc(100vh - 1.3rem);
    }

    .calendar-day-overlay-panel {
        padding: 1.1rem;
    }

    .calendar-day-overlay-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-day-timeline {
        padding-left: 4.2rem;
    }

    .calendar-day-timeline-marker {
        grid-template-columns: 3.2rem 1fr;
        gap: 0.5rem;
    }

    .calendar-day-timeline-blocks {
        inset: 0 0 0 4.2rem;
    }

    .calendar-session-block {
        grid-template-columns: 1fr;
    }

    .calendar-board {
        overflow-x: auto;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 44rem;
    }

    .dashboard-banner-side {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-mascot,
    .dashboard-mascot.teacher {
        width: 4.6rem;
    }

    .auth-brand-title {
        max-width: 14rem;
        font-size: 2rem;
    }

    .auth-stage {
        min-height: 16rem;
    }

    .auth-rocko {
        width: min(11rem, 68%);
    }

    .story-rocko {
        width: 5.8rem;
    }

    .story-gear {
        width: 4.8rem;
    }

    .brand-story-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-space-map {
        grid-template-columns: 1fr;
    }

    .program-space-map::before,
    .program-space-track {
        display: none;
    }

    .program-space-stop {
        transform: none;
    }

    .program-journey-progress {
        text-align: left;
    }
}
