/* =====================================================================
   liquid-glass.css  v5 — Apple "Liquid Glass" on EVERY surface of the site.
   Load it LAST (after voice-assistant.css). Delete its <link> to go back.

   What changed from v3 (so nothing is left solid):
     • everything that was a flat dark/white box is now see-through glass: cards, rows, bubbles,
       chips, tabs, inputs, buttons, tables, menus, tooltips, toasts, modals, panels
     • NEW curved rim light on every big pane (a bright edge that fades round the corner, like Apple's)
     • video player bar + menus, voice assistant, Shorts sheet, notifications, chat, Online, Study+, Grades,
       Sessions, FAQ, login — all glass
     • FIX: "hover:bg-white/5" style classes were being turned into permanent glass. Now only real backgrounds are.
     • FIX: will-change on panels made phones treat each panel as a "backdrop root", which silently
       switched the blur OFF for every card inside it. That is reset here, so blur works on phones too.

   Safety nets kept: html.blur-off / .perf-lite / .flow-samsung => NO blur, firmer fill instead.
   Nested panes never blur (a blur inside a blur costs a lot and shows nothing).
   Only transform / opacity animate. prefers-reduced-motion / -transparency respected.
   ":not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)" below is expanded at build time into a long :not(#x) chain that out-ranks graphics.css.
   ===================================================================== */

html {
    --lg-ease: cubic-bezier(.22, 1, .36, 1);
    --lg-spring: cubic-bezier(.34, 1.56, .64, 1);
    --lg-blur: 28px;          /* cards (v5: smooth gradients behind = big blur shows nothing, costs a lot) */
    --lg-blur-bar: 36px;      /* sidebar / header / modals / menus */
    --lg-sat: 190%;
    --lg-base: 24, 30, 66;
    --lg-a: .34;              /* fill WITHOUT blur support (still readable) */
    --lg-a-blur: .30;         /* fill WITH blur: very see-through */
    --lg-edge: rgba(255, 255, 255, .18);
    --lg-spec: rgba(255, 255, 255, .6);
    --lg-rim: rgba(0, 0, 0, .30);
    --lg-ink: #f1f5ff;
    --lg-drop: 0 22px 44px -22px rgba(0, 0, 0, .7), 0 6px 14px -8px rgba(0, 0, 0, .35);
    --lg-tint: 255, 255, 255; --lg-ta: 0;
    --lg-rimlight: rgba(255, 255, 255, .85);
    --lg-rimlight-2: rgba(255, 255, 255, .45);
}
html.light-theme {
    --lg-base: 255, 255, 255;
    --lg-a: .46;
    --lg-a-blur: .16;
    --lg-edge: rgba(255, 255, 255, .9);
    --lg-spec: rgba(255, 255, 255, 1);
    --lg-rim: rgba(109, 94, 252, .16);
    --lg-ink: #1e1b4b;
    --lg-drop: 0 22px 44px -22px rgba(79, 70, 229, .38), 0 6px 14px -8px rgba(30, 27, 75, .14);
    --lg-rimlight: rgba(255, 255, 255, 1);
    --lg-rimlight-2: rgba(255, 255, 255, .8);
}
@media (max-width: 767px) { html { --lg-blur: 20px; --lg-blur-bar: 28px; } }

/* =====================================================================
   0. BLUR MUST WORK ON PHONES — motion.css / mobile.css put will-change: opacity on every panel,
      which makes the panel a "backdrop root": the glass inside can then only see the panel, not the
      colourful world behind it, so it looked flat. Reset it (the animations still run).
   ===================================================================== */
html body :is(.view-panel, .m-reveal, .m-enter > *, #workspace-view-scroll, .glass-main-panel, #feed-stream > *):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    will-change: auto !important;
}

/* =====================================================================
   1. THE WORLD BEHIND THE GLASS
   ===================================================================== */
html body .bg-blob-indigo:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { width: 70vmax; height: 70vmax; background: radial-gradient(circle, rgba(99, 102, 241, .66) 0%, rgba(99, 102, 241, 0) 68%) !important; }
html body .bg-blob-cyan:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)   { width: 64vmax; height: 64vmax; background: radial-gradient(circle, rgba(34, 211, 238, .50) 0%, rgba(34, 211, 238, 0) 68%) !important; }
html body .bg-blob-purple:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { width: 60vmax; height: 60vmax; background: radial-gradient(circle, rgba(192, 132, 252, .56) 0%, rgba(192, 132, 252, 0) 68%) !important; }
html body .bg-blob-rose:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)   { background: radial-gradient(circle, rgba(244, 114, 182, .46) 0%, rgba(244, 114, 182, 0) 68%) !important; }
html body .bg-blob-teal:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)   { background: radial-gradient(circle, rgba(45, 212, 191, .38) 0%, rgba(45, 212, 191, 0) 68%) !important; }
html.light-theme body .bg-blob-indigo:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: radial-gradient(circle, rgba(129, 140, 248, .66) 0%, rgba(129, 140, 248, 0) 68%) !important; }
html.light-theme body .bg-blob-purple:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: radial-gradient(circle, rgba(232, 121, 249, .50) 0%, rgba(232, 121, 249, 0) 68%) !important; }
html.light-theme body .bg-blob-rose:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)   { background: radial-gradient(circle, rgba(251, 146, 60, .40) 0%, rgba(251, 146, 60, 0) 68%) !important; }

html body:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: #05070c !important;
    background-image:
        radial-gradient(60vmax 60vmax at 8% 6%, rgba(99, 102, 241, .80), transparent 62%),
        radial-gradient(55vmax 55vmax at 95% 18%, rgba(236, 72, 153, .60), transparent 62%),
        radial-gradient(60vmax 60vmax at 80% 96%, rgba(34, 211, 238, .60), transparent 62%),
        radial-gradient(50vmax 50vmax at 10% 90%, rgba(168, 85, 247, .65), transparent 62%),
        radial-gradient(34vmax 34vmax at 50% 50%, rgba(56, 189, 248, .22), transparent 70%) !important;
    background-attachment: scroll !important;
}
html.light-theme body:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: #eef1ff !important;
    background-image:
        radial-gradient(60vmax 60vmax at 8% 6%, rgba(129, 140, 248, .88), transparent 62%),
        radial-gradient(55vmax 55vmax at 95% 18%, rgba(244, 114, 182, .64), transparent 62%),
        radial-gradient(60vmax 60vmax at 80% 96%, rgba(34, 211, 238, .64), transparent 62%),
        radial-gradient(50vmax 50vmax at 10% 90%, rgba(251, 146, 60, .54), transparent 62%),
        radial-gradient(34vmax 34vmax at 50% 50%, rgba(167, 139, 250, .3), transparent 70%) !important;
    background-attachment: scroll !important;
}
/* the login page sits straight on the world */
html body #login-section:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: transparent !important; }

