/* =============================================================================
   CYBERBAZA ACADEMY V1 — AUTHOR EDUCATIONAL DESIGN SYSTEM
   Deep Graphite Surface (#0a0e17) · Warm Crisp Typography · Acid Lime Accent
   Purposeful Hierarchy · Zero Clutter · Fluid Responsiveness
   ============================================================================= */

:root {
    --ac-bg: #090d16;
    --ac-surface: #0f1523;
    --ac-surface-hover: #141b2c;
    --ac-card: #121827;
    --ac-card-elevated: #161e30;
    
    --ac-border: rgba(255, 255, 255, 0.07);
    --ac-border-hover: rgba(255, 255, 255, 0.15);
    --ac-border-active: rgba(16, 185, 129, 0.4);
    
    --ac-lime: #10b981;
    --ac-lime-bright: #22c55e;
    --ac-lime-subtle: rgba(16, 185, 129, 0.12);
    
    --ac-cyan: #00d2ff;
    --ac-cyan-subtle: rgba(0, 210, 255, 0.1);
    
    --ac-amber: #f59e0b;
    --ac-amber-subtle: rgba(245, 158, 11, 0.12);
    
    --ac-red: #ef4444;
    --ac-red-subtle: rgba(239, 68, 68, 0.12);
    
    --ac-text-1: #f8fafc;
    --ac-text-2: #cbd5e1;
    --ac-text-3: #94a3b8;
    --ac-text-muted: #64748b;
    
    --ac-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ac-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --ac-radius-sm: 6px;
    --ac-radius: 10px;
    --ac-radius-lg: 16px;
    
    --ac-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --ac-shadow-hover: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}


/* -----------------------------------------------------------------------------
   0. Global Reset & Wrapper
   ----------------------------------------------------------------------------- */
.acad-wrapper {
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
    font-family: var(--ac-font);
    color: var(--ac-text-2);
    box-sizing: border-box;
}

.text-lime {
    color: var(--ac-lime-bright) !important;
    font-weight: 700;
}

.font-mono {
    font-family: var(--ac-mono) !important;
}

/* -----------------------------------------------------------------------------
   1. Typography & Section Titles
   ----------------------------------------------------------------------------- */
.acad-section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ac-border);
}

.acad-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0;
    letter-spacing: -0.01em;
}

.acad-section-sub {
    font-size: 0.9375rem;
    color: var(--ac-text-3);
    margin: 0;
}

/* -----------------------------------------------------------------------------
   2. Buttons & Micro-Interactions
   ----------------------------------------------------------------------------- */
.acad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--ac-radius);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-sizing: border-box;
}

.acad-btn-primary {
    background: var(--ac-lime);
    color: #040810;
    border-color: var(--ac-lime-bright);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.acad-btn-primary:hover {
    background: var(--ac-lime-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.acad-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ac-border);
    color: var(--ac-text-2);
}

.acad-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ac-border-hover);
    color: var(--ac-text-1);
    transform: translateY(-2px);
}

.acad-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--ac-text-1);
}

.acad-btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
}

.acad-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--ac-radius-sm);
}

.acad-btn-full {
    width: 100%;
}

.acad-btn-arrow {
    transition: transform 0.2s ease;
}

.acad-btn:hover .acad-btn-arrow {
    transform: translateX(3px);
}

.acad-btn-badge {
    font-family: var(--ac-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   3. Breadcrumbs
   ----------------------------------------------------------------------------- */
.acad-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ac-text-muted);
    margin-bottom: 2rem;
}

.acad-breadcrumbs a {
    color: var(--ac-text-3);
    text-decoration: none;
    transition: color 0.15s ease;
}

.acad-breadcrumbs a:hover {
    color: var(--ac-lime-bright);
}

.acad-bc-sep {
    color: var(--ac-border-hover);
}

.acad-bc-current {
    color: var(--ac-text-1);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   3b. Catalog Page Header (Centered, Clean Alignment)
   ----------------------------------------------------------------------------- */
.acad-page-header {
    text-align: center;
    margin: 1.25rem auto 3rem;
    max-width: 820px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.acad-page-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ac-text-1);
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    line-height: 1.2;
}

.acad-page-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ac-text-3);
    margin: 0 auto;
    max-width: 680px;
}

/* -----------------------------------------------------------------------------
   4. Pills & Badges
   ----------------------------------------------------------------------------- */
.acad-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--ac-lime-bright);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.acad-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ac-lime-bright);
    box-shadow: none;
}

.acad-level-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ac-text-3);
}

.acad-stat-pill {
    font-size: 0.8rem;
    font-family: var(--ac-mono);
    color: var(--ac-text-3);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.acad-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.acad-badge-starter {
    background: var(--ac-lime-subtle);
    color: var(--ac-lime-bright);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.acad-badge-ctf {
    background: var(--ac-cyan-subtle);
    color: var(--ac-cyan);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

/* -----------------------------------------------------------------------------
   5. Overview Page: Hero Block
   ----------------------------------------------------------------------------- */
.acad-hero {
    background: linear-gradient(180deg, var(--ac-surface) 0%, var(--ac-card) 100%);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--ac-shadow);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: center;
}

/* Grid children default to min-width:auto and refuse to shrink below their
   longest unbreakable content, which pushes the hero past the viewport on
   narrow phones. */
.acad-hero-main {
    min-width: 0;
    overflow-wrap: anywhere;
}

.acad-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ac-text-1);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.acad-hero-desc {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ac-text-3);
    margin: 0 0 2rem;
    max-width: 620px;
}

.acad-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Analytical Artifact Card (Hero right) */
.acad-artifact-card {
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.acad-artifact-card.active-pulse {
    border-color: rgba(16, 185, 129, 0.35);
}

.acad-card-header-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ac-text-muted);
    margin-bottom: 0.85rem;
}

.acad-artifact-room-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin-bottom: 1.25rem;
    line-height: 1.35;
}

.acad-artifact-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.acad-skill-chip {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ac-text-2);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.acad-artifact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ac-border);
    margin-bottom: 1rem;
    align-items: stretch;
}

.acad-art-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.acad-art-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ac-text-muted);
    margin-bottom: 0.25rem;
    text-align: center;
    line-height: 1.2;
}

.acad-art-val {
    font-family: var(--ac-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ac-text-1);
    text-align: center;
    line-height: 1.2;
}

/* -----------------------------------------------------------------------------
   6. Overview Page: Tracks Stack (Clean, No Duplication)
   ----------------------------------------------------------------------------- */
.acad-tracks-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.acad-track-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--ac-shadow);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.acad-track-card:hover {
    border-color: var(--ac-border-hover);
    background: var(--ac-surface-hover);
    box-shadow: var(--ac-shadow-hover);
}

.acad-track-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.acad-track-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: center;
}

.acad-track-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0 0 0.85rem;
    letter-spacing: -0.015em;
}

.acad-track-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ac-text-3);
    margin: 0 0 1.5rem;
}

.acad-objectives-block {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--ac-lime);
    border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
    padding: 0.85rem 1.15rem;
}

.acad-obj-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ac-lime-bright);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.acad-obj-text {
    font-size: 0.9rem;
    color: var(--ac-text-2);
    margin: 0;
    line-height: 1.5;
}

/* Curriculum preview chips in paths catalog */
.acad-rooms-preview-list {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ac-border);
}

.acad-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ac-text-muted);
    margin-bottom: 0.65rem;
    display: block;
}

.acad-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.acad-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ac-border);
    color: var(--ac-text-2);
    font-weight: 500;
    transition: all 0.15s ease;
}

.acad-preview-chip .chip-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-family: var(--ac-mono);
    color: var(--ac-text-3);
}

.acad-preview-chip.completed {
    border-color: rgba(16, 185, 129, 0.3);
}

.acad-preview-chip.completed .chip-dot {
    background: rgba(16, 185, 129, 0.2);
    color: var(--ac-lime-bright);
}

.acad-preview-chip.more {
    background: transparent;
    border-style: dashed;
    color: var(--ac-text-muted);
}

/* Track Aside (Numbers & CTA) */
.acad-track-aside {
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    box-sizing: border-box;
}

.acad-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.acad-meta-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* If odd number of cells (e.g. 3 cells before progress), center the 3rd cell across bottom */
.acad-meta-cell:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.acad-meta-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ac-text-muted);
    margin-bottom: 0.25rem;
    text-align: center;
    line-height: 1.2;
}

.acad-meta-number {
    font-family: var(--ac-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ac-text-1);
    text-align: center;
    line-height: 1.2;
}

.acad-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.acad-progress-fill {
    height: 100%;
    background: var(--ac-lime-bright);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* -----------------------------------------------------------------------------
   7. Path Details Page: Header & Curriculum Roadmap
   ----------------------------------------------------------------------------- */
.acad-path-header {
    background: linear-gradient(180deg, var(--ac-surface) 0%, var(--ac-card) 100%);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2.75rem;
    margin-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
}

.acad-path-meta-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.acad-path-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ac-text-1);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.acad-path-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ac-text-3);
    margin: 0 0 1.5rem;
}

.acad-path-objectives {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--ac-lime);
    border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
    padding: 1rem 1.25rem;
}

.acad-progress-box {
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acad-prog-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.acad-prog-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ac-text-3);
}

.acad-prog-percent {
    font-family: var(--ac-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
}

.acad-prog-sub {
    font-size: 0.8rem;
    color: var(--ac-text-muted);
    text-align: right;
}

/* Sequential Curriculum List */
.acad-curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acad-room-row {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 48px 1fr 180px;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.2s ease;
}

.acad-room-row.is-unlocked:hover {
    border-color: var(--ac-border-hover);
    background: var(--ac-surface-hover);
    transform: translateX(4px);
}

.acad-room-row.is-locked {
    opacity: 0.65;
    background: rgba(15, 21, 35, 0.4);
    border-style: dashed;
}

.acad-row-index {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-mono);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ac-text-3);
}

.acad-room-row.status-completed .acad-row-index {
    background: var(--ac-lime);
    color: #040810;
    border-color: var(--ac-lime-bright);
}

.acad-row-check {
    font-weight: 900;
}

.acad-row-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.acad-row-title a {
    color: var(--ac-text-1);
    text-decoration: none;
    transition: color 0.15s ease;
}

.acad-row-title a:hover {
    color: var(--ac-lime-bright);
}

.acad-row-meta {
    font-size: 0.8rem;
    font-family: var(--ac-mono);
    color: var(--ac-text-muted);
    margin-bottom: 0.45rem;
}

.acad-meta-dot {
    margin: 0 0.4rem;
    color: var(--ac-border-hover);
}

.acad-row-summary {
    font-size: 0.9rem;
    color: var(--ac-text-3);
    margin: 0;
    line-height: 1.5;
}

.acad-lock-explanation {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--ac-amber);
    background: var(--ac-amber-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-top: 0.65rem;
}

.acad-status-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.acad-status-badge.completed {
    color: var(--ac-lime-bright);
}

.acad-status-badge.locked {
    color: var(--ac-text-muted);
    border: 1px solid var(--ac-border);
}

.acad-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* -----------------------------------------------------------------------------
   8. Room Detail Page: Workspace Layout
   ----------------------------------------------------------------------------- */
.acad-room-header {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: center;
}

.acad-room-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--ac-text-1);
    margin: 0 0 0.75rem;
    letter-spacing: -0.015em;
}

.acad-room-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ac-text-3);
    margin: 0 0 1.25rem;
}

.acad-objectives-card {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--ac-lime);
    border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
    padding: 0.85rem 1.15rem;
}

/* Workspace Split: 3-column balanced grid ensuring main content is centered and wide */
.acad-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(640px, 1040px) minmax(220px, 260px);
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.acad-sidebar {
    min-width: 0;
    width: 100%;
    align-self: stretch;
    height: 100%;
}

.acad-main-content {
    min-width: 0;
    width: 100%;
}

/* -----------------------------------------------------------------------------
   Mission Telemetry & Target Machine Dock
   ----------------------------------------------------------------------------- */
.acad-telemetry-dock {
    min-width: 0;
    width: 100%;
    align-self: stretch;
    height: 100%;
}

.acad-telemetry-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 234, 255, 0.25) transparent;
}

.acad-telemetry-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
}

.acad-telemetry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.telemetry-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telemetry-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
    animation: telemetryPulse 2s infinite ease-in-out;
}

@keyframes telemetryPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    }
    50% {
        transform: scale(1.25);
        opacity: 0.8;
        box-shadow: 0 0 14px rgba(16, 185, 129, 1);
    }
}

.telemetry-status-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ac-text-muted);
}

.telemetry-badge-online {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acad-target-info {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--ac-radius-sm);
    border: 1px solid var(--ac-border-subtle);
}

.target-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.target-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ac-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.target-val-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.target-host-code {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: var(--ac-text-1);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.target-copy-btn {
    background: transparent;
    border: none;
    color: var(--ac-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.15s, background-color 0.15s;
}

.target-copy-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.target-env-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 600;
    margin-top: 0.2rem;
}

.acad-telemetry-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.acad-telemetry-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.telemetry-subhead-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ac-text-muted);
}

