/* Classora / Studio 243. Calm surfaces, precise contrast and a shared app-wide palette. */
:root{--cl243-bg:#10121d;--cl243-paper:#191c2b;--cl243-soft:#202436;--cl243-raised:#272c40;--cl243-ink:#f3f2fa;--cl243-muted:#b0b2c5;--cl243-edge:#ffffff14;--cl243-accent:#c2a9ff;--cl243-accent-ink:#251843;--cl243-gold:#e4c99c;--cl243-shadow:0 18px 54px #04061128}
html:has(body.light),html:has(body[data-classora-theme="morning"]),html[data-classora-theme="morning"]{background:#f5f5fa!important;color-scheme:light;--cl243-bg:#f5f5fa;--cl243-paper:#fff;--cl243-soft:#eeedf6;--cl243-raised:#e7e5f2;--cl243-ink:#262339;--cl243-muted:#635f79;--cl243-edge:#30244b1c;--cl243-accent:#7251ad;--cl243-accent-ink:#fff;--cl243-gold:#957137;--cl243-shadow:0 14px 42px #34244f09}
html body{background:var(--cl243-bg)!important;color:var(--cl243-ink)}
html body:is(.light,[data-classora-theme="morning"]){--cl243-bg:#f5f5fa;--cl243-paper:#fff;--cl243-soft:#eeedf6;--cl243-raised:#e7e5f2;--cl243-ink:#262339;--cl243-muted:#635f79;--cl243-edge:#30244b1c;--cl243-accent:#7251ad;--cl243-accent-ink:#fff;--cl243-gold:#957137;--cl243-shadow:0 14px 42px #34244f09}
html body{--panel:var(--cl243-paper);--text:var(--cl243-ink);--muted:var(--cl243-muted);--ui-paper:var(--cl243-paper);--ui-paper-alt:var(--cl243-soft);--ui-text:var(--cl243-ink);--ui-muted:var(--cl243-muted);--ui-accent:var(--cl243-accent);--ui-edge:var(--cl243-edge);--ui-inverse:var(--cl243-accent-ink);--cl237-bg:var(--cl243-bg);--cl237-card:var(--cl243-paper);--cl237-soft:var(--cl243-soft);--cl237-text:var(--cl243-ink);--cl237-muted:var(--cl243-muted);--cl237-border:var(--cl243-edge);--cl237-accent:var(--cl243-accent);--cl237-on:var(--cl243-accent-ink)}
html body #platformLobby{background:radial-gradient(ellipse at 12% 0%,#8e66cc0a,transparent 40%),var(--cl243-bg)!important;color:var(--cl243-ink)!important}
html body #platformLobby:before,html body #platformLobby:after{background:none!important;pointer-events:none}
html body #platformLobby .lobby-shell{width:min(1280px,100%);max-width:1280px;padding:20px clamp(16px,3vw,38px) 116px;margin-inline:auto;box-sizing:border-box}
html body #platformLobby .lobby-topbar{border:0!important;border-bottom:1px solid var(--cl243-edge)!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:12px 0 23px!important;gap:20px;margin-bottom:26px}
html body #platformLobby .lobby-brand{font-size:27px!important;font-weight:850!important;letter-spacing:-1.2px;color:var(--cl243-ink)!important;line-height:1.2}
html body #platformLobby .lobby-sub{font-size:12px!important;color:var(--cl243-muted)!important;margin-top:6px}
html body #platformLobby .lobby-top-actions{gap:9px;align-items:center;flex-wrap:wrap}
html body #platformLobby .lobby-top-actions :is(button,a){box-shadow:none!important;border-color:var(--cl243-edge)!important;border-radius:13px;min-height:42px}
html body #platformLobby .lobby-top-actions button{background:var(--cl243-paper)!important;color:var(--cl243-ink)!important}
html body #platformLobby .cl214{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;--cl-text:var(--cl243-ink);--cl-muted:var(--cl243-muted);--cl-edge:var(--cl243-edge);--cl-card:var(--cl243-paper);--cl-accent:var(--cl243-accent);--cl-alt:var(--cl243-gold)}
html body #platformLobby .cl214>*{grid-column:1/-1;margin:0!important;min-width:0}
html body #platformLobby .cl214-hero{min-height:355px;padding:34px 38px!important;border:1px solid var(--cl243-edge)!important;border-radius:28px!important;box-shadow:var(--cl243-shadow)!important;background:radial-gradient(ellipse at 13% 30%,#a27de51c,transparent 60%),var(--cl243-paper)!important;grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);gap:18px;overflow:hidden}
html body #platformLobby .cl214-hero:before{background-image:linear-gradient(var(--cl243-edge) 1px,transparent 1px),linear-gradient(90deg,var(--cl243-edge) 1px,transparent 1px);background-size:60px 60px;opacity:.3;mask-image:linear-gradient(110deg,transparent 40%,#000);pointer-events:none}
html body #platformLobby .cl214-kicker{color:var(--cl243-muted)!important;font-size:10px;letter-spacing:.13em;gap:10px}
html body #platformLobby .cl214-kicker i{width:6px;height:6px;background:var(--cl243-accent);box-shadow:0 0 0 4px #a482dd14}
html body #platformLobby .cl214-hero h1{font-size:clamp(36px,4.1vw,56px)!important;line-height:1.23!important;letter-spacing:-.035em;margin:20px 0 14px!important;color:var(--cl243-ink)!important;max-width:590px;text-wrap:balance}
html body #platformLobby .cl214-hero h1 em{color:var(--cl243-accent)!important;display:block;text-shadow:none!important}
html body #platformLobby .cl214-hero-lead{font-size:14px!important;line-height:1.95!important;color:var(--cl243-muted)!important;max-width:460px}
html body #platformLobby .cl214-personal{color:var(--cl243-muted)!important;font-size:13px!important;margin-bottom:20px!important}
html body #platformLobby .cl214-personal strong{color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl214-wave,.cl214-section-deco){color:var(--cl243-gold)!important}
html body #platformLobby :is(.cl214-primary,.cl227-primary,.cl227-shop-btn,.cl223-primary,.cl215-action){background:var(--cl243-accent)!important;color:var(--cl243-accent-ink)!important;border:1px solid transparent!important;border-radius:12px!important;box-shadow:none!important;min-height:44px;font-weight:800}
html body #platformLobby :is(.cl214-secondary,.cl223-outline,.cl227-secondary){background:transparent!important;color:var(--cl243-ink)!important;border:1px solid var(--cl243-edge)!important;border-radius:12px!important;box-shadow:none!important;min-height:44px}
html body #platformLobby .cl214-last-lesson{color:var(--cl243-muted)!important;line-height:1.7}
.cl243-hero-scene{width:100%;max-width:440px;margin:auto;pointer-events:none}.cl243-learning-art{display:block;width:100%;height:auto;overflow:visible}.cl243-art-book{animation:cl243-float 7s ease-in-out infinite;transform-origin:center}.cl243-art-float{animation:cl243-float 6s ease-in-out infinite}.cl243-art-cube{animation-delay:-2s}.cl243-art-star{animation-delay:-4s}.cl243-art-orbits{animation:cl243-orbit 14s ease-in-out infinite;transform-origin:270px 231px}
@keyframes cl243-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes cl243-orbit{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(3deg)}}
html body #platformLobby .cl214-hero-visual{display:flex;flex-direction:column;justify-content:center;gap:0}
html body #platformLobby #cl214XpHost{max-width:300px;width:100%;align-self:center;margin-top:-22px;position:relative}
html body #platformLobby #cl214XpHost .student-dash-progress{border:1px solid var(--cl243-edge)!important;border-radius:14px;background:var(--cl243-soft)!important;box-shadow:none;padding:12px 16px;color:var(--cl243-ink)!important}
html body #platformLobby .cl214-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body #platformLobby .cl214-quick .cl214-card{padding:20px 16px!important;min-height:116px;display:flex;flex-direction:row;gap:14px;align-items:center;border-radius:18px!important}
html body #platformLobby .cl214-card{background:var(--cl243-paper)!important;border:1px solid var(--cl243-edge)!important;color:var(--cl243-ink)!important;box-shadow:none!important;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
html body #platformLobby .cl214-card:hover{transform:translateY(-3px);border-color:var(--cl243-accent)!important;box-shadow:var(--cl243-shadow)!important}
html body #platformLobby .cl214-card-graphic{background:var(--cl243-soft)!important;color:var(--cl243-accent)!important;width:44px;height:44px;border-radius:13px;box-shadow:none!important;flex-shrink:0}
html body #platformLobby .cl214-card:nth-child(2) .cl214-card-graphic{color:var(--cl243-gold)!important}
html body #platformLobby .cl214-card-graphic svg{width:24px;height:24px}
html body #platformLobby .cl214-card-copy strong{font-size:14px;color:var(--cl243-ink)!important;line-height:1.5}
html body #platformLobby .cl214-card-copy small{font-size:11px;color:var(--cl243-muted)!important;line-height:1.7;margin-top:5px}
html body #platformLobby .cl214-arrow{color:var(--cl243-muted)!important;font-size:16px}
html body #platformLobby .cl214-tabs{display:flex;gap:6px;justify-content:flex-start;padding:8px 0!important;border-bottom:1px solid var(--cl243-edge);border-radius:0;overflow:auto;scrollbar-width:none}
html body #platformLobby .cl214-tabs button{min-height:42px;white-space:nowrap;background:transparent!important;border:0!important;border-radius:10px;box-shadow:none!important;color:var(--cl243-muted)!important;padding:10px 16px}
html body #platformLobby .cl214-tabs button:hover{background:var(--cl243-soft)!important;color:var(--cl243-ink)!important}
html body #platformLobby .cl214-tabs button svg{color:var(--cl243-accent)!important}
html body #platformLobby #classoraPromoCenter{padding:18px 22px!important;background:var(--cl243-paper)!important;border:1px solid var(--cl243-edge)!important;border-radius:20px!important;box-shadow:none!important}
html body #platformLobby #classoraPromoCenter[hidden]{display:none!important}
html body #platformLobby .cp-titlebar{margin-bottom:12px}.cp-timing{display:none!important}
html body #platformLobby #classoraPromoCenter .cp-slides{min-height:160px}
html body #platformLobby #classoraPromoCenter .cp-slide{min-height:160px!important;background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;grid-template-columns:140px minmax(0,1fr);gap:24px}
html body #platformLobby #classoraPromoCenter .cp-illustration{max-width:130px;max-height:130px;filter:none}
html body #platformLobby #classoraPromoCenter :is(h2,h3){color:var(--cl243-ink)!important}html body #platformLobby #classoraPromoCenter :is(p,.cp-eyebrow){color:var(--cl243-muted)!important}
html body #platformLobby #classoraPromoCenter .cp-title{font-size:21px!important;line-height:1.5!important}html body #platformLobby #classoraPromoCenter .cp-description{font-size:12px!important;line-height:1.8}
html body #platformLobby #classoraPromoCenter .cp-enter{background:var(--cl243-soft)!important;color:var(--cl243-accent)!important;border:1px solid var(--cl243-edge)!important;box-shadow:none!important;border-radius:10px!important}
html body #platformLobby #classoraLearningBoost{grid-column:span 7;padding:24px;border-radius:22px;border:1px solid var(--cl243-edge);background:var(--cl243-paper)!important}
html body #platformLobby #cl223Preview{grid-column:span 5;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:20px;padding:24px!important;border-radius:22px!important;background:linear-gradient(135deg,#a687d411,transparent),var(--cl243-paper)!important;border:1px solid var(--cl243-edge)!important;box-shadow:none!important}
html body #platformLobby :is(.cl215-heading,.cl223-preview-copy) h2{font-size:21px!important;color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl215-insight,.cl223-preview-progress){background:var(--cl243-soft)!important;border:1px solid var(--cl243-edge)!important;box-shadow:none!important;border-radius:14px!important;color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl215-insight-text strong,.cl223-preview-copy h3){color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl215-insight-text small,.cl223-preview-copy p,.cl215-heading p){color:var(--cl243-muted)!important}
html body #platformLobby :is(.cl215-count,.cl215-insight-icon,.cl223-preview-icon){color:var(--cl243-accent)!important;background:var(--cl243-soft)!important}
html body #platformLobby :is(.cl215-grid,.cl215-insight-grid){gap:10px;grid-template-columns:1fr}
html body #platformLobby .cl214-section-heading{padding:14px 0 4px;border:0}.cl214-section-index{color:var(--cl243-muted)!important;font-size:10px;letter-spacing:.16em}
html body #platformLobby .cl214-section-heading h2{color:var(--cl243-ink)!important;font-size:25px!important;line-height:1.5}
html body #platformLobby .cl214-section-heading p{color:var(--cl243-muted)!important;font-size:13px!important}
html body #platformLobby .cl214-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body #platformLobby .cl214-tool-grid .cl214-card{min-height:155px;grid-column:auto;padding:22px 18px;border-radius:18px!important}
html body #platformLobby :is(.cl214-live-panel,.cl214-live-steps,.cl214-exam-main,.cl214-exam-side .cl214-card,.cl227-home,.cl227-pane,.cl223-map-panel,.cl215-panel){background:var(--cl243-paper)!important;border:1px solid var(--cl243-edge)!important;border-radius:22px!important;box-shadow:none!important;color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl227-entry,.cl227-shop-item,.cl227-wallet,.cl227-question-card,.cl223-mission-area,.cl223-route,.cl232-showcase,.cl215-mistake){background:var(--cl243-soft)!important;border:1px solid var(--cl243-edge)!important;border-radius:16px!important;box-shadow:none!important;color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl227-home,.cl227-pane,.cl223-map-panel,.cl214-live-panel,.cl214-exam-main) :is(h2,h3,h4,strong,b){color:var(--cl243-ink)!important}
html body #platformLobby :is(.cl227-home,.cl227-pane,.cl223-map-panel,.cl214-live-panel,.cl214-live-steps,.cl214-exam-main) :is(p,small){color:var(--cl243-muted)!important}
html body #platformLobby :is(.cl214-live-art,.cl214-exam-illustration,.cl214-step svg){color:var(--cl243-accent)!important;background:transparent!important}
html body #platformLobby .cl214-levels span{background:var(--cl243-soft)!important;border-color:var(--cl243-edge)!important;color:var(--cl243-ink)!important}
html body #platformLobby .cl214-footer{padding:25px 0;border-top:1px solid var(--cl243-edge);color:var(--cl243-muted)}
html body #platformLobby .cl214-footer button{color:var(--cl243-accent)!important}
html body #platformLobby .cl238-upgrade-banner{border-radius:18px!important;background:linear-gradient(115deg,#a985e51c,#d8bb8811),var(--cl243-paper)!important;color:var(--cl243-ink)!important;border:1px solid var(--cl243-edge)!important;font-size:14px!important;padding:22px!important;box-shadow:none!important}
html body :is(#settingsModal,#profileModal,#chatModal,#classModal) .modalbox{background:var(--cl243-bg)!important;border:1px solid var(--cl243-edge)!important;color:var(--cl243-ink)!important;box-shadow:0 24px 100px #0004!important}
html body :is(#settingsModal,#profileModal,#chatModal) :is(.modalhead,.chat-thread-head){background:var(--cl243-bg)!important;border-color:var(--cl243-edge)!important;color:var(--cl243-ink)!important}
html body :is(#settingsModal,#profileModal) :is(.settings-card,.settings-profile-row,.profile-hero,.cl236-customizer,.cl238-workspace,#classoraAppearanceSettings,#classoraSettingsShortcuts){background:var(--cl243-paper)!important;border:1px solid var(--cl243-edge)!important;border-radius:19px!important;box-shadow:none!important;color:var(--cl243-ink)!important}
html body :is(#settingsModal,#profileModal,#chatModal) :is(h2,h3,h4,.settings-name,.profile-name,label){color:var(--cl243-ink)!important}
html body :is(#settingsModal,#profileModal) :is(p,small,.settings-help,.cl-appearance-desc,.cl236-note){color:var(--cl243-muted)!important}
html body :is(#settingsModal,#profileModal,#chatModal) :is(input,textarea,select,.cl236-owned-item,.cl236-profile-preview,.chat-contacts-pane){background:var(--cl243-soft)!important;border-color:var(--cl243-edge)!important;color:var(--cl243-ink)!important}
html body #settingsModal .cl-appearance-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #settingsModal .cl-appearance-choice{background:var(--cl243-soft)!important;color:var(--cl243-ink)!important;border:1px solid var(--cl243-edge)!important;box-shadow:none!important;border-radius:14px}
html body #settingsModal .cl-appearance-choice[aria-pressed="true"]{border-color:var(--cl243-accent)!important;box-shadow:inset 0 0 0 1px var(--cl243-accent)!important}
html body #chatModal .chat-thread-pane{background:var(--cl243-bg)!important;color:var(--cl243-ink)!important}html body #chatModal .chat-compose{background:var(--cl243-paper)!important;border-color:var(--cl243-edge)!important}
html body #chatModal :is(.chat-person,.chat-contact){border-color:var(--cl243-edge)!important;color:var(--cl243-ink)!important}
html body #classoraMobilePageNav{background:var(--cl243-paper)!important;background:color-mix(in srgb,var(--cl243-paper) 92%,transparent)!important;border:1px solid var(--cl243-edge)!important;box-shadow:0 8px 40px #05061224!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
html body #classoraMobilePageNav button{color:var(--cl243-muted)!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:13px}
html body #classoraMobilePageNav button:is(.is-active,[aria-current="page"]){color:var(--cl243-accent)!important;background:var(--cl243-soft)!important}
html body #classoraMobilePageNav button span{color:inherit!important}
html body.classora-membership-page{background:var(--cl243-bg)!important;color:var(--cl243-ink)!important}
html body.classora-membership-page :is(.cl-hero,.cl-plan,.cl-account,.cl-luxe-compare,.cl-checkout-preview,.cl-luxe-tip,.cl238-trial){background:var(--cl243-paper)!important;border-color:var(--cl243-edge)!important;color:var(--cl243-ink)!important;box-shadow:var(--cl243-shadow)!important}
html body.classora-membership-page :is(h1,h2,h3,.cl-plan-top,.cl-summary-title){color:var(--cl243-ink)!important}html body.classora-membership-page :is(p,li,.cl-description){color:var(--cl243-muted)!important}
html body.classora-membership-page .cl-plan.premium{border-color:var(--cl243-accent)!important;background:linear-gradient(145deg,#9b7bce12,transparent),var(--cl243-paper)!important}
html body.classora-membership-page :is(.cl-plan-select,.cl-continue){background:var(--cl243-accent)!important;color:var(--cl243-accent-ink)!important;border:0!important}
html body :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--cl243-accent)!important;outline-offset:3px}
@media(min-width:1100px){html body #classoraMobilePageNav{max-width:670px;margin-inline:auto;border-radius:20px!important}}
@media(max-width:1000px){html body #platformLobby .cl214-hero{padding:28px!important;grid-template-columns:minmax(0,1.15fr) minmax(200px,.85fr)}html body #platformLobby .cl214-quick .cl214-card{flex-wrap:wrap}html body #platformLobby .cl214-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body #platformLobby #classoraLearningBoost,html body #platformLobby #cl223Preview{grid-column:1/-1}}
@media(max-width:600px){
 html body #platformLobby .lobby-shell{padding:8px 14px 104px!important}html body #platformLobby .lobby-topbar{padding:14px 2px 18px!important;margin-bottom:15px;gap:10px}html body #platformLobby .lobby-brand{font-size:24px!important}html body #platformLobby .lobby-top-actions{gap:6px}
 html body #platformLobby .cl214{gap:14px}html body #platformLobby .cl214-hero{padding:25px 22px 16px!important;grid-template-columns:1fr;gap:0;border-radius:23px!important;min-height:auto}
 html body #platformLobby .cl214-hero h1{font-size:36px!important;line-height:1.27!important;margin-top:16px!important}html body #platformLobby .cl214-kicker{font-size:9px!important}
 html body #platformLobby .cl214-hero-lead{font-size:13px!important;line-height:1.85!important}html body #platformLobby .cl214-hero-buttons{gap:8px}html body #platformLobby .cl214-hero-buttons button{flex:1;padding:10px;font-size:12px!important}
 html body #platformLobby .cl214-hero-visual{max-width:270px;width:100%;justify-self:center;margin-top:8px}.cl243-hero-scene{max-width:250px;margin-block:-10px -14px}html body #platformLobby #cl214XpHost{margin-top:0;max-width:250px}
 html body #platformLobby .cl214-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html body #platformLobby .cl214-quick .cl214-card{padding:15px 12px!important;gap:10px;min-height:110px;align-items:flex-start;flex-wrap:nowrap;flex-direction:column}
 html body #platformLobby .cl214-quick .cl214-card-graphic{width:34px;height:34px;border-radius:10px}html body #platformLobby .cl214-quick .cl214-card-graphic svg{width:20px;height:20px}html body #platformLobby .cl214-card-copy strong{font-size:13px!important}html body #platformLobby .cl214-arrow{position:absolute;inset-inline-end:12px;top:16px}
 html body #platformLobby .cl214-tabs{gap:0}html body #platformLobby .cl214-tabs button{font-size:11px;padding:8px 11px}
 html body #platformLobby :is(#classoraLearningBoost,#cl223Preview){padding:19px!important}html body #platformLobby .cl214-section-heading h2{font-size:23px!important}html body #platformLobby .cl214-tool-grid .cl214-card{padding:18px 14px;min-height:160px}
 html body #platformLobby #classoraPromoCenter{padding:16px!important}html body #platformLobby #classoraPromoCenter .cp-slide{grid-template-columns:70px minmax(0,1fr);gap:12px}html body #platformLobby #classoraPromoCenter .cp-illustration{max-width:70px}html body #platformLobby #classoraPromoCenter .cp-title{font-size:17px!important}
 html body #platformLobby .cl214-live-layout,html body #platformLobby .cl214-exam-layout{grid-template-columns:1fr}html body #platformLobby .cl214-live-panel{padding:24px 20px!important}
 html body #classoraMobilePageNav{border-radius:18px 18px 0 0!important;padding-bottom:env(safe-area-inset-bottom)!important}.cl243-art-orbits{animation:none}
}
@media(prefers-reduced-motion:reduce){.cl243-art-book,.cl243-art-float,.cl243-art-orbits{animation:none!important}html body #platformLobby .cl214-card{transition:none!important}html body #platformLobby .cl214-card:hover{transform:none}}
body.reduced-motion .cl243-learning-art *,body.motion-off .cl243-learning-art *{animation:none!important}
body.reduce-motion .cl243-learning-art *{animation:none!important}
html body #authGate{background:radial-gradient(ellipse at 18% 10%,#8f66bc17,transparent 50%),var(--cl243-bg)!important;color:var(--cl243-ink)!important}
html body #authGate .auth-panel{background:var(--cl243-paper)!important;border:1px solid var(--cl243-edge)!important;border-radius:26px!important;box-shadow:var(--cl243-shadow)!important;color:var(--cl243-ink)!important}
html body #authGate :is(h1,h2,h3,label,.auth-title){color:var(--cl243-ink)!important}html body #authGate :is(p,small,.auth-note,.auth-sub){color:var(--cl243-muted)!important}
html body #authGate :is(input,select,.auth-role-card,.auth-language-switch button){background:var(--cl243-soft)!important;color:var(--cl243-ink)!important;border-color:var(--cl243-edge)!important;box-shadow:none!important}
html body #authGate :is(.auth-primary,.auth-submit,.apply){background:var(--cl243-accent)!important;color:var(--cl243-accent-ink)!important;border-color:transparent!important;box-shadow:none!important}
html body #authGate .auth-role-card:hover{border-color:var(--cl243-accent)!important;transform:translateY(-2px)}
html body #platformLobby :is(.student-dash-insight,.student-dash-stat,.teacher-dash-card,.tw-metric){background:var(--cl243-paper)!important;color:var(--cl243-ink)!important;border:1px solid var(--cl243-edge)!important;box-shadow:none!important;border-radius:16px}
html body #platformLobby :is(.student-dash-stat-label,.tw-metric-label){color:var(--cl243-muted)!important}
html body .cl238-trial button:disabled{opacity:.5;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){html body #authGate .auth-role-card:hover{transform:none}}


/* v244 — collision-free responsive layout. Loaded last on app + memberships.
   Keep existing routing, animations, dialogs and Firebase behavior unchanged. */
html body #platformLobby :is(.lobby-shell,.lobby-topbar,.lobby-top-actions,.cl214,.cl214-hero,.cl214-quick,.cl214-tool-grid,.cl214-card,.cl214-live-layout,.cl214-exam-layout,.cl214-section-heading),
html body :is(#settingsModal,#chatModal,#adminPanelModal) :is(.modalbox,.modalhead,.settings-profile-row,.settings-grid,.settings-card,.classora-chat-layout,.chat-contacts-pane,.chat-thread-pane,.chat-thread-head,.chat-compose),
html body.classora-membership-page :is(.cl-shell,.cl-header,.cl-header-actions,.cl-hero,.cl-hero-copy,.cl-pricing,.cl-controls,.cl-tabs,.cl-plans,.cl-plan,.cl-plan-top,.cl-price-line,.cl-checkout-preview,.cl-checkout-card,.cl-summary,.cl-sum-line,.cl-owner-switch){
 box-sizing:border-box;min-width:0;
}
html body #platformLobby :is(.lobby-shell,.cl214,.cl214-quick,.cl214-tool-grid,.cl214-card),
html body :is(#settingsModal,#chatModal,#adminPanelModal) :is(.modalbox,.settings-card,.chat-thread-pane),
html body.classora-membership-page :is(.cl-plan,.cl-owner-switch,.cl-account,.cl-summary){
 overflow-wrap:anywhere;
}
html body #platformLobby :is(.lobby-topbar,.lobby-top-actions,.cl214-section-heading,.cl214-hero-buttons){min-width:0;max-width:100%;gap:clamp(6px,1.4vw,14px);flex-wrap:wrap}
html body #platformLobby :is(.cl214-tool-grid,.cl214-quick,.cl214-live-layout,.cl214-exam-layout) > *{min-width:0;max-width:100%}
html body #settingsModal :is(.settings-profile-info,.settings-account-meta,.settings-photo-actions,.settings-choice-row,.classora-settings-shortcuts,.classora-quick-grid,.cl240-owner-row){min-width:0;max-width:100%;flex-wrap:wrap}
html body #settingsModal .settings-grid>*{min-width:0;max-width:100%}
html body #settingsModal .settings-card :is(input,textarea,select){box-sizing:border-box;max-width:100%;min-width:0}
html body #adminPanelModal :is(.admin-panel-box,.admin-view,.admin-v34-quick-actions,.admin-tab-row,.admin-stat-grid,.admin-list,.admin-quick-add-grid){min-width:0;max-width:100%;box-sizing:border-box}
html body #adminPanelModal :is(#adminTabs,.admin-tabs){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
html body #adminPanelModal :is(.admin-stat,.admin-v34-quick-actions>*,.admin-quick-add-grid>*,.admin-view>* ){min-width:0;overflow-wrap:anywhere}
html body #chatModal :is(.chat-thread-head,.chat-thread-pane,.chat-compose,.chat-person-menu,.chat-group-actions,.chat-media-tools){min-width:0;max-width:100%;box-sizing:border-box}
html body #chatModal .chat-bubble{min-width:0;overflow-wrap:anywhere;word-break:normal}
html body #chatModal :is(.chat-messages,#chatMessages){min-width:0;overscroll-behavior:contain}
html body.classora-membership-page .cl-header-actions{flex-wrap:wrap;justify-content:flex-end;min-width:0}
html body.classora-membership-page .cl-hero-copy :is(h1,p){max-width:100%;overflow-wrap:anywhere}
html body.classora-membership-page :is(.cl-plan,.cl-summary,.cl-checkout-card) :is(h2,h3,p,li,strong,small,span){overflow-wrap:anywhere}
html body.classora-membership-page :is(.cl-pricing,.cl-checkout-preview,.cl-owner-switch) > *{min-width:0}
html body.classora-membership-page :is(.cl-sum-line,.cl-total,.cl-price-line,.cl-seat-row){min-width:0;flex-wrap:wrap;align-items:baseline}
html body.classora-membership-page :is(.cl-sum-line,.cl-total) > *{min-width:0;max-width:100%}
html body.classora-membership-page .cl-luxe-table-scroll{max-width:100%;overflow-x:auto}
html body.classora-membership-page :is(input,select,button){max-width:100%;box-sizing:border-box}
@media(max-width:1000px){
 html body #platformLobby .cl214-hero{grid-template-columns:minmax(0,1fr)!important}
 html body #platformLobby .cl214-hero-visual{width:min(100%,330px);max-width:100%;justify-self:center}
 html body #platformLobby :is(.cl214-tool-grid,.cl214-quick){grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #adminPanelModal :is(.admin-v34-quick-actions,.admin-stat-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 html body #platformLobby .lobby-shell{width:100%!important;max-width:100%!important;padding-inline:clamp(10px,3vw,18px)!important;padding-bottom:max(104px,var(--classora-dock-clearance,88px))!important;overflow-x:clip}
 html body #platformLobby :is(.cl214,.cl214-hero,.cl214-quick,.cl214-tool-grid,.cl214-live-layout,.cl214-exam-layout){width:100%;max-width:100%}
 html body #platformLobby .cl214-hero{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 html body #platformLobby .cl214-hero :is(h1,.cl214-hero-lead){max-width:100%;overflow-wrap:anywhere}
 html body #platformLobby .cl214-hero-buttons{display:flex;flex-wrap:wrap;align-items:stretch}
 html body #platformLobby .cl214-hero-buttons :is(button,a){min-width:0;flex:1 1 132px;white-space:normal!important}
 html body #platformLobby .cl214-quick .cl214-card{min-width:0;max-width:100%;height:auto!important;min-height:112px;overflow-wrap:anywhere}
 html body #platformLobby :is(.cl214-tabs,.hub-subject-tabs){display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;gap:5px;scrollbar-width:thin}
 html body #platformLobby :is(.cl214-tabs,.hub-subject-tabs)>button{flex-shrink:0;max-width:min(85vw,235px)}
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav{width:min(480px,calc(100% - 12px))!important;max-width:calc(100% - 12px)!important;box-sizing:border-box!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:column;gap:2px!important;min-width:0}
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button,
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav #classoraMobileLobbyBtn{min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:normal!important;line-height:1.1!important;gap:3px!important;box-sizing:border-box!important}
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button span{min-width:0;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(9px,2.3vw,11px)!important;line-height:1.25!important}
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button svg{flex:0 0 auto;max-width:22px;max-height:22px}
 html body #settingsModal.open{overflow:hidden;align-items:flex-start!important;justify-content:center!important}
 html body #settingsModal.open .settings-modalbox{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;max-height:calc(var(--classora-viewport-height,100dvh) - var(--classora-dock-clearance,84px) - 12px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html body #settingsModal .settings-profile-row{flex-wrap:wrap;gap:11px!important}
 html body #settingsModal .settings-grid{display:grid;grid-template-columns:minmax(0,1fr)!important}
 html body #settingsModal .classora-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #settingsModal .classora-quick-grid button{min-width:0;max-width:100%;overflow-wrap:anywhere}
 html body #settingsModal .settings-choice-row>*{flex:1 1 125px;min-width:0}
 html body #settingsModal :is(.cl239-sessions,.cl240-owner) {max-width:calc(100% - 24px)}
 html body #adminPanelModal.open .admin-panel-box{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;max-height:calc(var(--classora-viewport-height,100dvh) - 20px)!important;overflow-x:hidden!important;overflow-y:auto!important}
 html body #adminPanelModal :is(.admin-v34-quick-actions,.admin-stat-grid,.admin-quick-add-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #chatModal.open{overflow:hidden!important;align-items:flex-start!important;justify-content:center!important}
 html body #chatModal.open .classora-chat-box{display:flex!important;flex-direction:column!important;box-sizing:border-box!important;width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;height:calc(var(--chat-viewport-height,100dvh) - var(--classora-dock-clearance,82px) - 8px)!important;max-height:calc(var(--chat-viewport-height,100dvh) - var(--classora-dock-clearance,82px) - 8px)!important;min-height:0!important;margin:0 auto!important;padding:0!important}
 html body #chatModal .modalhead{flex:0 0 auto;min-height:0!important;gap:10px;flex-wrap:wrap}
 html body #chatModal .classora-chat-layout{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important;display:grid}
 html body #chatModal .chat-contacts-pane,html body #chatModal .chat-thread-pane{min-height:0!important;max-height:100%!important;min-width:0}
 html body #chatModal .chat-thread-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
 html body #chatModal #chatPersonMenuBtn{flex:1 1 140px;max-width:100%!important;min-width:0!important}
 html body #chatModal #chatBackContactsBtn{flex:0 1 auto;min-width:0;white-space:normal}
 html body #chatModal #chatThreadActive:not(.hidden){display:flex;flex:1 1 auto;flex-direction:column;height:100%!important;min-height:0!important}
 html body #chatModal #chatMessages{flex:1 1 auto;min-height:0!important;max-height:none!important;overflow-y:auto!important}
 html body #chatModal .chat-media-tools{display:flex;gap:6px;flex-wrap:wrap;flex:0 0 auto;overflow-x:clip}
 html body #chatModal .chat-media-tools button{min-width:0!important;max-width:100%;flex:1 1 auto;font-size:12px}
 html body #chatModal .chat-compose{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(55px,64px)!important;gap:6px!important;min-width:0}
 html body #chatModal .chat-compose textarea,html body #chatModal #chatMessageInput{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;font-size:16px!important}
 html body #chatModal #chatSendBtn{width:100%!important;max-width:64px!important;min-width:0!important}
 html body.classora-mobile-typing #chatModal.open .classora-chat-box{height:calc(var(--chat-viewport-height,100dvh) - 8px)!important;max-height:calc(var(--chat-viewport-height,100dvh) - 8px)!important}
}
@media(max-width:620px){
 html body.classora-membership-page .cl-shell{width:calc(100% - 20px)!important;max-width:100%!important;padding:0!important}
 html body.classora-membership-page .cl-header{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}
 html body.classora-membership-page .cl-brand{min-width:0;flex:1 1 150px}
 html body.classora-membership-page .cl-brand>span:last-child{min-width:0}
 html body.classora-membership-page .cl-header-actions{flex:1 1 220px;justify-content:flex-end;gap:7px;max-width:100%;min-width:0}
 html body.classora-membership-page #cl-language{flex:0 1 145px;min-width:0;max-width:100%}
 html body.classora-membership-page .cl-back{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
 html body.classora-membership-page .cl-hero{display:grid;grid-template-columns:minmax(0,1fr)!important;min-width:0;overflow:hidden}
 html body.classora-membership-page .cl-highlights{display:flex;flex-wrap:wrap}
 html body.classora-membership-page .cl-pricing{padding:14px!important}
 html body.classora-membership-page .cl-controls{display:flex;flex-wrap:wrap;gap:9px}
 html body.classora-membership-page .cl-controls>div{max-width:100%;min-width:0;flex:1 1 190px}
 html body.classora-membership-page .cl-tabs{display:flex;flex-wrap:wrap}
 html body.classora-membership-page .cl-tabs button{flex:1 1 95px;min-width:0;white-space:normal;font-size:12px!important;line-height:1.45!important}
 html body.classora-membership-page .cl-plans{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:13px}
 html body.classora-membership-page .cl-plan{width:100%;min-width:0;max-width:100%}
 html body.classora-membership-page .cl-plan-top{display:flex;flex-wrap:wrap;align-items:flex-start;gap:9px}
 html body.classora-membership-page .cl-price-line{display:flex;flex-wrap:wrap;gap:5px;align-items:baseline}
 html body.classora-membership-page .cl-price-line strong{font-size:clamp(24px,8vw,32px)!important;overflow-wrap:anywhere}
 html body.classora-membership-page .cl-owner-switch{display:flex;flex-wrap:wrap;padding:13px!important}
 html body.classora-membership-page .cl-owner-switch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 html body.classora-membership-page .cl-owner-switch-actions .cl-owner-admin-link{grid-column:1/-1}
 html body.classora-membership-page .cl-checkout-preview{display:grid;grid-template-columns:minmax(0,1fr)!important}
 html body.classora-membership-page .cl-methods{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body.classora-membership-page .cl-summary{max-width:100%;min-width:0}
 html body.classora-membership-page :is(.cl-sum-line,.cl-total){display:flex;flex-wrap:wrap;gap:7px}
 html body.classora-membership-page .cl-luxe-table-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin}
 html body.classora-membership-page .cl-luxe-compare table{min-width:475px}
}
@media(max-width:390px){
 html body #platformLobby .cl214-quick{gap:7px}
 html body #platformLobby .cl214-quick .cl214-card{padding:11px 9px!important}
 html body #platformLobby .cl214-section-heading{flex-wrap:wrap;gap:8px}
 html body #settingsModal .classora-quick-grid button{font-size:12px!important}
 html body #adminPanelModal :is(.admin-v34-quick-actions,.admin-stat-grid,.admin-quick-add-grid){grid-template-columns:minmax(0,1fr)}
 html body.classora-membership-page .cl-header-actions{justify-content:stretch}
 html body.classora-membership-page .cl-header-actions>*{flex:1 1 125px}
 html body.classora-membership-page .cl-owner-switch-actions{grid-template-columns:minmax(0,1fr)}
 html body.classora-membership-page .cl-owner-switch-actions .cl-owner-admin-link{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){html body #platformLobby :is(.cl214-quick .cl214-card,.cl214-tool-grid .cl214-card){transition:none!important}}


/* v245 — consistent touch-friendly buttons.
   Scoped to primary UI so chemistry, calculators, games and tiny carousel dots keep their controls. */
html body #platformLobby :is(.lobby-top-actions,.cl214-hero-buttons,.cl223-filters,.cl223-mission-area,.cl223-preview,.cl223-subject-picker) :is(button:not(.cl223-node),a),
html body #settingsModal :is(.classora-quick-grid,.settings-grid,.settings-danger-zone,.settings-profile-row,.settings-choice-row,.cl239-device-actions,.cl240-owner-row) :is(button,a),
html body #chatModal :is(.modalhead,.chat-thread-head,.chat-media-tools,.chat-compose,.chat-contacts-pane) button,
html body #adminPanelModal :is(.admin-v34-quick-actions,.admin-toolbar,.admin-tab-row,.admin-tabs,.admin-quick-add-grid) button,
html body.classora-membership-page :is(.cl-header,.cl-owner-switch-actions,.cl-controls,.cl-plan,.cl-checkout-preview,.cl-admin-sim-controls) :is(button,a) {
 box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 padding:9px 12px;line-height:1.4;
 white-space:normal;overflow-wrap:anywhere;text-align:center;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
 border-radius:12px;cursor:pointer;
}
html body :is(#platformLobby,#settingsModal,#chatModal,#adminPanelModal) :is(button,a):focus-visible,
html body.classora-membership-page :is(button,a):focus-visible{
 outline:3px solid #f4d7a5!important;outline-offset:2px!important;
}
html body :is(#platformLobby,#settingsModal,#chatModal,#adminPanelModal) button:disabled,
html body.classora-membership-page button:disabled{
 opacity:.55;cursor:not-allowed;filter:saturate(.65);
}
html body #platformLobby :is(.cl214-hero-buttons,.cl214-tool-grid,.cl223-filters,.cl223-subject-picker) :is(button,a):active:not(:disabled),
html body #settingsModal .classora-quick-grid button:active:not(:disabled),
html body #adminPanelModal .admin-v34-quick-actions button:active:not(:disabled),
html body.classora-membership-page :is(.cl-plan-select,.cl-tabs button,.cl-owner-switch-actions button):active:not(:disabled){
 filter:brightness(1.08);transform:scale(.985);
}
html body :is(#platformLobby,#settingsModal,#chatModal,#adminPanelModal) :is(button[aria-pressed="true"],button[aria-selected="true"],button.is-active,button.active):not(:disabled){
 border-color:var(--cl243-accent)!important;
}
html body :is(#platformLobby,#settingsModal,#chatModal,#adminPanelModal) :is(button,a) > :is(svg,.icon),
html body #classoraMobilePageNav button > :is(svg,span),
html body.classora-membership-page :is(button,a)>svg{
 pointer-events:none;
}
html body #platformLobby :is(.cl243-hero-scene,.cl243-art-orbits,.cl243-art-float,.cl243-art-book,.cl214-hero-visual) svg,
html body #platformLobby :is(.cl243-hero-scene,.cl243-art-orbits)::before,
html body #platformLobby :is(.cl243-hero-scene,.cl243-art-orbits)::after{
 pointer-events:none;
}
html body #settingsModal .classora-quick-grid button{
 justify-content:center;align-items:center;gap:8px;min-height:60px!important;
 flex-direction:column;line-height:1.3!important;overflow:hidden;
}
html body #settingsModal .classora-quick-grid button :is(svg,span){min-width:0;max-width:100%;pointer-events:none}
html body #settingsModal .classora-quick-grid button span{white-space:normal;line-height:1.35;text-align:center}
html body #settingsModal .settings-choice-row{display:flex;flex-wrap:wrap;gap:8px}
html body #settingsModal .settings-choice-row button{flex:1 1 120px!important}
html body #adminPanelModal .admin-v34-quick-actions{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
html body #adminPanelModal .admin-v34-quick-actions button{
 min-width:0;width:100%;min-height:54px;text-align:center;
 justify-content:center;flex-wrap:wrap;white-space:normal!important;
}
html body #adminPanelModal .admin-v34-quick-actions button span{min-width:0;max-width:100%;overflow-wrap:anywhere}
html body #chatModal :is(.chat-media-tools,.chat-compose){isolation:isolate}
html body #chatModal .chat-media-tools button{min-height:44px!important;min-width:0}
html body #chatModal .chat-compose{align-items:end}
html body #chatModal #chatSendBtn{min-width:55px!important;max-width:100%;min-height:46px!important}
html body #chatModal .chat-thread-head button{flex:0 1 auto;max-width:100%}
html body.classora-membership-page .cl-plan-select,
html body.classora-membership-page .cl-continue{
 width:100%;min-height:48px!important;font-weight:850!important;
}
html body.classora-membership-page .cl-tabs{display:flex;flex-wrap:wrap;gap:8px}
html body.classora-membership-page .cl-tabs button{
 min-height:44px!important;min-width:0;flex:1 1 auto;white-space:normal!important;
}
html body.classora-membership-page .cl-owner-switch-actions button{min-width:0}
@media(max-width:760px){
 html body #platformLobby .cl214-hero-buttons :is(button,a){flex:1 1 140px;min-height:46px!important}
 html body #platformLobby :is(.cl214-tool-grid,.cl214-quick) :is(button,a){min-height:44px;min-width:0}
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch;gap:2px!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button,
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav #classoraMobileLobbyBtn{
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;
  min-height:50px!important;max-height:52px!important;
  padding:3px 1px!important;gap:2px!important;
  touch-action:manipulation;cursor:pointer;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button span{
  font-size:clamp(9px,2.4vw,11px)!important;
  line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 }
 html body #settingsModal .classora-quick-grid{gap:9px!important}
 html body #settingsModal .classora-quick-grid button{min-height:66px!important;max-width:100%;padding:10px 6px!important}
 html body #adminPanelModal .admin-v34-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body #adminPanelModal .admin-v34-quick-actions button{min-height:57px;padding:10px 7px}
 html body #chatModal .chat-media-tools{gap:6px}
 html body #chatModal .chat-media-tools button{flex:1 1 70px;max-width:100%;padding:8px 6px;font-size:12px!important}
 html body #chatModal .chat-compose{grid-template-columns:minmax(0,1fr) minmax(55px,64px)!important}
 html body.classora-membership-page .cl-owner-switch-actions button{width:100%;min-height:45px}
 html body.classora-membership-page .cl-controls>div{min-width:0}
 html body.classora-membership-page .cl-plan-select{padding-inline:10px}
}
@media(max-width:375px){
 html body #settingsModal .classora-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #adminPanelModal .admin-v34-quick-actions{grid-template-columns:minmax(0,1fr)}
 html body #chatModal .chat-media-tools button{flex-basis:58px}
 html body.classora-membership-page .cl-tabs button{flex:1 1 88px}
}
@media(hover:hover){
 html body #settingsModal .classora-quick-grid button:hover:not(:disabled),
 html body #adminPanelModal .admin-v34-quick-actions button:hover:not(:disabled){
  border-color:var(--cl243-accent)!important;filter:brightness(1.06);
 }
}
@media(prefers-reduced-motion:reduce){
 html body :is(#platformLobby,#settingsModal,#chatModal,#adminPanelModal) button,
 html body.classora-membership-page button{transition:none!important}
}


/* v246 — spaced five-tab navigation on iPad & phone.
   iPad screenshots showed a 480px bar crowding five controls and covering last cards. */
@media (min-width:761px) and (max-width:1600px) {
 html body.classora-dock-enabled {
  --classora-dock-height:82px;
  --classora-dock-clearance:calc(134px + env(safe-area-inset-bottom,0px));
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav {
  width:min(680px,calc(100vw - 72px))!important;
  max-width:min(680px,calc(100vw - 72px))!important;
  min-height:82px!important;
  height:82px!important;
  max-height:82px!important;
  padding:9px 13px!important;
  gap:13px!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch!important;
  border-radius:24px!important;
  bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
  inset-block-end:calc(18px + env(safe-area-inset-bottom,0px))!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button,
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav #classoraMobileLobbyBtn {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  min-width:0!important;
  width:100%!important;
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  padding:6px 8px!important;
  gap:5px!important;
  border-radius:15px!important;
  box-sizing:border-box!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button span {
  font-size:12px!important;
  line-height:1.35!important;
  white-space:nowrap!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button svg {
  height:23px!important;
  width:23px!important;
 }
 html body.classora-dock-enabled #platformLobby.platform-lobby:not(.hidden) {
  padding-bottom:var(--classora-dock-clearance)!important;
  scroll-padding-bottom:var(--classora-dock-clearance)!important;
 }
 html body.classora-dock-enabled #platformLobby .lobby-shell {
  padding-bottom:calc(var(--classora-dock-clearance) + 24px)!important;
 }
}
@media (max-width:760px) {
 html body.classora-dock-enabled {
  --classora-dock-clearance:calc(100px + env(safe-area-inset-bottom,0px));
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav {
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:7px!important;
  padding-inline:9px!important;
  box-sizing:border-box!important;
  width:min(480px,calc(100% - 12px))!important;
  max-width:calc(100% - 12px)!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button,
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav #classoraMobileLobbyBtn {
  min-width:0!important;
  width:100%!important;
  padding-inline:3px!important;
  border-radius:12px!important;
 }
 html body.classora-dock-enabled #platformLobby .lobby-shell {
  padding-bottom:calc(var(--classora-dock-clearance) + 16px)!important;
 }
 html body.classora-dock-enabled #platformLobby.platform-lobby:not(.hidden){
  scroll-padding-bottom:var(--classora-dock-clearance)!important;
 }
}
@media (max-width:380px) {
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav {
  gap:3px!important;
  padding-inline:5px!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button,
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav #classoraMobileLobbyBtn {
  padding-inline:1px!important;
 }
}
@media (max-width:1600px) {
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button {
  position:relative;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button:not(.is-active) {
  background:color-mix(in srgb,var(--cl243-soft,#203044) 52%,transparent)!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav button:is(.is-active,[aria-current="page"]){
  background:var(--cl243-soft,#284359)!important;
  outline:1px solid color-mix(in srgb,var(--cl243-accent,#9ce7cf) 45%,transparent);
  outline-offset:-1px;
 }
}

/* v247 — iPad controls finally separated with a genuinely wider rail.
   5 independent grid cells + visible gutters; phone retains usable hit targets. */
@media (min-width:761px) and (max-width:1600px){
 html body.classora-dock-enabled{--classora-dock-clearance:calc(155px + env(safe-area-inset-bottom,0px))}
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav{
  width:min(900px,calc(100vw - 52px))!important;
  max-width:min(900px,calc(100vw - 52px))!important;
  height:90px!important;min-height:90px!important;max-height:90px!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:22px!important;padding:10px 20px!important;
  border-radius:25px!important;
  bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
  inset-block-end:calc(20px + env(safe-area-inset-bottom,0px))!important;
  align-items:center!important;justify-items:stretch!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav>button,
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav>#classoraMobileLobbyBtn{
  min-width:0!important;min-height:65px!important;height:65px!important;max-height:65px!important;
  padding:8px 10px!important;
  margin:0!important;flex:none!important;gap:6px!important;
  background:color-mix(in srgb,var(--cl243-soft,#203044) 42%,transparent)!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav>button span{font-size:13px!important}
 html body.classora-dock-enabled #platformLobby.platform-lobby:not(.hidden){
  scroll-padding-bottom:var(--classora-dock-clearance)!important;
  padding-bottom:var(--classora-dock-clearance)!important;
 }
 html body.classora-dock-enabled #platformLobby .lobby-shell{
  padding-bottom:calc(var(--classora-dock-clearance) + 28px)!important;
 }
}
@media (max-width:760px){
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav{
  gap:9px!important;padding-inline:10px!important;
 }
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav>button{
  min-width:0!important;flex:none!important;padding:4px 2px!important;
 }
}
@media (max-width:370px){
 html body.classora-dock-enabled.classora-authenticated #classoraMobilePageNav{
  gap:4px!important;padding-inline:6px!important;
 }
}