/* =====================================================================
   2. BIG PANES — thick liquid glass (these get the real blur)
   ===================================================================== */
html body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card, .faq-item, .flow-sk-card, .sp-insights):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    --lg-r: 34px;
    position: relative;
    border-radius: var(--lg-r) !important;
    color: inherit;
    background-color: rgba(var(--lg-base), var(--lg-a)) !important;
    background-image:
        linear-gradient(rgba(var(--lg-tint), var(--lg-ta)), rgba(var(--lg-tint), var(--lg-ta))),
        radial-gradient(300px circle at var(--gx-x, 50%) var(--gx-y, -25%), rgba(255, 255, 255, .24), transparent 62%),
        linear-gradient(158deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .05) 34%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .11) 100%) !important;
    border: 1px solid var(--lg-edge) !important;
    box-shadow:
        inset 0 1.5px 1px var(--lg-spec),
        inset 0 -1px 1px rgba(255, 255, 255, .14),
        inset 1px 0 1px rgba(255, 255, 255, .22),
        inset 0 0 26px rgba(255, 255, 255, .07),
        0 0 0 .5px var(--lg-rim),
        var(--lg-drop) !important;
    transition: transform .45s var(--lg-ease), box-shadow .45s var(--lg-ease), background-color .3s ease, border-color .3s ease;
}
html body :is(.faq-item):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-r: 20px; }
html body :is(.on-card, .sp-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-r: 24px; }
html body :is(.on-card, .sp-card, .sp-insights):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { overflow: hidden; }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card, .faq-item, .flow-sk-card, .sp-insights):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        background-color: rgba(var(--lg-base), var(--lg-a-blur)) !important;
        
        
    }
    html.light-theme:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card, .faq-item, .flow-sk-card, .sp-insights):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        
        
    }
}
/* a pane inside a pane already sits on a blurred surface: a second blur would only cost speed */
html body :is(.glass-card, .glass-modal, .fx-card, .gl-card, .sp-card, .on-card, .sp-modal-card, .modal-root > div, #ntf-panel) :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .faq-item, .dash-cell, .tilt-lift-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background-color: rgba(var(--lg-base), calc(var(--lg-a-blur) * 1.3)) !important;
}

/* CURVED RIM LIGHT — a bright edge that runs round the corner and fades, like the real thing.
   Drawn with a masked gradient ring on ::before (the old spinning border is retired). */
html body :is(.glass-card, .glass-panel, .glass-modal, .fx-card, .gl-card, .sp-card, .on-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::before {
    content: '' !important; position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; margin: 0 !important;
    border-radius: inherit !important; padding: 1.5px !important; pointer-events: none !important; z-index: 4 !important;
    opacity: 1 !important; animation: none !important; transform: none !important; filter: none !important; transition: none !important;
    background: conic-gradient(from 200deg at 50% 50%,
        var(--lg-rimlight), transparent 16%, transparent 50%, var(--lg-rimlight-2) 66%, transparent 82%, var(--lg-rimlight)) !important;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
    -webkit-mask-composite: xor !important; mask-composite: exclude !important;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0) !important;
}
html body :is(.glass-card, .glass-panel):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::after { opacity: 0 !important; animation: none !important; }

@media (hover: hover) and (pointer: fine) {
    html body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card):hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        border-color: rgba(255, 255, 255, .45) !important;
        box-shadow:
            inset 0 1.5px 1px var(--lg-spec), inset 0 -1px 1px rgba(255, 255, 255, .2), inset 1px 0 1px rgba(255, 255, 255, .3),
            inset 0 0 34px rgba(255, 255, 255, .11), 0 0 0 .5px var(--lg-rim),
            0 30px 56px -22px rgba(30, 20, 90, .55), 0 0 44px -20px rgba(129, 140, 248, .6) !important;
    }
}

/* =====================================================================
   3. EVERYTHING INSIDE THE PANES — thin glass, no blur of its own
   3a. any plain dark / white-ish Tailwind box ("hover:" / "group-hover:" variants are NOT matched)
   ===================================================================== */
