:root { --bs-primary:#2563eb; --bs-primary-rgb:37,99,235; --academy-surface:#f4f7fb; }
[data-bs-theme=dark] {
    --academy-surface:#101827;
    --bs-border-color:#2e3237;
    --bs-border-color-translucent:rgba(255,255,255,.09375);
}
[data-bs-theme=dark] hr {
    border-top-color:var(--bs-border-color);
    opacity:1;
}
[data-bs-theme=dark] .btn-outline-secondary { --bs-btn-border-color:#444a4f; }
[data-bs-theme=dark] .btn-outline-primary { --bs-btn-border-color:#0a459e; }
body { background:var(--academy-surface); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.academy-header { background:var(--bs-body-bg); }
.brand { font-size:1.15rem; color:var(--bs-body-color); display:inline-flex; gap:.65rem; align-items:center; }
.brand-icon { display:grid; place-items:center; height:36px; width:36px; border-radius:11px; background:#2563eb; color:#fff; font-weight:800; }
.academy-shell { max-width:1700px; }
.lesson-sidebar { background:var(--bs-body-bg); }
.sidebar-inner { position:sticky; top:75px; max-height:calc(100vh - 75px); overflow:auto; }
.phase-heading { margin:1.25rem 0 .5rem; color:var(--bs-secondary-color); font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.lesson-link { display:flex; gap:.7rem; width:100%; padding:.65rem .75rem; text-align:left; background:transparent; border:0; border-radius:.6rem; color:var(--bs-body-color); font-size:.94rem; }
.lesson-link:hover, .lesson-link.active { background:rgba(37,99,235,.12); color:var(--bs-primary-text-emphasis); }
.lesson-link.active { font-weight:650; }
.lesson-marker { min-width:1rem; color:#2563eb; }
.intro-panel { border-radius:1.1rem; color:#fff; background:linear-gradient(120deg,#102650,#173f86 68%,#146783); }
.intro-panel p { color:#e1eaff; max-width:720px; }
.eyebrow { color:#a7dbff; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.panel,.metric { border:1px solid var(--bs-border-color); border-radius:1rem; box-shadow:0 3px 12px #0f172a08; }
.metric { padding:1rem 1.2rem; background:var(--bs-body-bg); display:flex; flex-direction:column; gap:.45rem; }
.metric span { color:var(--bs-secondary-color); font-size:.85rem; }
.metric strong { font-size:1.75rem; }
.step-list li { padding:.4rem 0; }
.prompt-box { background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); border-radius:.8rem; }
.prompt-text { white-space:pre-wrap; line-height:1.65; }
.btn-primary { --bs-btn-bg:#2563eb; --bs-btn-border-color:#2563eb; --bs-btn-hover-bg:#1d4ed8; --bs-btn-hover-border-color:#1d4ed8; }
[hidden] { display:none!important; }
@media(max-width:991px) { .sidebar-inner { position:static; max-height:none; } .lesson-sidebar nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .phase-heading { grid-column:1/-1; } }

.budget-input { max-width:16rem; }
.worked-example { padding:1rem 1.25rem; border:1px solid var(--bs-border-color); border-radius:.8rem; background:var(--bs-tertiary-bg); }
.worked-example summary { cursor:pointer; }
.deliverables-table th { min-width:10rem; }
.deliverables-table select { min-width:10rem; }
.deliverables-table input { min-width:12rem; }
.lesson-card { scroll-margin-top:90px; }

.worksheet-answer { min-height:6rem; }
.performance-table th { min-width:8rem; }
.performance-table input { min-width:7rem; }
.performance-table td[data-calculated] { white-space:nowrap; font-variant-numeric:tabular-nums; }

.academy-hero-image, .lesson-illustration {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:3/2;
    object-fit:cover;
    border-radius:.85rem;
}
.academy-hero-image {
    box-shadow:0 10px 30px #07183055;
}
.lesson-illustration {
    border:1px solid var(--bs-border-color);
}
.workspace-illustration {
    flex:none;
    width:clamp(72px, 13vw, 142px);
    height:auto;
    aspect-ratio:3/2;
    object-fit:cover;
    border-radius:.65rem;
    border:1px solid var(--bs-border-color);
}