.telemetry-xp-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ac-lime, #a3e635);
    background: rgba(163, 230, 53, 0.12);
    padding: 1px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(163, 230, 53, 0.25);
}

.acad-telemetry-meter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.telemetry-meter-bar {
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.telemetry-meter-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #38bdf8, #10b981);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.telemetry-meter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--ac-text-muted);
}

.telemetry-meter-label strong {
    color: var(--ac-text-1);
    font-family: var(--font-mono, monospace);
}

.acad-dock-stage-list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dock-stage-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.78rem;
    color: var(--ac-text-2);
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.dock-stage-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ac-text-1);
}

.dock-stage-item.is-active {
    background: rgba(56, 189, 248, 0.09);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 600;
}

.dock-stage-item.is-completed {
    color: #10b981;
}

.dock-stage-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    flex-shrink: 0;
}

.dock-stage-item.is-active .dock-stage-icon {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.dock-stage-item.is-completed .dock-stage-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.dock-stage-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acad-telemetry-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--ac-radius-sm);
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed rgba(56, 189, 248, 0.25);
    font-size: 0.72rem;
    color: var(--ac-text-muted);
}

.tip-kbd-icon {
    color: #38bdf8;
    flex-shrink: 0;
}

/* Light Theme Telemetry Overrides */
html[data-theme="light"] .acad-telemetry-card,
html.light-theme .acad-telemetry-card,
.light-theme .acad-telemetry-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .acad-target-info,
html.light-theme .acad-target-info,
.light-theme .acad-target-info {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .target-host-code,
html.light-theme .target-host-code,
.light-theme .target-host-code {
    background: #e2e8f0;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .dock-stage-item:hover,
html.light-theme .dock-stage-item:hover,
.light-theme .dock-stage-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .telemetry-meter-bar,
html.light-theme .telemetry-meter-bar,
.light-theme .telemetry-meter-bar {
    background: rgba(0, 0, 0, 0.08);
}

.acad-sidebar-sticky {
    position: sticky;
    top: 90px;
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 234, 255, 0.25) transparent;
}

.acad-sidebar-sticky::-webkit-scrollbar,
.acad-telemetry-sticky::-webkit-scrollbar {
    width: 5px;
}

.acad-sidebar-sticky::-webkit-scrollbar-track,
.acad-telemetry-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.acad-sidebar-sticky::-webkit-scrollbar-thumb,
.acad-telemetry-sticky::-webkit-scrollbar-thumb {
    background: rgba(0, 234, 255, 0.25);
    border-radius: 4px;
}

.acad-sidebar-sticky::-webkit-scrollbar-thumb:hover,
.acad-telemetry-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 234, 255, 0.5);
}

.acad-sidebar-heading {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ac-text-muted);
}

.acad-stage-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.acad-stage-link {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--ac-radius-sm);
    color: var(--ac-text-3);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.acad-stage-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ac-text-1);
}

.acad-stage-link.is-solved {
    color: var(--ac-lime-bright);
}

.acad-stage-dot {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-mono);
    font-size: 0.75rem;
    color: var(--ac-text-muted);
}

.acad-stage-link.is-solved .acad-stage-dot {
    background: var(--ac-lime);
    color: #040810;
    font-weight: 800;
}

.acad-stage-pts {
    font-family: var(--ac-mono);
    font-size: 0.75rem;
    color: var(--ac-text-muted);
}

.acad-next-room-box {
    background: var(--ac-lime-subtle);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--ac-radius-sm);
    padding: 1rem;
}

.acad-next-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ac-lime-bright);
    display: block;
    margin-bottom: 0.25rem;
}

.acad-next-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0 0 0.85rem;
}

.acad-btn-back {
    font-size: 0.85rem;
    color: var(--ac-text-muted);
    text-decoration: none;
    display: block;
    text-align: center;
    transition: color 0.15s ease;
}

.acad-btn-back:hover {
    color: var(--ac-text-1);
}

/* -----------------------------------------------------------------------------
   9. Room Main Content: Markdown-Rendered Theory
   ----------------------------------------------------------------------------- */
.acad-theory-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2.75rem;
    margin-bottom: 3rem;
    box-shadow: var(--ac-shadow);
}

.acad-card-header-bar {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ac-border);
    margin-bottom: 1.75rem;
}

.acad-card-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0;
}

/* Real Rendered Markdown Typography */
.acad-theory-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ac-text-2);
}

.acad-theory-body h1 {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--ac-text-1);
    margin: 2rem 0 1rem;
}

.acad-theory-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ac-border);
}

.acad-theory-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 1.75rem 0 0.75rem;
}

.acad-theory-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ac-lime-bright);
    margin: 1.5rem 0 0.5rem;
}

.acad-theory-body p {
    margin: 0 0 1.25rem;
}

.acad-theory-body strong {
    color: var(--ac-text-1);
    font-weight: 700;
}

.acad-theory-body em {
    color: #e2e8f0;
}

.acad-theory-body ul, .acad-theory-body ol {
    margin: 0 0 1.5rem 1.5rem;
}

.acad-theory-body li {
    margin-bottom: 0.45rem;
}

.acad-theory-body pre {
    background: #0a0e17;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ac-radius);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: var(--ac-mono);
    font-size: 0.9rem;
    color: #38bdf8;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.acad-theory-body code {
    font-family: var(--ac-mono);
    font-size: 0.9em;
}

code.inline-code, .acad-theory-body p code, .acad-theory-body li code {
    background: rgba(255, 255, 255, 0.07);
    color: #38bdf8;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: var(--ac-mono);
}

.acad-theory-body blockquote {
    margin: 1.5rem 0;
    padding: 0.85rem 1.25rem;
    border-left: 3px solid var(--ac-lime);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
    color: var(--ac-text-2);
}

/* -----------------------------------------------------------------------------
   10. Practical Tasks & Verification Section
   ----------------------------------------------------------------------------- */
.acad-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.acad-task-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--ac-shadow);
    transition: all 0.2s ease;
}

.acad-task-card.is-solved {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--ac-surface) 100%);
}

.acad-task-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.acad-task-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.acad-task-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0;
}

.acad-task-reward {
    font-family: var(--ac-mono);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
    background: var(--ac-lime-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.acad-task-prompt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ac-text-2);
    margin-bottom: 1.5rem;
}

.acad-task-prompt p {
    margin: 0 0 0.75rem;
}

/* Markdown sub-headings inside task briefings */
.acad-task-prompt h4,
.acad-task-prompt h5,
.acad-task-prompt h6 {
    font-weight: 700;
    line-height: 1.35;
    color: var(--ac-text-1);
    margin: 0 0 0.5rem;
}

.acad-task-prompt h4 {
    font-size: 1.05rem;
}

.acad-task-prompt h5,
.acad-task-prompt h6 {
    font-size: 1rem;
}

/* Input Fields & Choices */
.acad-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ac-text-3);
    margin-bottom: 0.65rem;
}

.acad-choice-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.acad-radio-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.acad-radio-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ac-border-hover);
}

.acad-radio-option input[type="radio"] {
    accent-color: var(--ac-lime-bright);
    width: 18px;
    height: 18px;
}

.acad-radio-option:has(input[type="radio"]:checked) {
    background: var(--ac-lime-subtle);
    border-color: var(--ac-lime);
}

.acad-radio-text {
    font-size: 0.95rem;
    color: var(--ac-text-1);
}

.acad-input-wrap {
    margin-bottom: 1.25rem;
}

.acad-flag-field {
    display: flex;
    align-items: stretch;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.acad-flag-field:focus-within {
    border-color: var(--ac-lime);
    box-shadow: none;
}

.acad-flag-prefix {
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
    background: rgba(16, 185, 129, 0.1);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--ac-border);
}

.acad-input-control {
    width: 100%;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 0.8rem 1.15rem;
    font-size: 0.95rem;
    color: var(--ac-text-1);
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.acad-flag-field .acad-input-control {
    border: none;
    border-radius: 0;
}

.acad-input-control:focus {
    border-color: var(--ac-lime);
    box-shadow: none;
}

/* Actions Row */
.acad-task-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.acad-btn-hint-toggle {
    background: transparent;
    border: 1px dashed rgba(245, 158, 11, 0.4);
    color: var(--ac-amber);
    padding: 0.65rem 1rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.acad-btn-hint-toggle:hover {
    background: var(--ac-amber-subtle);
    border-style: solid;
}

/* Hints Drawer */
.acad-hints-drawer {
    margin-top: 1rem;
    background: var(--ac-amber-subtle);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--ac-radius);
    padding: 1.15rem;
}

.acad-hints-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ac-amber);
    margin-bottom: 0.5rem;
}

.acad-hint-item {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fef08a;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.acad-hint-item:last-child {
    margin-bottom: 0;
}

.acad-hint-num {
    font-family: var(--ac-mono);
    font-weight: 700;
}

/* Feedback Box */
.acad-feedback-box {
    margin-top: 0.85rem;
    padding: 0.75rem 1.15rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.acad-feedback-box.success {
    background: var(--ac-lime-subtle);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--ac-lime-bright);
}

.acad-feedback-box.error {
    background: var(--ac-red-subtle);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Solved State Notice */
.acad-solved-notice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.15rem;
    background: var(--ac-lime-subtle);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--ac-radius);
    color: var(--ac-lime-bright);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Explanation Box on Solve */
.acad-explanation-box {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--ac-lime);
    border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
}

.acad-expl-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.acad-expl-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1fae5;
}

.acad-expl-content p {
    margin: 0 0 0.5rem;
}

/* Room Complete Celebration */
.acad-celebration-card {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, var(--ac-surface) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--ac-radius-lg);
    padding: 2.75rem;
    text-align: center;
    margin-top: 3.5rem;
}

.acad-celeb-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.acad-celeb-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--ac-text-1);
    margin: 0 0 0.5rem;
}

.acad-celeb-desc {
    font-size: 1rem;
    color: var(--ac-text-3);
    margin: 0 0 1.5rem;
}

/* -----------------------------------------------------------------------------
   11. Responsive Breakpoints
   ----------------------------------------------------------------------------- */
@media (max-width: 1320px) {
    .acad-workspace {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 1.5rem;
        align-items: stretch;
    }
    .acad-sidebar {
        align-self: stretch;
        height: 100%;
    }
    .acad-telemetry-dock {
        grid-column: 1 / -1;
        order: 3;
        align-self: auto;
        height: auto;
    }
    .acad-telemetry-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 960px) {
    .acad-hero {
        grid-template-columns: 1fr;
        padding: 2.25rem 1.75rem;
    }
    .acad-track-body {
        grid-template-columns: 1fr;
    }
    .acad-path-header {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
    .acad-room-header {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
    .acad-room-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .acad-row-actions {
        align-items: flex-start;
    }
    .acad-workspace {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: start;
    }
    .acad-sidebar {
        align-self: auto;
        height: auto;
    }
    .acad-sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .acad-telemetry-dock {
        grid-column: 1 / -1;
        order: 3;
        align-self: auto;
        height: auto;
    }
    .acad-telemetry-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
    }
    .acad-theory-card {
        padding: 1.75rem 1.25rem;
    }
    .acad-workbench-section {
        padding: 1.25rem;
    }
}

/* -----------------------------------------------------------------------------
   12. Interactive Workbenches & Lab Environments
   ----------------------------------------------------------------------------- */
.acad-workbench-section {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--ac-shadow);
}

.acad-workbench-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ac-border);
}

.acad-workbench-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.acad-workbench-icon {
    font-size: 1.25rem;
    color: var(--ac-lime-bright);
}

.acad-workbench-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0;
}

.acad-workbench-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
    background: var(--ac-lime-subtle);
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* A. Terminal Playground */
.acad-terminal {
    background: #0a0e17;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ac-radius);
    overflow: hidden;
    font-family: var(--ac-mono);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.acad-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0e17;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.acad-term-dots {
    display: flex;
    gap: 0.45rem;
}

.acad-term-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.acad-term-dot.red { background: #ff5f56; }
.acad-term-dot.yellow { background: #ffbd2e; }
.acad-term-dot.green { background: #27c93f; }

.acad-term-title {
    font-size: 0.78rem;
    color: var(--ac-text-3);
    font-family: var(--ac-font);
}

.acad-terminal-screen {
    min-height: 220px;
    max-height: 380px;
    overflow-y: auto;
    padding: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.acad-term-line {
    margin-bottom: 0.35rem;
    word-break: break-all;
}

.term-prompt-user {
    color: var(--ac-lime-bright);
    font-weight: 700;
}

.term-prompt-path {
    color: #38bdf8;
    font-weight: 700;
}

.term-echo-cmd {
    color: #f8fafc;
    font-weight: 600;
}

.term-out {
    color: #cbd5e1;
}

.term-err {
    color: #f87171;
}

.term-pre {
    margin: 0.3rem 0;
    color: #cbd5e1;
    font-family: var(--ac-mono);
    white-space: pre-wrap;
}

.term-match {
    background: rgba(245, 158, 11, 0.35);
    color: #fef08a;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}

.term-help-block {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--ac-lime);
    padding: 0.65rem 0.85rem;
    border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
    margin: 0.4rem 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.term-help-title {
    color: var(--ac-lime-bright);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.term-ls-table {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
}

.term-ls-row {
    display: flex;
    gap: 1.5rem;
}

.term-ls-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.term-name-dir {
    color: #38bdf8;
    font-weight: 700;
}

.term-name-exec {
    color: var(--ac-lime-bright);
    font-weight: 700;
}

.term-name-file {
    color: #e2e8f0;
}

.acad-term-input-row {
    display: flex;
    align-items: center;
    background: #0a0e17;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 0.5rem;
}

.acad-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-family: var(--ac-mono);
    font-size: 0.9rem;
    outline: none;
}

.acad-term-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #0a0e17;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.acad-term-chip-label {
    font-size: 0.75rem;
    color: var(--ac-text-muted);
    align-self: center;
}

.acad-term-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ac-border);
    color: var(--ac-text-2);
    font-family: var(--ac-mono);
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--ac-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.acad-term-chip:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
}

/* B. HTTP Request & Response Explorer */
.acad-http-explorer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.5rem;
}

@media (max-width: 840px) {
    .acad-http-explorer {
        grid-template-columns: 1fr;
    }
}

.acad-http-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ac-border);
}