html body :is(div, section, article, li, label, aside, details, summary, header, footer, form):is([class^="bg-slate-6"], [class*=" bg-slate-6"], [class^="bg-slate-7"], [class*=" bg-slate-7"], [class^="bg-slate-8"], [class*=" bg-slate-8"], [class^="bg-slate-9"], [class*=" bg-slate-9"], [class^="bg-gray-8"], [class*=" bg-gray-8"], [class^="bg-gray-9"], [class*=" bg-gray-9"], [class^="bg-zinc-8"], [class*=" bg-zinc-8"], [class^="bg-zinc-9"], [class*=" bg-zinc-9"], [class^="bg-neutral-9"], [class*=" bg-neutral-9"], [class^="bg-indigo-8"], [class*=" bg-indigo-8"], [class^="bg-indigo-9"], [class*=" bg-indigo-9"], [class^="bg-emerald-8"], [class*=" bg-emerald-8"], [class^="bg-emerald-9"], [class*=" bg-emerald-9"], [class^="bg-amber-8"], [class*=" bg-amber-8"], [class^="bg-amber-9"], [class*=" bg-amber-9"], [class^="bg-red-8"], [class*=" bg-red-8"], [class^="bg-red-9"], [class*=" bg-red-9"], [class^="bg-rose-9"], [class*=" bg-rose-9"], [class^="bg-white/"], [class*=" bg-white/"], [class^="bg-black/1"], [class*=" bg-black/1"], [class^="bg-black/2"], [class*=" bg-black/2"], [class^="bg-black/3"], [class*=" bg-black/3"], [class^="bg-black/4"], [class*=" bg-black/4"], [class^="bg-black/5"], [class*=" bg-black/5"], [class^="bg-sky-9"], [class*=" bg-sky-9"], [class^="bg-purple-9"], [class*=" bg-purple-9"], [class^="bg-violet-9"], [class*=" bg-violet-9"]):not(.fixed):not(.absolute):not(.sticky):not(.aspect-video):not(.rounded-full):not(.h-1):not(.h-2):not(.h-3):not(.h-1\.5):not(.h-0\.5):not(.w-1):not(.w-2):not([id*="player"]):not(.modal-root):not(.glass-card):not(.glass-panel):not(.fx-card):not(.gl-card):not(.glass-modal):not(.glass-sidebar):not(.glass-header):not(.nav-btn):not([class*="vc-"]):not([class*="flow-sk"]):not(.sv-sheet):not(#ntf-panel):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), 
html body :is(.gl-row, .fx-bubble, .fx-attach, .sp-item, .sp-list > li:not(.sp-empty), .on-q, .on-opt, .on-seg, .on-stats > *, .on-score, .on-paper, .vs-row, .ar-item, .sp-opt, .sp-rate, .sp-heat, .gl-drawer-in, .support-cat-btn, .support-contact-btn, .materials-filter-btn:not(.bg-indigo-600), .sp-admin-grid > *):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), calc(var(--lg-a-blur) * 1.1)) !important;
    background-image:
        linear-gradient(rgba(var(--lg-tint), var(--lg-ta)), rgba(var(--lg-tint), var(--lg-ta))),
        linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .08)) !important;
    border: 1px solid var(--lg-edge) !important;
    box-shadow: inset 0 1px 1px var(--lg-spec), inset 0 -1px 1px rgba(255, 255, 255, .08), inset 0 0 14px rgba(255, 255, 255, .05), 0 8px 18px -12px rgba(0, 0, 0, .45) !important;
}
html body :is(.gl-row, .fx-bubble, .on-q, .on-opt, .sp-item, .vs-row, .ar-item, .on-paper):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 18px; }
html body :is(.on-seg):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 16px; }
html.light-theme body :is(div, section, article, li, label, aside, details, summary, header, footer, form):is([class^="bg-slate-6"], [class*=" bg-slate-6"], [class^="bg-slate-7"], [class*=" bg-slate-7"], [class^="bg-slate-8"], [class*=" bg-slate-8"], [class^="bg-slate-9"], [class*=" bg-slate-9"], [class^="bg-gray-8"], [class*=" bg-gray-8"], [class^="bg-gray-9"], [class*=" bg-gray-9"], [class^="bg-zinc-8"], [class*=" bg-zinc-8"], [class^="bg-zinc-9"], [class*=" bg-zinc-9"], [class^="bg-neutral-9"], [class*=" bg-neutral-9"], [class^="bg-indigo-8"], [class*=" bg-indigo-8"], [class^="bg-indigo-9"], [class*=" bg-indigo-9"], [class^="bg-emerald-8"], [class*=" bg-emerald-8"], [class^="bg-emerald-9"], [class*=" bg-emerald-9"], [class^="bg-amber-8"], [class*=" bg-amber-8"], [class^="bg-amber-9"], [class*=" bg-amber-9"], [class^="bg-red-8"], [class*=" bg-red-8"], [class^="bg-red-9"], [class*=" bg-red-9"], [class^="bg-rose-9"], [class*=" bg-rose-9"], [class^="bg-white/"], [class*=" bg-white/"], [class^="bg-black/1"], [class*=" bg-black/1"], [class^="bg-black/2"], [class*=" bg-black/2"], [class^="bg-black/3"], [class*=" bg-black/3"], [class^="bg-black/4"], [class*=" bg-black/4"], [class^="bg-black/5"], [class*=" bg-black/5"], [class^="bg-sky-9"], [class*=" bg-sky-9"], [class^="bg-purple-9"], [class*=" bg-purple-9"], [class^="bg-violet-9"], [class*=" bg-violet-9"]):not(.fixed):not(.absolute):not(.sticky):not(.aspect-video):not(.rounded-full):not(.h-1):not(.h-2):not(.h-3):not(.h-1\.5):not(.h-0\.5):not(.w-1):not(.w-2):not([id*="player"]):not(.modal-root):not(.glass-card):not(.glass-panel):not(.fx-card):not(.gl-card):not(.glass-modal):not(.glass-sidebar):not(.glass-header):not(.nav-btn):not([class*="vc-"]):not([class*="flow-sk"]):not(.sv-sheet):not(#ntf-panel):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .24) !important; }
html.light-theme body :is(.gl-row, .fx-bubble, .on-q, .on-opt, .sp-item, .vs-row, .ar-item, .on-paper, .sp-opt):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .26) !important; }
/* a box that has been picked / is playing glows instead of going solid */
html body :is(.on-opt:has(input:checked), .vs-row.vs-active, .gl-row.gl-open, .sp-opt.is-on, .sp-opt.on):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(129, 140, 248, .18) !important;
    border-color: rgba(167, 139, 250, .8) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .7), inset 0 0 22px rgba(129, 140, 248, .22), 0 10px 26px -14px rgba(99, 102, 241, .8) !important;
}
/* colour tints keep their meaning (success / warning / danger / info) */
html body :is([class^="bg-emerald-9"], [class*=" bg-emerald-9"], [class^="bg-emerald-5"], [class*=" bg-emerald-5"]):is(div, section, article, li):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-tint: 16, 185, 129; --lg-ta: .17; }
html body :is([class^="bg-amber-9"], [class*=" bg-amber-9"], [class^="bg-amber-5"], [class*=" bg-amber-5"]):is(div, section, article, li):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-tint: 245, 158, 11; --lg-ta: .17; }
html body :is([class^="bg-red-9"], [class*=" bg-red-9"], [class^="bg-rose-9"], [class*=" bg-rose-9"], [class^="bg-red-5"], [class*=" bg-red-5"]):is(div, section, article, li):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-tint: 244, 63, 94; --lg-ta: .17; }
html body :is([class^="bg-indigo-9"], [class*=" bg-indigo-9"], [class^="bg-indigo-6"], [class*=" bg-indigo-6"], [class^="bg-indigo-5"], [class*=" bg-indigo-5"]):is(div, section, article, li):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-tint: 99, 102, 241, ; --lg-ta: .17; }

