/* MOBIELE STUDIO — de sidebar schuift als een paneel over het dashboard.
   De editor houdt zijn eigen lettertype, regelnummers en regellengte. */
.admin-menu-toggle, .admin-drawer-close { display: none; }
.admin-scrim[hidden] { display: none; }
.admin-scrim { display: none; }
@media (max-width: 850px) {
    .shell { display: block; min-height: 100dvh; }
    .shell > aside {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(84vw, 330px);
        height: 100dvh;
        z-index: 90;
        padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
        gap: 12px;
        border: 0;
        border-radius: 0 26px 26px 0;
        background: #f7f1f1;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .36s cubic-bezier(.35,1.18,.6,1), visibility 0s .36s;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .admin-drawer-open .shell > aside { transform: translateX(0); visibility: visible; transition: transform .36s cubic-bezier(.35,1.18,.6,1), visibility 0s; }
    .admin-drawer-close { display: grid; place-items: center; position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e7dcfa; color: #21201e; padding: 0; }
    .shell > aside nav { display: grid; overflow: visible; margin: 12px 0; }
    .shell > aside nav button, .shell > aside nav a { white-space: normal; min-height: 46px; }
    .shell > aside .aside-bottom { display: grid; margin-top: auto; }
    .admin-scrim:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; height: 100%; background: #21201e70; border: 0; border-radius: 0; z-index: 89; padding: 0; }
    .admin-menu-toggle { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 0; border-radius: 50%; background: #c2f15e; color: #21201e; padding: 0; touch-action: manipulation; }
    .workspace { padding: 0 clamp(12px,4vw,24px) 32px; }
    .workspace > header { position: sticky; top: 0; z-index: 30; padding: max(10px,env(safe-area-inset-top)) 0 10px; gap: 10px; margin-bottom: 16px; background: linear-gradient(90deg,#d9e8f3,#eedfdd 84%); }
    .workspace > header .eyebrow { margin-right: auto; font-size: 10px; }
    .workspace > header .xp-chip { white-space: nowrap; font-size: 13px; }
    .admin-drawer-open { overflow: hidden; }
    .course-focus .workspace > header, .course-focus .admin-scrim { display: none !important; }
    .lesson-grid, .practice-grid { grid-template-columns: minmax(0, 1fr); }
    .lesson, .practice-code, .practice-output { min-width: 0; }
    .course-heading { flex-wrap: wrap; gap: 8px; }
    .course-focus #course { padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .shell > aside { transition: none !important; } }