.acad-http-box-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ac-text-3);
    letter-spacing: 0.05em;
}

.acad-http-selector-row {
    margin-bottom: 1rem;
}

.acad-http-endpoint-select {
    width: 100%;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: var(--ac-text-1);
    outline: none;
}

.acad-http-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
}

.acad-http-method-badge {
    font-family: var(--ac-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.acad-http-method-badge.method-get {
    background: rgba(0, 210, 255, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.acad-http-method-badge.method-post {
    background: var(--ac-lime-subtle);
    color: var(--ac-lime-bright);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.acad-http-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ac-text-1);
    font-family: var(--ac-mono);
    font-size: 0.85rem;
    outline: none;
}

.acad-http-headers-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ac-mono);
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.acad-http-headers-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.acad-http-headers-table td:first-child code {
    color: #94a3b8;
}

.acad-http-headers-table td:last-child code {
    color: #38bdf8;
}

.acad-http-status-badge {
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.acad-http-status-badge.status-2xx {
    background: var(--ac-lime-subtle);
    color: var(--ac-lime-bright);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.acad-http-status-badge.status-4xx {
    background: var(--ac-red-subtle);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.acad-http-res-body {
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.85rem;
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e2e8f0;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
}

.acad-http-pane {
    min-width: 0;
}

.acad-http-network-hint {
    margin: 1rem 0 0;
    padding: 0.7rem 0.9rem;
    border-left: 2px solid var(--ac-lime);
    background: rgba(16, 185, 129, 0.06);
    border-radius: 0 var(--ac-radius-sm) var(--ac-radius-sm) 0;
    color: var(--ac-text-2);
    font-size: 0.82rem;
    line-height: 1.5;
}

.acad-btn-send-http {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
}

/* C. Forensics Log Workbench */
.acad-forensics-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.acad-log-filter-input {
    flex: 1;
    min-width: 220px;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.65rem 1rem;
    color: var(--ac-text-1);
    font-size: 0.88rem;
    outline: none;
}

.acad-log-filter-pills {
    display: flex;
    gap: 0.5rem;
}

.acad-log-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ac-border);
    color: var(--ac-text-2);
    padding: 0.5rem 0.85rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.acad-log-pill-btn.active {
    background: var(--ac-lime-subtle);
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
}

.acad-log-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.acad-log-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    font-family: var(--ac-mono);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.acad-log-item:hover {
    background: #0a0e17;
    border-color: var(--ac-border-hover);
}

.acad-log-item.selected {
    border-color: var(--ac-lime);
    background: rgba(16, 185, 129, 0.05);
}

.acad-log-item.danger .acad-log-badge {
    background: var(--ac-red-subtle);
    color: #f87171;
}

.acad-log-item.success .acad-log-badge {
    background: var(--ac-lime-subtle);
    color: var(--ac-lime-bright);
}

.acad-log-time {
    color: var(--ac-text-muted);
}

.acad-log-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.acad-log-msg {
    color: var(--ac-text-2);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-forensics-detail {
    margin-top: 1.25rem;
    background: #0a0e17;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    display: none;
}

.forensics-head {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: var(--ac-lime-bright);
    margin-bottom: 0.75rem;
}

.forensics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.f-lbl {
    color: var(--ac-text-3);
    margin-right: 0.5rem;
}

.forensics-note {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: var(--ac-radius-sm);
}

/* D. Micro-interactions & State Feedback */
.acad-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #040810;
    border-radius: 50%;
    animation: acad-spin 0.6s linear infinite;
    display: inline-block;
}

.acad-spinner-sm {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(245, 158, 11, 0.25);
    border-top-color: var(--ac-amber);
    border-radius: 50%;
    animation: acad-spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes acad-spin {
    to { transform: rotate(360deg); }
}

.acad-btn-solved {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: var(--ac-lime-bright) !important;
    cursor: default !important;
    box-shadow: none !important;
    transform: none !important;
}

.acad-xp-tag {
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--ac-lime-subtle);
    color: var(--ac-lime-bright);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.4rem;
}

.input-shake {
    animation: acad-shake 0.35s ease;
    border-color: #f87171 !important;
}

@keyframes acad-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.is-solved-input {
    background: rgba(16, 185, 129, 0.04) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--ac-lime-bright) !important;
    font-weight: 600;
}

/* E. Command Cheat Sheet Slide-over Drawer */
.acad-cheatsheet-toggle-wrap {
    margin-top: 1.5rem;
}

.acad-cheatsheet-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #0a0e17;
    border-left: 1px solid var(--ac-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 2rem 1.75rem;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.acad-cheatsheet-drawer.is-open {
    right: 0;
}

.acad-cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ac-border);
}

.acad-cs-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0;
}

.acad-cs-close {
    background: transparent;
    border: none;
    color: var(--ac-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.acad-cs-close:hover {
    color: var(--ac-text-1);
}

.acad-cs-section {
    margin-bottom: 1.75rem;
}

.acad-cs-sub {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ac-lime-bright);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.acad-cs-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.acad-cs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0e17;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
}

.acad-cs-item code {
    font-family: var(--ac-mono);
    color: #38bdf8;
    font-weight: 600;
}

.acad-cs-item span {
    color: var(--ac-text-3);
    font-size: 0.75rem;
}

.acad-copy-btn {
    background: transparent;
    border: none;
    color: var(--ac-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
}

.acad-copy-btn:hover {
    color: var(--ac-lime-bright);
}

/* =============================================================================
   12. 6-STAGE PEDAGOGICAL STEPPER & SINGLE STAGE VIEWPORT
   ============================================================================= */

/* Stage Navigation Stepper (Sidebar) */
.acad-stage-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.acad-stage-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    color: var(--ac-text-2);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: inherit;
}

.acad-stage-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ac-border-hover);
    color: var(--ac-text-1);
    transform: translateX(3px);
}

.acad-stage-link.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-color: var(--ac-lime);
    color: var(--ac-text-1);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}

.acad-stage-dot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: #0d131f;
    border: 1px solid var(--ac-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ac-text-muted);
    transition: all 0.2s ease;
}

.acad-stage-dot .stage-check-icon {
    display: none;
    color: var(--ac-lime-bright);
}

.acad-stage-link.active .acad-stage-dot {
    background: var(--ac-lime-subtle);
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
}

.acad-stage-link.is-solved .acad-stage-dot {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--ac-lime-bright);
}

.acad-stage-link.is-solved .stage-num-text {
    display: none;
}

.acad-stage-link.is-solved .stage-check-icon {
    display: inline-flex;
}

.acad-stage-link-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.acad-stage-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-stage-sub {
    font-size: 0.73rem;
    color: var(--ac-text-muted);
    line-height: 1.2;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-stage-link.active .acad-stage-sub {
    color: var(--ac-text-3);
}

/* Stage Panels: Only ONE active at a time */
.acad-stage-panel {
    display: none;
    animation: acadFadeIn 0.28s ease-out;
}

.acad-stage-panel.active {
    display: block;
}

@keyframes acadFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stage Header Bar */
.acad-stage-header-bar {
    background: linear-gradient(180deg, #121827 0%, #0d131f 100%);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--ac-shadow);
}

.acad-stage-badge-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.acad-stage-pill {
    background: var(--ac-lime-subtle);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--ac-lime-bright);
    font-family: var(--ac-mono);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.acad-stage-key-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ac-border);
    color: var(--ac-text-muted);
    font-family: var(--ac-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.acad-stage-heading {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--ac-text-1);
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
}

.acad-stage-lead-desc {
    font-size: 0.98rem;
    color: var(--ac-text-3);
    margin: 0;
    line-height: 1.5;
}

/* Stage Body Typography & Styling */
.acad-stage-body {
    background: var(--ac-card);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    padding: 2.25rem;
    margin-bottom: 2rem;
    line-height: 1.75;
    font-size: 1rem;
    color: var(--ac-text-2);
}

.acad-stage-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 1.75rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.acad-stage-body h3:first-child {
    margin-top: 0;
}

.acad-stage-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ac-text-1);
    margin: 1.35rem 0 0.5rem;
}

.acad-stage-body h5,
.acad-stage-body h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ac-text-1);
    margin: 1.15rem 0 0.45rem;
}

.acad-stage-body p {
    margin: 0 0 1.15rem;
}

.acad-stage-body ul, .acad-stage-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.acad-stage-body li {
    margin-bottom: 0.45rem;
}

.acad-stage-body strong {
    color: var(--ac-text-1);
}

.acad-stage-body code {
    font-family: var(--ac-mono);
    font-size: 0.88em;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.acad-stage-body pre {
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--ac-mono);
    font-size: 0.88rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 1.25rem 0;
}

.acad-stage-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

.acad-stage-body blockquote {
    border-left: 3px solid var(--ac-lime);
    background: var(--ac-lime-subtle);
    padding: 0.85rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
    color: #d1fae5;
}

/* Stepper Bottom Navigation Footer */
.acad-stage-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--ac-border);
}

.acad-stage-footer-nav .btn-prev-stage,
.acad-stage-footer-nav .btn-next-stage {
    min-width: 140px;
}

/* Shake Animation for Input Retry State */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.input-shake {
    animation: inputShake 0.4s ease-in-out;
    border-color: #ef4444 !important;
}

/* Spinner */
.acad-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: acadSpin 0.7s linear infinite;
    vertical-align: middle;
}

.acad-spinner-sm {
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: acadSpin 0.7s linear infinite;
}

@keyframes acadSpin {
    to { transform: rotate(360deg); }
}

/* =============================================================================
   13. INTERACTIVE STAGE 3 DEMONSTRATION WIDGETS
   ============================================================================= */

/* Universal Interactive Card Wrap */
.acad-interactive-card {
    background: #0c111d;
    border: 1px solid var(--ac-border-hover);
    border-radius: var(--ac-radius-lg);
    padding: 1.75rem;
    margin: 1.75rem 0 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.acad-card-header-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ac-border);
}

.acad-tool-tag {
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: #38bdf8;
    font-family: var(--ac-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.acad-card-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0;
}

.acad-card-sublead {
    color: var(--ac-text-3);
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

/* A. Scope Checker (Room 01) */
.acad-scope-scenarios {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acad-scope-item {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
}

.acad-scope-scenario-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ac-text-1);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.acad-scenario-num {
    font-family: var(--ac-mono);
    font-weight: 800;
    color: var(--ac-lime-bright);
}

.acad-scope-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.acad-scope-btn {
    padding: 0.55rem 1rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--ac-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ac-text-2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.acad-scope-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ac-text-1);
}

.acad-scope-btn.is-selected-correct {
    background: var(--ac-lime-subtle);
    border-color: var(--ac-lime-bright);
    color: var(--ac-lime-bright);
}

.acad-scope-btn.is-selected-wrong {
    background: var(--ac-red-subtle);
    border-color: var(--ac-red);
    color: #f87171;
}

.acad-scope-result {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.88rem;
    line-height: 1.5;
}

.acad-scope-result.success {
    background: var(--ac-lime-subtle);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
}

.acad-scope-result.error {
    background: var(--ac-red-subtle);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* B. Network Path & URL Anatomy (Room 02) */
.acad-netpath-steps-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.acad-netpath-node {
    flex: 1;
    min-width: 160px;
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.acad-netpath-node:hover {
    border-color: var(--ac-border-hover);
    transform: translateY(-2px);
}

.acad-netpath-node.active {
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.12) 0%, #080c14 100%);
    border-color: #00d2ff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}

.net-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ac-text-2);
}

.acad-netpath-node.active .net-step-badge {
    background: #00d2ff;
    color: #040810;
}

.net-step-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ac-text-1);
}

.net-step-code {
    font-family: var(--ac-mono);
    font-size: 0.75rem;
    color: #38bdf8;
}

.net-arrow {
    color: var(--ac-text-muted);
    font-size: 1.25rem;
    user-select: none;
}