/* status chips / pills: little glass beads, their colour stays */
html body :is(.fx-chip, .gl-chip, .on-chip, .sp-pill, .on-tgl, .ntf-mini, .sp-chip):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), inset 0 -1px 2px rgba(255, 255, 255, .08), 0 4px 10px -6px rgba(0, 0, 0, .4) !important;
}
html body :is(.fx-chip, .gl-chip, .on-chip, .sp-pill):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* table: transparent cells, glass header, hairlines */
html body :is(table, tbody, tr, td, .on-table, .on-tablewrap):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: transparent !important; }
html body :is(th, thead):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(var(--lg-base), .22) !important; }
html body :is(td, th):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-color: var(--lg-edge) !important; }
html body .on-tablewrap:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border: 1px solid var(--lg-edge) !important; border-radius: 16px; overflow: auto; }

/* progress tracks are glass troughs; the coloured fill stays bright */
html body :is(.gl-prog, .sp-bar, .sp-bar-lg, .on-bar, #dashboard-xp-progress-bar, .radial-progress-ring):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .28) !important; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3), inset 0 -1px 0 rgba(255, 255, 255, .14) !important;
}
html body :is(.gl-prog i, .sp-bar i, .sp-bar-lg i, .on-bar i):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), 0 0 10px rgba(129, 140, 248, .55); }

/* =====================================================================
   4. BARS — sidebar, header; the main panel stays CLEAR so tiles can bend the world
   ===================================================================== */
html body :is(.glass-sidebar, .glass-header):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), calc(var(--lg-a) * .9)) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, .09)) !important;
    border-color: var(--lg-edge) !important;
    box-shadow: inset 0 1.5px 1px var(--lg-spec), inset 0 -1px 1px rgba(255, 255, 255, .1), 0 18px 40px -22px rgba(0, 0, 0, .55) !important;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.glass-sidebar, .glass-header):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        background-color: rgba(var(--lg-base), .2) !important;
        -webkit-backdrop-filter: blur(var(--lg-blur-bar)) saturate(210%) !important;
        backdrop-filter: blur(var(--lg-blur-bar)) saturate(210%) !important;
    }
}
html body .glass-main-panel:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: transparent !important; box-shadow: none !important; border-color: transparent !important;   }

/* nav pills: the active one is a bead of glass, the others are faint glass */
html body .glass-sidebar .nav-btn:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 18px; }
html body .glass-sidebar .nav-btn[class*="bg-indigo-600/15"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .16) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .06)) !important;
    border: 1px solid rgba(255, 255, 255, .4) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .85), inset 0 -2px 6px rgba(99, 102, 241, .22), 0 10px 22px -10px rgba(99, 102, 241, .65) !important;
}
html.light-theme body .glass-sidebar .nav-btn[class*="bg-indigo-600/15"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .7) !important; }
html body .glass-sidebar .nav-btn:not([class*="bg-indigo-600/15"]):hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .12) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35) !important; }
@media (max-width: 767px) {
    html body .glass-sidebar .nav-btn:not([class*="bg-indigo-600/15"]):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        background-color: rgba(var(--lg-base), .14) !important; border: 1px solid var(--lg-edge) !important; box-shadow: inset 0 1px 1px var(--lg-spec) !important;
    }
}
/* round icon buttons in the header (theme, mic, bell, avatar) */
html body :is(.glass-header button:not([class*="bg-indigo"]):not([class*="bg-emerald"]), #va-mic-btn, #ntf-bell, #login-section button.interactive-btn):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .22) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .03)) !important;
    border: 1px solid var(--lg-edge) !important;
    box-shadow: inset 0 1.5px 1px var(--lg-spec), inset 0 -1px 1px rgba(255, 255, 255, .1), 0 8px 16px -10px rgba(0, 0, 0, .5) !important;
    border-radius: 14px;
}
html body #va-mic-btn.va-fab:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 999px; }

/* =====================================================================
   5. MODALS, POPOVERS, TOASTS — thickest glass
   ===================================================================== */
html body :is(.modal-root > div, .glass-modal, .sp-modal-card, #ntf-panel, .vc-menu):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    border-radius: 32px !important;
    background-color: rgba(var(--lg-base), .40) !important;
    background-image:
        radial-gradient(360px circle at 50% -10%, rgba(255, 255, 255, .26), transparent 62%),
        linear-gradient(158deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .11)) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    box-shadow: inset 0 1.5px 1px var(--lg-spec), inset 0 -1px 1px rgba(255, 255, 255, .14), inset 0 0 34px rgba(255, 255, 255, .08), 0 40px 80px -28px rgba(0, 0, 0, .75) !important;
}
html body .vc-menu:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 18px !important; }
html body #ntf-panel:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 26px !important; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.modal-root > div, .glass-modal, .sp-modal-card, #ntf-panel, .vc-menu):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        background-color: rgba(var(--lg-base), .14) !important;
        -webkit-backdrop-filter: blur(44px) saturate(200%) !important; backdrop-filter: blur(44px) saturate(220%) !important;
    }
    /* the dim layer behind a modal is a light frosted veil, not a black sheet */
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.modal-root:not(.hidden), .sp-modal:not(.sp-hidden), #chat-lock-overlay:not(.hidden)):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        background-color: rgba(8, 10, 30, .30) !important;
        -webkit-backdrop-filter: blur(12px) saturate(140%) !important; backdrop-filter: blur(12px) saturate(140%) !important;
    }
}
html.light-theme body :is(.modal-root:not(.hidden), .sp-modal:not(.sp-hidden)):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(120, 110, 200, .22) !important; }
/* modal glass over a blurred veil cannot see the world, so give it a slightly stronger fill + the highlight */
html body :is(.modal-root > div, .glass-modal, .sp-modal-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lg-r: 32px; }

html body #toast-container > *:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    border-radius: 24px !important;
    background-color: rgba(var(--lg-base), .55) !important;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .04)) !important;
    border: 1px solid rgba(255, 255, 255, .36) !important;
    box-shadow: inset 0 1.5px 1px var(--lg-spec), 0 20px 44px -18px rgba(0, 0, 0, .65) !important;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body #toast-container > *:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        background-color: rgba(var(--lg-base), .30) !important;
        -webkit-backdrop-filter: blur(26px) saturate(190%) !important; backdrop-filter: blur(26px) saturate(190%) !important;
    }
}
/* tooltips + seek tip */
html body :is(.vc-tip, [role="tooltip"]):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .5) !important; border: 1px solid rgba(255, 255, 255, .3) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 8px 20px -8px rgba(0, 0, 0, .6) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
}
/* notification panel rows */
html body :is(.ntf-item):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border-radius: 14px; }
html body .ntf-item.ntf-unread:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(129, 140, 248, .2) !important; }
html body :is(.ntf-foot, .ntf-head):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: transparent !important; border-color: var(--lg-edge) !important; }

