:root {
    --primary: #00d0ff;
    --dark-bg: #05070a;
    --surface: #1a1f29;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;

    --negative: #ff4b4b;
    --positive: #3ddc84;
    --border: rgba(0, 208, 255, 0.15);
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: -1;
    pointer-events: none;
}

/* ---------- topbar ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2%;
    background: rgba(5, 7, 10, 0.85);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.topbar-brand {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 4px;
    background-color: var(--surface);
}

.header-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-transform: uppercase;
}

.topbar-nav {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.topbar-nav a {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active {
    color: var(--primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.inline-form {
    display: inline;
}

/* ---------- layout ---------- */

.page-content {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 5% 80px;
}

h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

h1 span, .accent {
    color: var(--primary);
    text-shadow: none;
}

p.lead {
    color: var(--text-dim);
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    color: #444;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background-color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: rgba(0, 208, 255, 0.1);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: transparent;
    color: var(--negative);
    border: 2px solid var(--negative);
}

.btn-danger:hover {
    background-color: rgba(255, 75, 75, 0.1);
}

.btn-positive {
    background-color: var(--positive);
    color: #04210f;
}

.btn-positive:hover {
    transform: translateY(-2px);
    box-shadow: none;
}



.btn-small {
    padding: 8px 16px;
    font-size: 0.7rem;
}

.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- cards ---------- */

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* ---------- badges ---------- */

.badge {
    display: inline-block;
    background: rgba(0, 208, 255, 0.1);
    color: var(--primary);
    padding: 5px 14px;
    border: 1px solid rgba(0, 208, 255, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-positive {
    background: rgba(61, 220, 132, 0.1);
    color: var(--positive);
    border-color: rgba(61, 220, 132, 0.4);
}

.badge-negative {
    background: rgba(255, 75, 75, 0.1);
    color: var(--negative);
    border-color: rgba(255, 75, 75, 0.4);
}

.badge-dim {
    background: rgba(160, 160, 160, 0.08);
    color: var(--text-dim);
    border-color: rgba(160, 160, 160, 0.25);
}

/* ---------- forms ---------- */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

input[type="text"], input[type="search"], textarea, select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

input[type="text"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 208, 255, 0.15);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.choice-row input[type="radio"],
.choice-row input[type="checkbox"] {
    accent-color: var(--primary);
}

.choice-row.is-correct {
    border: 1px solid rgba(61, 220, 132, 0.4);
    background: rgba(61, 220, 132, 0.05);
}

.choice-row.is-wrong {
    border: 1px solid rgba(255, 75, 75, 0.4);
    background: rgba(255, 75, 75, 0.05);
}

/* ---------- alerts ---------- */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(0, 208, 255, 0.07);
    border-color: rgba(0, 208, 255, 0.25);
    color: var(--text-main);
}

.alert-warn {
    background: rgba(255, 75, 75, 0.07);
    border-color: rgba(255, 75, 75, 0.3);
    color: var(--negative);
}

.alert-success {
    background: rgba(61, 220, 132, 0.07);
    border-color: rgba(61, 220, 132, 0.3);
    color: var(--positive);
}

/* ---------- tables ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: rgba(0, 208, 255, 0.03);
}

.table-wrap {
    overflow-x: auto;
}

.empty-state {
    color: var(--text-dim);
    text-align: center;
    padding: 40px 0;
}

/* ---------- tabs ---------- */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 208, 255, 0.08);
}

/* ---------- landing hero ---------- */

.hero-section {
    text-align: center;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: 2px;
}

/* ---------- error page ---------- */

.error-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: none;
}

.error-card {
    background: rgba(26, 31, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 208, 255, 0.2);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    color: var(--primary);
    text-shadow: none;
    letter-spacing: -2px;
}

.error-card h2 {
    font-size: 1.2rem;
    margin: 20px 0 30px;
}

/* ---------- progress ladder ---------- */