.acad-netpath-explanation {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-left: 3px solid #00d2ff;
    border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ac-text-2);
}

.net-expl-title {
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 0.35rem;
}

.acad-url-dissector-wrap {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ac-border);
}

.acad-subhead {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ac-text-1);
    margin: 0 0 0.85rem;
}

.acad-url-bar-interactive {
    display: flex;
    flex-wrap: wrap;
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 0.75rem 1rem;
    font-family: var(--ac-mono);
    font-size: 0.95rem;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
}

.url-segment {
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.url-segment:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.url-segment.active {
    box-shadow: 0 0 0 2px #fff;
}

.seg-protocol { background: rgba(16, 185, 129, 0.25); color: #34d399; }
.seg-host { background: rgba(56, 189, 248, 0.25); color: #38bdf8; font-weight: 700; }
.seg-port { background: rgba(245, 158, 11, 0.25); color: #fbbf24; }
.seg-path { background: rgba(168, 85, 247, 0.25); color: #c084fc; }
.seg-query { background: rgba(236, 72, 153, 0.25); color: #f472b6; }
.seg-hash { background: rgba(156, 163, 175, 0.25); color: #e5e7eb; }

.acad-url-segment-info {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--ac-text-2);
    line-height: 1.5;
}

/* C. Linux Command Anatomy (Room 03) */
.acad-cmd-blocks-display {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cmd-chip {
    flex: 1;
    min-width: 140px;
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 0.85rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chip-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--ac-text-muted);
}

.chip-val {
    font-family: var(--ac-mono);
    font-size: 1.15rem;
    font-weight: 700;
}

.chip-cmd .chip-val { color: var(--ac-lime-bright); }
.chip-flag .chip-val { color: #38bdf8; }
.chip-arg .chip-val { color: #f59e0b; }

.acad-error-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.error-case-card {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.15rem;
}

.err-bad {
    font-family: var(--ac-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fca5a5;
    margin-bottom: 0.35rem;
}

.err-msg {
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.65rem;
}

.err-fix {
    font-size: 0.88rem;
    color: var(--ac-text-2);
    line-height: 1.5;
}

/* D. Linux Permissions Calculator (Room 04) */
.acad-perm-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
    .acad-perm-matrix {
        grid-template-columns: 1fr;
    }
}

.perm-col {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.perm-col-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ac-text-1);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ac-border);
    margin-bottom: 0.25rem;
}

.perm-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--ac-text-2);
}

.perm-checkbox-row input {
    accent-color: var(--ac-lime);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.acad-perm-result-ribbon {
    display: flex;
    gap: 1.5rem;
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.perm-res-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.perm-res-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--ac-text-muted);
}

.perm-res-code {
    font-family: var(--ac-mono);
    font-size: 1.35rem;
    font-weight: 800;
}

.acad-perm-human-desc {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--ac-radius-sm);
    padding: 0.85rem 1.15rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #d1fae5;
    margin-bottom: 1.25rem;
}

.acad-perm-presets-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preset-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ac-text-muted);
    margin-right: 0.5rem;
}

.acad-perm-preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ac-border);
    color: var(--ac-text-2);
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--ac-radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.acad-perm-preset-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
}

/* E. Network Diagnostic Inspector (Room 05) */
.acad-diag-tabs-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.acad-diag-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.55rem 1rem;
    color: var(--ac-text-2);
    font-family: var(--ac-mono);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.acad-diag-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ac-text-1);
}

.acad-diag-tab.active {
    background: var(--ac-lime-subtle);
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
}

.acad-diag-output-box {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.diag-code {
    font-family: var(--ac-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
    color: #e2e8f0;
}

.diag-clickable {
    background: rgba(0, 210, 255, 0.15);
    color: #38bdf8;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    cursor: pointer;
    border-bottom: 1px dashed #38bdf8;
    transition: all 0.15s ease;
}

.diag-clickable:hover {
    background: rgba(0, 210, 255, 0.3);
}

.acad-diag-note-panel {
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--ac-radius-sm);
    padding: 0.85rem 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #bae6fd;
}

/* E2. TCP Three-Way Handshake Simulator (Room 05) */
.acad-handshake-intro {
    color: var(--ac-text-2);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.acad-handshake-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.acad-handshake-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.5rem 0.85rem;
    font-family: var(--ac-mono);
    font-size: 0.85rem;
    color: var(--ac-text-2);
    transition: all 0.2s ease;
}

.acad-handshake-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: var(--ac-text-2);
}

.acad-handshake-step.is-active {
    border-color: var(--ac-lime);
    color: var(--ac-lime-bright);
    box-shadow: 0 0 0 1px var(--ac-lime-subtle);
}

.acad-handshake-step.is-done {
    border-color: rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
}

.acad-handshake-step.is-done .step-num {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.acad-handshake-arrow {
    color: var(--ac-text-3, #64748b);
    font-size: 0.9rem;
}

.acad-handshake-state {
    font-family: var(--ac-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--ac-border);
    color: var(--ac-text-2);
    background: #080c14;
}

.acad-handshake-state[data-state="SYN-SENT"],
.acad-handshake-state[data-state="SYN-RCVD"] {
    border-color: rgba(250, 204, 21, 0.5);
    color: #facc15;
}

.acad-handshake-state[data-state="ESTABLISHED"] {
    border-color: rgba(52, 211, 153, 0.6);
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
}

.acad-handshake-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.acad-handshake-prompt {
    font-size: 0.85rem;
    color: var(--ac-text-2);
    margin-right: 0.25rem;
}

.acad-handshake-send {
    padding: 0.45rem 0.9rem;
    font-family: var(--ac-mono);
    font-size: 0.82rem;
}

.acad-handshake-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.acad-handshake-feedback {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ac-text-2);
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: var(--ac-radius-sm);
    padding: 0.7rem 1rem;
    margin-bottom: 0.9rem;
}

.acad-handshake-log-wrap {
    margin-bottom: 0.9rem;
}

.acad-handshake-log-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ac-text-3, #64748b);
    margin-bottom: 0.4rem;
}

.acad-handshake-log {
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.9rem 1rem;
    margin: 0;
    min-height: 5.5rem;
    max-height: 11rem;
    overflow-y: auto;
    font-family: var(--ac-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.acad-handshake-log-line.ok { color: #93c5fd; }
.acad-handshake-log-line.success { color: #34d399; }
.acad-handshake-log-line.error { color: #f87171; }

.acad-handshake-token {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: var(--ac-radius-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 0.9rem;
}

.acad-handshake-token-label {
    font-size: 0.85rem;
    color: #a7f3d0;
}

.acad-handshake-token-value {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.acad-handshake-reset {
    margin-top: 0.2rem;
    font-size: 0.82rem;
}

/* F. Incident Timeline Visualizer (Room 07) */
.acad-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.timeline-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #080c14;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.timeline-row:hover {
    border-color: var(--ac-border-hover);
    transform: translateX(3px);
}

.timeline-row.selected {
    border-color: var(--ac-lime);
    background: rgba(16, 185, 129, 0.06);
}

.t-time {
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    color: var(--ac-text-muted);
    min-width: 65px;
}

.t-badge {
    font-family: var(--ac-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    min-width: 85px;
    text-align: center;
}

.t-badge.failed { background: var(--ac-amber-subtle); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.t-badge.breach { background: var(--ac-red-subtle); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); font-weight: 900; }
.t-badge.recon { background: rgba(0, 210, 255, 0.15); color: #38bdf8; border: 1px solid rgba(0, 210, 255, 0.3); }
.t-badge.artifact { background: var(--ac-lime-subtle); color: var(--ac-lime-bright); border: 1px solid rgba(16, 185, 129, 0.3); }

.t-desc {
    font-size: 0.88rem;
    color: var(--ac-text-2);
    line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   25. Beginner UX & Onboarding Enhancements
   ----------------------------------------------------------------------------- */

/* Onboarding Guide Card */
.acad-onboarding-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 21, 35, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--ac-radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.acad-onboarding-card.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
}

.acad-onboarding-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.acad-onb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ac-lime-bright);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acad-onb-close {
    background: transparent;
    border: none;
    color: var(--ac-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--ac-radius-sm);
    transition: color 0.15s ease;
}

.acad-onb-close:hover {
    color: var(--ac-text-1);
}

.acad-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.acad-onb-step {
    display: flex;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 0.85rem 1rem;
}

.onb-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ac-lime);
    color: #040810;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.onb-step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ac-text-1);
    margin-bottom: 0.25rem;
}

.onb-step-desc {
    font-size: 0.8rem;
    color: var(--ac-text-3);
    line-height: 1.4;
    margin: 0;
}

.acad-onboarding-foot {
    display: flex;
    justify-content: flex-end;
}

.acad-btn-xs {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--ac-radius-sm);
}

/* Free Hints Reassurance Badge */
.acad-hint-btn-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.acad-hint-free-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ac-lime-bright);
    background: var(--ac-lime-subtle);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.65rem;
    border-radius: var(--ac-radius-sm);
    letter-spacing: 0.01em;
}

/* Terminal Actions & CheatSheet Button */
.acad-term-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-term-cheatsheet {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ac-radius-sm);
    color: #38bdf8;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-term-cheatsheet:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #7dd3fc;
}

.acad-term-btn-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ac-radius-sm);
    color: var(--ac-text-muted);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.acad-term-btn-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ac-text-1);
}

/* Interactive Flag Tokens (Clickable flag in terminal & HTTP Explorer) */
.term-flag-token {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    margin: 0 0.2rem;
    color: var(--ac-lime-bright);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.term-flag-token:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--ac-lime-bright);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.term-flag-token code {
    font-family: var(--ac-mono);
    color: #fff;
}

.term-flag-insert-btn {
    background: var(--ac-lime);
    border: none;
    border-radius: 3px;
    color: #040810;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s ease;
}

.term-flag-insert-btn:hover {
    background: var(--ac-lime-bright);
    transform: scale(1.05);
}

/* Input Pulse animation when flag is inserted */
@keyframes inputPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); border-color: var(--ac-lime-bright); }
    50% { box-shadow: 0 0 16px 4px rgba(16, 185, 129, 0.5); border-color: var(--ac-lime-bright); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.input-highlight-pulse {
    animation: inputPulse 1.2s ease-out;
}

/* Scope Completion Banner */
.acad-scope-completion-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 21, 35, 0.95) 100%);
    border: 1px solid var(--ac-lime);
    border-radius: var(--ac-radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    animation: fadeIn 0.3s ease;
}

.acad-scope-comp-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ac-lime);
    color: #040810;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acad-scope-comp-text h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ac-text-1);
}

.acad-scope-comp-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ac-text-2);
}