/* =====================================================================
   6. CONTROLS — inputs are dips in the glass, buttons are glossy beads
   ===================================================================== */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), textarea, select, .fx-input, .sv-compose input):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .26) !important;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, .14), rgba(255, 255, 255, .04)) !important;
    border: 1px solid var(--lg-edge) !important;
    border-radius: 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .26), inset 0 -1px 0 rgba(255, 255, 255, .18) !important;
}
html.light-theme body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), textarea, select, .fx-input):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .5) !important;
    background-image: linear-gradient(180deg, rgba(109, 94, 252, .07), rgba(255, 255, 255, 0)) !important;
    box-shadow: inset 0 2px 4px rgba(79, 70, 229, .12), inset 0 -1px 0 #fff !important;
}
html body :is(input, textarea, select):focus:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    border-color: rgba(167, 139, 250, .9) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2), 0 0 0 4px rgba(124, 108, 255, .28), 0 0 26px -4px rgba(124, 108, 255, .65) !important;
}
html body :is(input[type=range], .time-slider):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: transparent !important; box-shadow: none !important; border: 0 !important; }
html body :is(input[type=checkbox], input[type=radio]):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }

/* PRIMARY buttons: tinted glass with a gloss band */
html body :is(button.bg-indigo-600, button.bg-indigo-500, button.bg-emerald-600, button.bg-emerald-500, button.bg-amber-600, button.bg-amber-500, .fx-send, .gl-primary, .sv-send, .on-btn:not(.on-ghost):not(.on-danger), .sp-btn:not(.sp-ghost), #va-now):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .44) 0%, rgba(255, 255, 255, .07) 52%, rgba(255, 255, 255, 0) 53%), linear-gradient(135deg, var(--lgb1, #6366f1), var(--lgb2, #8b5cf6)) !important;
    border: 1px solid rgba(255, 255, 255, .4) !important;
    border-radius: 16px;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .78), inset 0 -2px 5px rgba(0, 0, 0, .22), 0 12px 24px -10px rgba(99, 102, 241, .8) !important;
}
html body :is(button.bg-emerald-600, button.bg-emerald-500):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lgb1: #10b981; --lgb2: #34d399; box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .78), inset 0 -2px 5px rgba(0, 0, 0, .2), 0 12px 24px -10px rgba(16, 185, 129, .8) !important; }
html body :is(button.bg-amber-600, button.bg-amber-500):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { --lgb1: #f59e0b; --lgb2: #fbbf24; box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .78), inset 0 -2px 5px rgba(0, 0, 0, .2), 0 12px 24px -10px rgba(245, 158, 11, .8) !important; }

/* SECONDARY buttons / chips / tabs / segmented: clear glass capsules */
html body :is(.gl-btn:not(.gl-primary), .fx-btn, .gl-tab:not(.on), .faq-chip, .ntf-item, .on-btn.on-ghost, .sp-btn.sp-ghost, .sp-chip, .on-chipbtn, .on-seg button:not(.is-on), .materials-filter-btn, .support-cat-btn, .support-contact-btn, .vs-arrows button, .fx-del, .fx-link, .pass-eye-btn, .star-btn):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .22) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .03)) !important;
    border: 1px solid var(--lg-edge) !important;
    box-shadow: inset 0 1px 1px var(--lg-spec), 0 6px 14px -9px rgba(0, 0, 0, .45) !important;
}
html body :is(.on-btn.on-danger):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 6px 14px -9px rgba(239, 68, 68, .5) !important; }
/* the selected tab / segment */
html body :is(.gl-tab.on, .on-seg button.is-on, .materials-filter-btn.bg-indigo-600):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .44) 0%, rgba(255, 255, 255, .07) 52%, rgba(255, 255, 255, 0) 53%), linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: 1px solid rgba(255, 255, 255, .4) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .78), inset 0 -2px 5px rgba(0, 0, 0, .22), 0 10px 22px -10px rgba(99, 102, 241, .9) !important;
}
html body :is(button, .nav-btn, .glass-card[onclick], [role="button"]):active:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { transition-duration: .12s; }

/* =====================================================================
   7. CHAT — received = clear glass, sent = tinted glass
   ===================================================================== */
html body #chat-messages-list > div.justify-start > div:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .16) !important;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .03) 60%) !important;
    border: 1px solid var(--lg-edge) !important;
    box-shadow: inset 0 1.5px 1px var(--lg-spec), 0 10px 22px -14px rgba(0, 0, 0, .5) !important;
}
html body #chat-messages-list > div.justify-end > div:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(99, 102, 241, .38) !important;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .04) 55%, rgba(139, 92, 246, .3)) !important;
    border: 1px solid rgba(255, 255, 255, .4) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .75), inset 0 -2px 6px rgba(99, 102, 241, .3), 0 12px 24px -12px rgba(99, 102, 241, .75) !important;
}
html body #ai-chat-board > div:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(var(--lg-base), .14); }

/* =====================================================================
   8. VIDEO PLAYER — the floating control pill and its covers
   ===================================================================== */
html body .vc-bar:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    border-radius: 24px;
    background-color: rgba(255, 255, 255, .10) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04) 55%, rgba(255, 255, 255, .1)) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .7), inset 0 -1px 1px rgba(255, 255, 255, .14), 0 18px 44px -14px rgba(0, 0, 0, .7) !important;
    -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.08) !important; backdrop-filter: blur(26px) saturate(190%) brightness(1.08) !important;
}
html.blur-off body .vc-bar:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.perf-lite body .vc-bar:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(10, 15, 30, .6) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body .vc-btn:hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: rgba(255, 255, 255, .2) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5); }
html body .vc-main:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .08) 52%, rgba(255, 255, 255, 0) 53%), linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: 1px solid rgba(255, 255, 255, .45) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .8), inset 0 -2px 5px rgba(0, 0, 0, .2), 0 8px 22px rgba(99, 102, 241, .55) !important;
}
html body .vc-speed-btn:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: rgba(255, 255, 255, .14) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45); }
html body .vc-menu button:hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: rgba(255, 255, 255, .16) !important; }
html body .vc-cover-inner:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .3) !important; border-radius: 28px;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .6), 0 24px 60px -20px rgba(0, 0, 0, .7) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
}
html body :is(.vc-pill, .vc-cover-badge):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .34) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55); }
html body :is(#video-watermark-teacher, #video-watermark-student):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .2); }

/* =====================================================================
   9. SHORTS (YouTube in the feed) — the comments sheet and link box
   ===================================================================== */
html body .sv-sheet:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .42) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .03) 40%) !important;
    border-top: 1px solid rgba(255, 255, 255, .4) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .6) !important;
}
html:not(.blur-off):not(.perf-lite) body .sv-sheet:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(var(--lg-base), .22) !important; -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); }
html body :is(.sv-snd, .sv-x, .sv-play):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .36) !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .6), 0 8px 18px -8px rgba(0, 0, 0, .6) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
}
html body .sv-link-row:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), .24) !important; border: 1px solid var(--lg-edge) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), inset 0 -1px 0 rgba(255, 255, 255, .16) !important;
}
html body .sv:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { border: 1px solid rgba(255, 255, 255, .3) !important; box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .45), 0 22px 44px -22px rgba(0, 0, 0, .85) !important; }