.ladder {
    display: flex;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.ladder-step {
    flex: 1;
    padding: 12px 6px;
    text-align: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ladder-step:last-child {
    border-right: none;
}

.ladder-step.reached {
    color: var(--primary);
    background: rgba(0, 208, 255, 0.1);
    box-shadow: inset 0 -2px 0 var(--primary);
}

@media (max-width: 700px) {
    .topbar {
        overflow-x: auto;
    }
    .page-content {
        padding: 30px 6% 60px;
    }
}

@media (max-width: 550px) {
    .ladder {
        flex-direction: column;
    }
    .ladder-step {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px;
    }
    .ladder-step:last-child {
        border-bottom: none;
    }
}

.student-welcome { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px; text-align: center; }
.student-welcome h1 { font-size: clamp(32px, 6vw, 68px); margin: 0; }
.student-sections { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 600px) { .student-sections { width: 100%; flex-direction: column; } }

.student-welcome .dot-title { width: min(100%, 760px); line-height: 0; }
.dot-title img { display: block; width: 100%; height: auto; }

@font-face { font-family: 'Doto'; src: url('/static/fonts/Doto.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
.student-welcome .dot-title { font-family: 'Doto', monospace; font-weight: 900; font-variation-settings: 'ROND' 100; font-size: clamp(30px, 7vw, 88px); line-height: 1.15; color: #00c8e8; letter-spacing: -0.035em; }

.student-welcome .dot-title { width: 100%; white-space: nowrap; font-size: clamp(17px, 4.7vw, 76px); }
.dot-title .welcome-name { color: #fff; text-shadow: none; }
.dot-title .welcome-training { color: #00c8e8; }

.student-welcome .dot-title, .student-welcome .dot-title span { text-shadow: none; }

.student-welcome .dot-title { text-transform: none; }

.student-home .bg-gradient { display: none; }

html:has(body.student-home), body.student-home { background: #05070a; }

.arrival-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #05070a; animation: arrival-reveal 3s ease forwards; }
.arrival-icons { position: relative; width: 100px; height: 100px; color: #fff; }
.arrival-icon { position: absolute; inset: 0; width: 100%; height: 100%; }
.arrival-aircraft { animation: arrival-aircraft 2.6s ease-in-out both; }
.arrival-headset { animation: arrival-headset 2.6s ease-in-out both; }
@keyframes arrival-aircraft { 0%,18% { opacity: 1; transform: scale(1); } 40%,65% { opacity: 0; transform: scale(.88); } 88%,100% { opacity: 1; transform: scale(1); } }
@keyframes arrival-headset { 0%,18% { opacity: 0; transform: scale(.88); } 40%,65% { opacity: 1; transform: scale(1); } 88%,100% { opacity: 0; transform: scale(.88); } }
@keyframes arrival-reveal { 0%,85% { opacity: 1; } 100% { opacity: 0; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .arrival-overlay { animation-duration: .2s; } .arrival-aircraft { animation: none; } .arrival-headset { display: none; } }

.header-project-links { display: flex; align-items: center; gap: 10px; }
.topbar { flex-wrap: wrap; }
@media (max-width: 650px) { .topbar > div:first-child { flex-wrap: wrap; flex-shrink: 1 !important; } .header-project-links { flex-wrap: wrap; } }

.rules-dialog { width: min(620px, 92vw); max-height: 90dvh; overflow: auto; padding: 28px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-main); background: #10151c; }
.rules-dialog::backdrop { background: rgba(0,0,0,.8); }
.rules-dialog li { margin-bottom: 16px; line-height: 1.6; }
.rules-confirm { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; line-height: 1.5; cursor: pointer; }
.rules-confirm input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--primary); }
.rules-dialog button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.banned-container { flex: 1; display: grid; place-items: center; padding: 40px 20px; }
.banned-card { width: min(550px,100%); padding: 50px 40px; border: 1px solid rgba(255,75,75,.2); border-radius: 12px; background: #17171d; text-align: center; }
.banned-card h1 { font-size: clamp(23px,4vw,30px); margin: 0 0 22px; text-shadow: none; }
.banned-card h1 span { color: #ff4b4b; }
.banned-card p { color: #a0a0a0; font-size: 18px; line-height: 1.6; margin-bottom: 28px; }
.banned-card strong { color: white; }
.banned-email { display: inline-block; color: #ff4b4b; border-bottom: 1px solid #ff4b4b55; overflow-wrap: anywhere; }
.banned-home { display: table; margin: 36px auto 0; color: #a0a0a0; border-color: #ffffff33; }
@media(max-width: 600px) { .banned-card { padding: 32px 20px; } }

tr.session-above-clearance, tr.session-above-clearance:hover { background: rgba(255,75,75,.09); }
.session-above-clearance td:first-child { border-left: 3px solid #ff4b4b; }
.session-clearance-warning { display: inline-block; margin-top: 5px; color: #ff8585; font-size: 12px; }

/* Content sections sit directly on the page background. */
.card, .error-card, .banned-card { background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
.card:hover { box-shadow: none; transform: none; }

/* Shared form controls, including inputs without an explicit type. */
input:not([type]), input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]), textarea, select {
    color-scheme: dark; width: 100%; min-height: 46px; background-color: #10141b; color: #f3f5f7;
    border: 1px solid #35414e; border-radius: 6px; padding: 12px 14px;
    font: inherit; font-size: 15px; line-height: 1.45; text-transform: none; transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: #84909e; opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #00c8e8; outline-offset: 2px; box-shadow: none; }
select { color-scheme: dark; cursor: pointer; padding-right: 36px; }
select option, select optgroup { background: #10141b; color: #f3f5f7; font: inherit; }
select option:checked { background: #164351; color: #fff; }
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; align-items: start; margin: 30px 0; }
.dashboard-grid > * { min-width: 0; }
.dashboard-grid .ladder { flex-wrap: wrap; }
.calendar-section { margin: 40px 0; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.calendar-heading h2 { margin: 0; }
.calendar-week { display: grid; grid-template-columns: repeat(7,minmax(145px,1fr)); overflow-x: auto; gap: 12px; padding-bottom: 12px; }
.calendar-day { min-width: 0; border-top: 1px solid #35414e; }
.calendar-day h3 { font-size: 13px; margin: 16px 0; }
.calendar-event { border-left: 3px solid #00c8e8; padding: 10px; margin: 12px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; background: #10141b; }
.calendar-event strong, .calendar-event small, .calendar-event > a { display: block; }
.kind-available { border-color: #3ddc84; } .kind-unavailable { border-color: #ff4b4b; }
.calendar-empty { color: #84909e; font-size: 13px; }
.calendar-editor { margin-top: 40px; }
.calendar-attendees { border: 1px solid #35414e; padding: 16px; margin: 20px 0; max-height: 300px; overflow: auto; }
.calendar-attendees label { text-transform: none; font-size: 14px; display: flex; gap: 10px; align-items: center; }
@media(max-width: 750px) { .dashboard-grid { grid-template-columns: 1fr; } }

.clearance-summary { padding: 26px; border: 1px solid #26323d; border-radius: 12px; background: #10141b; }
.clearance-summary h3 { margin-top: 0; }
.clearance-overview { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.clearance-ring { width: 150px; height: 150px; position: relative; flex: 0 0 150px; }
.clearance-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clearance-ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: #26323d; } .ring-value { stroke: #00c8e8; stroke-linecap: round; }
.clearance-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 38px; font-weight: 600; }
.clearance-ring small { font-size: 14px; color: #a0a0a0; font-weight: 400; }
.clearance-current { font-size: 22px; } .clearance-overview p { color: #a0a0a0; }
.clearance-positions { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.clearance-positions li { color: #00c8e8; padding: 6px 10px; border: 1px solid #285361; border-radius: 4px; }

/* Student workspace, inspired by the soft card dashboard reference. */
html:has(body.student-dashboard) { background: #e0e8eb; }
body.student-dashboard { --primary: #55579b; --text-main: #252739; --text-dim: #707484; --border: #d7dce6; --surface: #fff; background: linear-gradient(145deg,#777ba6 0%,#c9cedc 32%,#e8edf0 65%); color: var(--text-main); margin: 26px auto; width: calc(100% - 52px); max-width: 1580px; min-height: calc(100vh - 52px); border: 1px solid #ffffff80; border-radius: 28px; box-shadow: 0 20px 70px #343b5520; font-family: 'Segoe UI',sans-serif; }
.student-dashboard .topbar { background: transparent; border: 0; position: relative; padding: 22px 26px; white-space: normal; gap: 20px; }
.student-dashboard .header-title, .student-dashboard .topbar-nav a, .student-dashboard .topbar-user { color: #fff; }
.student-dashboard .topbar-nav { flex-wrap: wrap; gap: 16px; }
.student-dashboard .header-project-links .btn { background: #ffffff20; border-color: #ffffff45; color: white; }
.student-dashboard .page-content { max-width: none; padding: 16px 26px 32px; }
.student-dashboard h1,.student-dashboard h2,.student-dashboard h3,.student-dashboard h4 { text-transform: none; letter-spacing: -.5px; }
.student-dashboard h1 { font-size: clamp(25px,2.5vw,36px); font-weight: 600; margin: 4px 0 10px; }
.student-dashboard h2 { font-size: 23px; } .student-dashboard h3 { font-size: 19px; }
.student-dashboard .dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 28px; }
.student-dashboard .dashboard-intro h1,.student-dashboard .dashboard-intro .accent { color: white; }
.student-dashboard .dashboard-intro .lead { color: #f4f4fa; margin: 0; }
.dashboard-eyebrow { font-size: 12px; letter-spacing: 1px; color: #f0eff9; margin: 0 0 8px; }
.student-dashboard .btn { text-transform: none; letter-spacing: 0; border-radius: 24px; font-size: 13px; padding: 11px 18px; }
.student-dashboard .btn-primary { background: #55579b; color: white; border-color: #55579b; box-shadow: none; }
.student-dashboard .btn-outline { color: #4c4e7a; border-color: #d9dce8; background: #ffffffdc; }
.student-dashboard .dashboard-grid { grid-template-columns: 1.05fr 1fr 1fr; gap: 18px; margin: 0 0 20px; align-items: stretch; }
.student-dashboard .dashboard-grid > .card,.student-dashboard .clearance-summary { background: #ffffffdf !important; padding: 24px !important; border: 1px solid #ffffff90 !important; border-radius: 22px; margin: 0; }
.student-dashboard .clearance-overview { gap: 16px; }
.student-dashboard .clearance-ring { width: 130px; height: 130px; flex-basis: 130px; }
.student-dashboard .ring-track { stroke: #e2e6ee; } .student-dashboard .ring-value { stroke: #6263a7; }
.student-dashboard .clearance-current { font-size: 21px; }
.student-dashboard .clearance-summary h4 { font-size: 14px; margin-bottom: 10px; }
.student-dashboard .clearance-positions li { color: #52558b; background: #ededf7; border: 0; border-radius: 10px; font-size: 12px; }
.student-dashboard .badge { color: #53568d; background: #ebedf5; border-color: #d9dcea; border-radius: 8px; }
.student-dashboard .badge-negative { color: #b53745; background: #fbe8eb; border-color: #efc4cb; }
.student-dashboard .calendar-section,.student-dashboard .dashboard-results { background: #ffffffdf; border-radius: 22px; padding: 24px; margin: 20px 0 0; }
.student-dashboard .calendar-heading { gap: 12px; margin-bottom: 16px; }
.student-dashboard .calendar-heading a { color: #55579b; }
.student-dashboard .calendar-day { border-color: #dce0ea; }
.student-dashboard .calendar-day h3 { font-size: 13px; letter-spacing: 0; }
.student-dashboard .calendar-event { background: #edf0f5; border-radius: 10px; color: #36394a; }
.student-dashboard .kind-lesson { border-color: #6565aa; }
.student-dashboard .calendar-empty { color: #8a8e9e; }
.student-dashboard th { color: #777b8b; font-size: 11px; letter-spacing: .3px; }
.student-dashboard td,.student-dashboard th { border-color: #e0e4ec; }
.student-dashboard tr:hover { background: #f0f2f8; }
.student-dashboard footer { color: #8a8f9d; padding: 16px; }
@media(max-width:1150px) { .student-dashboard .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { body.student-dashboard { width: calc(100% - 16px); margin: 8px; border-radius: 20px; } .student-dashboard .page-content { padding: 12px; } .student-dashboard .topbar { padding: 16px; } .student-dashboard .dashboard-grid { grid-template-columns: 1fr; } .student-dashboard .dashboard-intro { flex-direction: column; align-items: flex-start; } .student-dashboard .calendar-section,.student-dashboard .dashboard-results { padding: 16px; } }

/* Brand palette for the student dashboard. */
html:has(body.student-dashboard) { background: #05070a; }
body.student-dashboard { --primary: #00c8e8; --text-main: #fff; --text-dim: #a0aab8; --border: #26323d; --surface: #10141b; background: #05070a; color: #fff; border-color: #26323d; box-shadow: none; }
.student-dashboard .header-project-links .btn { background: transparent; color: #00c8e8; border-color: #285361; }
.student-dashboard .dashboard-intro .accent { color: #00c8e8; }
.student-dashboard .dashboard-intro .lead,.student-dashboard .dashboard-eyebrow { color: #a0aab8; }
.student-dashboard .btn-primary { background: #00c8e8; color: #05070a; border-color: #00c8e8; }
.student-dashboard .btn-outline { color: #00c8e8; border-color: #285361; background: transparent; }
.student-dashboard .btn:hover { border-color: #00c8e8; }
.student-dashboard .dashboard-grid > .card,.student-dashboard .clearance-summary { background: #10141b !important; border-color: #26323d !important; }
.student-dashboard .ring-track { stroke: #26323d; } .student-dashboard .ring-value { stroke: #00c8e8; }
.student-dashboard .clearance-positions li { color: #00c8e8; background: #00c8e80c; border: 1px solid #285361; }
.student-dashboard .badge { color: #00c8e8; background: #00c8e80c; border-color: #285361; }
.student-dashboard .badge-negative { color: #ff8585; background: #ff4b4b14; border-color: #ff4b4b44; }
.student-dashboard .calendar-section,.student-dashboard .dashboard-results { background: #10141b; }
.student-dashboard .calendar-heading a { color: #00c8e8; }
.student-dashboard .calendar-day { border-color: #26323d; }
.student-dashboard .calendar-event { background: #181f29; color: #e3e9ef; }
.student-dashboard .kind-lesson { border-color: #00c8e8; }
.student-dashboard .calendar-empty,.student-dashboard th { color: #8f9baa; }
.student-dashboard td,.student-dashboard th { border-color: #26323d; }
.student-dashboard tr:hover { background: #181f29; }
.student-dashboard footer { color: #657180; }

body.student-dashboard { width: 100%; max-width: none; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.student-dashboard .btn { border-radius: 4px; }
.student-dashboard .dashboard-grid > .card, .student-dashboard .clearance-summary,
.student-dashboard .calendar-section, .student-dashboard .dashboard-results,
.student-dashboard .calendar-event, .student-dashboard .clearance-positions li,
.student-dashboard .badge { border-radius: 4px; }

.clearance-summary, .student-dashboard .dashboard-grid > .card, .student-dashboard .clearance-summary,
.student-dashboard .calendar-section, .student-dashboard .dashboard-results { border: 0 !important; }
.week-scroll { max-height: 650px; overflow: auto; border: 0; position: relative; }
.week-timetable { display: grid; grid-template-columns: 58px repeat(7,minmax(140px,1fr)); min-width: 1040px; position: relative; }
.week-corner,.week-date { position: sticky; top: 0; z-index: 6; padding: 14px 8px; background: #10141b; border-bottom: 1px solid #35414e; font-size: 13px; }
.week-corner { color: #8f9baa; font-size: 11px; }
.week-date strong { display: block; margin-top: 4px; }.week-date.is-today { color: #00c8e8; }
.week-hours { position: relative; height: 1440px; background: #10141b; }
.week-hours span { position: absolute; left: 0; font-size: 11px; color: #8f9baa; padding-top: 4px; }
.week-time-column { height: 1440px; position: relative; border-left: 1px solid #26323d; background: repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#26323d 59px,#26323d 60px); }
.week-time-column.is-today { background-color: #00c8e804; }
.calendar-event.timed-event { position: absolute; margin: 0; padding: 5px 7px; box-sizing: border-box; border-radius: 3px; overflow: auto; font-size: 11px; line-height: 1.35; z-index: 2; min-height: 20px; }
.timed-event p { margin: 4px 0; }.timed-event:focus { outline: 2px solid #00c8e8; z-index: 4; min-height: 130px; }

.learning-divider { border: 0; border-top: 1px solid #26323d; margin: 24px 0; }
.compact-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; margin: 18px 0; }
.compact-day { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 2px; border-radius: 4px; color: #d6dce5; }
.compact-day small { font-size: 11px; color: #8f9baa; }.compact-day strong { font-size: 16px; }
.compact-day.is-today { background: #00c8e81a; color: #00c8e8; }
.compact-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }.compact-dot.has-events { background: #00c8e8; }
.compact-agenda { max-height: 200px; overflow: auto; margin-bottom: 18px; }
.compact-entry { border-left: 2px solid #00c8e8; padding: 6px 10px; margin-bottom: 12px; font-size: 12px; }
.compact-entry > * { display: block; margin-bottom: 4px; }.compact-entry small { color: #8f9baa; }
.compact-entry.kind-available { border-color: #3ddc84; }.compact-entry.kind-unavailable { border-color: #ff4b4b; }

.month-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 22px; }
.month-heading > a { font-size: 25px; padding: 0 10px; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px 6px; max-width: 360px; margin: 0 auto 24px; justify-items: center; }
.month-weekday { color: #8f9baa; font-size: 11px; padding-bottom: 8px; }
.month-day { position: relative; display: grid; place-items: center; width: min(100%,36px); aspect-ratio: 1; border-radius: 50%; background: #242e3b; color: #dce4ed; font-size: 12px; }
.month-day.outside-month { background: transparent; color: #596371; }
.month-day.has-events { outline: 1px solid #00c8e8; outline-offset: -1px; }
.month-day.has-events::after { content: ''; position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: #00c8e8; }
.month-day.is-today { background: #00c8e8; color: #05070a; font-weight: 700; }
.month-day.is-today::after { background: #05070a; }
.month-day:hover { background: #354457; color: white; }

.calendar-page .page-content { max-width: none; padding: 24px 16px; }
.full-month-calendar .calendar-heading h1 { font-size: 26px; margin-bottom: 10px; }
.full-month-calendar .calendar-heading h2 { font-size: 22px; margin: 0; }
.full-month-scroll { overflow-x: auto; }
.full-month-grid { display: grid; grid-template-columns: repeat(7,minmax(150px,1fr)); min-width: 1050px; grid-template-rows: 34px repeat(var(--week-count), minmax(130px,1fr)); min-height: calc(100vh - 240px); }
.full-month-weekday { text-align: right; padding: 8px; color: #a0aab8; font-size: 12px; border-bottom: 1px solid #303640; }
.full-month-day { min-width: 0; border-right: 1px solid #282e36; border-bottom: 1px solid #282e36; padding: 5px 3px 10px; background: #0c1016; }
.full-month-day:nth-child(7n) { border-right: 0; }
.full-month-day.outside-month { background: #080b0f; }.full-month-day.outside-month > header { color: #536070; }
.full-month-day > header { display: flex; justify-content: flex-end; font-size: 12px; color: #a0aab8; margin: 0 4px 8px; }
.full-month-day.is-today { background: #00c8e807; }.full-month-day.is-today > header time { background: #00c8e8; color: #05070a; border-radius: 50%; min-width: 23px; height: 23px; display: grid; place-items: center; }
.month-event { border-left: 3px solid #00c8e8; background: #00c8e814; margin: 3px 0; font-size: 11px; border-radius: 2px; }
.month-event.kind-available { border-color: #3ddc84; background: #3ddc8412; }.month-event.kind-unavailable { border-color: #ff4b4b; background: #ff4b4b12; }
.month-event summary { display: flex; justify-content: space-between; gap: 6px; padding: 4px; cursor: pointer; list-style: none; }.month-event summary::-webkit-details-marker { display: none; }
.month-event summary span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.month-event summary time { flex-shrink: 0; color: #b9cbd7; }
.month-event-details { padding: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.legend-available { color: #3ddc84; }.legend-unavailable { color: #ff8585; }.legend-lesson { color: #00c8e8; }

.clearance-summary .clearance-current { display: block; margin: 0 0 16px; }
.clearance-summary .clearance-overview { flex-direction: column; align-items: flex-start; }
.clearance-summary .clearance-positions { flex-direction: column; align-items: flex-start; }

.month-day.is-today { background: #343a43; color: #fff; font-weight: 700; }
.month-day.has-availability { background: #00c8e8; color: #05070a; font-weight: 700; }
.month-day.has-availability.is-today { background: #343a43; color: #fff; outline: 2px solid #00c8e8; outline-offset: 2px; }

.month-window { margin: 4px 0; }.month-window.kind-available { background: #3ddc8410; padding-bottom: 2px; }
.nested-lesson { margin: 2px 4px 4px 10px; }.nested-lesson .month-event { background: #123c48; }
.month-gap { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; color: #8a919c; background: #ffffff05; padding: 4px; margin: 4px 0; }
.month-gap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.month-gap time { flex-shrink: 0; }
.month-event summary { flex-wrap: wrap; }.month-event summary time { font-size: 10px; }

@media(min-width:1151px) {
 .student-dashboard .dashboard-grid { grid-template-columns: minmax(220px,.65fr) minmax(0,1.4fr) minmax(320px,1fr); align-items: start; }
 .student-dashboard .dashboard-grid > .clearance-summary { grid-column: 1; grid-row: 1; }
 .student-dashboard .dashboard-grid > .card:not(.compact-calendar) { grid-column: 2; grid-row: 1; }
 .student-dashboard .dashboard-grid > .compact-calendar { grid-column: 3; grid-row: 1 / span 2; }
 .student-dashboard .dashboard-grid > .dashboard-results { grid-column: 1 / span 2; grid-row: 2; margin-top: 0; }
}
@media(min-width:751px) and (max-width:1150px) {
 .student-dashboard .dashboard-grid { align-items: start; }
 .student-dashboard .dashboard-grid > .dashboard-results { grid-column: 1 / -1; margin-top: 0; }
}
.student-dashboard .dashboard-grid > .dashboard-results { min-width: 0; }

@media(min-width:751px) {
 .student-dashboard .dashboard-grid > .clearance-summary,
 .student-dashboard .dashboard-grid > .card:not(.compact-calendar) { align-self: stretch; }
}
.calendar-timezone { font-size: 12px; color: #8f9baa; margin: 12px 0 20px; }
.calendar-agenda-title { font-size: 13px; margin: 18px 0 10px; }
.calendar-no-event { font-size: 12px; margin: 8px 0 16px; }
.compact-calendar .compact-agenda { max-height: none; }