/* Floating Toast Notification */
.acad-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    border: 1px solid var(--ac-lime);
    color: var(--ac-text-1);
    padding: 0.85rem 1.25rem;
    border-radius: var(--ac-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.acad-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.acad-toast-icon {
    color: var(--ac-lime-bright);
    display: flex;
}

/* Mark Read Stage Button */
.btn-mark-read-next {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-mark-read-next:hover {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* =============================================================================
   TRYHACKME-STYLE TASK STEPPER & PEDAGOGICAL COMPONENT STYLES
   ============================================================================= */
.acad-stage-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.acad-task-status-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.acad-task-status-tag.tag-solved {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.acad-task-status-tag.tag-progress {
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.35);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.acad-task-status-tag.tag-pending {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ac-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.acad-header-quick-action {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.acad-header-quick-action .acad-btn {
    border-color: rgba(0, 210, 255, 0.3);
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.08);
}

.acad-header-quick-action .acad-btn:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: #00d2ff;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

/* 4 Pedagogical Pillars Callout Badges */
.acad-pedagogy-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: var(--ac-radius-sm);
    margin-bottom: 1rem;
}

.acad-pedagogy-step-badge.verify {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

/* =============================================================================
   NEW TRYHACKME INTERACTIVE WIDGETS (ROOMS 8 TO 13)
   ============================================================================= */

/* Room 8: CTF Jeopardy Categories & Flag Validator */
.acad-ctf-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.acad-ctf-cat-card {
    background: rgba(18, 24, 39, 0.85);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.acad-ctf-cat-card:hover, .acad-ctf-cat-card.active {
    border-color: #00d2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.15);
}

.acad-ctf-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.acad-ctf-cat-head .cat-name {
    font-weight: 800;
    color: var(--ac-text-1);
    font-size: 0.95rem;
}

.acad-ctf-cat-head .cat-badge {
    font-family: var(--ac-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.acad-ctf-cat-card .cat-desc {
    font-size: 0.85rem;
    color: var(--ac-text-3);
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.acad-ctf-cat-card .cat-tools {
    font-size: 0.75rem;
    color: var(--ac-text-muted);
}

.acad-flag-validator-box {
    margin-top: 1.75rem;
    background: rgba(10, 15, 26, 0.7);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.5rem;
}

.acad-flag-val-input-row {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.acad-flag-rules-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.flag-rule-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    transition: all 0.2s ease;
}

.flag-rule-pill.valid {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
}

/* Room 9: CyberChef Live Converter */
.acad-converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.acad-conv-box.full-width {
    grid-column: 1 / -1;
}

.acad-conv-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ac-text-2);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acad-conv-textarea {
    width: 100%;
    height: 85px;
    background: rgba(8, 12, 20, 0.8);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    color: #00d2ff;
    padding: 0.75rem;
    font-size: 0.875rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.acad-conv-textarea:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.acad-converter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.acad-notice-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
    padding: 0.75rem 1rem;
    border-radius: var(--ac-radius-sm);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Room 10: Magic Bytes & Hex Inspector */
.acad-sample-files-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.acad-file-sample-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    background: rgba(18, 24, 39, 0.8);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    color: var(--ac-text-2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.acad-file-sample-btn .file-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--ac-text-1);
    font-family: var(--ac-mono);
}

.acad-file-sample-btn .file-type {
    font-size: 0.7rem;
    color: var(--ac-text-muted);
}

.acad-file-sample-btn:hover, .acad-file-sample-btn.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.acad-hex-display-panel {
    background: rgba(8, 12, 20, 0.95);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.acad-hex-table-wrap {
    overflow-x: auto;
}

.acad-hex-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.acad-hex-table th {
    color: var(--ac-text-muted);
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--ac-border);
}

.acad-hex-table td {
    padding: 0.4rem 0.6rem;
}

.hex-offset {
    color: var(--ac-text-muted);
}

.hex-byte {
    color: var(--ac-text-2);
}

.hex-magic {
    color: #22c55e;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 2px;
}

.hex-ascii {
    color: #00d2ff;
}

.acad-hex-file-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--ac-text-3);
}

.acad-strings-result-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(8, 12, 20, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--ac-radius-sm);
    font-family: var(--ac-mono);
    font-size: 0.85rem;
    color: #22c55e;
}

/* Room 11: Caesar & ROT13 Visualizer */
.acad-slider-wrap {
    background: rgba(18, 24, 39, 0.8);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.slider-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ac-text-1);
}

.slider-badge {
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-family: var(--ac-mono);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.acad-range-slider {
    width: 100%;
    accent-color: #00d2ff;
    cursor: pointer;
}

.acad-alphabet-strip {
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--ac-mono);
    font-size: 0.85rem;
}

.alpha-row {
    margin-bottom: 0.35rem;
}

.alpha-lbl {
    color: var(--ac-text-muted);
    margin-right: 0.5rem;
    font-weight: 700;
}

/* Room 12: Wireshark Packet Dissector */
.acad-wireshark-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.ws-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ac-text-muted);
    text-transform: uppercase;
}

.ws-filter-pills {
    display: flex;
    gap: 0.4rem;
}

.acad-wireshark-table-wrap {
    overflow-x: auto;
    background: rgba(8, 12, 20, 0.95);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    margin-bottom: 1.25rem;
}

.acad-wireshark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.acad-wireshark-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ac-text-muted);
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--ac-border);
}

.acad-wireshark-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ws-packet-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ws-packet-row:hover, .ws-packet-row.active {
    background: rgba(0, 210, 255, 0.08);
}

.ws-proto-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.7rem;
}