/* =====================================================================
   10. VOICE ASSISTANT — one frosted sheet, a clear glass card, glass buttons
       (the card used to be nested inside the blurred sheet; now the sheet blurs the page and the card is lens-clear)
   ===================================================================== */
html body #va-overlay:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background:
        radial-gradient(circle at 50% 24%, rgba(var(--va-a), .34), transparent 56%),
        radial-gradient(circle at 50% 88%, rgba(var(--va-b), .20), transparent 62%),
        rgba(18, 8, 44, .34) !important;
}
html.light-theme body #va-overlay:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background:
        radial-gradient(circle at 50% 24%, rgba(var(--va-a), .26), transparent 56%),
        rgba(245, 240, 255, .38) !important;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body #va-overlay.va-show:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        -webkit-backdrop-filter: blur(var(--lg-va-blur, 22px)) saturate(170%); backdrop-filter: blur(var(--lg-va-blur, 22px)) saturate(170%);
    }
}
@media (max-width: 767px) { html { --lg-va-blur: 14px; } }
html body #va-card:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .07) !important;
    background-image:
        radial-gradient(circle at 18% 8%, rgba(var(--va-a), .34), transparent 46%),
        radial-gradient(circle at 86% 92%, rgba(var(--va-b), .26), transparent 50%),
        linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .02) 45%, rgba(255, 255, 255, .1)) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .7), inset 0 -1px 1px rgba(255, 255, 255, .16), inset 0 0 40px rgba(255, 255, 255, .06), 0 30px 70px -14px rgba(4, 1, 14, .55), 0 0 100px -24px rgba(var(--va-a), .55) !important;
}
html.light-theme body #va-card:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .34) !important; }
html body #va-card::after:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 46px 70px -46px rgba(255, 255, 255, .34) !important; }
html body :is(#va-status, #va-reply):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .32) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), 0 6px 16px -8px rgba(0, 0, 0, .4) !important;
}
html.light-theme body :is(#va-status, #va-reply):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(255, 255, 255, .5) !important; }
html body #va-logo:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 70%) !important; border: 1px solid rgba(255, 255, 255, .45) !important; box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .7), 0 8px 34px rgba(var(--va-wr), .5) !important; }
html body #va-overlay button:not(#va-now):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .12) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .02)) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 6px 14px -8px rgba(0, 0, 0, .45) !important;
}
html body #va-count .va-ring-bg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { stroke: rgba(255, 255, 255, .28); }

/* =====================================================================
   11. SCROLLBARS, SKELETONS, ACCESSIBILITY
   ===================================================================== */
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .38) !important; border: 2px solid transparent !important; background-clip: padding-box !important; }
::-webkit-scrollbar-track { background: transparent !important; }
html.light-theme ::-webkit-scrollbar-thumb { background: rgba(109, 94, 252, .42) !important; background-clip: padding-box !important; }

@media (prefers-reduced-transparency: reduce) {
    html { --lg-a-blur: .88; --lg-a: .9; }
    html body * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
    html { --lg-edge: rgba(255, 255, 255, .6); }
    html.light-theme { --lg-edge: rgba(79, 70, 229, .5); }
}
@media (prefers-reduced-motion: reduce) {
    html body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card) { transition: none !important; }
}


/* =====================================================================
   12. v5 — BETTER GLASS + MUCH FASTER
   ---------------------------------------------------------------------
   LOOK
     • thin bright rim (1px) instead of a thick 1.5px one, crisp top highlight, soft lower lip
     • removed the big blurred inner glows (they made the glass look muddy AND were expensive to paint)
     • one soft shadow per pane instead of two huge ones
     • light mode: whiter, clearer glass with an indigo tint, readable ink
   SPEED
     • the world behind the glass is ONE fixed layer (html::before) that the GPU just keeps — no more
       full-screen repaint on every scroll frame (body background-attachment:fixed was the #1 lag cause)
     • blur radius cut (16px desktop / 10px phone) and saturate 165% — behind smooth gradients you cannot see
       the difference, but the GPU work drops a lot
     • long repeated lists (feed, materials, sessions, feedback, admin) get NO blur at all (firm glass fill)
     • on phones / touch only the bars, modals, toasts and menus blur. Cards use a firm glass fill.
     • the cursor light moved from the card background (re-blurred the whole card every mouse move)
       to a ::after layer that only fades
     • hover no longer animates box-shadow (not GPU-cheap) — only transform + border colour
   ===================================================================== */

/* ---- 12a. the world: one fixed GPU layer ---- */
html:not(#lga) { background: #05070c; }
html.light-theme:not(#lga) { background: #eef1ff; }
html body:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-image: none !important; background-color: transparent !important; }
html::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    transform: translateZ(0); contain: strict;
    background:
        radial-gradient(60vmax 60vmax at 8% 6%,   rgba(99, 102, 241, .80), transparent 62%),
        radial-gradient(55vmax 55vmax at 95% 18%, rgba(236, 72, 153, .58), transparent 62%),
        radial-gradient(60vmax 60vmax at 80% 96%, rgba(34, 211, 238, .58), transparent 62%),
        radial-gradient(50vmax 50vmax at 10% 90%, rgba(168, 85, 247, .64), transparent 62%),
        radial-gradient(34vmax 34vmax at 50% 50%, rgba(56, 189, 248, .20), transparent 70%);
}
html.light-theme::before {
    background:
        radial-gradient(60vmax 60vmax at 8% 6%,   rgba(129, 140, 248, .88), transparent 62%),
        radial-gradient(55vmax 55vmax at 95% 18%, rgba(244, 114, 182, .62), transparent 62%),
        radial-gradient(60vmax 60vmax at 80% 96%, rgba(34, 211, 238, .62), transparent 62%),
        radial-gradient(50vmax 50vmax at 10% 90%, rgba(251, 146, 60, .52), transparent 62%),
        radial-gradient(34vmax 34vmax at 50% 50%, rgba(167, 139, 250, .28), transparent 70%);
}

