/**
 * ============================================================================
 * THE HIGHTOWER SCHOOL OF DIGITAL ARTS & APPLIED SCIENCES
 * Master System: The Imagination Station™ All-In-One Unified Stage (v9.22.04)
 * Architecture: Cleaned, Decluttered Consolidated Master Stylesheet
 * Key Features:
 *   - Edge-to-Edge Fluid 9-Tool Navigation Ribbon
 *   - Live "✨ New Key Word Unlocked!" Floating Toast & Auto-Tuck Animations
 *   - Active Vocabulary Work Cards, Mastery Fuel Bar & Mic Input Controls
 *   - Arcade-Grade 3-Mode Gamified Flashcards (3D Flip, Blitz, Rapid Recall)
 *   - Multi-Tier Classwork & Review Mode Switcher + Selected Answer States
 *   - Multi-Level Expandable Mind Maps (Radial SVG Bezier + Outline Tree View)
 *   - Slide Carousel, Infographic Tiles & Interactive Data Table Row Highlight
 *   - Floating Overlay Styling for #goals-drawer-overlay (z-index: 65)
 *   - Dock Side-by-Side Split Screen Mode (38% Dockable Tool / 62% Lab, Cinema, or Classwork)
 *   - Phase C: Reading Proficiency Lab, Writing Studio & Grammar Mechanics Labs
 *   - 0.93 Obsidian High-Contrast Labs (All 8 Subjects) & Imagination Cinema
 * Target Devices: iPad (9th Gen), Samsung Galaxy Tab A9+, Surface Pro, Touch Screens
 * File: css/imagination-station.css
 * ============================================================================
 */

/* ==========================================================================
   1. MASTER STAGE VIEWPORT (68% LEFT SPLIT)
   ========================================================================== */
#imagination-station,
.imagination-station {
    flex: 0 0 68% !important;
    width: 68% !important;
    max-width: 68% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #060911 !important;
    position: relative !important;
    overflow: hidden !important;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    border-right: 2px solid #1e293b;
    z-index: 10 !important;
}