.proto-http { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.proto-dns  { background: rgba(0, 210, 255, 0.15); color: #00d2ff; }
.proto-tcp  { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.acad-wireshark-stream-panel {
    background: rgba(10, 15, 26, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
}

.stream-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stream-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #22c55e;
}

.stream-pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: var(--ac-radius-sm);
    color: var(--ac-text-1);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

/* Room 13: EXIF Metadata & Steganography */
.acad-exif-dual-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.acad-exif-media-card {
    background: rgba(18, 24, 39, 0.8);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exif-photo-frame {
    height: 180px;
    background: linear-gradient(135deg, #131c2e 0%, #0d131f 100%);
    border: 1px dashed var(--ac-border);
    border-radius: var(--ac-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder-grid {
    text-align: center;
    color: var(--ac-text-muted);
}

.photo-drone-icon {
    font-size: 2.5rem;
    color: #00d2ff;
    display: block;
    margin-bottom: 0.5rem;
}

.photo-tag {
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    color: var(--ac-text-2);
}

.exif-stego-tabs {
    display: flex;
    gap: 0.4rem;
}

.acad-exif-meta-table-wrap {
    background: rgba(8, 12, 20, 0.95);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 1.25rem;
}

.exif-highlight-row {
    background: rgba(34, 197, 94, 0.08);
}

.stego-lsb-matrix {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: var(--ac-radius-sm);
    color: #22c55e;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .acad-converter-grid,
    .acad-exif-dual-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   ACADEMY DAY MODE / LIGHT THEME (ДНЕВНОЙ РЕЖИМ — БЕЛЫЙ ФОН ДЛЯ БЛОКОВ)
   ============================================================================= */

html[data-theme="light"],
body.light-theme {
    --ac-bg: #edf2f7;
    --ac-surface: #ffffff;
    --ac-surface-hover: #f1f5f9;
    --ac-card: #ffffff;
    --ac-card-elevated: #ffffff;
    
    --ac-border: #d3dce6;
    --ac-border-hover: #0062e3;
    --ac-border-active: #0062e3;
    
    --ac-lime: #047857;
    --ac-lime-bright: #047857;
    --ac-lime-subtle: rgba(5, 150, 105, 0.12);
    
    --ac-cyan: #0284c7;
    --ac-cyan-subtle: rgba(2, 132, 199, 0.1);
    
    --ac-amber: #b45309;
    --ac-amber-subtle: rgba(180, 83, 9, 0.12);
    
    --ac-red: #dc2626;
    --ac-red-subtle: rgba(220, 38, 38, 0.12);
    
    --ac-text-1: #090d16;
    --ac-text-2: #27364b;
    --ac-text-3: #4b5d75;
    --ac-text-muted: #64748b;
    
    --ac-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    --ac-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
}

/* 1. Track Cards & Aside (Overview Page) */
html[data-theme="light"] .acad-track-card {
    background: #ffffff !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .acad-track-card:hover {
    background: #ffffff !important;
    border-color: #0062e3 !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .acad-track-heading {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-track-desc {
    color: #334155 !important;
}

/* Track Aside (The stats container with Xonalar, Davomiyligi, Mukofot, O'zlashtirish) */
html[data-theme="light"] .acad-track-aside {
    background: #f1f5f9 !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-meta-grid {
    gap: 0.75rem !important;
}

/* Individual Stat Cells: Xonalar, Davomiyligi, Mukofot, O‘zlashtirish */
html[data-theme="light"] .acad-meta-cell {
    background: #ffffff !important;
    border: 1px solid #d3dce6 !important;
    border-radius: 8px !important;
    padding: 0.75rem 0.65rem !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

html[data-theme="light"] .acad-meta-title {
    color: #475569 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

html[data-theme="light"] .acad-meta-number {
    color: #090d16 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

html[data-theme="light"] .acad-meta-number.text-lime {
    color: #047857 !important;
}

/* Objectives block inside track card */
html[data-theme="light"] .acad-objectives-block,
html[data-theme="light"] .acad-path-objectives,
html[data-theme="light"] .acad-objectives-card {
    background: #f1f5f9 !important;
    border: 1px solid #d3dce6 !important;
    border-left: 3px solid #059669 !important;
}

html[data-theme="light"] .acad-obj-label {
    color: #047857 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-obj-text {
    color: #334155 !important;
}

/* Progress track */
html[data-theme="light"] .acad-progress-track {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .acad-progress-fill {
    background: #059669 !important;
}

/* 2. Hero Section & Artifact Card */
html[data-theme="light"] .acad-hero {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .acad-hero-title {
    color: #090d16 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .acad-hero-desc {
    color: #334155 !important;
}

html[data-theme="light"] .acad-pill-badge {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #0062e3 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-artifact-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-card-header-tag {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-artifact-room-name {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-artifact-skills .acad-skill-chip {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .acad-artifact-metrics {
    border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-art-metric {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
}

html[data-theme="light"] .acad-art-label {
    color: #475569 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

html[data-theme="light"] .acad-art-val {
    color: #090d16 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

html[data-theme="light"] .acad-art-val.text-lime {
    color: #047857 !important;
}

/* 3. Path Details Page */
html[data-theme="light"] .acad-path-header,
html[data-theme="light"] .acad-room-header {
    background: #ffffff !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .acad-path-title,
html[data-theme="light"] .acad-room-title {
    color: #090d16 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .acad-path-lead,
html[data-theme="light"] .acad-room-lead {
    color: #334155 !important;
}

html[data-theme="light"] .acad-stat-pill {
    background: #f1f5f9 !important;
    border: 1px solid #d3dce6 !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .acad-stat-pill.text-lime {
    color: #047857 !important;
}

html[data-theme="light"] .acad-level-pill {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #0062e3 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-progress-box {
    background: #f1f5f9 !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-prog-label {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-prog-percent {
    color: #047857 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-prog-sub {
    color: #475569 !important;
}

/* Curriculum rows (path_detail) */
html[data-theme="light"] .acad-room-row {
    background: #ffffff !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-room-row.is-unlocked:hover {
    background: #ffffff !important;
    border-color: #0062e3 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .acad-row-index {
    background: #f1f5f9 !important;
    border: 1px solid #d3dce6 !important;
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-row-title a {
    color: #090d16 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-row-title a:hover {
    color: #0062e3 !important;
}

html[data-theme="light"] .acad-room-row.is-locked {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    opacity: 0.75 !important;
}

html[data-theme="light"] .acad-room-row.is-locked .acad-row-title span {
    color: #64748b !important;
}

/* 4. Room Detail Page: Stages, Tasks, Forms, Workbench */
html[data-theme="light"] .acad-stage-card,
html[data-theme="light"] .acad-stage,
html[data-theme="light"] .acad-stage-body,
html[data-theme="light"] .acad-task-card,
html[data-theme="light"] .acad-bench-card,
html[data-theme="light"] .acad-bench-panel,
html[data-theme="light"] .acad-workbench-shell {
    background: #ffffff !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08) !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-stage-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-stage-title,
html[data-theme="light"] .acad-task-title {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-stage-desc,
html[data-theme="light"] .acad-task-prompt {
    color: #334155 !important;
    line-height: 1.6 !important;
}

html[data-theme="light"] .acad-task-badge {
    background: #eff6ff !important;
    color: #0062e3 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-task-reward {
    color: #047857 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-choice-options label.acad-radio-option {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-choice-options label.acad-radio-option:hover {
    background: #eff6ff !important;
    border-color: #0062e3 !important;
}

html[data-theme="light"] .acad-task-input,
html[data-theme="light"] input.acad-input-text {
    background: #ffffff !important;
    color: #090d16 !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .acad-task-input:focus,
html[data-theme="light"] input.acad-input-text:focus {
    background: #ffffff !important;
    border-color: #0062e3 !important;
    box-shadow: 0 0 0 3px rgba(0, 98, 227, 0.15) !important;
}

html[data-theme="light"] .acad-hint-item {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
}

html[data-theme="light"] .acad-hint-body {
    color: #78350f !important;
}

/* 5. Paths Catalog & Headers in Light Theme */
html[data-theme="light"] .acad-page-title {
    color: #090d16 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .acad-page-lead {
    color: #334155 !important;
}

html[data-theme="light"] .acad-rooms-preview-list {
    border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-preview-label {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-preview-chip {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

html[data-theme="light"] .acad-preview-chip .chip-dot {
    background: #e2e8f0 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-preview-chip.completed {
    border-color: #a7f3d0 !important;
    background: #ecfdf5 !important;
}

html[data-theme="light"] .acad-preview-chip.completed .chip-dot {
    background: #d1fae5 !important;
    color: #047857 !important;
}

html[data-theme="light"] .acad-preview-chip.more {
    background: transparent !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

html[data-theme="light"] .acad-path-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-path-card:hover {
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .acad-path-card h3 {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-path-card p {
    color: #334155 !important;
}

/* 6. Room Detail Stepper & Sidebar in Light Theme */
html[data-theme="light"] .acad-sidebar-sticky {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    scrollbar-color: #cbd5e1 transparent;
}

html[data-theme="light"] .acad-sidebar-sticky::-webkit-scrollbar-thumb,
html[data-theme="light"] .acad-telemetry-sticky::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

html[data-theme="light"] .acad-sidebar-heading {
    color: #090d16 !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
}

html[data-theme="light"] .acad-stage-link {
    color: #334155 !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
}

html[data-theme="light"] .acad-stage-link:hover {
    background: #f8fafc !important;
    color: #0062e3 !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-stage-link.active {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 3px solid #0062e3 !important;
    color: #0062e3 !important;
    box-shadow: 0 2px 8px rgba(0, 98, 227, 0.08) !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-stage-dot {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-stage-link.active .acad-stage-dot {
    background: #0062e3 !important;
    border-color: #0062e3 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .acad-stage-link.is-solved .acad-stage-dot {
    background: #dcfce7 !important;
    border-color: #059669 !important;
    color: #047857 !important;
}

html[data-theme="light"] .acad-stage-title {
    color: #090d16 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-stage-link.active .acad-stage-title {
    color: #0062e3 !important;
}

html[data-theme="light"] .acad-stage-sub {
    color: #475569 !important;
    font-size: 0.8rem !important;
}

html[data-theme="light"] .acad-task-status-tag.tag-solved {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-task-status-tag.tag-progress {
    background: #eff6ff !important;
    color: #0062e3 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-task-status-tag.tag-pending {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
}

/* 7. Workbenches & Lab Environments in Light Theme */
html[data-theme="light"] .acad-workbench-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-workbench-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-workbench-title {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-workbench-tag {
    background: #eff6ff !important;
    color: #0062e3 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-http-explorer {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-http-box-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-http-box-title {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-http-bar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .acad-http-url-input {
    color: #090d16 !important;
    background: transparent !important;
}

html[data-theme="light"] .acad-http-headers-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

html[data-theme="light"] .acad-http-res-body {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-forensics-toolbar {
    background: transparent !important;
}

html[data-theme="light"] .acad-log-filter-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-log-filter-input:focus {
    border-color: #0062e3 !important;
    box-shadow: 0 0 0 3px rgba(0, 98, 227, 0.15) !important;
}

html[data-theme="light"] .acad-log-pill-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .acad-log-pill-btn:hover {
    background: #eff6ff !important;
    border-color: #0062e3 !important;
    color: #0062e3 !important;
}

html[data-theme="light"] .acad-log-pill-btn.active {
    background: #0062e3 !important;
    color: #ffffff !important;
    border-color: #0062e3 !important;
}

html[data-theme="light"] .acad-terminal {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .acad-term-chips {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-term-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #090d16 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .acad-term-chip:hover {
    background: #eff6ff !important;
    border-color: #0062e3 !important;
    color: #0062e3 !important;
}

/* 8. Stage Header Bar & Typography in Light Theme */
html[data-theme="light"] .acad-stage-header-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-stage-heading {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-stage-lead-desc {
    color: #334155 !important;
}

html[data-theme="light"] .acad-stage-key-tag {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

/* 9. Onboarding Guide in Light Theme */
html[data-theme="light"] .acad-onboarding-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-onb-step {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .onb-step-num {
    background: #0062e3 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .onb-step-title {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .onb-step-desc {
    color: #334155 !important;
}

html[data-theme="light"] .acad-onb-badge {
    background: #eff6ff !important;
    color: #0062e3 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600 !important;
}

/* 10. Interactive Stage 3 Widgets in Light Theme */
html[data-theme="light"] .acad-interactive-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-card-header-bar {
    border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .acad-card-heading {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-card-sublead {
    color: #475569 !important;
}

html[data-theme="light"] .acad-tool-tag {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #0062e3 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-scope-item,
html[data-theme="light"] .acad-netpath-box,
html[data-theme="light"] .acad-cmd-box,
html[data-theme="light"] .acad-perm-calc,
html[data-theme="light"] .acad-perm-output,
html[data-theme="light"] .acad-diag-box,
html[data-theme="light"] .acad-timeline-event,
html[data-theme="light"] .acad-matrix-item,
html[data-theme="light"] .acad-encoding-tool,
html[data-theme="light"] .acad-caesar-box,
html[data-theme="light"] .acad-wireshark-stream,
html[data-theme="light"] .acad-wireshark-detail,
html[data-theme="light"] .acad-exif-card,
html[data-theme="light"] .acad-exif-table-wrap {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-scope-scenario-text {
    color: #090d16 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .acad-scenario-num {
    color: #0062e3 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-scope-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-scope-btn:hover {
    background: #eff6ff !important;
    border-color: #0062e3 !important;
    color: #0062e3 !important;
}

html[data-theme="light"] .acad-scope-feedback {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #090d16 !important;
}

/* 11. Task Input Controls & Choices in Light Theme */
html[data-theme="light"] .acad-input-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-input-control:focus {
    border-color: #0062e3 !important;
    box-shadow: 0 0 0 3px rgba(0, 98, 227, 0.15) !important;
}

html[data-theme="light"] .acad-flag-field {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .acad-flag-prefix {
    background: #f1f5f9 !important;
    color: #0062e3 !important;
    border-right: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-radio-option {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #090d16 !important;
}

html[data-theme="light"] .acad-radio-option:hover {
    background: #eff6ff !important;
    border-color: #0062e3 !important;
}

html[data-theme="light"] .acad-radio-option:has(input[type="radio"]:checked) {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15) !important;
}

html[data-theme="light"] .acad-radio-text {
    color: #090d16 !important;
    font-weight: 500 !important;
}

/* 12. Hints & Feedback in Light Theme */
html[data-theme="light"] .acad-hints-drawer {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
}

html[data-theme="light"] .acad-hints-label {
    color: #92400e !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-hint-item {
    color: #78350f !important;
    background: transparent !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .acad-hint-num {
    color: #b45309 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-feedback-box.success {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-feedback-box.error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    font-weight: 600 !important;
}

/* 13. Markdown Content inside .acad-stage-body */
html[data-theme="light"] .acad-stage-body {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

html[data-theme="light"] .acad-stage-body h1,
html[data-theme="light"] .acad-stage-body h2,
html[data-theme="light"] .acad-stage-body h3,
html[data-theme="light"] .acad-stage-body h4,
html[data-theme="light"] .acad-stage-body h5,
html[data-theme="light"] .acad-stage-body h6 {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-stage-body p,
html[data-theme="light"] .acad-stage-body li {
    color: #334155 !important;
    line-height: 1.7 !important;
}

html[data-theme="light"] .acad-stage-body code {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0284c7 !important;
    font-weight: 600 !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
}

html[data-theme="light"] .acad-stage-body pre {
    background: #0b0f19 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
    border-radius: 8px !important;
}

html[data-theme="light"] .acad-stage-body pre code {
    background: transparent !important;
    border: none !important;
    color: #38bdf8 !important;
}

html[data-theme="light"] .acad-stage-body blockquote {
    background: #f0fdf4 !important;
    border-left: 4px solid #059669 !important;
    color: #065f46 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .acad-stage-body table {
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-stage-body th {
    background: #f8fafc !important;
    color: #090d16 !important;
    border-color: #e2e8f0 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-stage-body td {
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-stage-body tr:hover td {
    background: #f8fafc !important;
}

/* 14. Command Cheat Sheet Drawer in Light Theme */
html[data-theme="light"] .acad-cheatsheet-drawer {
    background: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .acad-cs-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

html[data-theme="light"] .acad-cs-title {
    color: #090d16 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .acad-cs-close {
    color: #475569 !important;
}

html[data-theme="light"] .acad-cs-close:hover {
    color: #090d16 !important;
}

html[data-theme="light"] .acad-cs-sub {
    color: #0062e3 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-cs-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-cs-item code {
    color: #0284c7 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .acad-cs-item span {
    color: #334155 !important;
}

html[data-theme="light"] .acad-copy-btn {
    color: #475569 !important;
}

html[data-theme="light"] .acad-copy-btn:hover {
    color: #0062e3 !important;
}

/* 15. Room Completion Card in Light Theme */
html[data-theme="light"] .acad-completion-card {
    background: #ffffff !important;
    border: 1px solid #a7f3d0 !important;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.08) !important;
}

html[data-theme="light"] .acad-celeb-title {
    color: #065f46 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .acad-celeb-desc {
    color: #334155 !important;
}

/* =============================================================================
   16. WORKSTATION 3-COLUMN TRYHACKME-STYLE LAYOUT
   ============================================================================= */

.acad-workstation-page {
    width: 100%;
    margin: 0 auto;
    font-family: var(--ac-font);
    color: var(--ac-text-2);
    box-sizing: border-box;
}

.acad-workstation-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 24px;
    max-width: 1680px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 5rem;
    align-items: stretch;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .acad-workstation-grid {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .acad-telemetry-sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .acad-workstation-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .acad-path-sidebar-inner,
    .acad-telemetry-sidebar-inner {
        position: static;
        max-height: none;
    }
    .acad-path-room-list {
        overflow-y: visible;
    }
}

/* Left Sidebar: Path & Track Progress */
.acad-path-sidebar-inner {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.acad-track-header-card {
    flex-shrink: 0;
    background: rgba(13, 24, 44, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.acad-track-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.acad-track-heading {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acad-track-badge {
    font-size: 11px;
    font-weight: 700;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 20px;
    padding: 2px 10px;
}

.acad-track-name {
    font-size: 15.5px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.acad-track-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.acad-track-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #00ffaa);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.acad-track-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.acad-path-room-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px;
    margin: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
}

.acad-path-room-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    padding: 8px 12px;
    border-radius: 11px;
    background: rgba(13, 24, 44, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.acad-path-room-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.25);
    transform: translateX(2px);
}

.acad-path-room-item.is-current {
    background: rgba(0, 229, 255, 0.1);
    border: 1.5px solid #00e5ff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
    color: #ffffff;
}

.acad-path-room-item.is-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.room-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.room-icon-badge.is-active {
    background: #00e5ff;
    color: #05101a;
    box-shadow: 0 0 10px #00e5ff;
}

.room-icon-badge.is-done {
    background: rgba(0, 255, 170, 0.15);
    border: 1.5px solid #00ffaa;
    color: #00ffaa;
}

.room-icon-badge.is-available {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.room-icon-badge.is-locked {
    background: rgba(255, 255, 255, 0.04);
    color: #64748b;
}

.room-item-meta {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.room-item-title {
    display: block;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-item-sub {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-item-sub.current-tag {
    font-size: 11px;
    color: #00e5ff;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

.room-status-end-icon.is-done {
    color: #00ffaa;
    font-size: 14px;
    flex-shrink: 0;
}

.room-status-end-icon.is-locked {
    color: #64748b;
    font-size: 14px;
    flex-shrink: 0;
}

.acad-reward-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 27, 46, 0.85), rgba(7, 18, 34, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.acad-reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #10b981);
    opacity: 0.6;
}

.acad-reward-card.is-unlocked {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.acad-reward-card.is-unlocked::before {
    background: linear-gradient(90deg, #10b981, #22c55e);
    opacity: 1;
}

.reward-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-family: var(--ac-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.reward-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.reward-status-dot.is-active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.reward-xp-badge {
    font-family: var(--ac-mono);
    font-size: 11px;
    font-weight: 700;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
}

.reward-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reward-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.08);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e5ff;
    flex-shrink: 0;
    font-size: 18px;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
    position: relative;
}

.acad-reward-card.is-unlocked .reward-icon-box {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.reward-details {
    flex: 1;
    min-width: 0;
}

.reward-badge-name {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reward-title-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-reward-card.is-unlocked .reward-title-name {
    color: #00ffaa;
}

.reward-desc-text {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
}

/* Center Column: Header, Tabs & Viewport */
.acad-ws-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 16px;
}

.bc-sep {
    color: #64748b;
}

.acad-room-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 26, 48, 0.85), rgba(7, 18, 36, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .acad-room-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-right-illustration {
        display: none;
    }
}

.hero-left-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.hero-badge-box {
    min-width: 64px;
    width: auto;
    height: 64px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(0, 229, 255, 0.08);
    border: 2px solid #00e5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
    flex-shrink: 0;
    font-family: var(--ac-mono);
    box-sizing: border-box;
}

.hero-icon-char {
    display: inline-block;
    color: #00e5ff;
    white-space: nowrap;
    line-height: 1;
}

.hero-icon-char.is-long-char {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.hero-text-block {
    flex: 1;
}

.hero-room-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.hero-room-summary {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 14px;
    max-width: 680px;
}

.hero-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.hero-pill.user-level {
    color: #00ffaa;
    border-color: rgba(0, 255, 170, 0.3);
    background: rgba(0, 255, 170, 0.08);
}

.hero-right-illustration {
    flex-shrink: 0;
    width: 250px;
}

.hero-terminal {
    width: 100%;
    background: #070d18;
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.hero-terminal .terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.hero-terminal .terminal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.hero-terminal .terminal-dot.red { background: #ef4444; }
.hero-terminal .terminal-dot.yellow { background: #eab308; }
.hero-terminal .terminal-dot.green { background: #22c55e; }

.hero-terminal .terminal-title {
    margin-left: 4px;
    font-size: 10px;
    color: #94a3b8;
    font-family: var(--ac-mono);
}

.hero-terminal .terminal-body {
    padding: 8px 10px 10px;
    font-family: var(--ac-mono);
    font-size: 10px;
    line-height: 1.5;
    background: transparent;
}

.hero-terminal .terminal-line {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-terminal .terminal-line .prompt {
    color: #00e5ff;
    font-weight: 700;
    margin-right: 4px;
}

.hero-terminal .terminal-line .typing-text {
    color: #f1f5f9;
}

.hero-terminal .terminal-line.output {
    color: #94a3b8;
    padding-left: 10px;
    font-size: 9.5px;
}

.hero-terminal .terminal-line.output.success {
    color: #22c55e;
    font-weight: 600;
}

.hero-terminal .cursor-blink {
    color: #00e5ff;
    font-weight: 700;
    animation: termCursorBlink 1s infinite;
}

@keyframes termCursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Horizontal Stage Tabs */
.acad-horizontal-stages-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
}

.acad-h-stage-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(13, 24, 44, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.acad-h-stage-tab:hover {
    background: rgba(0, 229, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(0, 229, 255, 0.25);
}

.acad-h-stage-tab.is-active {
    background: rgba(0, 229, 255, 0.14);
    border: 1.5px solid #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.acad-h-stage-tab.is-completed {
    border-color: rgba(0, 255, 170, 0.35);
}

.tab-check-icon {
    display: none;
    color: #00ffaa;
}

.acad-h-stage-tab.is-completed .tab-check-icon {
    display: inline-flex;
}

/* Stage Panels */
.acad-stage-panel {
    display: none;
}

.acad-stage-panel.active {
    display: block;
    animation: acadFadeIn 0.25s ease;
}

@keyframes acadFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.acad-stage-panel-header {
    margin-bottom: 24px;
}

.stage-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stage-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
}

.stage-number-tag {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.stage-title-heading {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.stage-description-lead {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* 2-Column Demonstration Section */
.acad-demo-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    margin: 24px 0;
    align-items: stretch;
}

@media (max-width: 900px) {
    .acad-demo-split-grid {
        grid-template-columns: 1fr;
    }
}

.acad-demo-code-card {
    border-radius: 14px;
    background: #070e1a;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 229, 255, 0.05);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}

.demo-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.acad-btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acad-btn-copy-code:hover {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border-color: #00e5ff;
}

.demo-terminal-window {
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #e2e8f0;
    flex: 1;
}

.demo-terminal-window pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.demo-terminal-window code {
    color: #00ffaa;
    font-family: var(--ac-mono);
}

.acad-demo-expl-card {
    border-radius: 14px;
    background: rgba(13, 24, 44, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

.demo-expl-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.expl-bulb-icon {
    color: #facc15;
    font-size: 18px;
}

.expl-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.demo-expl-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-expl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.expl-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expl-item-term {
    font-size: 13px;
    font-weight: 700;
    color: #00e5ff;
    margin-bottom: 2px;
}

.expl-item-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Tasks: 2x2 Options Grid & Task Cards */
.acad-stage-tasks-container {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.acad-task-card {
    border-radius: 14px;
    background: rgba(13, 24, 44, 0.7);
    border: 1.5px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 22px 24px;
    transition: all 0.2s ease;
}

.acad-task-card.is-solved {
    border-color: rgba(0, 255, 170, 0.4);
    background: rgba(13, 30, 44, 0.75);
}

.acad-task-header,
.acad-task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.task-check-heading-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-question-icon {
    color: #00e5ff;
    font-size: 20px;
}

.task-check-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.task-order-pill {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

.task-reward-xp {
    font-size: 13px;
    font-weight: 700;
    color: #00ffaa;
}

.acad-task-prompt {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 18px;
}

.acad-radio-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

@media (max-width: 600px) {
    .acad-radio-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.acad-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(8, 18, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.acad-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-custom-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-inner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.radio-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}

.acad-radio-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.04);
}

.acad-radio-card:has(input:checked) {
    border: 1.5px solid #00ffaa;
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.15);
}

.acad-radio-card:has(input:checked) .radio-custom-ring {
    border-color: #00ffaa;
}

.acad-radio-card:has(input:checked) .radio-inner-dot {
    background: #00ffaa;
    box-shadow: 0 0 8px #00ffaa;
}

.acad-radio-card:has(input:checked) .radio-label-text {
    color: #ffffff;
}

.acad-task-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 16px;
}

.acad-btn-hint-accordion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #00e5ff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

.acad-btn-hint-accordion:hover {
    text-decoration: underline;
}

.acad-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    background: #00ffaa;
    border: none;
    color: #03131e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.3);
    transition: all 0.2s ease;
}

.acad-btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 255, 170, 0.45);
}

/* Right Sidebar: Circular Progress, Accordions, Lab Environment */
.acad-telemetry-sidebar-inner {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 4px;
    box-sizing: border-box;
}

.acad-circular-progress-card {
    border-radius: 14px;
    background: rgba(13, 24, 44, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.circular-top-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.circle-meter-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.circular-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: #00e5ff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    transition: stroke-dashoffset 0.6s ease;
}

.circle-inner-count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--ac-mono);
}

.circle-meta-info {
    flex: 1;
}

.circle-meta-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.circle-meta-percent {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

.acad-reward-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: #cbd5e1;
}

.reward-star-icon {
    color: #facc15;
    font-size: 14px;
}

.reward-xp-val {
    font-weight: 700;
    color: #00ffaa;
    margin-left: auto;
}

.acad-accordion-card {
    border-radius: 14px;
    background: rgba(13, 24, 44, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.acad-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
}

.accordion-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-chevron {
    font-size: 14px;
    color: #00e5ff;
    transition: transform 0.25s ease;
}

.acad-accordion-card:not(.is-expanded) .acc-chevron {
    transform: rotate(180deg);
}

.acad-accordion-card:not(.is-expanded) .acad-accordion-body {
    display: none;
}

.acad-accordion-body {
    padding: 0 16px 16px;
}

.acad-quick-plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-item:hover {
    background: rgba(0, 229, 255, 0.06);
    color: #cbd5e1;
}

.plan-item.is-active {
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
}

.plan-item.is-completed {
    color: #cbd5e1;
}

.plan-item-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.plan-item.is-completed .plan-item-indicator {
    color: #00ffaa;
}

.plan-item.is-active .plan-item-indicator {
    color: #00e5ff;
    font-weight: 800;
}

.plan-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.acad-materials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acad-material-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(8, 18, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acad-material-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
}

.mat-pdf-icon {
    color: #00e5ff;
    font-size: 20px;
    flex-shrink: 0;
}

.mat-info {
    flex: 1;
    min-width: 0;
}

.mat-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mat-size {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.acad-lab-environment-card {
    border-radius: 14px;
    background: rgba(13, 24, 44, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lab-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lab-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.lab-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.lab-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffaa;
    box-shadow: 0 0 10px #00ffaa;
    animation: labPulse 1.8s infinite;
}

@keyframes labPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.acad-btn-launch-lab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: #00ffaa;
    border: none;
    color: #03131e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.3);
    transition: all 0.2s ease;
}

.acad-btn-launch-lab:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(0, 255, 170, 0.5);
}

/* =============================================================================
   17. LIGHT THEME OVERRIDES FOR 3-COLUMN WORKSTATION
   ============================================================================= */

html[data-theme="light"] .acad-track-header-card,
html[data-theme="light"] .acad-circular-progress-card,
html[data-theme="light"] .acad-accordion-card,
html[data-theme="light"] .acad-lab-environment-card,
html[data-theme="light"] .acad-reward-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .reward-title-name {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-reward-card.is-unlocked .reward-title-name {
    color: #047857 !important;
}

html[data-theme="light"] .acad-motivation-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .acad-track-name,
html[data-theme="light"] .hero-room-title,
html[data-theme="light"] .stage-title-heading,
html[data-theme="light"] .task-check-title,
html[data-theme="light"] .circle-meta-percent,
html[data-theme="light"] .accordion-header-title,
html[data-theme="light"] .lab-title-wrap {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-room-hero-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .hero-badge-box {
    background: #eff6ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .neon-screen-card {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .neon-screen-header {
    border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .neon-screen-inner .mini-cmd {
    color: #0f172a !important;
}

html[data-theme="light"] .hero-room-summary,
html[data-theme="light"] .stage-description-lead,
html[data-theme="light"] .acad-track-heading,
html[data-theme="light"] .circle-meta-label,
html[data-theme="light"] .motivation-sub,
html[data-theme="light"] .expl-item-desc {
    color: #475569 !important;
}

html[data-theme="light"] .acad-path-room-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

html[data-theme="light"] .acad-path-room-item.is-current {
    background: #eff6ff !important;
    border-color: #0284c7 !important;
    color: #0f172a !important;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .room-icon-badge.is-active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .room-item-sub.current-tag {
    color: #0284c7 !important;
}

html[data-theme="light"] .acad-h-stage-tab {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

html[data-theme="light"] .acad-h-stage-tab.is-active {
    background: #eff6ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .acad-demo-code-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="light"] .acad-demo-expl-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .demo-expl-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .expl-item-term {
    color: #0284c7 !important;
}

html[data-theme="light"] .expl-header-title {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-task-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .acad-task-prompt {
    color: #1e293b !important;
}

html[data-theme="light"] .acad-task-prompt h4,
html[data-theme="light"] .acad-task-prompt h5,
html[data-theme="light"] .acad-task-prompt h6 {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-radio-card {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .radio-label-text {
    color: #1e293b !important;
}

html[data-theme="light"] .acad-radio-card:has(input:checked) {
    border-color: #059669 !important;
    background: #ecfdf5 !important;
}

html[data-theme="light"] .circle-track {
    stroke: #e2e8f0 !important;
}

html[data-theme="light"] .circle-progress {
    stroke: #0284c7 !important;
}

html[data-theme="light"] .circle-inner-count {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-btn-submit,
html[data-theme="light"] .acad-btn-launch-lab {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
}

html[data-theme="light"] .acad-material-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .mat-title {
    color: #1e293b !important;
}

html[data-theme="light"] .mat-size {
    color: #64748b !important;
}

/* Central Stage Panels & Educational Content in Light Theme */
html[data-theme="light"] .acad-stage-panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-stage-body {
    color: #334155 !important;
}

html[data-theme="light"] .acad-stage-body p,
html[data-theme="light"] .acad-stage-body li {
    color: #334155 !important;
}

html[data-theme="light"] .acad-stage-body h1,
html[data-theme="light"] .acad-stage-body h2,
html[data-theme="light"] .acad-stage-body h3,
html[data-theme="light"] .acad-stage-body h4,
html[data-theme="light"] .acad-stage-body h5,
html[data-theme="light"] .acad-stage-body h6 {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-stage-body code,
html[data-theme="light"] .acad-stage-body code.inline-code {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-stage-body blockquote {
    background: #f8fafc !important;
    border-left: 4px solid #0284c7 !important;
    color: #334155 !important;
}

/* Breadcrumbs & Meta in Light Theme */
html[data-theme="light"] .acad-ws-breadcrumbs {
    color: #64748b !important;
}

html[data-theme="light"] .acad-ws-breadcrumbs span {
    color: #64748b !important;
}

html[data-theme="light"] .hero-pill {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* Quick Plan Items in Right Sidebar in Light Theme */
html[data-theme="light"] .plan-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .plan-item-title {
    color: #334155 !important;
}

html[data-theme="light"] .plan-item.is-active {
    background: #eff6ff !important;
    border-color: #0284c7 !important;
}

html[data-theme="light"] .plan-item.is-active .plan-item-title {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .plan-item.is-completed .plan-item-title {
    color: #047857 !important;
}

/* Task Form Controls in Light Theme */
html[data-theme="light"] .task-order-pill {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .task-reward-xp {
    color: #047857 !important;
}

html[data-theme="light"] .acad-input-label {
    color: #334155 !important;
}

html[data-theme="light"] .acad-input-control {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .acad-input-control:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .acad-flag-field {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .acad-flag-prefix {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .acad-btn-hint-accordion {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

html[data-theme="light"] .acad-hints-drawer {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-hint-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

html[data-theme="light"] .acad-explanation-box {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

/* Interactive Cards in Light Theme */
html[data-theme="light"] .acad-interactive-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .acad-card-heading {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-tool-tag {
    background: #eff6ff !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

html[data-theme="light"] .acad-diag-note-panel {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* Command Cheat Sheet Drawer in Light Theme */
html[data-theme="light"] .acad-cheatsheet-drawer {
    background: #ffffff !important;
    border-left-color: #cbd5e1 !important;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .acad-cs-header {
    border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-cs-title {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-cs-sub {
    color: #0284c7 !important;
}

html[data-theme="light"] .acad-cs-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .acad-cs-item span {
    color: #334155 !important;
}

html[data-theme="light"] .acad-cs-item code {
    background: #eff6ff !important;
    color: #0284c7 !important;
    border: 1px solid #bfdbfe !important;
}









/* ============================================================================
   ACADEMY PATH ACADEMIC CERTIFICATE STRIP ("CyberBaza MCHJ")
   ============================================================================ */
.acad-cert-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: var(--ac-radius-lg);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--ac-border);
}

.acad-cert-strip.is-eligible {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.acad-cert-strip.is-issued {
    border-color: rgba(184, 150, 76, 0.55);
    background: linear-gradient(90deg, rgba(184, 150, 76, 0.12) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.acad-cert-strip-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.acad-cert-emblem {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.acad-cert-strip.is-eligible .acad-cert-emblem {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
}

.acad-cert-strip.is-issued .acad-cert-emblem {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.12);
}

.acad-cert-eyebrow {
    font-family: var(--ac-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #b8964c;
    margin-bottom: 2px;
}

.acad-cert-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ac-text-1);
}

.acad-cert-heading code {
    font-family: var(--ac-mono);
    font-size: 0.88rem;
    color: #fbbf24;
}

.acad-cert-sub {
    margin: 3px 0 0;
    font-size: 0.82rem;
    color: var(--ac-text-3);
}

.acad-cert-strip-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.acad-cert-progress-pill {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-family: var(--ac-mono);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(148, 163, 184, 0.12);
    color: var(--ac-text-2);
}

@media (max-width: 768px) {
    .acad-cert-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

html[data-theme="light"] .acad-cert-strip {
    background: #ffffff;
    border-color: #e2e8f0;
}


/* ==========================================================================
   ACADEMY TERMINALS IN LIGHT THEME / DAY MODE
   ========================================================================== */
html[data-theme="light"] .hero-terminal,
html.light-theme .hero-terminal,
.light-theme .hero-terminal {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .hero-terminal .terminal-header,
html.light-theme .hero-terminal .terminal-header,
.light-theme .hero-terminal .terminal-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .hero-terminal .terminal-title,
html.light-theme .hero-terminal .terminal-title,
.light-theme .hero-terminal .terminal-title {
    color: #475569 !important;
}

html[data-theme="light"] .hero-terminal .terminal-body,
html.light-theme .hero-terminal .terminal-body,
.light-theme .hero-terminal .terminal-body {
    background: #f8fafc !important;
}

html[data-theme="light"] .hero-terminal .terminal-line,
html.light-theme .hero-terminal .terminal-line,
.light-theme .hero-terminal .terminal-line {
    color: #0f172a !important;
}

html[data-theme="light"] .hero-terminal .terminal-line .prompt,
html.light-theme .hero-terminal .terminal-line .prompt,
.light-theme .hero-terminal .terminal-line .prompt {
    color: #0284c7 !important;
}

html[data-theme="light"] .hero-terminal .terminal-line .typing-text,
html.light-theme .hero-terminal .terminal-line .typing-text,
.light-theme .hero-terminal .terminal-line .typing-text {
    color: #0f172a !important;
}

html[data-theme="light"] .hero-terminal .terminal-line.output,
html.light-theme .hero-terminal .terminal-line.output,
.light-theme .hero-terminal .terminal-line.output {
    color: #475569 !important;
}

html[data-theme="light"] .hero-terminal .terminal-line.output.success,
html.light-theme .hero-terminal .terminal-line.output.success,
.light-theme .hero-terminal .terminal-line.output.success {
    color: #16a34a !important;
}

html[data-theme="light"] .hero-terminal .cursor-blink,
html.light-theme .hero-terminal .cursor-blink,
.light-theme .hero-terminal .cursor-blink {
    color: #0284c7 !important;
}

html[data-theme="light"] .acad-terminal,
html.light-theme .acad-terminal,
.light-theme .acad-terminal {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .acad-terminal-bar,
html.light-theme .acad-terminal-bar,
.light-theme .acad-terminal-bar {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .acad-term-title,
html.light-theme .acad-term-title,
.light-theme .acad-term-title {
    color: #475569 !important;
}

html[data-theme="light"] .acad-terminal-screen,
html.light-theme .acad-terminal-screen,
.light-theme .acad-terminal-screen {
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .acad-terminal-screen .term-prompt-user,
html.light-theme .acad-terminal-screen .term-prompt-user,
.light-theme .acad-terminal-screen .term-prompt-user {
    color: #0284c7 !important;
}

html[data-theme="light"] .acad-terminal-screen .term-prompt-dir,
html.light-theme .acad-terminal-screen .term-prompt-dir,
.light-theme .acad-terminal-screen .term-prompt-dir {
    color: #64748b !important;
}

html[data-theme="light"] .acad-terminal-screen .term-prompt-char,
html.light-theme .acad-terminal-screen .term-prompt-char,
.light-theme .acad-terminal-screen .term-prompt-char {
    color: #0284c7 !important;
}

html[data-theme="light"] .acad-terminal-screen .acad-terminal-input,
html.light-theme .acad-terminal-screen .acad-terminal-input,
.light-theme .acad-terminal-screen .acad-terminal-input {
    background: transparent !important;
    color: #0f172a !important;
}

html[data-theme="light"] .acad-terminal-screen .acad-term-output,
html.light-theme .acad-terminal-screen .acad-term-output,
.light-theme .acad-terminal-screen .acad-term-output {
    color: #334155 !important;
}

html[data-theme="light"] .acad-terminal-screen .term-out-success,
html.light-theme .acad-terminal-screen .term-out-success,
.light-theme .acad-terminal-screen .term-out-success {
    color: #16a34a !important;
}

html[data-theme="light"] .demo-terminal-window,
html.light-theme .demo-terminal-window,
.light-theme .demo-terminal-window {
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .demo-terminal-window code,
html.light-theme .demo-terminal-window code,
.light-theme .demo-terminal-window code {
    color: #0284c7 !important;
}

/* =============================================================================
   DAY MODE CONTRAST FIX — 3-COLUMN WORKSTATION (ROOM DETAIL)
   Accent colours that were pure neon (cyan / #00ffaa) or slate-on-white were
   unreadable on the white light-theme surfaces. Keep them dark enough for AA.
   ============================================================================= */

html[data-theme="light"] .acad-track-badge,
html[data-theme="light"] .reward-xp-badge {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

html[data-theme="light"] .hero-icon-char,
html[data-theme="light"] .hero-badge-box,
html[data-theme="light"] .acc-chevron {
    color: #0284c7 !important;
}

html[data-theme="light"] .acad-accordion-header {
    color: #0f172a !important;
}

html[data-theme="light"] .acad-track-progress-stats,
html[data-theme="light"] .acad-track-progress-stats span,
html[data-theme="light"] .track-stats-rooms {
    color: #475569 !important;
}

html[data-theme="light"] .acad-track-progress-fill {
    background: linear-gradient(90deg, #0284c7, #047857) !important;
}

html[data-theme="light"] .reward-status-pill,
html[data-theme="light"] .reward-badge-name,
html[data-theme="light"] .reward-desc-text,
html[data-theme="light"] .stage-number-tag,
html[data-theme="light"] .stage-type-badge,
html[data-theme="light"] .acad-reward-row {
    color: #475569 !important;
}

html[data-theme="light"] .acad-reward-row {
    border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .reward-xp-val,
html[data-theme="light"] .lab-status-text {
    color: #047857 !important;
}

html[data-theme="light"] .reward-star-icon {
    color: #b45309 !important;
}

html[data-theme="light"] .room-icon-badge.is-available {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

html[data-theme="light"] .room-icon-badge.is-done {
    background: #ecfdf5 !important;
    border-color: #047857 !important;
    color: #047857 !important;
}

html[data-theme="light"] .room-status-end-icon.is-done {
    color: #047857 !important;
}

html[data-theme="light"] .hero-pill.user-level {
    color: #047857 !important;
    border-color: rgba(4, 120, 87, 0.4) !important;
    background: rgba(4, 120, 87, 0.08) !important;
}

html[data-theme="light"] .plan-item.is-active,
html[data-theme="light"] .plan-item.is-active .plan-item-indicator,
html[data-theme="light"] .plan-item.is-completed .plan-item-indicator {
    color: #047857 !important;
}

html[data-theme="light"] .acad-btn-submit,
html[data-theme="light"] .acad-btn-launch-lab {
    background: #047857 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .acad-cert-eyebrow {
    color: #8a6a1e !important;
}

html[data-theme="light"] .acad-cert-heading code {
    color: #b45309 !important;
}

/* Inline code chips inside lesson content and the cheat-sheet drawer */
html[data-theme="light"] .acad-stage-body code,
html[data-theme="light"] .acad-stage-body code.inline-code,
html[data-theme="light"] .acad-cs-item code,
html[data-theme="light"] .acad-cheatsheet-drawer code {
    color: #0369a1 !important;
}

/* Primary CTA buttons: dark text was designed for neon green, use white on the
   darker light-theme green instead. */
html[data-theme="light"] .acad-btn-primary,
html[data-theme="light"] .acad-btn-primary span,
html[data-theme="light"] .acad-btn-submit span,
html[data-theme="light"] .acad-btn-launch-lab span {
    color: #ffffff !important;
}

/* Cyan badges keep enough contrast on their pale tinted background */
html[data-theme="light"] .acad-badge-ctf {
    color: #0369a1 !important;
    border-color: rgba(3, 105, 161, 0.35) !important;
}

/* =============================================================================
   FIXED-HEADER SCROLL OFFSET
   The site header is fixed (height ~80px). Without scroll padding every
   in-page jump (stage tabs, "Keyingi bosqich", quick plan) parked the target
   section underneath the header, clipping its top.
   ============================================================================= */
html {
    scroll-padding-top: 96px;
}

/* Sticky sidebars scroll internally; give them a visible thumb in day mode so
   partially-clipped cards don't look broken. */
html[data-theme="light"] .acad-sidebar-sticky,
html[data-theme="light"] .acad-telemetry-sidebar-inner,
html[data-theme="light"] .acad-path-sidebar-inner {
    scrollbar-color: #94a3b8 #e2e8f0;
}

html[data-theme="light"] .acad-sidebar-sticky::-webkit-scrollbar,
html[data-theme="light"] .acad-telemetry-sticky::-webkit-scrollbar,
html[data-theme="light"] .acad-telemetry-sidebar-inner::-webkit-scrollbar,
html[data-theme="light"] .acad-path-sidebar-inner::-webkit-scrollbar {
    width: 8px;
}

html[data-theme="light"] .acad-sidebar-sticky::-webkit-scrollbar-thumb,
html[data-theme="light"] .acad-telemetry-sticky::-webkit-scrollbar-thumb,
html[data-theme="light"] .acad-telemetry-sidebar-inner::-webkit-scrollbar-thumb,
html[data-theme="light"] .acad-path-sidebar-inner::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}

html[data-theme="light"] .acad-sidebar-sticky::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .acad-telemetry-sticky::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .acad-telemetry-sidebar-inner::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .acad-path-sidebar-inner::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* =============================================================================
   WORKSTATION LAYOUT FIXES (desktop + mobile)
   ============================================================================= */

/* The telemetry sidebar is a flex column with a max-height. Its cards were
   allowed to shrink, so on shorter windows (<= ~830px tall) every accordion
   lost its bottom: "Qisqa reja" and "Foydali materiallar" were literally cut
   in half instead of letting the sidebar scroll. Keep cards at natural size
   and let the sidebar's own overflow handle the rest. */
.acad-telemetry-sidebar-inner > * {
    flex: 0 0 auto;
}

/* Six stage tabs are ~1050px wide, so on any normal desktop they ran past the
   right edge of the centre column and the last tab was clipped (only reachable
   with an invisible horizontal scroll). Let them wrap onto a second row
   instead, so every stage stays visible. */
.acad-horizontal-stages-bar {
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
    row-gap: 8px;
}

/* `.acad-stage-link` (shared with the vertical stage list) sets width:100%,
   which turned every tab into a full-width row once wrapping was enabled. */
.acad-horizontal-stages-bar .acad-h-stage-tab {
    width: auto;
    flex: 0 1 auto;
}

/* The room list used margin:-4px + padding:4px for focus rings, which made it
   8px wider than the sidebar and pushed it past the card edge. Keep the inner
   padding and drop the negative margin. */
.acad-path-room-list {
    margin: 0;
}

/* Room names in the left sidebar (and material names in the right one) were
   single-line with an ellipsis, so several of them were cut mid-word
   ("06. HTTP, HTTPS va Brauzer Dev…"). Two lines read much better. */
.room-item-title,
.mat-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    line-height: 1.4;
}

/* The <=900px block above this rule is overridden by the later base rules
   (both selectors have the same specificity), so on phones the sidebars kept
   their sticky + max-height behaviour and clipped their cards. Re-assert the
   stacked layout after the base rules. */
@media (max-width: 900px) {
    .acad-path-sidebar-inner,
    .acad-telemetry-sidebar-inner {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }

    /* Keep the 16-room list from eating the whole first screen on a phone:
       it stays an internal scroller instead of growing the page by ~900px. */
    .acad-path-room-list {
        max-height: 42vh;
        overflow-y: auto;
    }
}

/* The six-stage viewport had no frame of its own, so headings, task cards and
   the footer buttons sat flush with the centre column edges. Treat it as a
   card and inset every stage uniformly; the inner cards keep their own padding. */
.acad-stage-viewport {
    box-sizing: border-box;
    padding: clamp(16px, 2.2vw, 28px);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    background: var(--ac-surface);
    box-shadow: var(--ac-shadow);
}

.acad-stage-panel {
    box-sizing: border-box;
}

.acad-stage-panel-header,
.acad-stage-footer-nav {
    padding-left: 2px;
    padding-right: 2px;
}

@media (max-width: 700px) {
    .acad-stage-viewport {
        padding: 14px;
        border-radius: var(--ac-radius);
    }

    .acad-stage-body,
    .acad-task-card {
        padding: 18px;
    }

    .acad-stage-footer-nav {
        flex-wrap: wrap;
    }

    .acad-stage-footer-nav .btn-prev-stage,
    .acad-stage-footer-nav .btn-next-stage,
    .acad-stage-footer-nav .acad-btn {
        flex: 1 1 140px;
        min-width: 0;
    }
}