/* ---- 12b. the glass itself: thin rim, crisp highlight, soft lip, one shadow ---- */
html body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card, .faq-item, .flow-sk-card, .sp-insights):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-image:
        linear-gradient(rgba(var(--lg-tint), var(--lg-ta)), rgba(var(--lg-tint), var(--lg-ta))),
        radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 55%),
        linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .06)) !important;
    background-repeat: no-repeat !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow:
        inset 0 1px 0 var(--lg-spec),
        inset 0 -1px 0 rgba(255, 255, 255, .10),
        inset 1px 1px 3px -1px rgba(255, 255, 255, .35),
        inset -1px -1px 3px -2px rgba(255, 255, 255, .16),
        0 14px 32px -16px rgba(0, 0, 0, .55) !important;
    transition: transform .3s var(--lg-ease), border-color .25s ease !important;
}
html.light-theme body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card, .faq-item, .flow-sk-card, .sp-insights):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-image:
        linear-gradient(rgba(var(--lg-tint), var(--lg-ta)), rgba(var(--lg-tint), var(--lg-ta))),
        radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 55%),
        linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .14) 45%, rgba(238, 234, 255, .30)) !important;
    border: 1px solid rgba(255, 255, 255, .85) !important;
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(109, 94, 252, .10),
        inset 1px 1px 3px -1px rgba(255, 255, 255, .95),
        0 14px 30px -16px rgba(79, 70, 229, .38), 0 0 0 .5px rgba(109, 94, 252, .12) !important;
}
/* thin curved rim light (static, drawn once) */
html body :is(.glass-card, .glass-panel, .glass-modal, .fx-card, .gl-card, .sp-card, .on-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::before {
    padding: 1px !important;
    background: conic-gradient(from 210deg at 50% 50%,
        var(--lg-rimlight), transparent 14%, transparent 52%, var(--lg-rimlight-2) 64%, transparent 78%, var(--lg-rimlight)) !important;
}
/* hover: border + lift only, no shadow animation */
@media (hover: hover) and (pointer: fine) {
    html body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card):hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        border-color: rgba(255, 255, 255, .42) !important;
        box-shadow:
            inset 0 1px 0 var(--lg-spec), inset 0 -1px 0 rgba(255, 255, 255, .14), inset 1px 1px 3px -1px rgba(255, 255, 255, .45),
            0 14px 32px -16px rgba(0, 0, 0, .55) !important;
    }
}

/* cursor light: a fading ::after layer (was a card background that forced a re-blur on every mouse move) */
@media (hover: hover) and (pointer: fine) {
    html body :is(.glass-card, .glass-panel, .dash-cell, .tilt-lift-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::after {
        content: '' !important; position: absolute !important; inset: 0 !important; border-radius: inherit !important;
        pointer-events: none !important; z-index: 3 !important; animation: none !important;
        background: radial-gradient(240px circle at var(--gx-x, var(--lx, -400px)) var(--gx-y, var(--ly, -400px)), rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 70%) !important;
        opacity: 0 !important; transition: opacity .25s ease !important; box-shadow: none !important;
    }
    html body :is(.glass-card, .glass-panel, .dash-cell, .tilt-lift-card):hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::after { opacity: 1 !important; }
    html.light-theme body :is(.glass-card, .glass-panel, .dash-cell, .tilt-lift-card):hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::after {
        background: radial-gradient(240px circle at var(--gx-x, var(--lx, -400px)) var(--gx-y, var(--ly, -400px)), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%) !important;
    }
}
/* the old infinite spinning edge is gone for good */
html body .glass-card:hover:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::before { animation: none !important; }

/* inner tiles: same language, less weight */
html body :is(.gl-row, .fx-bubble, .on-q, .on-opt, .sp-item, .vs-row, .ar-item, .on-paper):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    box-shadow: inset 0 1px 0 var(--lg-spec), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 6px 14px -10px rgba(0, 0, 0, .4) !important;
}

/* ---- 12c. blur budget ---- */
/* long repeated lists: firm glass, never blurred (dozens of blurred layers = the worst lag on scroll) */
html body :is(#feed-stream, #materials-grid, #video-sessions-list, #feedback-list, #admin-students-list, #dashboard-leaderboard-grid, #chat-messages-list) :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .faq-item, [class*="bg-slate-"], [class*="bg-white/"]):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body :is(#feed-stream, #materials-grid, #video-sessions-list, #feedback-list, #admin-students-list) > :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(var(--lg-base), calc(var(--lg-a) * .8)) !important;
}
/* small pieces never blur */
html body :is(.vc-cover-inner, .sv-snd, .sv-x, .sv-play, .vc-tip, [role="tooltip"], .fx-chip, .gl-chip, .on-chip, .sp-pill):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body :is(.vc-cover-inner, .sv-snd, .sv-x, .sv-play, .vc-tip, [role="tooltip"]):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-color: rgba(var(--lg-base), .5) !important; }