.station-inner-wrapper {
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

/* ==========================================================================
   2. TOP STATION COMMAND & STATUS HEADER BAR
   ========================================================================== */
.station-header-bar {
    width: 100%;
    height: 48px;
    min-height: 48px;
    background: #090d16 !important;
    border-bottom: 1.5px solid #1e293b;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 12px !important;
    gap: 8px;
    z-index: 100 !important;
    flex-shrink: 0;
    overflow: hidden;
    pointer-events: auto !important;
    box-sizing: border-box;
}

[data-theme="day"] .station-header-bar {
    background: #ffffff !important;
    border-bottom-color: #cbd5e1;
}

.station-title-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 7px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.station-glyph {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.station-h2 {
    font-family: 'Fredoka', cursive, sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="day"] .station-h2 {
    color: #0f172a !important;
}

.station-rig-badge {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8 !important;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.station-top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0;
}

.btn-top-imagine {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    border-radius: 8px;
    font-family: 'Fredoka', cursive;
    font-size: 0.74rem !important;
    font-weight: 700;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    white-space: nowrap;
    transition: transform 0.12s ease;
}

.btn-top-imagine:active {
    transform: scale(0.96);
}

.btn-toggle-tools {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 4px 9px;
    border-radius: 8px;
    font-family: 'Fredoka', cursive;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-toggle-tools:hover,
.btn-toggle-tools.active {
    background: #334155;
    border-color: #38bdf8;
    color: #38bdf8;
}

/* ==========================================================================
   3. EDGE-TO-EDGE COMPACT NATIVE 9-TOOL NAVIGATION RIBBON
   ========================================================================== */
.station-tool-ribbon {
    width: 100%;
    height: 38px;
    min-height: 38px;
    background: #070a12 !important;
    border-bottom: 1.5px solid rgba(56, 189, 248, 0.25);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 6px;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    z-index: 90;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.station-tool-ribbon::-webkit-scrollbar {
    display: none;
}

[data-theme="day"] .station-tool-ribbon {
    background: #e2e8f0 !important;
    border-bottom-color: #cbd5e1;
}

.station-tool-tab {
    background: #0b1120 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    font-family: 'Fredoka', cursive;
    font-size: clamp(0.6rem, 0.76vw, 0.7rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 4px 5px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 0 1 auto;
    min-width: 0;
    transition: all 0.15s ease;
    user-select: none;
}

.station-tool-tab:hover {
    background: #1e293b !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.station-tool-tab.active {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}

[data-theme="day"] .station-tool-tab {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

[data-theme="day"] .station-tool-tab.active {
    background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* ==========================================================================
   4. ACTIVE STAGE VIEWPORT, GOALS OVERLAY & TOUCH + STYLUS CANVAS
   ========================================================================== */
.station-rig-viewport {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    background-color: #060911 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    box-sizing: border-box;
}

.surface-inking-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    touch-action: none !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

.surface-inking-canvas.mode-stylus {
    cursor: crosshair;
    z-index: 16 !important;
}

.surface-inking-canvas.mode-manipulative {
    cursor: default;
}

#goals-drawer-overlay {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    width: 340px !important;
    max-width: calc(100% - 24px) !important;
    max-height: calc(100% - 20px) !important;
    overflow-y: auto !important;
    background: rgba(9, 13, 22, 0.97) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid #fbbf24 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    z-index: 65 !important;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.88), 0 0 22px rgba(251, 191, 36, 0.25) !important;
    pointer-events: auto !important;
    box-sizing: border-box;
}

/* ==========================================================================
   4A. LIVE FLOATING "✨ NEW KEY WORD UNLOCKED!" POP-UP TOAST
   ========================================================================== */
#vocab-unlock-toast-container {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 75;
    pointer-events: none;
    max-width: min(360px, calc(100% - 32px));
}

.vocab-unlock-toast {
    pointer-events: auto;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(30, 27, 75, 0.96));
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 24px rgba(251, 191, 36, 0.35);
    animation: vocabPopIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.vocab-unlock-toast.tucking-away {
    animation: vocabTuckOut 0.4s ease forwards;
}

@keyframes vocabPopIn {
    0% { opacity: 0; transform: translateY(24px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vocabTuckOut {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(40px, -24px) scale(0.75); }
}

.vocab-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vocab-toast-badge {
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.4px;
}

.vocab-toast-queue {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
    padding: 2px 6px;
    border-radius: 8px;
}

.vocab-toast-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.vocab-toast-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vocab-toast-term {
    font-family: 'Fredoka', cursive;
    color: #ffffff;
    font-size: 1.02rem;
}

.vocab-toast-speak {
    background: #0284c7;
    border: 1px solid #38bdf8;
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    cursor: pointer;
}

.vocab-toast-phonetic {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #94a3b8;
}

.vocab-toast-def {
    color: #e2e8f0;
    font-size: 0.77rem;
    line-height: 1.42;
    margin: 2px 0 0 0;
}

.vocab-toast-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.vocab-toast-vault-note {
    font-size: 0.67rem;
    color: #a5b4fc;
}

.vocab-toast-open-btn {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border: 1px solid #c084fc;
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.vocab-toast-timer-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.vocab-toast-timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #fbbf24);
    animation: vocabTimerDrain 6.4s linear forwards;
}

@keyframes vocabTimerDrain {
    from { width: 100%; }
    to { width: 0%; }
}

/* ==========================================================================
   5. NATIVE STAGE CONTENT SURFACES WITH CLEAN DEDICATED TOOLBAR
   ========================================================================== */
.stage-content-surface {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #090d16;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px 16px;
    box-sizing: border-box;
    pointer-events: auto;
}

.stage-content-surface.active {
    display: flex !important;
}

.stage-surface-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.stage-surface-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-surface-heading {
    font-family: 'Fredoka', cursive;
    font-size: 1.02rem;
    font-weight: 700;
    color: #38bdf8;
    margin: 0;
    letter-spacing: 0.3px;
}

.stage-surface-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-open-base-tool {
    background: #1e293b;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    font-family: 'Fredoka', cursive;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-open-base-tool:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Shared Mastery Fuel Bars */
.station-fuel-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.station-fuel-bar-track {
    flex: 1;
    height: 9px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.station-fuel-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #c084fc);
    border-radius: 6px;
    transition: width 0.35s ease;
}

.station-fuel-bar-fill.complete {
    background: linear-gradient(90deg, #059669, #10b981, #fbbf24);
}

.station-fuel-bar-fill.rapid {
    background: linear-gradient(90deg, #ec4899, #fbbf24, #38bdf8);
    transition: width 0.9s linear;
}

.station-fuel-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #bae6fd;
    white-space: nowrap;
}

/* ==========================================================================
   5A. ACTIVE VOCABULARY WORK (VOCAB VAULT COMPREHENSION DRILLS)
   ========================================================================== */
.vocab-work-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.vocab-drill-card {
    background: #0f172a;
    border: 1.5px solid rgba(56, 189, 248, 0.38);
    border-radius: 14px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vocab-drill-card.is-mastered {
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.24);
}

.btn-vocab-drill-opt:hover {
    background: #334155 !important;
    border-color: #38bdf8 !important;
}

/* ==========================================================================
   5B. ARCADE-GRADE 3-MODE GAMIFIED FLASHCARDS
   ========================================================================== */
.flashcards-gamified-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.btn-fc-mode {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-family: 'Fredoka', cursive;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-fc-mode.active {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.45);
}

.fc-stat-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 10px;
}

.fc-stat-pill.streak {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid #fbbf24;
    color: #fde68a;
}

.fc-stat-pill.xp {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid #38bdf8;
    color: #bae6fd;
}

.fc-stat-pill.mastered {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.fc-xp-popup-float {
    position: absolute;
    right: 0;
    top: -22px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.55);
    animation: xpFloatPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

@keyframes xpFloatPop {
    0% { opacity: 0; transform: translateY(10px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fc-flip-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fc-3d-scene {
    perspective: 1100px;
    width: 100%;
    min-height: 225px;
}

.fc-3d-card {
    position: relative;
    width: 100%;
    min-height: 225px;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-3d-card.is-flipped {
    transform: rotateY(180deg);
}

.fc-3d-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), #0f172a 72%);
    border: 2px solid #38bdf8;
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.68);
}

.fc-3d-back {
    transform: rotateY(180deg);
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.16), #0f172a 72%);
    border-color: #c084fc;
}

.fc-3d-card.is-mastered .fc-3d-face {
    border-color: #10b981;
}

.fc-arcade-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 3px 9px;
    border-radius: 8px;
}

.fc-arcade-badge.gold {
    border-color: #fbbf24;
    color: #fbbf24;
}

.fc-victory-banner {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fc-blitz-arena {
    background: #0f172a;
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-blitz-columns {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 12px;
}

@media (max-width: 680px) {
    .fc-blitz-columns {
        grid-template-columns: 1fr;
    }
}

.fc-blitz-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-blitz-tile {
    background: #1e293b;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.fc-blitz-tile.selected {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
    transform: scale(1.01);
}

.fc-blitz-tile.matched {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #6ee7b7;
    cursor: default;
}

.fc-blitz-tile.shake-wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #f87171;
    color: #fca5a5;
    animation: wrongShake 0.35s ease;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   5C. MULTI-TIER CLASSWORK & REVIEWS (CLASSWORK, LESSON, CHAPTER, MIXED, SUBJECT)
   ========================================================================== */
.classwork-modes-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cw-mode {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    font-family: 'Fredoka', cursive;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-cw-mode:hover {
    background: #1e293b;
    color: #ffffff;
}

.btn-cw-mode.done {
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.btn-cw-mode.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.stage-cw-opt-btn {
    background: #1e293b;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.14s ease;
}

.stage-cw-opt-btn:hover {
    border-color: #38bdf8;
    background: #283548;
}

.stage-cw-opt-btn.selected {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.45), rgba(37, 99, 235, 0.45));
    border-color: #fbbf24;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

/* ==========================================================================
   5D. DYNAMIC SLIDES, INFOGRAPHIC TILES & INTERACTIVE DATA TABLE
   ========================================================================== */
.slides-carousel-card {
    background: linear-gradient(145deg, #0f172a, #090d16);
    border: 2px solid #38bdf8;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.infographic-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
    gap: 10px;
}

.infographic-tile {
    background: #0f172a;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    align-items: center;
}

.interactive-data-row {
    transition: background 0.15s ease;
}

.interactive-data-row:hover {
    background: rgba(56, 189, 248, 0.12);
}

.interactive-data-row.selected {
    background: rgba(192, 132, 252, 0.2);
    outline: 1.5px solid #c084fc;
}

/* ==========================================================================
   6. "📌 DOCK SIDE-BY-SIDE" SPLIT LAYOUT (38% TOOL LEFT + 62% BASE RIGHT)
   ========================================================================== */
.stage-docked-container {
    width: 100%;
    height: 100%;
    display: flex !important;
    flex-direction: row !important;
    position: relative;
    overflow: hidden;
}

.stage-dock-left {
    flex: 0 0 38% !important;
    width: 38% !important;
    max-width: 38% !important;
    height: 100% !important;
    background: #090d16 !important;
    border-right: 2px solid rgba(56, 189, 248, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    z-index: 25 !important;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.6);
}

.stage-dock-right {
    flex: 0 0 62% !important;
    width: 62% !important;
    max-width: 62% !important;
    height: 100% !important;
    position: relative !important;
    background: transparent !important;
    pointer-events: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.stage-dock-right.is-base-panel-dock {
    background: #090d16 !important;
    pointer-events: auto !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    z-index: 25 !important;
}

.dock-right-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(9, 13, 22, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px;
    border-radius: 10px;
}

.btn-dock-target-pill {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-family: 'Fredoka', cursive;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.14s ease;
}

.btn-dock-target-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-dock-target-pill.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border-color: #38bdf8;
    color: #ffffff;
}

.dock-right-status-pill {
    background: rgba(9, 13, 22, 0.88);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #10b981;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-dock-toggle {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-dock-toggle:hover {
    background: #fbbf24;
    color: #000000;
}

.btn-tool-exit {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid #f87171;
    color: #fca5a5;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-tool-exit:hover {
    background: #ef4444;
    border-color: #fca5a5;
    color: #ffffff;
}

/* Narrow-column responsive adaptations inside 38% docked left pane */
.stage-dock-left .mindmap-radial-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
}

.stage-dock-left .mindmap-svg-connectors {
    display: none;
}

.stage-dock-left .mindmap-center-hub {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 10px 16px;
}

.stage-dock-left .mindmap-branch-node.branch-0,
.stage-dock-left .mindmap-branch-node.branch-1,
.stage-dock-left .mindmap-branch-node.branch-2,
.stage-dock-left .mindmap-branch-node.branch-3 {
    grid-column: 1;
    grid-row: auto;
}

.stage-dock-left .fc-rapid-options-grid,
.stage-dock-left .fc-blitz-columns {
    grid-template-columns: 1fr !important;
}

.stage-dock-left .fc-3d-scene,
.stage-dock-left .fc-3d-card {
    min-height: 265px;
}

.stage-dock-left .fc-3d-face {
    overflow-y: auto;
    padding: 12px 14px;
}

.stage-dock-right.is-base-panel-dock .cinema-stage-frame {
    min-height: 220px;
}

/* ==========================================================================
   7. CUMULATIVE BACKPACK ARCHIVE & MIACADEMY TEST PREP
   ========================================================================== */
.backpack-archive-header {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(15, 23, 42, 0.95));
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.archive-lesson-selector {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

.miacademy-readiness-banner {
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid #10b981;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.badge-state-ready {
    background: #10b981;
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

.badge-state-learning {
    background: #f59e0b;
    color: #000000;
    font-family: 'Fredoka', cursive;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

/* ==========================================================================
   8. DYNAMIC MULTI-STYLE IMAGINATION CINEMA THEATER
   ========================================================================== */
.cinema-theater-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 0;
}

.cinema-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cinema-style-pill {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #c084fc;
    color: #e9d5ff;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 16px;
}

.cinema-progress-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cinema-scene-dot {
    width: 24px;
    height: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.25s ease;
}

.cinema-scene-dot.active {
    width: 38px;
    background: #38bdf8;
    border-color: #bae6fd;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.cinema-scene-dot.watched {
    background: #10b981;
    border-color: #6ee7b7;
}

.cinema-stage-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at center, #0f172a 0%, #060911 100%);
    border: 2px solid rgba(56, 189, 248, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.75);
}

.cinema-stage-frame.cinema-style-noir {
    border-color: #94a3b8;
    filter: contrast(1.08);
}

.cinema-stage-frame.cinema-style-spiderverse {
    border-color: #f43f5e;
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.35), inset 0 0 24px rgba(56, 189, 248, 0.25);
}

.cinema-stage-frame.cinema-style-minecraft {
    border-color: #22c55e;
    border-radius: 6px;
}

.cinema-stage-frame.cinema-style-anime {
    border-color: #f472b6;
    box-shadow: 0 0 22px rgba(244, 114, 182, 0.3);
}

.cinema-stage-frame.cinema-style-papercraft {
    border-color: #fbbf24;
}

.cinema-art-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transform-origin: center center;
    will-change: transform;
}

.cinema-art-layer.cinema-motion-zoom-in {
    animation: cinemaZoomIn 14s ease-in-out infinite alternate;
}

.cinema-art-layer.cinema-motion-pan-left {
    animation: cinemaPanLeft 14s ease-in-out infinite alternate;
}

.cinema-art-layer.cinema-motion-pan-right {
    animation: cinemaPanRight 14s ease-in-out infinite alternate;
}

.cinema-art-layer.cinema-motion-float {
    animation: cinemaFloat 10s ease-in-out infinite alternate;
}

.cinema-art-layer.cinema-motion-comic-pop {
    animation: cinemaComicPop 8s ease-in-out infinite alternate;
}

@keyframes cinemaZoomIn {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.12); }
}

@keyframes cinemaPanLeft {
    0% { transform: scale(1.1) translateX(2.5%); }
    100% { transform: scale(1.1) translateX(-2.5%); }
}

@keyframes cinemaPanRight {
    0% { transform: scale(1.1) translateX(-2.5%); }
    100% { transform: scale(1.1) translateX(2.5%); }
}

@keyframes cinemaFloat {
    0% { transform: scale(1.06) translateY(1.5%); }
    100% { transform: scale(1.09) translateY(-1.5%); }
}

@keyframes cinemaComicPop {
    0% { transform: scale(1.02) rotate(-0.6deg); }
    100% { transform: scale(1.1) rotate(0.6deg); }
}

.cinema-scrim-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 9, 17, 0.35) 0%,
        rgba(6, 9, 17, 0.18) 45%,
        rgba(6, 9, 17, 0.94) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.cinema-top-badges {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cinema-keyterm-badge {
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid #fbbf24;
    color: #fbbf24;
    font-family: 'Fredoka', cursive;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.cinema-art-loading-pill {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid #38bdf8;
    color: #bae6fd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cinema-caption-bar {
    position: relative;
    z-index: 4;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cinema-scene-title {
    font-family: 'Fredoka', cursive;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.cinema-visual-caption {
    color: #bae6fd;
    font-size: 0.76rem;
    margin: 0;
}

.cinema-narration-box {
    background: rgba(9, 13, 22, 0.88);
    border-left: 3.5px solid #fbbf24;
    border-radius: 8px;
    padding: 8px 12px;
    color: #f8fafc;
    font-size: 0.83rem;
    line-height: 1.48;
}

.cinema-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cinema-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.cinema-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cinema-btn-play {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border: 1.5px solid #f472b6;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.45);
}

.cinema-btn-narrate {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #38bdf8;
}

.cinema-btn-next {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: #34d399;
}

.cinema-btn-remix {
    background: rgba(251, 191, 36, 0.16);
    border-color: #fbbf24;
    color: #fde68a;
}

/* ==========================================================================
   9. MULTI-LEVEL RADIAL & OUTLINE IMAGINATION MAPS
   ========================================================================== */
.mindmap-canvas-shell {
    width: 100%;
    background: radial-gradient(circle at 50% 42%, rgba(88, 28, 135, 0.22) 0%, #0b1120 45%, #060911 100%);
    border: 2px solid #a855f7;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.mindmap-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.mindmap-overview-pill {
    flex: 1 1 260px;
    background: rgba(15, 23, 42, 0.9);
    border-left: 3px solid #fbbf24;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 0.76rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.mindmap-action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-mindmap-action {
    background: #1e293b;
    border: 1px solid rgba(192, 132, 252, 0.5);
    color: #e9d5ff;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-mindmap-expound {
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: #fbbf24;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.mindmap-radial-board {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 185px 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: center;
    padding: 8px 4px;
    min-height: 290px;
}

.mindmap-svg-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mindmap-center-hub {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: center;
    z-index: 4;
    background: radial-gradient(circle at 30% 30%, #a855f7, #4f46e5);
    border: 2.5px solid #e9d5ff;
    color: #ffffff;
    border-radius: 50%;
    width: 162px;
    height: 162px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.65), inset 0 0 16px rgba(255, 255, 255, 0.2);
}

.mindmap-hub-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    color: #fde68a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mindmap-hub-title {
    font-family: 'Fredoka', cursive;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
}

.mindmap-branch-node {
    position: relative;
    z-index: 3;
    background: rgba(15, 23, 42, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.mindmap-branch-node:hover {
    transform: translateY(-2px);
}

.mindmap-branch-node.branch-0 { grid-column: 1; grid-row: 1; border-color: rgba(56, 189, 248, 0.55); }
.mindmap-branch-node.branch-1 { grid-column: 3; grid-row: 1; border-color: rgba(251, 191, 36, 0.55); }
.mindmap-branch-node.branch-2 { grid-column: 1; grid-row: 2; border-color: rgba(244, 114, 182, 0.55); }
.mindmap-branch-node.branch-3 { grid-column: 3; grid-row: 2; border-color: rgba(16, 185, 129, 0.55); }

.mindmap-branch-node.active {
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.45);
    border-width: 2px;
}

.mindmap-branch-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.mindmap-relation-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
}

.mindmap-branch-title {
    font-family: 'Fredoka', cursive;
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.mindmap-branch-desc {
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.38;
    margin: 0;
}

.mindmap-subnodes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.mindmap-subnode-chip {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    transition: all 0.14s ease;
}

.mindmap-subnode-chip.interactive {
    cursor: pointer;
    text-align: left;
}

.mindmap-subnode-chip.interactive:hover {
    border-color: #38bdf8;
    color: #ffffff;
}

.mindmap-subnode-chip.interactive.active {
    background: rgba(56, 189, 248, 0.24);
    border-color: #fbbf24;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.mindmap-outline-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mindmap-outline-root {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: 1.5px solid #e9d5ff;
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 12px;
    text-align: center;
}

.mindmap-outline-branch {
    background: rgba(15, 23, 42, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.mindmap-outline-branch.active {
    border-color: #fbbf24;
}

.btn-leaf-speaker {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38bdf8;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mindmap-jasmine-spotlight {
    background: rgba(15, 23, 42, 0.96);
    border: 1.5px solid #fbbf24;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .mindmap-radial-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .mindmap-svg-connectors {
        display: none;
    }
    .mindmap-center-hub {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        height: auto;
        border-radius: 20px;
        padding: 10px 18px;
    }
    .mindmap-branch-node.branch-0,
    .mindmap-branch-node.branch-1,
    .mindmap-branch-node.branch-2,
    .mindmap-branch-node.branch-3 {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ==========================================================================
   10. GUEST DISPATCH (IN-CHARACTER GUEST SPEAKERS)
   ========================================================================== */
.guest-dispatch-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.96));
    border: 2px solid #818cf8;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.guest-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.guest-profile-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #312e81;
    border: 1.5px solid #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.guest-name {
    font-family: 'Fredoka', cursive;
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0;
}

.guest-role-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #a5b4fc;
}

.guest-dispatch-audio-bar {
    background: #090d16;
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.guest-transcript-box {
    background: rgba(9, 13, 22, 0.92);
    border-left: 3.5px solid #818cf8;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.55;
}

/* ==========================================================================
   11. VOICE EQUALIZER & LOADING ANIMATIONS
   ========================================================================== */
.btn-voice-loading {
    background: linear-gradient(135deg, #475569, #334155) !important;
    border-color: #fbbf24 !important;
    color: #fde68a !important;
}

.btn-voice-speaking {
    background: linear-gradient(135deg, #059669, #0284c7) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
}

.voice-wave-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.voice-wave-bars span {
    width: 3px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    animation: voiceEqualizer 0.7s infinite ease-in-out alternate;
}

.voice-wave-bars span:nth-child(2) { animation-delay: 0.2s; }
.voice-wave-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes voiceEqualizer {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* ==========================================================================
   12. 0.93 OBSIDIAN HIGH-CONTRAST LAB RIGS (ALL 8 SUBJECTS)
   ========================================================================== */
.high-contrast-lab-card {
    background: rgba(9, 13, 22, 0.93) !important;
    border: 2px solid rgba(56, 189, 248, 0.5) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85) !important;
    color: #f8fafc !important;
}

.rig-pod-chamber {
    background: rgba(9, 13, 22, 0.93);
    border: 2px solid #38bdf8;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

@keyframes base10FusePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 18px #fbbf24); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
}

.math-fusing-active {
    animation: base10FusePulse 0.45s ease-out;
}

.story-mountain-curve {
    stroke-dasharray: 6, 6;
    animation: dashPulse 24s linear infinite;
}

@keyframes dashPulse {
    to { stroke-dashoffset: -100; }
}

.climax-lightning-pulsar {
    animation: climaxPulse 1.2s infinite ease-in-out alternate;
}

@keyframes climaxPulse {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 6px #fbbf24); }
    100% { transform: scale(1.2); filter: drop-shadow(0 0 20px #f59e0b); }
}

.bay-complete-subject {
    background: rgba(9, 13, 22, 0.93) !important;
    border: 2px solid #38bdf8 !important;
    border-radius: 12px;
}

.bay-complete-predicate {
    background: rgba(9, 13, 22, 0.93) !important;
    border: 2px solid #f43f5e !important;
    border-radius: 12px;
}

.balance-scale-beam-physics {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}

@keyframes soundwaveOscillate {
    0% { transform: scaleY(0.7); }
    50% { transform: scaleY(1.3); }
    100% { transform: scaleY(0.7); }
}

.oscilloscope-active-line {
    animation: soundwaveOscillate 0.3s infinite ease-in-out alternate;
}

/* ==========================================================================
   13. COLLAPSIBLE BOTTOM INKING DRAWER & TEACHER FOOTER STRIP
   ========================================================================== */
.station-bottom-toolbar-drawer {
    position: absolute !important;
    bottom: 42px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 16px !important;
    padding: 6px 14px !important;
    z-index: 45 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.25s ease !important;
    pointer-events: auto !important;
}

.station-bottom-toolbar-drawer.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(12px) !important;
}

.inking-tools-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inking-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-right: 2px;
}

.stage-color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    padding: 0;
    transition: transform 0.12s ease;
}

.stage-color-btn:hover {
    transform: scale(1.15);
}

.stage-color-btn.active {
    box-shadow: 0 0 0 2px #090d16, 0 0 0 4px #38bdf8;
    transform: scale(1.15);
}

.station-instruction-strip {
    width: 100%;
    height: 36px;
    min-height: 36px;
    background: rgba(9, 13, 22, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    font-size: 0.78rem;
    z-index: 50 !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

[data-theme="day"] .station-instruction-strip {
    background: #f1f5f9 !important;
    border-top-color: #cbd5e1 !important;
}

.teacher-tag {
    font-family: 'Fredoka', cursive;
    color: #f59e0b;
    font-weight: 700;
    white-space: nowrap;
}

.instruction-body {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   14. KEYFRAME ANIMATIONS & SPINNERS
   ========================================================================== */
@keyframes pulseSparkle {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2.5px solid rgba(56, 189, 248, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   15. PHASE C: LITERACY LABS (READING PROFICIENCY, WRITING STUDIO & GRAMMAR)
   ========================================================================== */
.literacy-lab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px 16px 48px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(6, 9, 17, 0.76) 0%, rgba(9, 13, 22, 0.88) 100%);
    pointer-events: auto;
}

.literacy-lab-overlay.is-side-docked {
    left: 38%;
    width: 62%;
    z-index: 24;
    padding-top: 38px;
}

.literacy-lab-overlay.stylus-passthrough {
    pointer-events: none !important;
    z-index: 4 !important;
}

.lit-lab-shell {
    display: flex;
    flex-direction: column;
    gap: 11px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}

.lit-lab-topbar {
    background: rgba(9, 13, 22, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    border-radius: 14px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.lit-lab-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lit-lab-badge {
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid #c084fc;
    color: #e9d5ff;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
}

.lit-lab-badge.la {
    background: rgba(8, 145, 178, 0.24);
    border-color: #38bdf8;
    color: #bae6fd;
}

.lit-lab-unit-name {
    font-family: 'Fredoka', cursive;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.lit-mode-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lit-pill-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lit-pill-btn.active {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.45);
}

.lit-passage-switcher {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lit-subtab-btn {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #94a3b8;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.lit-subtab-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
}

.lit-fluency-bar {
    background: rgba(15, 23, 42, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.lit-mono-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #bae6fd;
    padding: 4px 9px;
    border-radius: 8px;
}

.lit-mono-pill.good {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #6ee7b7;
}

.lit-action-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 9px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.lit-action-btn:active {
    transform: scale(0.96);
}

.lit-action-btn.primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: #818cf8;
}

.lit-action-btn.warn {
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: #fbbf24;
}

.lit-action-btn.info {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #38bdf8;
}

.lit-action-btn.success {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: #34d399;
}

.lit-passage-card,
.lit-addon-card,
.lit-clue-card,
.lit-workbench-card {
    background: rgba(9, 13, 22, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.38);
    border-radius: 14px;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.lit-passage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 7px;
    color: #fbbf24;
    font-family: 'Fredoka', cursive;
    font-size: 0.96rem;
}

.lit-genre-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    background: rgba(192, 132, 252, 0.16);
    border: 1px solid rgba(192, 132, 252, 0.45);
    color: #e9d5ff;
    padding: 2px 8px;
    border-radius: 8px;
}

.lit-passage-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lit-passage-sentence-read {
    margin: 0;
    color: #f1f5f9;
    font-size: 0.86rem;
    line-height: 1.58;
}

.lit-snum {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    margin-right: 4px;
}

.lit-addon-head {
    font-family: 'Fredoka', cursive;
    color: #fbbf24;
    font-size: 0.84rem;
    font-weight: 700;
}

.lit-mountain-stops {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lit-mountain-btn {
    background: #1e293b;
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #e2e8f0;
    font-family: 'Fredoka', cursive;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 9px;
    cursor: pointer;
}

.lit-mountain-btn.active {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fde68a;
}

.lit-mountain-note {
    background: rgba(30, 41, 59, 0.85);
    border-left: 3px solid #fbbf24;
    padding: 8px 11px;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.8rem;
}

.lit-phonics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
}

.lit-phonics-tile {
    background: #1e293b;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
    cursor: pointer;
}

.lit-evidence-prompt {
    background: rgba(30, 27, 75, 0.9);
    border: 1.5px solid #c084fc;
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.lit-claim-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fbbf24;
    display: block;
}

.lit-claim-text {
    color: #ffffff;
    font-family: 'Fredoka', cursive;
    font-size: 0.92rem;
    margin: 3px 0;
}

.lit-evidence-sentences {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lit-ev-sentence-btn {
    background: #0f172a;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 9px 11px;
    color: #e2e8f0;
    font-size: 0.83rem;
    line-height: 1.48;
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.14s ease;
}

.lit-ev-sentence-btn:hover {
    border-color: #38bdf8;
    background: #1e293b;
}

.lit-ev-sentence-btn.selected {
    background: rgba(251, 191, 36, 0.18);
    border-color: #fbbf24;
    color: #ffffff;
}

.lit-ev-sentence-btn.verified {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #d1fae5;
}

.lit-feedback-banner {
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.79rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lit-feedback-banner.ok {
    background: rgba(16, 185, 129, 0.18);
    border: 1.5px solid #10b981;
    color: #d1fae5;
}

.lit-feedback-banner.hint {
    background: rgba(245, 158, 11, 0.16);
    border: 1.5px solid #fbbf24;
    color: #fef3c7;
}

.lit-clue-tokens-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: #0f172a;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lit-clue-token {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    font-size: 0.82rem;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
}

.lit-clue-token.target-word {
    background: rgba(251, 191, 36, 0.22);
    border-color: #fbbf24;
    color: #fbbf24;
    font-weight: 800;
    cursor: default;
}

.lit-clue-token.selected {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    color: #ffffff;
}

.lit-clue-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lit-clue-opt-btn {
    background: #1e293b;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.8rem;
    text-align: left;
    padding: 8px 11px;
    border-radius: 9px;
    cursor: pointer;
}

.lit-clue-opt-btn.selected {
    background: rgba(124, 58, 237, 0.28);
    border-color: #c084fc;
}

.lit-sorter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
}

.lit-sorter-row {
    background: #0f172a;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lit-sorter-row.is-ok {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.lit-sorter-row.is-bad {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.lit-mini-pick {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 7px;
    cursor: pointer;
}

.lit-mini-pick.selected {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

.lit-sentence-banner {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 9px 12px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    font-weight: 700;
}

.lit-bays-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 640px) {
    .lit-bays-grid {
        grid-template-columns: 1fr;
    }
}

.lit-bay {
    background: #0f172a;
    border-radius: 10px;
    padding: 9px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lit-bay.subject { border: 1.5px solid #38bdf8; }
.lit-bay.predicate { border: 1.5px solid #f43f5e; }

.lit-bay-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
}

.lit-bay-chips,
.lit-tile-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lit-tile {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    color: #ffffff;
}

.lit-tile.pool { background: #1e293b; border: 1px solid #38bdf8; }
.lit-tile.docked-subj { background: #0284c7; border: 1px solid #7dd3fc; }
.lit-tile.docked-pred { background: #be123c; border: 1px solid #fda4af; }

.lit-comma-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    background: #0f172a;
    padding: 12px;
    border-radius: 10px;
}

.lit-comma-word {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.lit-comma-slot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #1e293b;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: #94a3b8;
    font-weight: 800;
    cursor: pointer;
}

.lit-comma-slot.pinned {
    background: #fbbf24;
    border: 1px solid #ffffff;
    color: #090d16;
}

.lit-fanboys-bridge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.lit-clause-box {
    background: #1e293b;
    padding: 6px 10px;
    border-radius: 8px;
    color: #e2e8f0;
}

.lit-bridge-slot {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
}

.lit-morph-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #0f172a;
    padding: 12px;
    border-radius: 10px;
}

.lit-morph-piece {
    padding: 5px 10px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.lit-morph-piece.prefix { background: rgba(56, 189, 248, 0.2); border: 1px solid #38bdf8; color: #bae6fd; }
.lit-morph-piece.root { background: rgba(192, 132, 252, 0.2); border: 1px solid #c084fc; color: #e9d5ff; }
.lit-morph-piece.suffix { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #6ee7b7; }

.lit-draft-preview {
    background: #0f172a;
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    padding: 12px 14px;
    color: #f8fafc;
    font-size: 0.85rem;
    line-height: 1.55;
}

.lit-stamp-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lit-stamps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.lit-stamp-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.72rem;
    padding: 7px 8px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}

.lit-stamp-btn.active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #ffffff;
}

.lit-planner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 9px;
}

.lit-planner-step {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lit-mic-mini {
    background: #0284c7;
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.68rem;
}

.lit-textarea {
    width: 100%;
    height: 64px;
    background: #060911;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 7px 9px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.77rem;
    outline: none;
    resize: none;
    box-sizing: border-box;
}

.lit-textarea.tall {
    height: 92px;
}

.lit-mini-stamp {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
}

.lit-mini-stamp.cups {
    border-color: rgba(251, 191, 36, 0.35);
}

.lit-mini-stamp.on {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #6ee7b7;
}