/* phones + touch: only the bars, modals, toasts, menus and player pill blur. Cards = firm glass (looks the same on soft gradients). */
@media (max-width: 1023px), (pointer: coarse) {
    html:not(.blur-max) body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card, .dash-cell, .tilt-lift-card, .faq-item, .flow-sk-card, .sp-insights, .glass-main-panel):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
         
        background-color: rgba(var(--lg-base), calc(var(--lg-a) * .85)) !important;
    }
    html body :is(.glass-card, .glass-panel, .fx-card, .gl-card, .sp-card, .on-card):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::before { display: none !important; }   /* masked rim: skip on phones, border + highlight are enough */
    html body :is(.glass-card, .glass-panel, .dash-cell):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::after { display: none !important; }
    html:not(.blur-off) body :is(.glass-sidebar, .glass-header):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: blur(14px) saturate(150%) !important; backdrop-filter: blur(14px) saturate(150%) !important; }
    html:not(.blur-off) body :is(.modal-root > div, .glass-modal, .sp-modal-card, #ntf-panel, .vc-menu):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: blur(20px) saturate(160%) !important; backdrop-filter: blur(20px) saturate(160%) !important; }
    html:not(.blur-off) body :is(.modal-root:not(.hidden), .sp-modal:not(.sp-hidden), #chat-lock-overlay:not(.hidden)):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: rgba(8, 10, 30, .55) !important; }
    html body .vc-bar:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: blur(14px) saturate(150%) !important; backdrop-filter: blur(14px) saturate(150%) !important; }
    html body #va-overlay.va-show:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    html body .sv-sheet:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { -webkit-backdrop-filter: blur(16px) saturate(150%) !important; backdrop-filter: blur(16px) saturate(150%) !important; }
}
/* desktop: modal veil was blurring the whole page behind a modal; lighter now */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.modal-root > div, .glass-modal, .sp-modal-card, #ntf-panel, .vc-menu):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        -webkit-backdrop-filter: blur(28px) saturate(170%) !important; backdrop-filter: blur(28px) saturate(170%) !important;
    }
    html:not(.blur-off):not(.perf-lite):not(.flow-samsung) body :is(.modal-root:not(.hidden), .sp-modal:not(.sp-hidden), #chat-lock-overlay:not(.hidden)):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
        -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important;
    }
}

/* ---- 12d. cheap frame work ---- */
html body :is(.glass-card, .glass-panel, .fx-card, .dash-cell):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { contain: layout style; }
@supports (content-visibility: auto) {
    html body :is(#tutoring-center-section, #faq-list > *, #admin-codes-list > *, #notifications-list > *):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { content-visibility: auto; contain-intrinsic-size: auto 220px; }
}

/* =====================================================================
   13. LIGHT MODE ICONS + INK ON THE DASHBOARD (and everywhere in glass)
   Lucide swaps every <i data-lucide> for an <svg> that keeps the classes, so the old "... i { color }"
   rules in main.css stopped matching and the icons fell back to the glass white. These match the svg
   itself and set a real colour on stroke.
   ===================================================================== */
html.light-theme body :is(#view-dashboard, #tutoring-center-section, .glass-card, .glass-panel, .dash-cell) svg:not(.lucide-x):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    color: #4f46e5; stroke: currentColor !important; stroke-width: 2.1px !important;
}
/* icons that inherit from their little coloured tile */
html.light-theme body :is([class*="text-indigo-"], [class*="bg-indigo-950"], [class*="bg-indigo-500/"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg),
html.light-theme body svg[class*="text-indigo-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #4f46e5 !important; }
html.light-theme body :is([class*="text-cyan-"], [class*="bg-cyan-"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-cyan-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-sky-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #0891b2 !important; }
html.light-theme body :is([class*="text-purple-"], [class*="text-violet-"], [class*="bg-purple-"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-purple-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-violet-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #7c3aed !important; }
html.light-theme body :is([class*="text-amber-"], [class*="text-yellow-"], [class*="bg-amber-"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-amber-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-yellow-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #d97706 !important; }
html.light-theme body :is([class*="text-emerald-"], [class*="text-teal-"], [class*="bg-emerald-"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-emerald-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-teal-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #059669 !important; }
html.light-theme body :is([class*="text-red-"], [class*="text-rose-"], [class*="bg-red-"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-red-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-rose-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #e11d48 !important; }
html.light-theme body :is([class*="text-pink-"]) > svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-pink-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #db2777 !important; }
html.light-theme body svg[class*="text-gray-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body svg[class*="text-slate-"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #64748b !important; }
html.light-theme body svg[class*="text-white"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #1e1b4b !important; }
/* the unlit flame stays a visible grey, a lit one stays warm */
html.light-theme body #streak-flame:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #94a3b8 !important; }
html.light-theme body #streak-flame[class*="text-orange"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg), html.light-theme body #streak-flame[class*="text-amber"]:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #ea580c !important; }
/* icon tiles: a clear tinted glass square so the icon always has contrast */
html.light-theme body :is(#view-dashboard, #tutoring-center-section) :is([class*="bg-indigo-950"], [class*="bg-amber-500/10"], [class*="bg-emerald-500/10"], [class*="bg-amber-950"], [class*="bg-emerald-950"]):is(div, span):not(.rounded-full):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) {
    background-color: rgba(255, 255, 255, .62) !important;
    border: 1px solid rgba(255, 255, 255, .95) !important;
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(79, 70, 229, .45) !important;
}
/* solid coloured buttons keep white icons + text */
html.light-theme body :is(button.bg-indigo-600, button.bg-indigo-500, button.bg-emerald-600, button.bg-emerald-500, button.bg-amber-600, button.bg-amber-500, button.bg-red-600, button.bg-red-500, .vc-main, .gl-primary, .on-btn:not(.on-ghost), .sp-btn:not(.sp-ghost)) svg:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #fff !important; }
/* dashboard words that were white on white glass */
html.light-theme body :is(#view-dashboard, #tutoring-center-section) :is(h2, h3, h4, p, div, span).text-white:not(.gradient-text):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #1e1b4b !important; }
html.light-theme body :is(#view-dashboard, #tutoring-center-section) :is(button.bg-indigo-600, button.bg-emerald-600) :is(span, div):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { color: #fff !important; }

/* =====================================================================
   14. QUIET WHEN IT CAN BE — no decorative infinite animation off-screen / on phones / for "reduce"
   ===================================================================== */
/* (removed: universal html.tab-hidden rule — hidden tabs are frozen by the browser anyway, and it forced a full restyle) */
@media (max-width: 1023px), (pointer: coarse) {
    html body #dashboard-leaderboard-grid > div:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg)::after { display: none !important; }
    html body :is(#profile-avatar, #login-logo, #streak-flame, #dashboard-rank-badge, [id^="badge-milestone"], .gentle-float, .empty-state-float):not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { animation: none !important; }
    html body #dashboard-xp-progress-bar:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { background-size: 100% 100% !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html body *:not(#lga):not(#lgb):not(#lgc):not(#lgd):not(#lge):not(#lgf):not(#lgg) { animation-iteration-count: 1 !important; }
}
/* ---- v6: native controls + scrolling feel like iOS glass ---- */
html { color-scheme: dark; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
html.light-theme { color-scheme: light; }
html body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }