/* ==========================================================================
   HALLAYM EDU — "Hx" design system, 2026-10
   --------------------------------------------------------------------------
   One coherent visual layer that loads LAST, after the legacy stylesheets.
   Every rule is scoped under `html.hx` so it wins ties against the older
   layers (including their dark-theme rules) without touching markup hooks,
   IDs, media, attendance or proctoring logic.

   Identity
   - Ink navy + the institution's brand colour (admin setting --brand) +
     saffron for "now / live / needs attention".
   - Bricolage Grotesque for headings and figures, Onest for interface text.
     Both self-hosted (CSP: font-src 'self'), latin + latin-ext (+ cyrillic
     for Onest), so the platform works on a closed university network.
   - Signature: the four-tile geometry (quarter circle, circle, diamond,
     quarter circle) borrowed from Central Asian tile work. Used sparingly:
     brand mark, login, dashboard banner, empty states.
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------------- */
@font-face{font-family:"Onest Hx";font-style:normal;font-display:swap;font-weight:100 900;
 src:url(/fonts/onest-latin-wght-normal.woff2) format("woff2");
 unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Onest Hx";font-style:normal;font-display:swap;font-weight:100 900;
 src:url(/fonts/onest-latin-ext-wght-normal.woff2) format("woff2");
 unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Onest Hx";font-style:normal;font-display:swap;font-weight:100 900;
 src:url(/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
 unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest Hx";font-style:normal;font-display:swap;font-weight:100 900;
 src:url(/fonts/onest-cyrillic-ext-wght-normal.woff2) format("woff2");
 unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Bricolage Hx";font-style:normal;font-display:swap;font-weight:200 800;
 src:url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
 unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Hx";font-style:normal;font-display:swap;font-weight:200 800;
 src:url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
 unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- Tokens --------------------------------------------------------- */
html.hx{
 --hx-brand:var(--brand,#0b4fd8);
 --hx-brand-ink:#fff;
 --hx-brand-soft:color-mix(in srgb,var(--hx-brand) 9%,#fff);
 --hx-brand-line:color-mix(in srgb,var(--hx-brand) 26%,#fff);
 --hx-brand-strong:color-mix(in srgb,var(--hx-brand) 82%,#000);
 --hx-ink:#0f1537;
 --hx-ink-2:#1a2250;
 --hx-ink-3:#252e63;
 --hx-ink-text:#e9ecfa;
 --hx-ink-muted:#a7aed3;
 --hx-paper:#f3f5fa;
 --hx-surface:#fff;
 --hx-raised:#f7f8fc;
 --hx-sunken:#eceff6;
 --hx-line:#e2e6f0;
 --hx-line-strong:#cbd2e3;
 --hx-text:#121835;
 --hx-text-2:#353d63;
 --hx-muted:#5a6283;
 --hx-saffron:#ffb627;
 --hx-saffron-soft:#fff3d6;
 --hx-saffron-ink:#7a4b00;
 --hx-lavender:#8e9bff;
 --hx-coral:#e5483b;
 --hx-coral-soft:#fdecea;
 --hx-coral-ink:#a5271d;
 --hx-green:#0e8f62;
 --hx-green-soft:#e1f5ec;
 --hx-green-ink:#0a6b49;
 --hx-font:"Onest Hx","Onest",system-ui,-apple-system,"Segoe UI",sans-serif;
 --hx-display:"Bricolage Hx","Onest Hx",system-ui,sans-serif;
 --hx-r-lg:22px;
 --hx-r:16px;
 --hx-r-sm:12px;
 --hx-r-xs:8px;
 --hx-shadow:0 1px 2px rgba(15,21,55,.04),0 10px 30px -18px rgba(15,21,55,.18);
 --hx-shadow-pop:0 18px 50px -12px rgba(15,21,55,.28);
 --hx-ring:0 0 0 3px color-mix(in srgb,var(--hx-brand) 30%,transparent);
 --hx-ease:cubic-bezier(.2,.7,.2,1);
 --hx-side:264px;
 --hx-head:64px;
 /* legacy variables re-pointed so older layers inherit the new palette */
 --bg:var(--hx-paper);--surface:var(--hx-surface);--text:var(--hx-text);--muted:var(--hx-muted);
 --line:var(--hx-line);--accent:var(--hx-brand);--good:var(--hx-green);--danger:var(--hx-coral);
 --radius:var(--hx-r);--shadow:var(--hx-shadow);--nav:var(--hx-ink);--nav2:var(--hx-ink-2);
 --tg-blue:var(--hx-brand);--tg-blue-dark:var(--hx-brand-strong);--tg-blue-soft:var(--hx-brand-soft);
 --tg-ink:var(--hx-text);--tg-sub:var(--hx-muted);--tg-bg:var(--hx-paper);--tg-panel:var(--hx-surface);
 --tg-line:var(--hx-line);--tg-line-light:var(--hx-line);--tg-hover:var(--hx-raised);
 --tg-radius:var(--hx-r-sm);--tg-shadow:var(--hx-shadow);
 color-scheme:light;
}
html.hx[data-theme="dark"]{
 --hx-brand:color-mix(in srgb,var(--brand,#0b4fd8) 62%,#fff);
 --hx-brand-ink:#0a0f24;
 --hx-brand-soft:color-mix(in srgb,var(--brand,#0b4fd8) 22%,#121937);
 --hx-brand-line:color-mix(in srgb,var(--brand,#0b4fd8) 45%,#121937);
 --hx-brand-strong:color-mix(in srgb,var(--brand,#0b4fd8) 45%,#fff);
 --hx-ink:#070b1c;
 --hx-ink-2:#121937;
 --hx-ink-3:#1c2450;
 --hx-paper:#0a0f24;
 --hx-surface:#121937;
 --hx-raised:#161e42;
 --hx-sunken:#0d1330;
 --hx-line:#252e5c;
 --hx-line-strong:#36407a;
 --hx-text:#eaedfa;
 --hx-text-2:#c8cdea;
 --hx-muted:#a1a9cc;
 --hx-saffron-soft:#3a2c0c;
 --hx-saffron-ink:#ffd27a;
 --hx-coral:#ff7466;
 --hx-coral-soft:#3b1a1f;
 --hx-coral-ink:#ffb3aa;
 --hx-green:#3ccf98;
 --hx-green-soft:#0f3328;
 --hx-green-ink:#8de8c4;
 --hx-shadow:0 1px 0 rgba(255,255,255,.03),0 12px 30px -18px rgba(0,0,0,.6);
 --hx-shadow-pop:0 20px 60px -10px rgba(0,0,0,.7);
 color-scheme:dark;
}

/* ---------- Base ----------------------------------------------------------- */
html.hx body{
 font-family:var(--hx-font)!important;font-size:14px!important;line-height:1.5!important;
 color:var(--hx-text)!important;background:var(--hx-paper)!important;
 -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"ss01","cv11";
}
html.hx :is(button,input,select,textarea){font-family:inherit!important}
html.hx :is(h1,h2,h3,h4){font-family:var(--hx-display)!important;letter-spacing:-.015em;color:var(--hx-text)}
html.hx ::selection{background:color-mix(in srgb,var(--hx-saffron) 55%,transparent);color:var(--hx-ink)}
html.hx :is(button,a,summary,input,select,textarea,[tabindex]):focus-visible{
 outline:2px solid var(--hx-brand)!important;outline-offset:2px!important;box-shadow:none!important}
html.hx .hx-skip{position:fixed;left:12px;top:-60px;z-index:10000;background:var(--hx-saffron);color:var(--hx-ink);
 font-weight:650;padding:10px 16px;border-radius:var(--hx-r-sm);text-decoration:none;transition:top .15s}
html.hx .hx-skip:focus{top:12px}
html.hx main:focus{outline:none}
html.hx .ui-icon{width:20px;height:20px;flex:none}
html.hx .fallback-icon{font-family:system-ui,sans-serif}
html.hx ::-webkit-scrollbar{width:10px;height:10px}
html.hx ::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--hx-muted) 35%,transparent);border-radius:10px;border:3px solid transparent;background-clip:padding-box}
html.hx ::-webkit-scrollbar-track{background:transparent}

/* ---------- Brand mark (also used in login and settings preview) ----------- */
html.hx .brand-mark{
 width:40px!important;height:40px!important;flex:none;border-radius:12px 12px 12px 4px!important;
 display:inline-grid!important;place-items:center;
 background:var(--hx-saffron)!important;color:var(--hx-ink)!important;
 font-family:var(--hx-display)!important;font-weight:800!important;font-size:15px!important;letter-spacing:-.02em;
 box-shadow:none!important;border:0!important;
}
html.hx .brand-mark.has-logo{background-color:#fff!important;background-size:cover!important;background-position:center!important;color:transparent!important}
html.hx .brand-mark-xl{width:52px!important;height:52px!important;font-size:19px!important;border-radius:16px 16px 16px 5px!important}

/* ==========================================================================
   LOGIN
   ========================================================================== */
html.hx #login.hx-login{
 min-height:100dvh!important;display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(400px,.92fr)!important;
 gap:0!important;padding:0!important;margin:0!important;background:var(--hx-paper)!important;
 align-items:stretch!important;
}
html.hx #login.hx-login.hidden{display:none!important}
html.hx #login .login-showcase{
 position:relative!important;overflow:hidden!important;isolation:isolate;
 display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:40px!important;
 margin:0!important;padding:44px clamp(32px,5vw,72px) 36px!important;min-height:100dvh;
 background:var(--hx-ink)!important;color:var(--hx-ink-text)!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
html.hx #login .login-showcase::before{ /* faint girih-like grid */
 content:"";position:absolute;inset:0;z-index:-1;opacity:.5;pointer-events:none;
 background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.08) 1px,transparent 1.5px);background-size:28px 28px;
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,transparent 75%);mask-image:linear-gradient(to bottom,#000 0%,transparent 75%);
}
html.hx #login .showcase-brand{display:flex!important;align-items:center!important;gap:14px!important}
html.hx #login .showcase-brand b{display:block;font-family:var(--hx-display);font-size:20px;font-weight:750;letter-spacing:-.01em;color:#fff!important}
html.hx #login .showcase-brand small{display:block;color:var(--hx-ink-muted)!important;font-size:14px;margin-top:1px}
html.hx #login .showcase-copy{max-width:620px;display:block!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
html.hx #login .showcase-copy h1{
 font-family:var(--hx-display)!important;font-weight:750!important;color:#fff!important;
 font-size:clamp(38px,4.4vw,64px)!important;line-height:1.02!important;letter-spacing:-.035em!important;margin:0 0 20px!important;
 text-wrap:balance;max-width:14ch;
}
html.hx #login .showcase-copy p{color:var(--hx-ink-muted)!important;font-size:17px!important;line-height:1.6!important;max-width:46ch;margin:0!important}
html.hx #login .hx-tiles{width:min(100%,520px);height:auto;display:block}
html.hx #login .hx-tiles .t1{fill:var(--hx-saffron)}
html.hx #login .hx-tiles .t2{fill:#fff}
html.hx #login .hx-tiles .t3{fill:var(--brand,#0b4fd8)}
html.hx #login .hx-tiles .t4{fill:var(--hx-lavender)}
@media (prefers-reduced-motion:no-preference){
 html.hx #login .hx-tiles>*{transform-box:fill-box;transform-origin:center;animation:hxTileIn .7s var(--hx-ease) both}
 html.hx #login .hx-tiles .t2{animation-delay:.08s}
 html.hx #login .hx-tiles .t3{animation-delay:.16s}
 html.hx #login .hx-tiles .t4{animation-delay:.24s}
}
@keyframes hxTileIn{from{opacity:0;transform:scale(.6) rotate(-12deg)}to{opacity:1;transform:none}}
html.hx #login .hx-login-features{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:760px}
html.hx #login .hx-login-features li{display:flex;gap:12px;align-items:flex-start}
html.hx #login .hx-login-features svg{width:22px;height:22px;flex:none;margin-top:2px;fill:none;stroke:var(--hx-saffron);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.hx #login .hx-login-features b{display:block;color:#fff;font-weight:650;font-size:15px}
html.hx #login .hx-login-features small{display:block;color:var(--hx-ink-muted);font-size:13.5px;line-height:1.45;margin-top:2px}
html.hx #login .showcase-foot{display:flex!important;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;
 padding-top:20px!important;border-top:1px solid rgba(255,255,255,.1)!important;color:var(--hx-ink-muted)!important;font-size:13px!important}
html.hx #login .showcase-foot span{background:none!important;border:0!important;padding:0!important;color:inherit!important;border-radius:0!important}

html.hx #login .login-card{
 align-self:center!important;justify-self:center!important;width:min(100% - 48px,420px)!important;max-width:none!important;
 margin:48px 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
 display:flex!important;flex-direction:column!important;gap:0!important;color:var(--hx-text)!important;text-align:left!important;
}
html.hx #login .login-card .mobile-login-brand{display:none!important}
html.hx #login .login-card h1{font-family:var(--hx-display)!important;font-size:34px!important;font-weight:750!important;letter-spacing:-.03em!important;margin:0 0 8px!important;text-align:left!important;color:var(--hx-text)!important}
html.hx #login .login-lead{color:var(--hx-muted)!important;font-size:15px!important;line-height:1.55!important;margin:0 0 28px!important;text-align:left!important}
html.hx #login .login-card>label{display:block!important;font-size:14px!important;font-weight:600!important;color:var(--hx-text)!important;margin:0 0 8px!important;padding:0!important}
html.hx #login .login-card>label+input,html.hx #login .hx-password{margin-bottom:18px!important}
html.hx #login .login-card input{
 width:100%!important;height:52px!important;min-height:52px!important;padding:0 16px!important;margin:0!important;
 border:1.5px solid var(--hx-line-strong)!important;border-radius:var(--hx-r-sm)!important;
 background:var(--hx-surface)!important;color:var(--hx-text)!important;font-size:16px!important;box-shadow:none!important;
 transition:border-color .15s,box-shadow .15s;
}
html.hx #login .login-card input::placeholder{color:color-mix(in srgb,var(--hx-muted) 80%,transparent)}
html.hx #login .login-card input:focus{border-color:var(--hx-brand)!important;box-shadow:var(--hx-ring)!important;outline:none!important}
html.hx #login #loginOtpWrap{display:flex!important;flex-direction:column;gap:8px;font-size:14px;font-weight:600;margin:0 0 18px!important}
html.hx #login #loginOtpWrap.hidden{display:none!important}
html.hx #login .hx-password{position:relative}
html.hx #login .hx-password input{padding-right:52px!important}
html.hx #login .hx-password-toggle{
 position:absolute!important;right:4px;top:4px;width:44px!important;height:44px!important;min-height:0!important;padding:0!important;
 display:grid!important;place-items:center;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--hx-muted)!important;box-shadow:none!important;cursor:pointer}
html.hx #login .hx-password-toggle:hover{background:var(--hx-sunken)!important;color:var(--hx-text)!important}
html.hx #login .hx-password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.hx #login .hx-password-toggle[aria-pressed="true"] svg path{stroke-dasharray:2 2}
html.hx #login .login-submit{
 height:54px!important;min-height:54px!important;width:100%!important;margin:6px 0 0!important;border-radius:var(--hx-r-sm)!important;
 font-size:16px!important;font-weight:650!important;letter-spacing:0!important;
}
html.hx #login .login-submit[aria-busy="true"]{opacity:.75;cursor:progress!important}
html.hx #login #loginError{min-height:22px;margin:10px 0 0!important;color:var(--hx-coral)!important;font-size:14px!important;font-weight:550}
html.hx #login #loginError:empty{min-height:0;margin:0!important}
html.hx #login .login-help{
 display:flex!important;gap:12px!important;align-items:flex-start;margin:22px 0 0!important;padding:16px!important;
 border-radius:var(--hx-r)!important;background:var(--hx-sunken)!important;border:0!important;color:var(--hx-text-2)!important;font-size:14px!important;line-height:1.5;
}
html.hx #login .login-help svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--hx-brand);stroke-width:1.8;stroke-linecap:round;margin-top:1px}
html.hx #login .login-help b{display:block;color:var(--hx-text);font-weight:650;margin-bottom:2px}
html.hx #login .login-legal{margin:22px 0 0!important;padding:0!important;border:0!important;color:var(--hx-muted)!important;font-size:13px!important;line-height:1.5}
html.hx #login .login-legal>div{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:6px}
html.hx #login .login-legal a{color:var(--hx-brand)!important;font-weight:600;text-decoration:none}
html.hx #login .login-legal a:hover{text-decoration:underline}

@media (max-width:960px){
 html.hx #login.hx-login{grid-template-columns:1fr!important;grid-template-rows:auto 1fr!important}
 html.hx #login .login-showcase{min-height:0;padding:22px 20px 28px!important;gap:22px!important}
 html.hx #login .showcase-copy h1{font-size:30px!important;margin-bottom:10px!important;max-width:18ch}
 html.hx #login .showcase-copy p{font-size:15px!important}
 html.hx #login .hx-tiles{width:150px;position:static;order:1;margin:-6px 0 -8px}
 html.hx #login .showcase-copy{order:2}
 html.hx #login .showcase-brand{position:relative;z-index:1}
 html.hx #login .showcase-copy{position:relative;z-index:1;max-width:100%}
 html.hx #login .hx-login-features,html.hx #login .showcase-foot{display:none!important}
 html.hx #login .login-card{width:auto!important;margin:-14px 0 0!important;padding:28px 20px 32px!important;align-self:stretch!important;justify-self:stretch!important;
  background:var(--hx-paper)!important;border-radius:22px 22px 0 0!important;position:relative;z-index:2}
 html.hx #login .login-card h1{font-size:28px!important}
 html.hx #login .login-lead{margin-bottom:22px!important}
}
@media (max-width:520px){
 html.hx #login .showcase-copy h1{font-size:27px!important}
}

/* ==========================================================================
   SHELL — header, sidebar, main, mobile tab bar
   ========================================================================== */
html.hx:not(.video-cinema-fallback) #shell{background:var(--hx-paper)!important;padding:0!important;margin:0!important}
html.hx #sidebarBackdrop:not(.show){display:none!important}
@media (min-width:901px){
 html.hx:not(.video-cinema-fallback) #shell>header{grid-row:1!important;grid-column:1/-1!important}
 html.hx:not(.video-cinema-fallback) #shell:not(.hidden){display:grid!important;grid-template-columns:var(--hx-side) minmax(0,1fr)!important;grid-template-rows:var(--hx-head) minmax(0,1fr)!important;min-height:100dvh}
}
html.hx:not(.video-cinema-fallback) #shell>header{
 height:var(--hx-head)!important;min-height:0!important;padding:0 24px 0 0!important;gap:16px!important;
 display:flex!important;align-items:center!important;
 background:linear-gradient(90deg,var(--hx-ink) 0 var(--hx-side),var(--hx-surface) var(--hx-side))!important;
 color:var(--hx-text)!important;border-bottom:1px solid var(--hx-line)!important;box-shadow:none!important;
 backdrop-filter:none!important;position:sticky!important;top:0!important;z-index:60!important;
}
html.hx #shell>header .brand{
 width:var(--hx-side);flex:none;height:100%;padding:0 20px!important;margin:0!important;display:flex!important;align-items:center!important;gap:12px!important;
 color:#fff!important;border-bottom:1px solid rgba(255,255,255,.06);
}
html.hx #shell>header .brand>div{min-width:0}
html.hx #shell>header .brand b{display:block;color:#fff!important;font-family:var(--hx-display)!important;font-size:16px!important;font-weight:750!important;letter-spacing:-.01em!important;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hx #shell>header .brand small{display:flex!important;gap:0;color:var(--hx-ink-muted)!important;font-size:12.5px!important;opacity:1!important;line-height:1.3;white-space:nowrap;overflow:hidden}
html.hx #shell>header .brand .brand-institution-sep{display:inline!important;white-space:pre}
html.hx #shell>header .brand .brand-mark:not(.has-logo){background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #shell>header .brand-mark{width:38px!important;height:38px!important;font-size:14px!important}
html.hx #shell>header .header-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important}
html.hx #shell>header :is(.icon-btn,#menuBtn):not(.hidden){
 width:40px!important;height:40px!important;min-height:0!important;padding:0!important;display:inline-grid!important;place-items:center!important;
 border-radius:12px!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;color:var(--hx-text-2)!important;
 font-size:17px!important;box-shadow:none!important;transition:background-color .15s,border-color .15s,color .15s;
}
html.hx #shell>header :is(.icon-btn,#menuBtn):hover{background:var(--hx-raised)!important;border-color:var(--hx-line-strong)!important;color:var(--hx-text)!important}
html.hx #shell>header #menuBtn#menuBtn{display:none!important}
html.hx #shell>header #menuBtn svg,html.hx #shell>header .global-search-trigger svg{width:20px;height:20px}
html.hx #shell>header #themeBtn#themeBtn{font-size:0!important;line-height:0!important}
html.hx #shell>header #themeBtn::before{content:"";width:20px;height:20px;background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5Z'/%3E%3C/svg%3E") center/contain no-repeat}
html.hx[data-theme="dark"] #shell>header #themeBtn::before{
 -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M4.6 4.6 6 6M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4 6 18M18 6l1.4-1.4'/%3E%3C/svg%3E");
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M4.6 4.6 6 6M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4 6 18M18 6l1.4-1.4'/%3E%3C/svg%3E")}
html.hx #shell>header #globalSearchOpen.global-search-trigger{display:inline-flex!important;align-items:center;width:auto!important;min-width:40px;padding:0 14px 0 12px!important;display:inline-flex!important;gap:10px;color:var(--hx-muted)!important;font-size:14px!important}
html.hx #shell>header .global-search-trigger::after{content:"Qidirish…  Ctrl K";font-size:13.5px;white-space:pre;padding-right:2px}
html.hx #shell>header .profile-head{
 display:inline-flex!important;align-items:center!important;gap:10px!important;height:40px!important;max-width:240px!important;
 padding:0 14px 0 5px!important;border-radius:999px!important;background:var(--hx-raised)!important;border:1px solid var(--hx-line)!important;color:var(--hx-text)!important;box-shadow:none!important;
}
html.hx #shell>header .profile-head:hover{border-color:var(--hx-line-strong)!important}
html.hx #shell>header .profile-dot{
 width:30px;height:30px;border-radius:50%;display:inline-grid;place-items:center;flex:none;font-size:0!important;
 background:var(--hx-brand)!important;color:var(--hx-brand-ink)!important;position:relative;
}
html.hx #shell>header .profile-dot::before{content:"";width:14px;height:14px;background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat}
html.hx #shell>header #headerName{font-size:14px!important;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--hx-text)!important}
html.hx #shell>header #onlineBadge{
 display:inline-flex!important;align-items:center;gap:6px;height:30px;padding:0 12px!important;border-radius:999px!important;
 background:var(--hx-green-soft)!important;color:var(--hx-green-ink)!important;font-size:13px!important;font-weight:600!important;border:0!important;box-shadow:none!important;white-space:nowrap}
html.hx #shell>header #installPwaBtn{font-size:16px!important}

/* Sidebar */
html.hx #sidebar{
 background:var(--hx-ink)!important;color:var(--hx-ink-text)!important;border:0!important;box-shadow:none!important;
 padding:14px 12px 16px!important;}
html.hx:not(.video-cinema-fallback) #sidebar{display:flex!important;flex-direction:column!important;gap:10px!important;overflow:hidden!important;
}
@media (min-width:901px){
 html.hx:not(.video-cinema-fallback) #sidebar{position:sticky!important;top:var(--hx-head)!important;height:calc(100dvh - var(--hx-head))!important;width:auto!important;transform:none!important;grid-row:2!important;grid-column:1!important;left:auto!important}
}
html.hx #sidebar nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;gap:2px!important;padding:0 2px 8px!important;scrollbar-width:thin;scrollbar-color:var(--hx-ink-3) transparent}
html.hx #sidebar nav button{
 position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;
 width:100%!important;min-height:42px!important;height:auto!important;padding:9px 12px!important;margin:0!important;
 border:0!important;border-left:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;
 color:var(--hx-ink-muted)!important;font-size:14.5px!important;font-weight:520!important;text-align:left!important;line-height:1.3!important;
 transition:background-color .15s,color .15s;
}
html.hx #sidebar nav button:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
html.hx #sidebar nav button.active{background:var(--hx-ink-3)!important;color:#fff!important;font-weight:620!important}
html.hx #sidebar nav button.active::before{content:"";position:absolute;left:-12px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:var(--hx-saffron)}
html.hx #sidebar nav button.active [data-ico]{color:var(--hx-saffron)!important}
html.hx #sidebar nav button [data-ico]{display:inline-grid!important;place-items:center;width:22px!important;height:22px!important;flex:none;color:inherit!important;opacity:1!important;background:none!important;border:0!important;margin:0!important}
html.hx #sidebar nav button.hidden{display:none!important}
html.hx #sidebar .nav-group{margin:10px 0 0!important;padding:0!important;border:0!important;background:none!important}
html.hx #sidebar .nav-group summary{
 list-style:none;display:flex!important;align-items:center!important;justify-content:space-between!important;cursor:pointer;
 padding:8px 12px 6px!important;margin:0!important;border:0!important;background:none!important;
 color:color-mix(in srgb,var(--hx-ink-muted) 75%,transparent)!important;font-size:12.5px!important;font-weight:600!important;letter-spacing:.01em!important;text-transform:none!important;
}
html.hx #sidebar .nav-group summary::-webkit-details-marker{display:none}
html.hx #sidebar .nav-group summary i{font-style:normal;transition:transform .2s;opacity:.7}
html.hx #sidebar .nav-group:not([open]) summary i{transform:rotate(-90deg)}
html.hx #sidebar .nav-group summary:hover{color:#fff!important}
html.hx #sidebar .logout{
 flex:none!important;position:static!important;margin:0!important;display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:44px!important;
 padding:10px 12px!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.08)!important;background:transparent!important;
 color:var(--hx-ink-muted)!important;font-size:14.5px!important;font-weight:550!important;text-align:left!important;box-shadow:none!important;
}
html.hx #sidebar .logout:hover{background:rgba(229,72,59,.14)!important;color:#ffb3aa!important;border-color:rgba(229,72,59,.3)!important}
html.hx #sidebar .logout [data-ico]{display:inline-grid;place-items:center;width:22px;height:22px}

/* Main */
html.hx:not([data-page="lesson"]) #shell>main{
 min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:32px clamp(20px,3vw,44px) 56px!important;
 background:transparent!important;display:block!important;overflow-x:hidden;
}
@media (min-width:901px){html.hx:not(.video-cinema-fallback) #shell>main{grid-row:2!important;grid-column:2!important}}
html.hx #shell>main>.page{max-width:1360px;margin-inline:auto}
html.hx #shell>main>.page.active:not(#lesson){animation:hxPageIn .28s var(--hx-ease) both}
@keyframes hxPageIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Page head */
html.hx #shell>main .page:not(#lesson)>.page-head{
 display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px 24px!important;
 margin:0 0 24px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;
}
html.hx #shell>main .page:not(#lesson)>.page-head>div:first-child{min-width:0;flex:1 1 360px}
html.hx #shell>main .page:not(#lesson)>.page-head h1{
 font-family:var(--hx-display)!important;font-size:clamp(26px,2.4vw,34px)!important;font-weight:750!important;line-height:1.1!important;
 letter-spacing:-.03em!important;margin:0!important;color:var(--hx-text)!important;text-wrap:balance}
html.hx #shell>main .page:not(#lesson)>.page-head p{margin:8px 0 0!important;color:var(--hx-muted)!important;font-size:15px!important;line-height:1.5!important;max-width:70ch}
html.hx #shell>main :is(.page-kicker,.editor-kicker,.uni-kicker){
 display:inline-block!important;margin:0 0 8px!important;padding:0!important;background:none!important;border:0!important;
 color:var(--hx-brand)!important;font-size:13.5px!important;font-weight:650!important;letter-spacing:0!important;text-transform:none!important}
html.hx #shell>main .page:not(#lesson)>.page-head>div:not(:first-child):not(.hidden),html.hx #shell>main .page:not(#lesson) .head-actions:not(.hidden){display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
/* Cards */
html.hx #shell>main :where(.page:not(#lesson)) :where(article,.audit-card,.editor-card,.comments-panel,.watch-side,.video-course-path,.remote-hub>section){
 background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;border-radius:var(--hx-r-lg)!important;
 box-shadow:var(--hx-shadow)!important;padding:22px!important;color:var(--hx-text);
}
html.hx #shell>main :where(article,.audit-card) :where(article){box-shadow:none!important}
html.hx #shell>main :is(article,.audit-card)>h2,
html.hx #shell>main .section-title h2{
 font-family:var(--hx-display)!important;font-size:18px!important;font-weight:700!important;letter-spacing:-.02em!important;margin:0 0 14px!important;color:var(--hx-text)!important;text-transform:none!important}
html.hx #shell>main .section-title{display:flex!important;flex-wrap:wrap;align-items:flex-start!important;justify-content:space-between!important;gap:10px 16px!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:none!important}
html.hx #shell>main .section-title h2{margin:0!important}
html.hx #shell>main .section-title small{display:block;color:var(--hx-muted)!important;font-size:13.5px!important;margin-top:3px}
html.hx #shell>main .grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))!important;gap:20px!important;margin:0 0 20px!important}
html.hx #shell>main .page>article,html.hx #shell>main .page>.audit-card{margin:0 0 20px!important}

/* Buttons */
html.hx #shell>main button,html.hx #shell>main .button-link,html.hx .face-demo-card button,html.hx dialog button{
 font-family:var(--hx-font)!important;
}
html.hx #shell>main :where(.page:not(#lesson)) :where(button,.button-link,a.secondary,label.secondary):where(:not(.zoom-control,.video-cover,[data-reaction],.tg-course-row,.hx-plain)){
 min-height:40px;border-radius:var(--hx-r-sm)!important;font-size:14px!important;font-weight:600!important;letter-spacing:0!important;
 padding:0 16px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2!important;
 border:1px solid var(--hx-line-strong)!important;background:var(--hx-surface)!important;color:var(--hx-text)!important;box-shadow:none!important;
 text-decoration:none!important;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,transform .1s;white-space:nowrap;
}
html.hx #shell>main :where(.page:not(#lesson)) :where(button,.button-link):where(:not(.zoom-control,.video-cover,:disabled)):hover{background:var(--hx-raised)!important;border-color:color-mix(in srgb,var(--hx-text) 28%,transparent)!important}
html.hx #shell>main :where(.page:not(#lesson)) :where(button,.button-link):where(:not(.zoom-control,:disabled)):active{transform:translateY(1px)}
html.hx :is(#shell>main :where(.page:not(#lesson)),#login,dialog) :is(button.primary,.primary.button-link,.join-btn,.tg-course-open){
 background:var(--hx-brand)!important;border-color:var(--hx-brand)!important;color:var(--hx-brand-ink)!important}
html.hx :is(#shell>main :where(.page:not(#lesson)),#login,dialog) :is(button.primary,.join-btn,.tg-course-open):not(:disabled):hover{background:var(--hx-brand-strong)!important;border-color:var(--hx-brand-strong)!important}
html.hx #shell>main :where(.page:not(#lesson)) :is(button.ghost,.ghost){background:transparent!important;border-color:transparent!important;color:var(--hx-text-2)!important}
html.hx #shell>main :where(.page:not(#lesson)) :is(button.ghost,.ghost):not(:disabled):hover{background:var(--hx-sunken)!important;border-color:transparent!important}
html.hx #shell>main :where(.page:not(#lesson)) :is(button.danger,.danger:not(.zoom-control)){background:var(--hx-coral)!important;border-color:var(--hx-coral)!important;color:#fff!important}
html.hx #shell>main :is(.danger-text,.danger-soft){color:var(--hx-coral)!important}
html.hx #shell>main .danger-soft{border-color:color-mix(in srgb,var(--hx-coral) 40%,transparent)!important;background:var(--hx-coral-soft)!important}
html.hx #shell>main button:disabled{opacity:.5!important;cursor:not-allowed!important}
html.hx #shell>main button.hidden,html.hx #shell>main .hidden{display:none!important}

/* Form controls */
html.hx :is(#shell>main :where(.page:not(#lesson)),dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),select,textarea){
 min-height:44px;border:1.5px solid var(--hx-line-strong)!important;border-radius:var(--hx-r-sm)!important;
 background:var(--hx-surface)!important;color:var(--hx-text)!important;font-size:15px!important;padding:0 14px!important;box-shadow:none!important;
 transition:border-color .15s,box-shadow .15s;
}
html.hx :is(#shell>main :where(.page:not(#lesson)),dialog) textarea{padding:12px 14px!important;line-height:1.5!important;min-height:96px}
html.hx :is(#shell>main :where(.page:not(#lesson)),dialog) select{padding-right:38px!important;appearance:none;-webkit-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6283' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:18px!important}
html.hx :is(#shell>main :where(.page:not(#lesson)),dialog) :is(input,select,textarea):focus{border-color:var(--hx-brand)!important;box-shadow:var(--hx-ring)!important;outline:none!important}
html.hx :is(#shell>main :where(.page:not(#lesson)),dialog) :is(input,textarea)::placeholder{color:color-mix(in srgb,var(--hx-muted) 78%,transparent)!important}
html.hx :is(#shell>main,dialog) input[type="color"]{width:56px;height:44px;padding:4px!important;border:1.5px solid var(--hx-line-strong)!important;border-radius:var(--hx-r-sm)!important;background:var(--hx-surface)!important}
html.hx :is(#shell>main,dialog) input[type="file"]{font-size:14px!important;color:var(--hx-muted)}
html.hx :is(#shell>main,dialog) input[type="file"]::file-selector-button{margin-right:12px;height:38px;padding:0 14px;border-radius:10px;border:1px solid var(--hx-line-strong);background:var(--hx-raised);color:var(--hx-text);font:600 14px var(--hx-font);cursor:pointer}
html.hx :is(#shell>main,dialog) :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--hx-brand);width:18px;height:18px}
html.hx #shell>main .form-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;gap:16px!important}
html.hx #shell>main .form-grid label,html.hx #shell>main .editor-fields label{display:flex!important;flex-direction:column!important;gap:8px!important;font-size:14px!important;font-weight:600!important;color:var(--hx-text)!important}
html.hx #shell>main .form-grid .wide{grid-column:1/-1}
html.hx #shell>main hr{border:0!important;border-top:1px solid var(--hx-line)!important;margin:28px 0!important}
html.hx #shell>main :is(.toolbar,.video-toolbar){
 display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important;margin:0 0 20px!important;padding:12px!important;
 background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;border-radius:var(--hx-r)!important;box-shadow:none!important}
html.hx #shell>main :is(.toolbar,.video-toolbar)>:is(input,select){flex:1 1 200px;min-width:0}
html.hx #shell>main :is(.toolbar,.video-toolbar)>input:first-child{flex:2 1 280px}
html.hx #shell>main .toolbar.hidden{display:none!important}

/* Badges & chips */
html.hx #shell>main :is(.badge,.lesson-kind,.sheet-kind,.recommend-badge,.topic-quiz-badge){
 display:inline-flex!important;align-items:center;gap:6px;height:auto;min-height:24px;padding:3px 10px!important;border-radius:999px!important;
 font-size:12.5px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;
 background:var(--hx-brand-soft)!important;color:var(--hx-brand-strong)!important;border:0!important;box-shadow:none!important;white-space:nowrap}
html.hx[data-theme="dark"] #shell>main :is(.badge,.lesson-kind,.sheet-kind,.recommend-badge,.topic-quiz-badge){color:var(--hx-brand)!important}
html.hx #shell>main .video-tags{display:flex!important;flex-wrap:wrap;gap:6px!important}
html.hx #shell>main .video-tags span{padding:3px 10px!important;border-radius:999px!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;font-size:12.5px!important;font-weight:550!important;border:0!important}

/* Notes, guides, banners */
html.hx #shell>main :is(.guide,.info-note){
 display:flex!important;flex-wrap:wrap;gap:4px 8px;align-items:baseline;
 margin:0 0 20px!important;padding:14px 18px!important;border-radius:var(--hx-r)!important;border:1px solid var(--hx-brand-line)!important;
 background:var(--hx-brand-soft)!important;color:var(--hx-text-2)!important;font-size:14px!important;line-height:1.55!important;box-shadow:none!important}
html.hx #shell>main :is(.guide,.info-note)>b{color:var(--hx-text)!important;font-weight:650}
html.hx #shell>main :is(.guide,.info-note).warning{border-color:color-mix(in srgb,var(--hx-saffron) 55%,transparent)!important;background:var(--hx-saffron-soft)!important}
html.hx #shell>main .info-note{flex-direction:column;align-items:flex-start}
html.hx #shell>main .info-note:empty{display:none!important}
html.hx #shell>main .scope-label{color:var(--hx-muted)!important;font-size:13.5px!important;margin:0 0 14px!important}

/* Tabs (structure, coursework, lesson side) */
html.hx #shell>main :is(.tabs,.coursework-workspace-tabs,.schedule-view-switch,.schedule-scope-modes){
 display:inline-flex!important;flex-wrap:wrap;gap:4px!important;padding:4px!important;margin:0 0 20px!important;
 background:var(--hx-sunken)!important;border:0!important;border-radius:14px!important;box-shadow:none!important;max-width:100%}
html.hx #shell>main :is(.tabs,.coursework-workspace-tabs,.schedule-view-switch,.schedule-scope-modes)>button{
 min-height:38px!important;padding:0 16px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:var(--hx-muted)!important;font-weight:600!important}
html.hx #shell>main :is(.tabs,.coursework-workspace-tabs,.schedule-view-switch,.schedule-scope-modes)>button:hover{color:var(--hx-text)!important;background:transparent!important}
html.hx #shell>main :is(.tabs,.coursework-workspace-tabs,.schedule-view-switch,.schedule-scope-modes)>button:is(.active,[aria-selected="true"]){
 background:var(--hx-surface)!important;color:var(--hx-text)!important;box-shadow:0 1px 2px rgba(15,21,55,.08),0 2px 8px -2px rgba(15,21,55,.1)!important}
html.hx #shell>main .coursework-pane-intro{color:var(--hx-muted)!important;font-size:14.5px!important;margin:0 0 16px!important}

/* Tables */
html.hx #shell>main .table-wrap{overflow-x:auto!important;border:1px solid var(--hx-line)!important;border-radius:var(--hx-r)!important;background:var(--hx-surface)!important;box-shadow:none!important;max-width:100%}
html.hx #shell>main article .table-wrap.inner-table{border-radius:var(--hx-r-sm)!important}
html.hx #shell>main table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:14px!important;background:transparent!important}
html.hx #shell>main th{
 position:sticky;top:0;z-index:1;text-align:left;padding:12px 16px!important;background:var(--hx-raised)!important;color:var(--hx-muted)!important;
 font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;border:0!important;border-bottom:1px solid var(--hx-line)!important;white-space:nowrap}
html.hx #shell>main td{padding:12px 16px!important;border:0!important;border-bottom:1px solid var(--hx-line)!important;color:var(--hx-text)!important;vertical-align:middle!important;background:transparent!important}
html.hx #shell>main tbody tr:last-child td{border-bottom:0!important}
html.hx #shell>main tbody tr:hover td{background:var(--hx-raised)!important}
html.hx #shell>main td :is(button,.button-link){min-height:34px!important;padding:0 12px!important;font-size:13.5px!important}

/* Stats */
html.hx #shell>main :is(.stats,.live-summary,.uni-facts){
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;gap:16px!important;margin:0 0 20px!important;padding:0!important;background:none!important;border:0!important}
html.hx #shell>main :is(.stats>*,.live-summary>div){
 position:relative!important;overflow:hidden!important;display:flex!important;flex-direction:column-reverse!important;justify-content:flex-end;gap:4px!important;
 min-height:112px;padding:20px 20px 18px!important;margin:0!important;border-radius:var(--hx-r-lg)!important;
 background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;box-shadow:var(--hx-shadow)!important;text-align:left!important}
html.hx #shell>main :is(.stats>*,.live-summary>div)::after{ /* tile corner */
 content:"";position:absolute;right:0;top:0;width:44px;height:44px;border-bottom-left-radius:44px;background:var(--hx-brand-soft);pointer-events:none}
html.hx #shell>main :is(.stats>*,.live-summary>div) b{
 font-family:var(--hx-display)!important;font-size:34px!important;font-weight:750!important;line-height:1!important;letter-spacing:-.035em!important;color:var(--hx-text)!important;font-variant-numeric:tabular-nums;margin:0!important}
html.hx #shell>main :is(.stats>*,.live-summary>div) :is(span,small){color:var(--hx-muted)!important;font-size:14px!important;font-weight:500!important;line-height:1.35!important;margin:0!important;text-transform:none!important;letter-spacing:0!important}
html.hx #shell>main :is(.stats>*:first-child,.live-summary>div:first-child){background:var(--hx-brand)!important;border-color:var(--hx-brand)!important}
html.hx #shell>main :is(.stats>*:first-child,.live-summary>div:first-child)::after{background:rgba(255,255,255,.14)}
html.hx #shell>main :is(.stats>*:first-child,.live-summary>div:first-child) b{color:var(--hx-brand-ink)!important}
html.hx #shell>main :is(.stats>*:first-child,.live-summary>div:first-child) :is(span,small){color:color-mix(in srgb,var(--hx-brand-ink) 82%,transparent)!important}
html.hx #shell>main .uni-facts>div{padding:16px 18px!important;border-radius:var(--hx-r)!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important}
html.hx #shell>main .uni-facts b{font-family:var(--hx-display);font-size:28px!important;color:#fff!important;display:block}
html.hx #shell>main .uni-facts span{color:var(--hx-ink-muted)!important;font-size:13.5px!important}

/* Dashboard banner */
html.hx #shell>main .edu-banner{
 position:relative!important;overflow:hidden!important;isolation:isolate;display:flex!important;align-items:center!important;gap:16px!important;
 margin:0 0 20px!important;padding:22px 200px 22px 24px!important;border-radius:var(--hx-r-lg)!important;border:0!important;
 background:var(--hx-ink)!important;color:var(--hx-ink-text)!important;box-shadow:none!important;min-height:96px}
html.hx #shell>main .edu-banner::after{
 content:"";position:absolute;right:20px;top:50%;width:168px;height:42px;transform:translateY(-50%);z-index:-1;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'%3E%3Cpath d='M0 0h40A40 40 0 0 1 0 40Z' fill='%23ffb627'/%3E%3Ccircle cx='60' cy='20' r='16' fill='%23fff'/%3E%3Cpath d='M100 2l18 18-18 18-18-18Z' fill='%238e9bff'/%3E%3Cpath d='M160 40h-40A40 40 0 0 1 160 0Z' fill='%23ffb627' fill-opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat}
html.hx #shell>main .edu-banner>span{width:44px;height:44px;flex:none;display:grid!important;place-items:center;border-radius:14px;background:rgba(255,255,255,.08);color:var(--hx-saffron)!important;font-size:20px}
html.hx #shell>main .edu-banner b{display:block;color:#fff!important;font-family:var(--hx-display);font-size:17px!important;font-weight:700;letter-spacing:-.01em}
html.hx #shell>main .edu-banner p{margin:4px 0 0!important;color:var(--hx-ink-muted)!important;font-size:14.5px!important;line-height:1.5}

/* Health strip (admin) */
html.hx #shell>main .health-strip{display:flex!important;flex-wrap:wrap;gap:8px!important;align-items:center;margin:0 0 20px!important;padding:12px 14px!important;border-radius:var(--hx-r)!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;box-shadow:none!important;font-size:13px!important}
html.hx #shell>main .health-strip.hidden{display:none!important}
html.hx #shell>main .health-strip>*{padding:4px 10px!important;border-radius:999px!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;border:0!important}
html.hx #shell>main .health-strip>b{background:transparent!important;color:var(--hx-text)!important;padding-left:2px!important}
html.hx #shell>main .health-strip .health-ok{background:var(--hx-green-soft)!important;color:var(--hx-green-ink)!important}
html.hx #shell>main .health-strip :is(.health-bad,.health-warn){background:var(--hx-coral-soft)!important;color:var(--hx-coral-ink)!important}

/* Readiness list */
html.hx #shell>main .readiness-score{font-family:var(--hx-display)!important;font-size:40px!important;font-weight:750!important;color:var(--hx-brand)!important;letter-spacing:-.03em}
html.hx #shell>main .evaluation-readiness{display:grid!important;gap:8px!important}
html.hx #shell>main .evaluation-row{display:flex!important;align-items:center!important;gap:14px!important;padding:12px 14px!important;border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:none!important}
html.hx #shell>main .evaluation-row>div{flex:1;min-width:0}
html.hx #shell>main .evaluation-row b{font-size:14.5px!important;font-weight:600!important;color:var(--hx-text)!important}
html.hx #shell>main .evaluation-row small{display:block;color:var(--hx-muted)!important;font-size:13px!important}
html.hx #shell>main .evaluation-no{width:32px;height:32px;flex:none;display:grid!important;place-items:center;border-radius:10px!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;font-weight:700;font-size:13px!important;border:0!important}
html.hx #shell>main .evaluation-row>strong{flex:none;padding:4px 10px;border-radius:999px;font-size:12.5px!important;font-weight:600!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;border:0!important}
html.hx #shell>main .evaluation-row.ready>strong{background:var(--hx-green-soft)!important;color:var(--hx-green-ink)!important}
html.hx #shell>main .evaluation-row.pending>strong{background:var(--hx-saffron-soft)!important;color:var(--hx-saffron-ink)!important}
html.hx #shell>main .evaluation-row.external>strong{background:var(--hx-brand-soft)!important;color:var(--hx-brand-strong)!important}
html.hx #shell>main details>summary{cursor:pointer;color:var(--hx-text-2);font-weight:600}

/* Lists & rows */
html.hx #shell>main .list{display:grid!important;gap:10px!important}
html.hx #shell>main .list:empty{display:none!important}
html.hx #shell>main .lesson-row{
 position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important;align-items:center!important;
 padding:14px 16px!important;margin:0!important;border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:none!important}
html.hx #shell>main .lesson-row:hover{border-color:var(--hx-line-strong)!important}
html.hx #shell>main .lesson-row:has(>.lesson-time){grid-template-columns:76px minmax(0,1fr) auto!important}
html.hx #shell>main .lesson-row>div:not([class]) b{font-size:15px;font-weight:650;color:var(--hx-text)}
html.hx #shell>main .lesson-row>div:not([class]) small{display:block;color:var(--hx-muted)!important;font-size:13px!important;margin-top:2px}
html.hx #shell>main .lesson-row>div:not([class]) p{margin:8px 0 0!important;color:var(--hx-text-2)!important;font-size:14px!important;line-height:1.55}
html.hx #shell>main .lesson-time{display:flex!important;flex-direction:column!important;gap:2px!important;padding:0 14px 0 0!important;border-right:1px solid var(--hx-line)!important;background:none!important}
html.hx #shell>main .lesson-time b{font-family:var(--hx-display)!important;font-size:19px!important;font-weight:700!important;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--hx-text)!important}
html.hx #shell>main .lesson-time span{color:var(--hx-muted)!important;font-size:13px!important;font-variant-numeric:tabular-nums}
html.hx #shell>main .lesson-info{min-width:0}
html.hx #shell>main .lesson-title-line{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 10px!important}
html.hx #shell>main .lesson-title-line b{font-size:15.5px!important;font-weight:650!important;color:var(--hx-text)!important}
html.hx #shell>main .lesson-info>small{display:block;margin-top:3px;color:var(--hx-muted)!important;font-size:13.5px!important}
html.hx #shell>main .lesson-meta{display:flex!important;flex-wrap:wrap;gap:6px!important;margin-top:8px!important}
html.hx #shell>main .lesson-meta span{padding:2px 9px!important;border-radius:8px!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;font-size:12.5px!important;font-weight:550!important;border:0!important}
html.hx #shell>main .row-actions{display:flex!important;flex-wrap:wrap;gap:6px!important;justify-content:flex-end}
html.hx #shell>main .lesson-kind-practice .lesson-kind{background:var(--hx-green-soft)!important;color:var(--hx-green-ink)!important}
html.hx #shell>main .lesson-kind-seminar .lesson-kind{background:var(--hx-saffron-soft)!important;color:var(--hx-saffron-ink)!important}
html.hx #shell>main .lesson-kind-lab .lesson-kind{background:color-mix(in srgb,var(--hx-lavender) 22%,var(--hx-surface))!important;color:var(--hx-text)!important}

/* Quick links */
html.hx #shell>main .quick{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:10px!important}
html.hx #shell>main .quick>button{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:4px!important;
 min-height:84px!important;height:auto!important;padding:16px!important;white-space:normal!important;text-align:left!important;border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-raised)!important}
html.hx #shell>main .quick>button:hover{border-color:var(--hx-brand-line)!important;background:var(--hx-brand-soft)!important}
html.hx #shell>main .quick>button b{display:flex!important;align-items:center;gap:10px;font-size:15px!important;font-weight:650!important;color:var(--hx-text)!important}
html.hx #shell>main .quick>button b .ui-icon{color:var(--hx-brand)}
html.hx #shell>main .quick>button span{color:var(--hx-muted)!important;font-size:13.5px!important;font-weight:450!important;line-height:1.4}

/* Empty states anywhere the app prints a muted paragraph */
html.hx #shell>main :is(.empty,.muted-empty,.list>p,.empty-state){
 padding:28px 20px!important;text-align:center!important;color:var(--hx-muted)!important;font-size:14.5px!important;border:1.5px dashed var(--hx-line-strong)!important;border-radius:var(--hx-r)!important;background:transparent!important}

/* ==========================================================================
   LIVE ROOMS
   ========================================================================== */
html.hx #shell>main #liveRooms.live-room-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;align-items:start!important}
html.hx #shell>main #liveRooms .live-section{
 min-width:0!important;padding:18px!important;border-radius:var(--hx-r-lg)!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;box-shadow:var(--hx-shadow)!important}
html.hx #shell>main #liveRooms .live-section-current{grid-column:1/-1!important;background:var(--hx-ink)!important;border-color:var(--hx-ink)!important;color:var(--hx-ink-text)!important}
html.hx #shell>main #liveRooms .live-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px;margin:0 0 14px!important;padding:0!important;background:none!important;border:0!important}
html.hx #shell>main #liveRooms .live-section-head b{display:block;font-family:var(--hx-display);font-size:18px!important;font-weight:700!important;letter-spacing:-.02em;color:var(--hx-text)!important}
html.hx #shell>main #liveRooms .live-section-head small{display:block;color:var(--hx-muted)!important;font-size:13.5px!important;margin-top:2px}
html.hx #shell>main #liveRooms .live-section-head>span{min-width:30px;height:30px;padding:0 10px;display:grid;place-items:center;border-radius:999px;background:var(--hx-sunken)!important;color:var(--hx-text)!important;font-weight:700;font-size:13.5px!important}
html.hx #shell>main #liveRooms .live-section-current .live-section-head b{color:#fff!important}
html.hx #shell>main #liveRooms .live-section-current .live-section-head small{color:var(--hx-ink-muted)!important}
html.hx #shell>main #liveRooms .live-section-current .live-section-head>span{background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #live #liveRooms :is(.live-scroll-list,.live-upcoming-scroll){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))!important;gap:12px!important;overflow:visible!important;max-height:none!important;padding:0!important}
html.hx #live #liveRooms .live-section:not(.live-section-current) :is(.live-scroll-list,.live-upcoming-scroll){grid-template-columns:1fr!important;grid-auto-flow:row!important;flex-direction:column!important}
html.hx #live #liveRooms .live-upcoming-row{width:auto!important;min-width:0!important;max-width:none!important;flex:none!important}
html.hx #shell>main #live .live-room-card,
html.hx #shell>main #liveRooms .live-room-card,html.hx #shell>main #liveRooms .live-room-card *{text-align:left!important}
html.hx #shell>main #liveRooms .live-room-card{
align-items:stretch!important;
 display:flex!important;flex-direction:column!important;gap:6px!important;grid-template-columns:none!important;min-width:0!important;
 padding:16px!important;margin:0!important;border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-raised)!important;box-shadow:none!important;color:var(--hx-text)!important}
html.hx #shell>main #liveRooms .live-section-current .live-room-card{background:var(--hx-ink-2)!important;border-color:var(--hx-ink-3)!important;color:var(--hx-ink-text)!important}
html.hx #shell>main #liveRooms .live-room-top{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px;order:0;width:100%}
html.hx #shell>main #liveRooms .live-room-card h2{font-family:var(--hx-display)!important;font-size:17px!important;font-weight:700!important;letter-spacing:-.02em!important;line-height:1.25!important;margin:4px 0 0!important;color:inherit!important;word-break:normal!important;overflow-wrap:anywhere;writing-mode:horizontal-tb!important}
html.hx #shell>main #liveRooms .live-section-current .live-room-card h2{color:#fff!important}
html.hx #shell>main #liveRooms .room-subject{margin:0!important;color:var(--hx-muted)!important;font-size:13.5px!important}
html.hx #shell>main #liveRooms .live-section-current .room-subject{color:var(--hx-ink-muted)!important}
html.hx #shell>main #liveRooms .room-time{font-variant-numeric:tabular-nums;font-weight:600;font-size:13.5px!important;color:inherit!important;opacity:.85}
html.hx #shell>main #liveRooms .room-meta{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:6px 0 0!important}
html.hx #shell>main #liveRooms .room-meta>span{display:inline-flex!important;align-items:center;gap:6px;padding:3px 10px!important;border-radius:999px!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;font-size:12.5px!important;font-weight:550;white-space:nowrap}
html.hx #shell>main #liveRooms .live-section-current .room-meta>span{background:rgba(255,255,255,.08)!important;color:var(--hx-ink-text)!important}
html.hx #shell>main #liveRooms .room-meta .ui-icon{width:15px;height:15px}
html.hx #shell>main #liveRooms .room-actions{display:flex!important;gap:8px;margin-top:10px!important;justify-content:flex-start!important}
html.hx #shell>main #liveRooms .room-actions button{flex:1 1 auto}
html.hx #shell>main #liveRooms .live-section-current .room-actions button.primary{background:var(--hx-saffron)!important;border-color:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #shell>main .live-status{display:inline-flex!important;align-items:center;gap:7px;padding:3px 10px!important;border-radius:999px!important;font-size:12.5px!important;font-weight:650!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;border:0!important}
html.hx #shell>main .live-status.active{background:var(--hx-coral)!important;color:#fff!important}
html.hx #shell>main .live-status.active::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:hxPulse 1.6s ease-out infinite}
@keyframes hxPulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.8)}100%{box-shadow:0 0 0 7px rgba(255,255,255,0)}}
html.hx #shell>main .live-upcoming-row{padding:12px 14px!important;border-radius:var(--hx-r-sm)!important;border:1px solid var(--hx-line)!important;background:var(--hx-raised)!important;box-shadow:none!important}
html.hx #shell>main .live-upcoming-row b{font-size:14px!important;font-weight:650!important;color:var(--hx-text)!important}
html.hx #shell>main .live-upcoming-row small{display:block;color:var(--hx-muted)!important;font-size:13px!important;margin-top:2px}
html.hx #shell>main .live-finished{grid-column:1/-1;padding:14px 18px!important;border-radius:var(--hx-r)!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important}

/* ==========================================================================
   SCHEDULE
   ========================================================================== */
html.hx #shell>main .schedule-workspace-bar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px 16px!important;margin:0 0 16px!important;padding:12px!important;
 background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;border-radius:var(--hx-r-lg)!important;box-shadow:none!important}
html.hx #shell>main .schedule-workspace-bar :is(.schedule-view-switch,.schedule-scope-modes){margin:0!important}
html.hx #shell>main .schedule-scope-area{display:flex!important;flex-wrap:wrap;gap:10px!important;align-items:center;flex:1 1 360px;min-width:0}
html.hx #shell>main .schedule-scope-tabs{display:flex!important;gap:6px!important;overflow-x:auto;max-width:100%;padding:2px!important;scrollbar-width:none}
html.hx #shell>main .schedule-scope-tabs button{min-height:36px!important;padding:0 12px!important;border-radius:999px!important;gap:6px}
html.hx #shell>main .schedule-scope-tabs button.active{background:var(--hx-ink)!important;border-color:var(--hx-ink)!important;color:#fff!important}
html.hx[data-theme="dark"] #shell>main .schedule-scope-tabs button.active{background:var(--hx-brand)!important;border-color:var(--hx-brand)!important;color:var(--hx-brand-ink)!important}
html.hx #shell>main .schedule-scope-tabs button span{opacity:.7;font-weight:500}
html.hx #shell>main .schedule-summary{display:flex!important;gap:16px!important;margin-left:auto}
html.hx #shell>main .schedule-summary span{display:flex!important;align-items:baseline;gap:5px;background:none!important;padding:0!important;border:0!important}
html.hx #shell>main .schedule-summary b{font-family:var(--hx-display);font-size:22px!important;font-weight:750;color:var(--hx-text)!important}
html.hx #shell>main .schedule-summary small{color:var(--hx-muted)!important;font-size:13.5px!important}
html.hx #shell>main :is(.schedule-advanced,.schedule-share){margin:0 0 12px!important;padding:12px 16px!important;border-radius:var(--hx-r)!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;box-shadow:none!important}
html.hx #shell>main :is(.schedule-advanced,.schedule-share)[open]>summary{margin-bottom:12px}
html.hx #shell>main :is(.schedule-advanced,.schedule-share) .toolbar{margin:0!important;padding:0!important;border:0!important}
html.hx #shell>main .schedule-sheet-host{overflow-x:auto!important;border-radius:var(--hx-r-lg)!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:var(--hx-shadow)!important}
html.hx #shell>main .schedule-sheet{min-width:880px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.hx #shell>main .schedule-sheet .sheet-row{border-color:var(--hx-line)!important;background:transparent!important}
html.hx #shell>main .schedule-sheet :is(.sheet-cell,.sheet-time,.sheet-day-head,.sheet-time-head){border-color:var(--hx-line)!important;background:transparent!important}
html.hx #shell>main .schedule-sheet .sheet-head{background:var(--hx-raised)!important}
html.hx #shell>main .schedule-sheet .sheet-day-head{padding:12px!important}
html.hx #shell>main .schedule-sheet .sheet-day-head b{font-size:14px!important;font-weight:650!important;color:var(--hx-text)!important}
html.hx #shell>main .schedule-sheet .sheet-day-head span{color:var(--hx-muted)!important;font-size:12.5px!important}
html.hx #shell>main .schedule-sheet .is-today{background:color-mix(in srgb,var(--hx-brand) 5%,transparent)!important}
html.hx #shell>main .schedule-sheet .sheet-day-head.is-today{background:var(--hx-ink)!important}
html.hx #shell>main .schedule-sheet .sheet-day-head.is-today b{color:#fff!important}
html.hx #shell>main .schedule-sheet .sheet-day-head.is-today span{color:var(--hx-saffron)!important}
html.hx #shell>main .schedule-sheet :is(.sheet-time,.sheet-time-head){color:var(--hx-muted)!important;font-size:13px!important;font-variant-numeric:tabular-nums;font-weight:600}
html.hx #shell>main .schedule-sheet .sheet-time b{font-family:var(--hx-display);color:var(--hx-text)!important;font-size:15px!important}
html.hx #shell>main .sheet-lesson{
 position:relative!important;padding:10px 10px 10px 12px!important;border-radius:12px!important;border:1px solid var(--hx-brand-line)!important;
 background:var(--hx-brand-soft)!important;box-shadow:none!important;color:var(--hx-text)!important}
html.hx #shell>main .sheet-lesson.lesson-kind-practice{background:var(--hx-green-soft)!important;border-color:color-mix(in srgb,var(--hx-green) 30%,transparent)!important}
html.hx #shell>main .sheet-lesson.lesson-kind-seminar{background:var(--hx-saffron-soft)!important;border-color:color-mix(in srgb,var(--hx-saffron) 45%,transparent)!important}
html.hx #shell>main .sheet-lesson b{display:block;font-size:13.5px!important;font-weight:650!important;line-height:1.3;color:var(--hx-text)!important;margin:4px 0 2px}
html.hx #shell>main .sheet-lesson small{color:var(--hx-text-2)!important;font-size:12.5px!important}
html.hx #shell>main .sheet-lesson .sheet-kind{background:rgba(255,255,255,.7)!important;color:var(--hx-text)!important;min-height:20px;padding:1px 8px!important;font-size:11.5px!important}
html.hx[data-theme="dark"] #shell>main .sheet-lesson .sheet-kind{background:rgba(0,0,0,.25)!important}
html.hx #shell>main .sheet-room{font-size:12px!important;color:var(--hx-text-2)!important}
html.hx #shell>main .sheet-actions{display:flex!important;gap:4px!important;margin-top:8px!important}
html.hx #shell>main .sheet-actions button{min-height:30px!important;padding:0 10px!important;font-size:12.5px!important;border-radius:9px!important}

/* ==========================================================================
   VIDEOS
   ========================================================================== */
html.hx #shell>main .video-section-head{display:flex!important;align-items:flex-end;justify-content:space-between;margin:8px 0 14px!important}
html.hx #shell>main .video-section-head h2{font-family:var(--hx-display)!important;font-size:21px!important;font-weight:700!important;letter-spacing:-.02em;margin:0!important}
html.hx #shell>main .video-section-head small{color:var(--hx-muted)!important;font-size:14px!important}
html.hx #shell>main .video-horizontal-scroll{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(280px,320px)!important;gap:16px!important;overflow-x:auto!important;padding:2px 2px 14px!important;margin:0 0 20px!important;scroll-snap-type:x mandatory}
html.hx #shell>main .video-card{
 display:flex!important;flex-direction:column!important;min-width:0!important;padding:0!important;overflow:hidden!important;scroll-snap-align:start;
 border-radius:var(--hx-r-lg)!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:var(--hx-shadow)!important;transition:transform .2s var(--hx-ease),box-shadow .2s}
html.hx #shell>main .video-card:hover{transform:translateY(-2px);box-shadow:var(--hx-shadow-pop)!important}
html.hx #shell>main .video-cover{position:relative!important;display:block!important;width:100%!important;aspect-ratio:16/9;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--hx-ink)!important;overflow:hidden!important;min-height:0!important}
html.hx #shell>main .video-cover img{width:100%!important;height:100%!important;object-fit:cover!important;display:block;border-radius:0!important}
html.hx #shell>main .play-badge{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:52px!important;height:52px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:var(--hx-ink)!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important;border:0!important}
html.hx #shell>main .recommend-badge{position:absolute!important;left:12px!important;top:12px!important;background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #shell>main .video-card-body{display:flex!important;flex-direction:column!important;gap:8px!important;padding:16px!important;flex:1}
html.hx #shell>main .video-card-top{display:flex!important;justify-content:space-between;gap:8px;color:var(--hx-brand)!important;font-size:13px!important;font-weight:600}
html.hx #shell>main .video-card-top small{color:var(--hx-muted)!important;font-weight:500}
html.hx #shell>main .video-card h2{font-family:var(--hx-display)!important;font-size:17px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.02em!important;margin:0!important}
html.hx #shell>main .video-card p{margin:0!important;color:var(--hx-muted)!important;font-size:14px!important;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html.hx #shell>main .video-footer{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:auto!important;padding-top:10px!important;border-top:1px solid var(--hx-line)!important}
html.hx #shell>main .video-footer>small{flex:1 1 100%!important;min-width:0;display:flex;align-items:center;gap:6px;color:var(--hx-muted)!important;font-size:13px!important;white-space:normal!important}
html.hx #shell>main .video-footer>div{display:flex!important;flex-wrap:wrap;gap:4px!important}
html.hx #shell>main .video-footer button{min-height:32px!important;padding:0 10px!important;font-size:13px!important}
html.hx #shell>main .video-card-grid{display:grid!important;grid-template-columns:1fr!important;gap:20px!important}
html.hx #shell>main .video-course-path{padding:22px!important}
html.hx #shell>main .video-course-path-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px!important;padding:0!important;border:0!important;background:none!important}
html.hx #shell>main .video-course-path-head h2{font-size:20px!important;margin:0!important}
html.hx #shell>main .video-course-path-head>span{padding:4px 12px;border-radius:999px;background:var(--hx-brand-soft);color:var(--hx-brand-strong);font-size:13px;font-weight:600}
html.hx #shell>main .learning-module{margin:0 0 12px!important;padding:0!important;border:0!important;background:none!important}
html.hx #shell>main .learning-module-head{margin:0 0 8px!important;padding:0!important;background:none!important;border:0!important}
html.hx #shell>main .learning-module-head b{font-size:13.5px!important;font-weight:650!important;color:var(--hx-muted)!important}
html.hx #shell>main .learning-topic-list{display:grid!important;gap:8px!important;position:relative}
html.hx #shell>main .learning-topic{
 display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;
 padding:14px!important;border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-raised)!important;box-shadow:none!important}
html.hx #shell>main .learning-topic-order{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:12px 12px 12px 4px!important;background:var(--hx-ink)!important;color:#fff!important;font-family:var(--hx-display);font-weight:700;font-size:16px!important;border:0!important}
html.hx #shell>main .learning-topic-main small{color:var(--hx-muted)!important;font-size:12.5px!important}
html.hx #shell>main .learning-topic-main h3{font-size:16px!important;font-weight:700!important;margin:2px 0 4px!important;letter-spacing:-.015em}
html.hx #shell>main .learning-topic-main p{margin:0 0 8px!important;color:var(--hx-muted)!important;font-size:13.5px!important}
html.hx #shell>main .topic-progress{height:6px!important;border-radius:3px!important;background:var(--hx-sunken)!important;overflow:hidden;margin-top:8px!important;border:0!important}
html.hx #shell>main .topic-progress i{display:block;height:100%;border-radius:3px;background:var(--hx-brand)!important}
html.hx #shell>main .learning-topic-actions{display:flex!important;flex-direction:column!important;gap:6px!important;align-items:stretch}

/* Watch page */
html.hx #shell>main .video-watch-head{display:flex!important;align-items:center;gap:16px;margin:0 0 20px!important}
html.hx #shell>main .video-watch-head h1{font-size:26px!important;margin:0!important}
html.hx #shell>main .video-watch-head p{margin:2px 0 0!important;color:var(--hx-muted)!important}
html.hx #shell>main .watch-layout{gap:20px!important}
html.hx #shell>main .watch-player{border-radius:var(--hx-r-lg)!important;overflow:hidden!important;background:#000!important}
html.hx #shell>main .watch-info h2{font-size:22px!important}

/* ==========================================================================
   COURSES
   ========================================================================== */
html.hx #shell>main #courseList.tg-course-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important;gap:14px!important;background:none!important;border:0!important;padding:0!important}
html.hx #shell>main #courseList.tg-course-list>.tg-course-row{
 position:relative!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:14px!important;align-items:start!important;
 padding:18px!important;margin:0!important;border-radius:var(--hx-r-lg)!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:var(--hx-shadow)!important;min-height:0!important}
html.hx #shell>main #courseList.tg-course-list>.tg-course-row:hover{border-color:var(--hx-brand-line)!important}
html.hx #shell>main .tg-course-avatar{width:48px!important;height:48px!important;display:grid!important;place-items:center!important;border-radius:14px 14px 14px 4px!important;background:var(--hx-brand-soft)!important;color:var(--hx-brand)!important;font-size:20px!important;border:0!important}
html.hx #shell>main #courseList .tg-course-row:nth-child(4n+2) .tg-course-avatar{background:var(--hx-saffron-soft)!important;color:var(--hx-saffron-ink)!important}
html.hx #shell>main #courseList .tg-course-row:nth-child(4n+3) .tg-course-avatar{background:var(--hx-green-soft)!important;color:var(--hx-green-ink)!important}
html.hx #shell>main #courseList .tg-course-row:nth-child(4n+4) .tg-course-avatar{background:color-mix(in srgb,var(--hx-lavender) 22%,var(--hx-surface))!important;color:var(--hx-text)!important}
html.hx #shell>main .tg-course-info h2{font-family:var(--hx-display)!important;font-size:17px!important;font-weight:700!important;line-height:1.25!important;margin:2px 0 6px!important;letter-spacing:-.02em!important}
html.hx #shell>main .tg-course-info p{display:flex!important;flex-wrap:wrap;gap:6px!important;margin:0!important}
html.hx #shell>main .tg-course-info p span{padding:2px 9px;border-radius:8px;background:var(--hx-sunken);color:var(--hx-text-2);font-size:12.5px;font-weight:550}
html.hx #shell>main .tg-course-open{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important}

/* Course detail & resource blocks (rendered by course-plan-ui / coursework-ui) */
html.hx #shell>main .course-topic-card{border-radius:var(--hx-r-lg)!important}
html.hx #shell>main .course-topic-card .course-topic-item{padding:12px 4px!important}

/* ==========================================================================
   ANALYTICS, REPORTS, USERS, STRUCTURE
   ========================================================================== */
html.hx #shell>main .analytics-grid,html.hx #shell>main .report-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))!important;gap:20px!important}
html.hx #shell>main .analytics-wide{grid-column:1/-1}
html.hx #shell>main .bar-chart{gap:8px!important}
html.hx #shell>main .bar-chart :is(.bar,i,.bar-fill){background:var(--hx-brand)!important;border-radius:6px!important}
html.hx #shell>main .rank-list>*{border-color:var(--hx-line)!important}
html.hx #shell>main :is(.cards,.program-grid,.faculty-showcase,.ecosystem-grid){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))!important;gap:14px!important}
html.hx #shell>main :is(.cards,.program-grid,.faculty-showcase,.ecosystem-grid)>*{border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-raised)!important;box-shadow:none!important;padding:16px!important}
html.hx #shell>main .timeline>*{border-color:var(--hx-line)!important}
html.hx #shell>main .online-list>*{border-radius:var(--hx-r-sm)!important}
html.hx #shell>main .university-hero{
 position:relative;overflow:hidden;display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important;gap:28px!important;align-items:end;
 margin:0 0 20px!important;padding:32px!important;border-radius:var(--hx-r-lg)!important;background:var(--hx-ink)!important;color:var(--hx-ink-text)!important;border:0!important;box-shadow:none!important}
html.hx #shell>main .university-hero h2{color:#fff!important;font-size:clamp(24px,2.4vw,34px)!important;line-height:1.1!important;letter-spacing:-.03em!important;margin:0 0 10px!important}
html.hx #shell>main .university-hero p{color:var(--hx-ink-muted)!important;font-size:15px!important;margin:0!important}
html.hx #shell>main .university-hero .uni-kicker{color:var(--hx-saffron)!important}
html.hx #shell>main .uni-detail-list>div,html.hx #shell>main .uni-people>div{border-color:var(--hx-line)!important}
html.hx #shell>main .install-steps>div b{background:var(--hx-ink)!important;color:#fff!important;border-radius:10px 10px 10px 3px!important}

/* Profile */
html.hx #shell>main .profile-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:20px!important;align-items:start}

/* Editor page */
html.hx #shell>main .editor-page-head{display:flex!important;align-items:flex-start;gap:16px;margin:0 0 20px!important}
html.hx #shell>main .editor-page-head h1{font-size:28px!important;margin:0!important;letter-spacing:-.03em}
html.hx #shell>main .editor-page-head p{color:var(--hx-muted)!important;margin:6px 0 0!important}
html.hx #shell>main .editor-card{max-width:880px;padding:28px!important}
html.hx #shell>main .editor-fields{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:16px!important}
html.hx #shell>main .editor-actions{display:flex!important;justify-content:flex-end;gap:10px!important;margin-top:24px!important;padding-top:20px!important;border-top:1px solid var(--hx-line)!important}

/* Global search */
html.hx #shell>main .global-search-form{display:flex!important;align-items:center;gap:10px!important;padding:8px 8px 8px 16px!important;border-radius:var(--hx-r-lg)!important;background:var(--hx-surface)!important;border:1.5px solid var(--hx-line-strong)!important;box-shadow:var(--hx-shadow)!important;margin:0 0 14px!important}
html.hx #shell>main .global-search-form:focus-within{border-color:var(--hx-brand)!important;box-shadow:var(--hx-ring)!important}
html.hx #shell>main .global-search-form input{flex:1;border:0!important;box-shadow:none!important;min-height:48px!important;font-size:17px!important;padding:0!important;background:transparent!important}
html.hx #shell>main .global-search-magnifier{color:var(--hx-muted);font-size:20px}

/* ==========================================================================
   LIVE CLASSROOM — colour & controls only. Geometry stays with
   mobile-ui-compact.css / live-classroom-2026.css (tested behaviour).
   ========================================================================== */
html.hx:not(.video-cinema-fallback) #lesson .video-stage,html.hx:not(.video-cinema-fallback) #lesson .video-mount{background:#070b1c!important}
html.hx #lesson .video-placeholder{color:var(--hx-ink-muted)!important}
html.hx #lesson .video-placeholder b{color:#fff!important;font-family:var(--hx-display)}
html.hx #lesson .conference-controls.zoom-dock{background:var(--hx-ink)!important;border-color:var(--hx-ink-3)!important}
html.hx #lesson .zoom-control{border-radius:14px!important;color:var(--hx-ink-text)!important;background:rgba(255,255,255,.07)!important;border:0!important}
html.hx #lesson .zoom-control:hover{background:rgba(255,255,255,.14)!important}
html.hx #lesson .zoom-control.active,html.hx #lesson .zoom-control[aria-pressed="true"]{background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #lesson .zoom-control.danger{background:var(--hx-coral)!important;color:#fff!important}
html.hx #lesson .control-badge{background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #lesson .lesson-side{background:var(--hx-surface)!important;border-color:var(--hx-line)!important;color:var(--hx-text)!important}
html.hx #lesson .lesson-side-tabs button.active{background:var(--hx-brand)!important;color:var(--hx-brand-ink)!important;border-color:var(--hx-brand)!important}
html.hx #lesson .live-more-panel{background:var(--hx-ink-2)!important;border-color:var(--hx-ink-3)!important;border-radius:var(--hx-r)!important}
html.hx #lesson .live-more-panel button{color:var(--hx-ink-text)!important;border-radius:12px!important}
html.hx #lesson .raised-hand-alert{background:var(--hx-saffron)!important;color:var(--hx-ink)!important;border-radius:var(--hx-r)!important}

/* ==========================================================================
   TOAST, DIALOGS, POPOVERS
   ========================================================================== */
html.hx #toast{font-family:var(--hx-font)!important}
html.hx #toast{max-width:min(440px,calc(100vw - 32px));z-index:200!important;transform:translateY(8px);transition:opacity .2s,transform .2s var(--hx-ease)!important}
html.hx #toast.show{transform:none}
@media (max-width:900px){html.hx #toast{left:16px!important;right:16px!important;bottom:calc(88px + env(safe-area-inset-bottom))!important;max-width:none}}
html.hx #toast{
 background:var(--hx-ink)!important;color:#fff!important;border-radius:14px!important;padding:12px 18px!important;font-size:14.5px!important;font-weight:550!important;
 box-shadow:var(--hx-shadow-pop)!important;border:1px solid var(--hx-ink-3)!important}
html.hx dialog{border:1px solid var(--hx-line)!important;border-radius:var(--hx-r-lg)!important;background:var(--hx-surface)!important;color:var(--hx-text)!important;box-shadow:var(--hx-shadow-pop)!important;padding:24px!important}
html.hx dialog::backdrop{background:rgba(10,15,36,.55);backdrop-filter:blur(2px)}
html.hx .modal-head h2{font-size:20px!important;margin:0!important}

/* ==========================================================================
   MOBILE TAB BAR + responsive shell
   ========================================================================== */
html.hx .hx-tabbar{display:none}
@media (max-width:900px){
 html.hx{--hx-head:52px}
 html.hx:not(.video-cinema-fallback) #shell>header{
  height:52px!important;padding:0 10px!important;gap:8px!important;
  background:var(--hx-ink)!important;border-bottom:0!important;color:#fff!important}
 html.hx #shell>header #menuBtn#menuBtn{display:inline-grid!important;flex:none;background:transparent!important;border-color:transparent!important;color:#fff!important}
 html.hx #shell>header .brand{width:auto;flex:1 1 auto;min-width:0;padding:0!important;border:0;gap:10px!important}
 html.hx #shell>header .brand-mark{width:32px!important;height:32px!important;font-size:12px!important;border-radius:10px 10px 10px 3px!important}
 html.hx #shell>header .brand b{font-size:15px!important}
 html.hx #shell>header .brand small{font-size:12px!important}
 html.hx #shell>header :is(.icon-btn,#menuBtn):not(.hidden){background:transparent!important;border-color:transparent!important;color:#fff!important}
 html.hx #shell>header :is(.icon-btn,#menuBtn):hover{background:rgba(255,255,255,.1)!important}
 html.hx #shell>header .global-search-trigger{padding:0!important;width:40px!important}
 html.hx #shell>header .global-search-trigger::after{content:none}
 html.hx #shell>header .profile-head{padding:0!important;width:40px;max-width:40px!important;justify-content:center;background:transparent!important;border:0!important}
 html.hx #shell>header #headerName,html.hx #shell>header #onlineBadge{display:none!important}
 html.hx #shell>header .profile-dot{width:30px;height:30px}
 html.hx #sidebar{
  position:fixed!important;left:0!important;top:0!important;bottom:0!important;height:100dvh!important;width:min(86vw,300px)!important;
  padding:calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom))!important;
  transform:translateX(-104%)!important;transition:transform .25s var(--hx-ease)!important;z-index:120!important;box-shadow:24px 0 60px rgba(7,11,28,.35)!important}
 html.hx #sidebar.open{transform:translateX(0)!important}
 html.hx .sidebar-backdrop.show{background:rgba(7,11,28,.5)!important;z-index:110!important}
 html.hx:not([data-page="lesson"]) #shell>main{padding:20px 16px calc(96px + env(safe-area-inset-bottom))!important}
 html.hx #shell>main .page:not(#lesson)>.page-head{margin-bottom:18px!important;align-items:flex-start!important}
 html.hx #shell>main .page:not(#lesson)>.page-head h1{font-size:25px!important}
 html.hx #shell>main .page:not(#lesson)>.page-head p{font-size:14.5px!important}
 html.hx #shell>main :is(article,.audit-card,.video-course-path){padding:16px!important;border-radius:var(--hx-r)!important}
 html.hx #shell>main :is(.stats,.live-summary){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html.hx #shell>main :is(.stats>*,.live-summary>div){min-height:92px;padding:14px!important;border-radius:var(--hx-r)!important}
 html.hx #shell>main :is(.stats>*,.live-summary>div) b{font-size:27px!important}
 html.hx #shell>main :is(.stats>*,.live-summary>div) :is(span,small){font-size:13px!important}
 html.hx #shell>main .edu-banner{padding:16px 16px 16px 16px!important;min-height:0}
 html.hx #shell>main .edu-banner::after{width:84px;height:21px;top:14px;right:14px;transform:none;opacity:.9}
 html.hx #shell>main .edu-banner>div{padding-right:70px}
 html.hx #shell>main .lesson-row{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important}
 html.hx #shell>main .lesson-row:has(>.lesson-time){grid-template-columns:62px minmax(0,1fr)!important}
 html.hx #shell>main .lesson-time{padding-right:10px!important}
 html.hx #shell>main .lesson-time b{font-size:16px!important}
 html.hx #shell>main .row-actions{grid-column:1/-1;justify-content:stretch}
 html.hx #shell>main .row-actions>*{flex:1 1 auto}
 html.hx #shell>main #liveRooms.live-room-grid{grid-template-columns:1fr!important;gap:14px!important}
 html.hx #shell>main #liveRooms .live-section{padding:14px!important}
 html.hx #shell>main .learning-topic{grid-template-columns:36px minmax(0,1fr)!important}
 html.hx #shell>main .learning-topic-order{width:36px!important;height:36px!important}
 html.hx #shell>main .learning-topic-actions{grid-column:1/-1;flex-direction:row!important}
 html.hx #shell>main .learning-topic-actions>*{flex:1}
 html.hx #shell>main .profile-grid,html.hx #shell>main .university-hero{grid-template-columns:1fr!important}
 html.hx #shell>main .schedule-summary{margin-left:0}
 html.hx #shell>main .tabs,html.hx #shell>main .coursework-workspace-tabs{display:flex!important;overflow-x:auto;flex-wrap:nowrap!important}
 html.hx #shell>main :is(.tabs,.coursework-workspace-tabs)>button{flex:none}

 html.hx .hx-tabbar{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:90;
  height:64px;padding:6px;border-radius:22px;background:var(--hx-surface);border:1px solid var(--hx-line);
  box-shadow:0 1px 0 rgba(15,21,55,.03),0 16px 40px -12px rgba(15,21,55,.3)}
 html.hx .hx-tabbar button{
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;height:52px;padding:0!important;margin:0!important;
  border:0!important;border-radius:16px!important;background:transparent!important;color:var(--hx-muted)!important;font:600 11.5px/1.1 var(--hx-font)!important;box-shadow:none!important}
 html.hx .hx-tabbar button.hidden{display:none!important}
 html.hx .hx-tabbar button.active{background:var(--hx-brand-soft)!important;color:var(--hx-brand)!important}
 html.hx .hx-tabbar [data-ico]{display:grid;place-items:center;height:22px}
 html.hx .hx-tabbar .ui-icon{width:22px;height:22px}
 html.hx .hx-tabbar span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 /* the classroom has its own control dock; videos keep the full viewport */
 html.hx:is([data-page="lesson"],[data-page="editor"]) .hx-tabbar,html.hx #shell.hidden~.hx-tabbar,html.hx #shell.hidden .hx-tabbar{display:none!important}
}
@media (max-width:900px) and (orientation:landscape) and (max-height:520px){
 html.hx .hx-tabbar{display:none!important}
}

/* Keep the classroom's tested viewport geometry: on the lesson page the
   main padding belongs to mobile-ui-compact.css / live-classroom-2026.css. */
html.hx[data-page="lesson"] #shell>main>.page{max-width:none}

/* ==========================================================================
   Accessibility & performance preferences
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
 html.hx *,html.hx *::before,html.hx *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
html.hx.low-end-device #shell>main .video-card:hover{transform:none}
html.hx.ultra-lite-device *{animation:none!important}
html.hx.inclusive-mode body{font-size:16px!important}
@media print{
 html.hx #sidebar,html.hx #shell>header,html.hx .hx-tabbar{display:none!important}
 html.hx #shell>main{padding:0!important}
 html.hx #shell>main :is(article,.audit-card){box-shadow:none!important;break-inside:avoid}
}

/* ---- refinements after first visual pass ---- */
html.hx #shell>main :is(.video-card-top,.learning-topic-main small,.video-course-path-head small,.live-section-head small){text-transform:none!important;letter-spacing:0!important}
html.hx #shell>main #dashboard>.grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)!important}
@media (max-width:1100px){html.hx #shell>main #dashboard>.grid{grid-template-columns:1fr!important}}
html.hx #shell>main .coursework-workspace-tabs{width:auto!important;flex-wrap:nowrap!important;overflow-x:auto}
html.hx #shell>main .coursework-workspace-tabs>button{flex:none!important;width:auto!important}
html.hx #shell>main .coursework-pane-intro{padding:0!important;border:0!important;background:none!important}
html.hx #shell>main .tg-course-avatar{font-size:0!important}
html.hx #shell>main .tg-course-avatar::before{content:"";width:22px;height:22px;background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5Z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5M8 7.5h8'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5Z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5M8 7.5h8'/%3E%3C/svg%3E") center/contain no-repeat}

/* Users */
html.hx #shell>main .user-card-list{display:grid!important;gap:8px!important}
html.hx #shell>main .user-card{border-radius:var(--hx-r)!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:none!important;overflow:hidden}
html.hx #shell>main .user-card[open]{border-color:var(--hx-brand-line)!important;box-shadow:var(--hx-shadow)!important}
html.hx #shell>main .user-card>summary{display:flex!important;align-items:center!important;gap:14px!important;padding:12px 16px!important;background:transparent!important;list-style:none;cursor:pointer}
html.hx #shell>main .user-card>summary::-webkit-details-marker{display:none}
html.hx #shell>main .user-card>summary:hover{background:var(--hx-raised)!important}
html.hx #shell>main .user-avatar{width:42px!important;height:42px!important;flex:none;display:grid!important;place-items:center;border-radius:50%!important;background:var(--hx-brand-soft)!important;color:var(--hx-brand-strong)!important;font-family:var(--hx-display);font-weight:700!important;font-size:16px!important;border:0!important}
html.hx[data-theme="dark"] #shell>main .user-avatar{color:var(--hx-brand)!important}
html.hx #shell>main .user-card-main{flex:1;min-width:0}
html.hx #shell>main .user-card-main>b{font-size:15px!important;font-weight:650!important;color:var(--hx-text)!important}
html.hx #shell>main .user-card-main>span{display:block;color:var(--hx-muted)!important;font-size:13.5px!important}
html.hx #shell>main .user-quick-meta{display:flex!important;flex-wrap:wrap;gap:6px!important;margin-top:6px!important}
html.hx #shell>main .user-quick-meta>span{padding:2px 9px!important;border-radius:8px!important;background:var(--hx-sunken)!important;color:var(--hx-text-2)!important;font-size:12.5px!important;border:0!important}
html.hx #shell>main .user-card .status{padding:3px 10px!important;border-radius:999px!important;font-size:12.5px!important;font-weight:600!important;border:0!important}
html.hx #shell>main .user-card .status.ok{background:var(--hx-green-soft)!important;color:var(--hx-green-ink)!important}
html.hx #shell>main .user-card .status:not(.ok){background:var(--hx-coral-soft)!important;color:var(--hx-coral-ink)!important}
html.hx #shell>main .user-card>summary>i{font-style:normal;color:var(--hx-muted);transition:transform .2s}
html.hx #shell>main .user-card[open]>summary>i{transform:rotate(180deg)}
html.hx #shell>main .user-card-details{padding:4px 16px 16px!important;border-top:1px solid var(--hx-line)!important;background:transparent!important}
html.hx #shell>main .user-facts{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))!important;gap:10px!important;margin:12px 0!important}
html.hx #shell>main .user-facts>span{padding:10px 12px!important;border-radius:var(--hx-r-sm)!important;background:var(--hx-raised)!important;border:1px solid var(--hx-line)!important}
html.hx #shell>main .user-facts small{display:block;color:var(--hx-muted)!important;font-size:12px!important}
html.hx #shell>main .user-facts b{font-size:14px!important;color:var(--hx-text)!important}
html.hx #shell>main .schedule-summary :is(small,span){text-transform:none!important;letter-spacing:0!important}

/* Visibility toggles always win over component display rules */
html.hx.hx.hx :is(#shell,#login) :is(.hidden,[hidden]),html.hx.hx.hx #shell>header .hidden{display:none!important}

/* Classroom page: keep the stage tall — compact head, full-width main */
@media (min-width:901px){
 html.hx:not(.video-cinema-fallback)[data-page="lesson"] #shell>main{width:100%!important;max-width:none!important;margin:0!important;padding:12px 16px!important}
}
@media (min-width:901px){
 html.hx #shell>main #lesson .page-head{margin:0 0 8px!important;align-items:center!important;gap:8px 12px!important}
 html.hx #shell>main #lesson .page-head h1{font-size:20px!important;letter-spacing:-.02em!important;font-family:var(--hx-display)!important}
 html.hx #shell>main #lesson .page-head p{margin:2px 0 0!important;font-size:13px!important;color:var(--hx-muted)!important}
 html.hx #shell>main #lesson .page-head>div:first-child{flex:1 1 200px}
}

/* Readability floor for module-rendered boards (course plan, journals,
   grades, history, exams, search). Legacy layers set 9–11px text here. */
html.hx #shell>main :is(#courseDetail,#courseworkGradesBoard,#courseworkJournalBoard,#courseworkReportJournal,#teacherGradesPage,#studentGradesPage,#lessonHistoryBoard,#remoteExamHub,#finalExamList,#finalExamDetail,#curriculumDetail,#globalSearchResults,#studentScheduleGrades) :is(p,small,span,label,li,td,summary,dd,dt){font-size:13px!important;line-height:1.5!important}
html.hx #shell>main :is(#courseDetail,#courseworkGradesBoard,#courseworkJournalBoard,#courseworkReportJournal,#teacherGradesPage,#studentGradesPage,#lessonHistoryBoard,#remoteExamHub,#finalExamList,#finalExamDetail,#curriculumDetail,#globalSearchResults,#studentScheduleGrades) :is(b,strong,a,button,th){font-size:13.5px!important}
html.hx #shell>main :is(#courseDetail,#courseworkGradesBoard,#courseworkJournalBoard,#courseworkReportJournal,#teacherGradesPage,#studentGradesPage,#lessonHistoryBoard,#remoteExamHub,#finalExamList,#finalExamDetail,#curriculumDetail,#globalSearchResults,#studentScheduleGrades) :is(h2,h3){font-size:17px!important;letter-spacing:-.015em}
html.hx #shell>main #courseDetail :is(.course-topic-kind,.topic-move-label){font-size:11.5px!important;letter-spacing:0!important;text-transform:none!important}
html.hx #shell>main #courseDetail .course-topic-number{width:32px;height:32px;display:inline-grid!important;place-items:center;border-radius:10px 10px 10px 3px!important;background:var(--hx-ink)!important;color:#fff!important;font-family:var(--hx-display);font-weight:700;font-size:14px!important}
html.hx #shell>main #courseDetail .course-topic-kind{padding:2px 8px!important;border-radius:999px!important;background:var(--hx-brand-soft)!important;color:var(--hx-brand-strong)!important}

/* ==========================================================================
   LIVE CLASSROOM CONTROL DOCK (2026-10-14)
   One icon + one label per control, clear ON / OFF states, no glyph
   fallbacks or "OFF" stickers from older layers. Mobile keeps the 52px
   dock height that mobile-ui-compact.css budgets for the video stage.
   ========================================================================== */
html.hx #lesson .conference-controls.zoom-dock{background:#0b1030!important;border-top:1px solid rgba(255,255,255,.08)!important;border-radius:0 0 18px 18px!important;box-shadow:none!important}
html.hx #lesson .conference-controls .zoom-primary{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:stretch!important;gap:8px!important;overflow:visible!important}
html.hx #lesson .conference-controls .zoom-control{
 position:relative!important;flex:0 1 76px!important;min-width:0!important;width:auto!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
 height:58px!important;min-height:58px!important;max-height:58px!important;padding:6px 4px!important;margin:0!important;
 border:0!important;border-radius:16px!important;background:rgba(255,255,255,.07)!important;color:#e9ecfa!important;
 font:600 12px/1.1 var(--hx-font)!important;letter-spacing:0!important;box-shadow:none!important;transition:background-color .15s,color .15s,transform .1s}
html.hx #lesson .conference-controls .zoom-control:hover{background:rgba(255,255,255,.13)!important}
html.hx #lesson .conference-controls .zoom-control:active{transform:scale(.96)}
html.hx #lesson .conference-controls .zoom-control>span:first-child,
html.hx #lesson .conference-controls .zoom-control [data-ico]{position:relative!important;display:grid!important;place-items:center!important;width:24px!important;height:24px!important;min-width:24px!important;font-size:0!important;line-height:1!important;color:currentColor!important;opacity:1!important;visibility:visible!important}
html.hx #lesson .conference-controls .zoom-control [data-ico]::before{content:none!important;display:none!important}
html.hx #lesson .conference-controls .zoom-control [data-ico]>svg,html.hx #lesson .conference-controls .zoom-control .ui-icon{display:block!important;width:22px!important;height:22px!important}
html.hx #lesson .conference-controls .zoom-control>span:last-child:not(:first-child){display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px!important;font-weight:600!important;opacity:.92}
html.hx #lesson #callMic::after,html.hx #lesson #callCamera::after{content:none!important;display:none!important}
/* ON = live: bright; OFF = muted: coral tint + slash through the icon */
html.hx #lesson .conference-controls :is(#callMic,#callCamera).active-control{background:rgba(255,255,255,.16)!important;color:#fff!important}
html.hx #lesson .conference-controls :is(#callMic,#callCamera).is-off{background:rgba(229,72,59,.18)!important;color:#ffb3aa!important}
html.hx #lesson .conference-controls :is(#callMic,#callCamera).is-off [data-ico]::after{content:""!important;position:absolute;left:50%;top:50%;width:27px;height:2.5px;border-radius:2px;background:currentColor;box-shadow:0 0 0 2px #2a1430;transform:translate(-50%,-50%) rotate(-45deg)}
html.hx #lesson .conference-controls #callRaiseHand.active-control,html.hx #lesson .conference-controls #callMore.active-control,html.hx #lesson .conference-controls #callChat.active-control{background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #lesson .conference-controls #callHangup{background:var(--hx-coral)!important;color:#fff!important;flex-basis:84px!important}
html.hx #lesson .conference-controls #callHangup:hover{background:#cf3a2e!important}
html.hx #lesson .conference-controls .control-badge{position:absolute!important;top:4px!important;right:10px!important;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:var(--hx-saffron)!important;color:var(--hx-ink)!important;font:700 11px/1 var(--hx-font)!important;border:2px solid #0b1030}
html.hx #lesson .conference-controls .control-badge.hidden{display:none!important}
html.hx #lesson .conference-controls button.is-busy::before{inset:4px!important;border-radius:13px!important;border-color:rgba(255,255,255,.18)!important;border-top-color:#fff!important}
html.hx #lesson .zoom-status{gap:8px!important;color:#c8cdea!important}
html.hx #lesson .zoom-status>span{padding:3px 10px!important;border-radius:999px!important;background:rgba(255,255,255,.07)!important;font:600 12px/1.4 var(--hx-font)!important;font-variant-numeric:tabular-nums}
html.hx #lesson .network-quality.good{color:#8de8c4!important}
html.hx #lesson .network-quality.mid{color:#ffd27a!important}
html.hx #lesson .network-quality.bad{color:#ffb3aa!important}
html.hx #lesson .lesson-time-left.warning{background:rgba(255,182,39,.2)!important;color:#ffd27a!important}
/* "Yana" sheet */
html.hx #lesson #liveMorePanel{background:#121937!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:20px!important;box-shadow:0 24px 60px rgba(0,0,0,.5)!important;padding:10px!important}
html.hx #lesson #liveMorePanel .more-grid{gap:6px!important}
html.hx #lesson #liveMorePanel .more-grid>:is(button,label){min-height:64px!important;border-radius:14px!important;background:rgba(255,255,255,.06)!important;border:0!important;color:#e9ecfa!important;font:600 12px/1.2 var(--hx-font)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:8px 4px!important;text-align:center}
html.hx #lesson #liveMorePanel .more-grid>button:hover{background:rgba(255,255,255,.12)!important}
html.hx #lesson #liveMorePanel .more-grid>button.active-control{background:var(--hx-saffron)!important;color:var(--hx-ink)!important}
html.hx #lesson #liveMorePanel .more-grid>button>span:first-child{font-size:18px!important;line-height:1!important}
html.hx #lesson #liveMorePanel select{background:#0b1030!important;color:#fff!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:9px!important}
/* Chat */
html.hx #lesson #messages .chat-msg{max-width:88%;margin:0 0 8px!important;padding:8px 12px 6px!important;border-radius:4px 14px 14px 14px;background:var(--hx-sunken);color:var(--hx-text);font-size:14px;line-height:1.4;word-wrap:break-word}
html.hx #lesson #messages .chat-msg b{font-size:12.5px;color:var(--hx-brand)}
html.hx #lesson #messages .chat-msg time{display:block;margin-top:2px;font-size:11px;color:var(--hx-muted);text-align:right}
html.hx #lesson #messages .chat-msg.mine{margin-left:auto!important;border-radius:14px 4px 14px 14px;background:var(--hx-brand-soft)}
html.hx #lesson #attendanceSave.needs-save{box-shadow:0 0 0 3px rgba(255,182,39,.55)!important}
@media (max-width:900px){
 html.hx #lesson .conference-controls.zoom-dock{border-radius:0 0 14px 14px!important}
 html.hx #lesson .conference-controls .zoom-primary{gap:4px!important;justify-content:space-between!important}
 html.hx #lesson .conference-controls .zoom-control{flex:1 1 0!important;height:44px!important;min-height:44px!important;max-height:44px!important;gap:2px!important;padding:3px 2px!important;border-radius:12px!important}
 html.hx #lesson .conference-controls .zoom-control>span:first-child,html.hx #lesson .conference-controls .zoom-control [data-ico]{width:20px!important;height:20px!important;min-width:20px!important}
 html.hx #lesson .conference-controls .zoom-control [data-ico]>svg,html.hx #lesson .conference-controls .zoom-control .ui-icon{width:19px!important;height:19px!important}
 html.hx #lesson .conference-controls .zoom-control>span:last-child:not(:first-child){font-size:10px!important}
 html.hx #lesson .conference-controls :is(#callMic,#callCamera).is-off [data-ico]::after{width:23px}
 html.hx #lesson .conference-controls #callHangup{flex:1.15 1 0!important}
 html.hx #lesson .conference-controls .control-badge{top:1px!important;right:4px!important;min-width:16px;height:16px;font-size:10px!important}
}

/* ==========================================================================
   STUDENT CLASSROOM: teacher video on top, lesson chat always open below
   (phone portrait), chat column beside the video (tablet / desktop).
   Teachers keep the drawer with attendance + chat. The fullscreen fallback
   and phone landscape keep the legacy video-first layout.
   ========================================================================== */
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .conference-shell{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;grid-template-rows:minmax(0,1fr) auto!important;
 gap:10px!important;height:calc(100dvh - var(--hx-head) - 100px)!important;min-height:420px!important;max-height:none!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .conference-main{display:contents!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .video-stage{grid-column:1!important;grid-row:1!important;min-height:0!important;height:auto!important;max-height:none!important;border-radius:18px 18px 0 0!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .conference-controls.zoom-dock{grid-column:1!important;grid-row:2!important;margin:-10px 0 0!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonStudentRail{display:none!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonDrawerBackdrop{display:none!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonDrawer.lesson-side{
 grid-column:2!important;grid-row:1/3!important;position:relative!important;inset:auto!important;transform:none!important;pointer-events:auto!important;visibility:visible!important;opacity:1!important;
 width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;z-index:1!important;
 display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;
 border-radius:18px!important;border:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;box-shadow:var(--hx-shadow)!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonDrawer :is(.lesson-drawer-head,.lesson-side-tabs,#teacherQuickControls,#participantsPanel){display:none!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonChatPanel{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonChatPanel>h2{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:12px 16px!important;border-bottom:1px solid var(--hx-line)!important;font-size:15px!important;font-weight:700!important;color:var(--hx-text)!important;background:var(--hx-raised)!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonChatPanel>h2::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--hx-green)}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #messages{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;padding:12px 12px 4px!important;background:transparent!important;display:flex!important;flex-direction:column!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #messages:empty::before{content:"Savolingizni shu yerga yozing. Xabarlarni o‘qituvchi va guruh ko‘radi.";margin:auto;max-width:240px;text-align:center;color:var(--hx-muted);font-size:13.5px;line-height:1.5}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm{display:flex!important;gap:8px!important;align-items:center!important;padding:10px!important;margin:0!important;border-top:1px solid var(--hx-line)!important;background:var(--hx-surface)!important;position:static!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm input{flex:1 1 auto!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 16px!important;border-radius:999px!important;border:1.5px solid var(--hx-line-strong)!important;background:var(--hx-raised)!important;color:var(--hx-text)!important;font:15px var(--hx-font)!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm input:focus{border-color:var(--hx-brand)!important;box-shadow:var(--hx-ring)!important;outline:none!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm button{flex:none!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;border:0!important;display:grid!important;place-items:center!important;background:var(--hx-brand)!important;color:var(--hx-brand-ink)!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #callChat .control-badge{display:none!important}
@media (max-width:900px) and (orientation:portrait){
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .conference-shell{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:8px!important;
  height:calc(100dvh - 112px - env(safe-area-inset-bottom))!important;min-height:0!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .video-stage{grid-column:1!important;grid-row:1!important;aspect-ratio:16/10!important;height:auto!important;max-height:42dvh!important;flex:none!important;border-radius:16px!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonDrawer.lesson-side{grid-column:1!important;grid-row:2!important;border-radius:16px!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .conference-controls.zoom-dock{grid-column:1!important;grid-row:3!important;margin:0!important;border-radius:16px!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #lessonChatPanel>h2{padding:9px 14px!important;font-size:14px!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm{padding:8px!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm input{height:42px!important;min-height:42px!important}
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #chatForm button{width:42px!important;height:42px!important;min-height:42px!important}
}
@media (max-width:900px) and (orientation:landscape){
 html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson .conference-shell{grid-template-columns:minmax(0,1fr) minmax(240px,300px)!important;height:calc(100dvh - 60px)!important;min-height:0!important}
}

/* ==========================================================================
   FULLSCREEN (native :fullscreen on .ms-grid and the iOS cinema fallback)
   Black stage, auto-hiding top bar (title · live · time left · exit),
   teacher picture-in-picture moved to the bottom-right corner.
   ========================================================================== */
.ms-fs-bar{display:none}
:is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen,html.video-cinema-fallback .ms-grid.fullscreen-video-grid) .ms-fs-bar{
 display:flex;position:absolute;left:0;right:0;top:0;z-index:30;align-items:center;justify-content:space-between;gap:12px;
 padding:max(14px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 40px max(16px,env(safe-area-inset-left));
 background:linear-gradient(to bottom,rgba(5,8,22,.78),rgba(5,8,22,0));color:#fff;font-family:"Onest Hx","Onest",system-ui,sans-serif;
 opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
:is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen,html.video-cinema-fallback .ms-grid.fullscreen-video-grid).fs-ui-visible .ms-fs-bar{opacity:1;transform:none;pointer-events:auto}
.ms-fs-info{display:flex;align-items:center;gap:10px;min-width:0}
.ms-fs-live{flex:none;display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:999px;background:#e5483b;font-size:13px;font-weight:700}
.ms-fs-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:hxPulse 1.6s ease-out infinite}
.ms-fs-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:"Bricolage Hx","Onest Hx",system-ui,sans-serif;font-size:17px;font-weight:700;letter-spacing:-.01em;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.ms-fs-time{flex:none;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.ms-fs-time:empty{display:none}
.ms-fs-exit{flex:none;width:46px;height:46px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.ms-fs-exit:hover{background:rgba(255,255,255,.26)}
.ms-fs-exit:focus-visible{outline:2px solid #ffb627;outline-offset:2px}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.fullscreen-teacher-pip,
html.video-cinema-fallback #lesson #videoMount .ms-grid>.ms-tile.fullscreen-teacher-pip{
 top:auto!important;bottom:max(16px,env(safe-area-inset-bottom))!important;right:max(16px,env(safe-area-inset-right))!important;
 width:min(26vw,220px)!important;max-width:220px!important;border:2px solid rgba(255,255,255,.22)!important;border-radius:16px!important;
 box-shadow:0 12px 36px rgba(0,0,0,.55)!important}
:is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen) .ms-label{border-radius:999px!important;background:rgba(5,8,22,.6)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-family:"Onest Hx",system-ui,sans-serif!important}
/* stage corner "fullscreen" button: icon instead of the ⛶ glyph */
html.hx #lesson .ms-stage-fullscreen{width:40px!important;height:40px!important;padding:0!important;border:0!important;border-radius:12px!important;background:rgba(5,8,22,.55)!important;color:transparent!important;font-size:0!important;display:grid!important;place-items:center!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.hx #lesson .ms-stage-fullscreen::before{content:"";width:20px;height:20px;background:#fff;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9V3h6M21 9V3h-6M3 15v6h6M21 15v6h-6'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9V3h6M21 9V3h-6M3 15v6h6M21 15v6h-6'/%3E%3C/svg%3E") center/contain no-repeat}
html.hx #lesson .ms-stage-fullscreen:hover{background:rgba(5,8,22,.75)!important}
@media (prefers-reduced-motion:reduce){.ms-fs-bar{transition:none}.ms-fs-live::before{animation:none}}
/* fullscreen tiles: slim name pill (fades with the bar), no pin/mic clutter, teacher PiP always visible */
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.cinema-primary .ms-label,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.cinema-primary .ms-label{
 position:absolute!important;left:max(16px,env(safe-area-inset-left))!important;right:auto!important;bottom:max(16px,env(safe-area-inset-bottom))!important;top:auto!important;
 width:auto!important;max-width:min(70vw,520px)!important;height:auto!important;min-height:0!important;padding:6px 14px!important;margin:0!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;
 border-radius:999px!important;background:rgba(5,8,22,.62)!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
 color:#fff!important;font:600 13px/1.3 "Onest Hx",system-ui,sans-serif!important;opacity:0;transition:opacity .25s ease}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.cinema-primary .ms-label *,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.cinema-primary .ms-label *{font-size:13px!important;line-height:1.3!important;color:#fff!important;margin:0!important;text-align:left!important}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.cinema-primary .ms-label :is(small,span:not(:first-child)),
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.cinema-primary .ms-label :is(small,span:not(:first-child)){opacity:.7}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen).fs-ui-visible>.ms-tile.cinema-primary .ms-label,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid.fs-ui-visible>.ms-tile.cinema-primary .ms-label{opacity:1}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile :is(.ms-pin-btn,.ms-mic),
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile :is(.ms-pin-btn,.ms-mic){display:none!important}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.fullscreen-teacher-pip,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.fullscreen-teacher-pip{display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;left:auto!important;inset-inline-start:auto!important;z-index:25!important;aspect-ratio:16/9!important;height:auto!important;min-height:0!important;overflow:hidden!important}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.fullscreen-teacher-pip .ms-video,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.fullscreen-teacher-pip .ms-video{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>:is(.ms-stage-badge,.ms-stage-fullscreen,.ms-participant-strip,.ms-inline-self-stage,.ms-teacher-pip-stage){display:none!important}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.fullscreen-teacher-pip :is(.ms-label,.ms-avatar,.ms-pin-btn,.ms-mic),
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.fullscreen-teacher-pip :is(.ms-label,.ms-avatar,.ms-pin-btn,.ms-mic){display:none!important}

/* Stage (all roles): the primary video fills the whole stage; the legacy #videoMount grid squeezed it into a ~98px column on phones */
html.hx:not(.video-cinema-fallback) #lesson .video-stage{position:relative!important;overflow:hidden!important;background:#05081a!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:inherit!important;background:#05081a!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-inline-self-stage.is-visible{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#05081a!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-inline-self-stage.is-visible video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#05081a!important;border-radius:0!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-inline-self-stage .ms-inline-self-label{position:absolute!important;left:10px!important;bottom:10px!important;top:auto!important;right:auto!important;width:auto!important;max-width:70%!important;padding:4px 12px!important;border-radius:999px!important;background:rgba(5,8,22,.62)!important;color:#fff!important;font:600 12.5px/1.3 var(--hx-font)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-grid{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-stage-badge{z-index:21!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-stage-fullscreen{z-index:22!important}

/* ==========================================================================
   TEACHER STUDENT RAIL: live student cameras stay in the rail (never take the
   main stage on their own), ordered camera → speaking → mic on → online.
   ========================================================================== */
html.hx #lesson .lesson-student-rail{background:#0b1030!important;border-top:1px solid rgba(255,255,255,.08)!important;color:#e9ecfa!important}
html.hx #lesson .lesson-student-rail .rail-title{font-family:var(--hx-font)!important}
html.hx #lesson .lesson-student-rail .rail-title>span{font-size:13px!important;font-weight:650!important;color:#e9ecfa!important}
html.hx #lesson .lesson-student-rail .rail-title button{background:transparent!important;border:0!important;color:#8e9bff!important;font:600 12.5px var(--hx-font)!important}
html.hx #lesson #lessonStudentRailItems{display:flex!important;gap:8px!important;align-items:stretch!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card{
 position:relative!important;overflow:hidden!important;flex:0 0 150px!important;width:150px!important;min-width:150px!important;max-width:150px!important;
 border-radius:14px!important;border:1px solid rgba(255,255,255,.1)!important;background:#161d45!important;color:#fff!important;
 transition:flex-basis .25s ease,width .25s ease,border-color .15s,box-shadow .15s!important;font-family:var(--hx-font)!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card:hover{background:#1e2758!important;border-color:rgba(142,155,255,.5)!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.offline{opacity:.55!important;background:#121838!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card .rail-avatar{border-radius:10px!important;background:#2b3a7a!important;outline:0!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card>b{font-size:12px!important;font-weight:650!important;line-height:1.25!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card>small{font-size:10.5px!important;color:#a7aed3!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card .rail-video-state{display:none!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.video-connecting .rail-video-state{display:block!important;color:#ffd27a!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.video-connecting .rail-proctor-status{display:none!important}
/* live camera: the video fills the whole card, name over a soft gradient */
html.hx #lesson #lessonStudentRailItems>.student-rail-card>video.rail-live-video{display:none!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;background:#05081a!important;z-index:0}
html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video{flex-basis:176px!important;width:176px!important;min-width:176px!important;max-width:176px!important;border-color:#8e9bff!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video>video.rail-live-video{display:block!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video .rail-avatar{display:none!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video::after{content:"";position:absolute;left:0;right:0;bottom:0;height:60%;background:linear-gradient(to top,rgba(5,8,22,.85),rgba(5,8,22,0));z-index:1;pointer-events:none}
html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video>b{position:absolute!important;left:8px!important;right:26px!important;bottom:6px!important;z-index:2!important;max-height:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.6)}
html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video>small{display:none!important}
/* microphone + speaking */
html.hx #lesson #lessonStudentRailItems .student-rail-card .rail-mic{display:none;position:absolute;left:6px;top:6px;z-index:3;width:20px;height:20px;border-radius:50%;background:#0e8f62;
 -webkit-mask:none;mask:none}
html.hx #lesson #lessonStudentRailItems .student-rail-card .rail-mic::before{content:"";position:absolute;inset:4px;background:#fff;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center/contain no-repeat}
html.hx #lesson #lessonStudentRailItems .student-rail-card.mic-on .rail-mic{display:block}
html.hx #lesson #lessonStudentRailItems .student-rail-card.speaking{border-color:#3ccf98!important;box-shadow:0 0 0 2px rgba(60,207,152,.75)!important}
html.hx #lesson #lessonStudentRailItems .student-rail-card.speaking .rail-mic{background:#3ccf98;animation:hxPulseGreen 1.2s ease-out infinite}
@keyframes hxPulseGreen{0%{box-shadow:0 0 0 0 rgba(60,207,152,.7)}100%{box-shadow:0 0 0 7px rgba(60,207,152,0)}}
html.hx #lesson #lessonStudentRailItems .student-rail-card .rail-presence-dot{z-index:3}
/* students' camera tiles live in the rail; the main stage shows them only when explicitly selected */
html.hx:not([data-user-role="student"]) #lesson #videoMount .ms-grid>.ms-tile.role-student:not(.focused):not(.pinned){display:none!important}
@media (max-width:900px){
 html.hx #lesson #lessonStudentRailItems .student-rail-card{flex-basis:104px!important;width:104px!important;min-width:104px!important;max-width:104px!important}
 html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video{flex-basis:84px!important;width:84px!important;min-width:84px!important;max-width:84px!important}
 html.hx #lesson #lessonStudentRailItems .student-rail-card.live-video>b{font-size:10px!important;left:5px!important;bottom:3px!important;right:5px!important}
 html.hx #lesson #lessonStudentRailItems .student-rail-card .rail-mic{width:16px;height:16px;left:4px;top:4px}
}
@media (prefers-reduced-motion:reduce){html.hx #lesson #lessonStudentRailItems .student-rail-card.speaking .rail-mic{animation:none}}

/* Student stage shows only the teacher / screen share. The student's own camera tile
   (legacy rule forces .ms-tile.local visible) covered the teacher's video; the student
   already sees themself in the small proctor preview. */
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #videoMount .ms-grid>.ms-tile:is(.local,.role-student){display:none!important}
html.hx[data-user-role="student"]:not(.video-cinema-fallback) #lesson #videoMount>.ms-inline-self-stage.is-visible{z-index:19!important}
html.hx:not(.video-cinema-fallback) #lesson #videoMount>.ms-inline-self-stage.is-visible video{transform:none!important;translate:none!important;object-position:center!important;top:0!important;left:0!important}

/* Student stage: dedicated top-layer teacher video (#hxStageVideo, set by app.js) */
html.hx #lesson .video-stage>#hxStageVideo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#05081a!important;z-index:20!important;transform:none!important;border-radius:inherit;display:block!important}
html.hx:not(.video-cinema-fallback) #lesson .video-stage.hx-stage-live #videoMount :is(.ms-inline-self-stage,.ms-empty-stage,.ms-teacher-pip-stage,.ms-grid:not(.fullscreen-video-grid)>.ms-tile){visibility:hidden!important}
/* Full screen keeps the real grid (the overlay video is outside it): show it and make its controls clickable again */
html.hx #lesson .video-stage #videoMount .ms-grid.fullscreen-video-grid{pointer-events:auto!important;visibility:visible!important}
html.hx #lesson .video-stage.hx-stage-live #videoMount>:is(.ms-stage-badge,.ms-stage-fullscreen){position:absolute!important;z-index:23!important;visibility:visible!important}
html.hx[data-user-role="student"] #lesson .video-stage.hx-stage-live #videoMount>.ms-stage-badge{display:none!important}
html.hx #lesson .video-stage #liveStudentProctorStatus{z-index:24!important}
html.hx #lesson .video-stage #liveCaptions{z-index:26!important}

/* Fullscreen extras: CC toggle + live caption line */
.ms-fs-actions{display:flex;align-items:center;gap:8px;flex:none}
.ms-fs-cc{height:40px;min-width:46px;padding:0 12px;border:0;border-radius:12px;background:rgba(255,255,255,.16);color:#fff;font:800 13px/1 "Onest Hx",system-ui,sans-serif;letter-spacing:.02em;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.ms-fs-cc[aria-pressed="true"]{background:#fff;color:#0f1537}
.ms-fs-cc:focus-visible{outline:2px solid #ffb627;outline-offset:2px}
.ms-fs-caption{display:none}
:is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen,html.video-cinema-fallback .ms-grid.fullscreen-video-grid) .ms-fs-caption.show{
 display:block;position:absolute;left:50%;bottom:max(64px,calc(env(safe-area-inset-bottom) + 56px));transform:translateX(-50%);z-index:28;
 width:max-content;max-width:min(88vw,1100px);padding:10px 18px;border-radius:14px;background:rgba(5,8,22,.78);color:#fff;
 font:600 clamp(16px,2.2vw,26px)/1.4 "Onest Hx",system-ui,sans-serif;text-align:center;text-wrap:balance;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ms-fs-caption b{display:block;font-size:.62em;font-weight:700;color:#ffd27a;margin-bottom:2px}
:is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen,html.video-cinema-fallback .ms-grid.fullscreen-video-grid).fs-captions-off .ms-fs-caption{display:none!important}
/* keep the stage badge + fullscreen button above the student overlay: mount goes on top, transparent */
html.hx:not(.video-cinema-fallback) #lesson .video-stage.hx-stage-live>#videoMount{z-index:21!important;background:transparent!important;pointer-events:none!important}
html.hx:not(.video-cinema-fallback) #lesson .video-stage.hx-stage-live>#videoMount :is(.ms-stage-fullscreen,.ms-stage-badge){pointer-events:auto!important}

/* Full screen: the primary tile is always shown (legacy premium rule hides any tile that is not first/focused/pinned) */
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.cinema-primary,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.cinema-primary{
 display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#000!important;transform:none!important;z-index:1!important}
html #lesson #videoMount :is(.ms-grid.fullscreen-video-grid:fullscreen,.ms-grid.fullscreen-video-grid:-webkit-full-screen)>.ms-tile.cinema-primary .ms-video,
html.video-cinema-fallback #lesson #videoMount .ms-grid.fullscreen-video-grid>.ms-tile.cinema-primary .ms-video{
 display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#000!important}

/* Classroom audio mode: stage pill + choice sheet (students) */
html.hx #lesson .video-stage>#roomModePill{position:absolute!important;left:10px!important;bottom:10px!important;z-index:25!important;display:inline-flex;align-items:center;gap:6px;height:30px!important;min-height:0!important;padding:0 12px!important;border:0!important;border-radius:999px!important;background:rgba(5,8,26,.72)!important;color:#fff!important;font:700 12px/1 "Onest Hx",system-ui,sans-serif;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 14px rgba(0,0,0,.3)}
html.hx #lesson .video-stage>#roomModePill.in-room{background:rgba(255,182,39,.95)!important;color:#0f1537!important}
html.hx #lesson .video-stage>#roomModePill.hidden{display:none!important}
.room-mode-sheet{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-end;justify-content:center;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));background:rgba(5,8,26,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.room-mode-sheet.hidden{display:none!important}
.room-mode-card{width:min(460px,100%);background:#fff;color:#0f1537;border-radius:24px;padding:22px 18px 18px;box-shadow:0 30px 80px rgba(0,0,0,.45);font-family:"Onest Hx",system-ui,sans-serif;animation:hxSheetIn .22s ease-out}
@keyframes hxSheetIn{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.room-mode-card h2{margin:0 0 6px;font:800 20px/1.2 "Bricolage Hx","Onest Hx",system-ui,sans-serif;letter-spacing:-.01em}
.room-mode-sub{margin:0 0 14px;color:#58607e;font-size:13.5px;line-height:1.45}
.room-mode-alert{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fff1ef;color:#b3261e;font-size:13px;font-weight:700;line-height:1.4}
.room-mode-alert[hidden]{display:none}
.room-mode-opt{display:flex;align-items:center;gap:14px;width:100%;margin:0 0 10px;padding:14px;border:2px solid #e3e7f3;border-radius:18px;background:#f7f8fc;color:inherit;text-align:left;cursor:pointer;font:inherit}
.room-mode-opt:last-child{margin-bottom:0}
.room-mode-opt:hover,.room-mode-opt:focus-visible{border-color:#0b4fd8;background:#eef3ff;outline:none}
.room-mode-opt.is-last{border-color:#b9c8f5}
.room-mode-opt b{display:block;font-size:16px;margin-bottom:3px}
.room-mode-opt small{display:block;color:#58607e;font-size:12.5px;line-height:1.4}
.room-mode-ico{flex:none;width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fff;font-size:24px;box-shadow:0 2px 8px rgba(15,21,55,.08)}
html.hx[data-theme="dark"] .room-mode-card{background:#141b3d;color:#eef1fb}
html.hx[data-theme="dark"] :is(.room-mode-sub,.room-mode-opt small){color:#a9b1cf}
html.hx[data-theme="dark"] .room-mode-opt{background:#1b2350;border-color:#2a3366}
html.hx[data-theme="dark"] .room-mode-ico{background:#0f1537}
@media (min-width:700px){.room-mode-sheet{align-items:center}}

/* Live quiz: composer, card, results */
.quiz-form textarea{width:100%;box-sizing:border-box;margin:6px 0 10px;padding:12px;border:2px solid #e3e7f3;border-radius:14px;font:500 15px/1.4 "Onest Hx",system-ui,sans-serif;resize:vertical;background:#f7f8fc;color:inherit}
.quiz-presets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.quiz-presets button{padding:7px 12px;border:0;border-radius:999px;background:#eef3ff;color:#0b4fd8;font:700 12.5px/1 "Onest Hx",system-ui,sans-serif;cursor:pointer}
.quiz-opts{display:grid;gap:7px}
.quiz-opt-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border:2px solid #e3e7f3;border-radius:14px;background:#f7f8fc}
.quiz-opt-row:has(input[type=radio]:checked){border-color:#1f9d55;background:#ecfbf2}
.quiz-opt-row input[type=radio]{width:20px;height:20px;accent-color:#1f9d55;flex:none;margin:0}
.quiz-opt-row b{flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#0f1537;color:#fff;font-size:13px}
.quiz-opt-row input[name^=o]{flex:1;min-width:0;border:0;background:transparent;font:500 15px/1.3 "Onest Hx",system-ui,sans-serif;color:inherit;padding:6px 2px;outline:none}
.quiz-hint{margin:8px 2px 12px;color:#58607e;font-size:12.5px}
.quiz-actions{display:flex;gap:8px;align-items:center}
.quiz-actions select{flex:1;min-width:0;height:44px;border:2px solid #e3e7f3;border-radius:12px;padding:0 10px;font:600 14px "Onest Hx",system-ui,sans-serif;background:#fff;color:#0f1537}
.quiz-actions button{height:44px;padding:0 16px;border:0;border-radius:12px;font:800 14px "Onest Hx",system-ui,sans-serif;cursor:pointer}
.quiz-cancel{background:#eef0f7;color:#0f1537}
.quiz-go{background:#0b4fd8;color:#fff}
html.hx[data-theme="dark"] :is(.quiz-form textarea,.quiz-opt-row,.quiz-actions select){background:#1b2350;border-color:#2a3366;color:#eef1fb}
.live-quiz{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:1500;width:min(460px,calc(100vw - 24px));max-height:calc(100vh - 140px);overflow:auto;box-sizing:border-box;padding:14px;border-radius:22px;background:#0f1537;color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.1);font-family:"Onest Hx",system-ui,sans-serif;animation:hxSheetIn .22s ease-out}
.live-quiz.hidden{display:none!important}
.lq-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.lq-tag{padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:800}
.lq-tag.lq-done{background:#1f9d55}
.lq-time{padding:5px 10px;border-radius:999px;background:#ffb627;color:#0f1537;font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums}
.lq-close{margin-left:auto;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.live-quiz .lq-q{margin:2px 0 10px!important;font:700 17px/1.35 "Bricolage Hx","Onest Hx",system-ui,sans-serif!important;color:#fff!important;letter-spacing:-.005em}
.live-quiz .lq-q.lq-oral{font-weight:600!important;font-size:14px!important;color:#c7cdea!important}
.lq-bar{height:5px;border-radius:9px;background:rgba(255,255,255,.12);overflow:hidden;margin-bottom:12px}
.lq-bar i{display:block;height:100%;background:linear-gradient(90deg,#ffb627,#ff7a45);transition:width 1s linear}
.lq-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lq-opt{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px;border:2px solid transparent;border-radius:16px;background:rgba(255,255,255,.08);color:#fff;text-align:left;font:600 14.5px/1.25 "Onest Hx",system-ui,sans-serif;cursor:pointer}
.lq-opt:nth-child(1) b{background:#e5483b}.lq-opt:nth-child(2) b{background:#0b4fd8}.lq-opt:nth-child(3) b{background:#d99a00}.lq-opt:nth-child(4) b{background:#1f9d55}
.lq-opt b{flex:none;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;font-size:14px}
.lq-opt:not(:disabled):active{transform:scale(.97)}
.lq-opt.is-mine{border-color:#ffb627;background:rgba(255,182,39,.16)}
.lq-opt:disabled:not(.is-mine){opacity:.62;cursor:default}
.lq-foot{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13px;color:#c7cdea}
.lq-end{margin-left:auto;height:38px;padding:0 16px;border:0;border-radius:12px;background:#ffb627;color:#0f1537;font:800 13.5px "Onest Hx",system-ui,sans-serif;cursor:pointer}
.lq-res{display:grid;gap:8px}
.lq-row{display:grid;grid-template-columns:26px minmax(0,1fr) 36px;grid-template-areas:"l t n" "l k n";align-items:center;column-gap:10px;row-gap:4px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.06)}
.lq-row>b{grid-area:l;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.14);font-size:13px}
.lq-lbl{grid-area:t;font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lq-track{grid-area:k;height:8px;border-radius:9px;background:rgba(255,255,255,.1);overflow:hidden}
.lq-track i{display:block;height:100%;border-radius:9px;background:#7f8bc4;transition:width .6s ease}
.lq-n{grid-area:n;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}
.lq-row.is-correct{background:rgba(31,157,85,.22)}
.lq-row.is-correct>b,.lq-row.is-correct .lq-track i{background:#1f9d55}
.lq-row.is-mine:not(.is-correct){box-shadow:inset 0 0 0 2px #e5483b}
.lq-verdict{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.08);font-weight:700;font-size:14px}
.lq-verdict.ok{background:#1f9d55}
.lq-verdict.no{background:rgba(229,72,59,.25)}
.lq-top{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:5px}
.lq-top li{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:12px;background:rgba(255,182,39,.12);font-size:14px}
.lq-top small{margin-left:auto;color:#c7cdea;font-variant-numeric:tabular-nums}
@media (max-width:420px){.lq-opts{grid-template-columns:1fr}}

/* Understanding pulse */
html.hx #lesson #lessonChatPanel>h2{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}
.pulse-chips{margin-left:auto;display:inline-flex;gap:6px}
.pulse-chips button{height:30px;padding:0 10px;border:1.5px solid #dfe3f0;border-radius:999px;background:#fff;color:#0f1537;font:700 12px/1 "Onest Hx",system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.pulse-chips button[data-pulse="ok"].on{background:#1f9d55;border-color:#1f9d55;color:#fff}
.pulse-chips button[data-pulse="lost"].on{background:#ffb627;border-color:#ffb627;color:#0f1537}
html.hx[data-theme="dark"] .pulse-chips button:not(.on){background:#1b2350;border-color:#2a3366;color:#eef1fb}
html.hx #lesson .video-stage>#pulsePill{position:absolute!important;top:10px!important;left:50%!important;transform:translateX(-50%)!important;z-index:25!important;display:inline-flex;gap:12px;align-items:center;height:32px!important;min-height:0!important;padding:0 14px!important;border:0!important;border-radius:999px!important;background:rgba(5,8,26,.78)!important;color:#fff!important;font:600 12.5px/1 "Onest Hx",system-ui,sans-serif!important;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.hx #lesson .video-stage>#pulsePill.alert{background:#ffb627!important;color:#0f1537!important;animation:hxPulse 1.6s ease-out 3}
html.hx #lesson .video-stage>#pulsePill.hidden{display:none!important}

/* Q&A queue */
.qa-card{max-height:calc(100vh - 40px);display:flex;flex-direction:column}
.qa-head{display:flex;align-items:center;gap:8px}
.qa-head h2{margin:0}
.qa-head .lq-close{background:#eef0f7;color:#0f1537}
.qa-sub{margin-top:6px}
.qa-list{flex:1;min-height:60px;overflow:auto;display:grid;align-content:start;gap:8px;margin-bottom:12px}
.qa-item{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1.5px solid #e3e7f3;border-radius:16px;background:#f7f8fc}
.qa-item.is-done{opacity:.55}
.qa-vote{flex:none;width:46px;padding:6px 0;border:1.5px solid #d6dcef;border-radius:12px;background:#fff;color:#0f1537;display:grid;justify-items:center;gap:1px;cursor:pointer;font:800 14px/1 "Onest Hx",system-ui,sans-serif}
.qa-vote span{font-size:11px;color:#8a92b2}
.qa-vote.on{background:#0b4fd8;border-color:#0b4fd8;color:#fff}.qa-vote.on span{color:#cfe0ff}
.qa-body{flex:1;min-width:0}
.qa-body p{margin:0 0 4px;font-size:14.5px;line-height:1.4;word-wrap:break-word}
.qa-body small{color:#6b7392;font-size:12px}
.qa-acts{display:flex;flex-direction:column;gap:6px}
.qa-acts button{width:34px;height:34px;border:0;border-radius:10px;background:#e8f7ee;color:#1f9d55;font-weight:900;cursor:pointer}
.qa-acts button[data-qa-del]{background:#fdeceb;color:#c0392b}
.qa-empty{margin:8px 0;color:#6b7392;text-align:center}
.qa-form textarea{width:100%;box-sizing:border-box;padding:12px;border:2px solid #e3e7f3;border-radius:14px;font:500 15px/1.4 "Onest Hx",system-ui,sans-serif;resize:none;background:#f7f8fc;color:inherit}
.qa-row{display:flex;align-items:center;gap:10px;margin-top:8px}
.qa-anon{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:#3a4266}
.qa-row .quiz-go{margin-left:auto;height:42px;padding:0 18px;border:0;border-radius:12px;font:800 14px "Onest Hx",system-ui,sans-serif;cursor:pointer}
.qa-form.hidden{display:none!important}
html.hx[data-theme="dark"] :is(.qa-item,.qa-form textarea){background:#1b2350;border-color:#2a3366;color:#eef1fb}
html.hx[data-theme="dark"] .qa-vote:not(.on){background:#0f1537;border-color:#2a3366;color:#eef1fb}
html.hx[data-theme="dark"] .qa-anon{color:#c7cdea}

/* Word cloud + random pick */
.live-cloud .lc-words{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 12px;min-height:90px;padding:12px;border-radius:16px;background:rgba(255,255,255,.05);font-weight:800;line-height:1.1}
.live-cloud .lc-words span{animation:hxSheetIn .3s ease-out}
.live-cloud .lc-words sup{font-size:10px;opacity:.7;margin-left:2px}
.lc-empty{color:#8f97bd;font-weight:500}
.lc-form{display:flex;gap:8px;margin-top:12px}
.lc-form input{flex:1;min-width:0;height:42px;padding:0 12px;border:0;border-radius:12px;background:rgba(255,255,255,.1);color:#fff;font:600 15px "Onest Hx",system-ui,sans-serif;outline:none}
.lc-form .lq-end{margin-left:0}
.live-pick .lp-name{margin:8px 0 4px;padding:18px 10px;border-radius:16px;background:rgba(255,255,255,.06);text-align:center;font:800 22px/1.2 "Bricolage Hx","Onest Hx",system-ui,sans-serif;color:#c7cdea}
.live-pick .lp-name.final{background:rgba(255,182,39,.16);color:#ffb627;animation:hxSheetIn .25s ease-out}
.live-pick .lq-foot{gap:8px}.live-pick .lq-foot .lq-end{margin-left:0;flex:1}
.live-pick .lp-again{background:rgba(255,255,255,.14)!important;color:#fff!important}

/* Confetti */
.hx-confetti{position:fixed;inset:0;pointer-events:none;z-index:3000;overflow:hidden}
.hx-confetti i{position:absolute;top:-14px;width:9px;height:14px;border-radius:2px;animation:hxConf 2s cubic-bezier(.2,.6,.4,1) forwards}
@keyframes hxConf{to{transform:translate(var(--dx),105vh) rotate(var(--r));opacity:.9}}

/* Student stage: teacher camera PiP over board / lab / screen */
html.hx #lesson .video-stage>#hxStagePip{position:absolute!important;right:10px;bottom:10px;z-index:22!important;width:26%;max-width:180px;aspect-ratio:4/3;height:auto!important;object-fit:cover!important;border-radius:14px!important;border:2px solid rgba(255,255,255,.85)!important;box-shadow:0 10px 30px rgba(0,0,0,.45)!important;background:#05081a!important;cursor:pointer;transition:width .2s ease,max-width .2s ease}
html.hx #lesson .video-stage>#hxStagePip.big{width:46%;max-width:360px}

/* ===== Elektron doska ===== */
html.wb-open{overflow:hidden}
.wb{position:fixed;inset:0;z-index:1900;display:flex;flex-direction:column;background:#0b1028;color:#eef1fb;font-family:"Onest Hx",system-ui,sans-serif}
.wb.hidden{display:none!important}
.wb button{font:inherit;color:inherit;cursor:pointer}
.wb-top{display:flex;align-items:center;gap:10px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));background:#121937;border-bottom:1px solid rgba(255,255,255,.08);overflow-x:auto;scrollbar-width:none}
.wb-top::-webkit-scrollbar{display:none}
.wb-tools,.wb-colors,.wb-sizes,.wb-acts{display:flex;align-items:center;gap:4px;padding:4px;border-radius:14px;background:rgba(255,255,255,.06);flex:none}
.wb-tools button,.wb-acts button,.wb-sizes button{width:40px;height:40px;border:0;border-radius:10px;background:transparent;font-size:18px;font-weight:800;display:grid;place-items:center}
.wb-tools button:hover,.wb-acts button:hover,.wb-sizes button:hover{background:rgba(255,255,255,.1)}
.wb-tools button.on,.wb-sizes button.on{background:#ffb627;color:#0f1537}
.wb-acts button:disabled{opacity:.35;cursor:default}
.wb-acts select{height:36px;border:0;border-radius:10px;background:#0b1028;color:#eef1fb;padding:0 8px;font:600 13px "Onest Hx",system-ui,sans-serif}
.wb-sizes i{display:block;border-radius:50%;background:currentColor}
.wb-colors button{width:28px;height:28px;border-radius:50%;border:3px solid transparent;background:var(--c);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.wb-colors button.on{border-color:#ffb627;transform:scale(1.1)}
.wb-close{margin-left:auto;flex:none;height:40px;padding:0 16px;border:0;border-radius:12px;background:#e5483b;font-weight:800!important}
.wb-stage{position:relative;flex:1;min-height:0;display:grid;place-items:center;padding:10px}
.wb-stage canvas{max-width:100%;max-height:100%;aspect-ratio:16/9;width:auto;height:100%;background:#fff;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5);touch-action:none;cursor:crosshair}
@media (max-aspect-ratio:16/9){.wb-stage canvas{width:100%;height:auto}}
.wb-stage canvas[data-tool="eraser"]{cursor:cell}.wb-stage canvas[data-tool="text"]{cursor:text}.wb-stage canvas[data-tool="laser"]{cursor:none}
.wb-cam{position:absolute;right:22px;bottom:22px;width:min(240px,26vw);aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:#05081a;border:2px solid rgba(255,255,255,.85);box-shadow:0 12px 36px rgba(0,0,0,.5);cursor:grab;touch-action:none;z-index:2}
.wb-cam video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:block}
.wb-cam .wb-cam-off{position:absolute;inset:0;display:none;place-items:center;font-size:13px;color:#aab3d6}
.wb-cam.off video{display:none}.wb-cam.off .wb-cam-off{display:grid}
.wb-cam.min{width:72px;border-radius:50%;aspect-ratio:1}
.wb-cam-min{position:absolute;top:6px;right:6px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(5,8,26,.7);color:#fff;font-weight:900;line-height:1}
.wb-cam.min .wb-cam-min{top:2px;right:2px}
.wb-bottom{display:flex;align-items:center;gap:10px;padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom));background:#121937;border-top:1px solid rgba(255,255,255,.08);flex-wrap:wrap}
.wb-pages{display:flex;align-items:center;gap:6px}
.wb-pages button{height:38px;min-width:38px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.08);font-weight:700}
.wb-pageno{min-width:56px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}
.wb-share{margin-left:auto;height:40px;padding:0 16px;border:0;border-radius:12px;background:#0b4fd8;font-weight:800!important}
.wb-share.on{background:#1f9d55}
.wb-share[hidden]{display:none}
.wb-text{position:fixed;z-index:1950;min-width:120px;max-width:60vw;padding:2px 4px;border:2px dashed #0b4fd8;background:rgba(255,255,255,.9);font-family:"Onest Hx",system-ui,sans-serif;font-weight:600;line-height:1.25;resize:none;outline:none;field-sizing:content}
@media (max-width:720px){.wb-tools button,.wb-acts button,.wb-sizes button{width:36px;height:36px;font-size:16px}.wb-cam{width:120px}.wb-pages [data-act=delpage]{display:none}}

/* ===== Suzuvchi dars kamerasi (dars sahifasidan tashqarida) ===== */
.hx-float-cam{position:fixed;right:16px;bottom:calc(90px + env(safe-area-inset-bottom));z-index:1700;width:min(260px,46vw);aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:#05081a;border:2px solid rgba(255,255,255,.9);box-shadow:0 18px 48px rgba(5,8,26,.5);touch-action:none;cursor:grab;font-family:"Onest Hx",system-ui,sans-serif}
.hx-float-cam.hidden{display:none!important}
.hx-float-cam video{width:100%;height:100%;object-fit:cover;display:block}
.hx-float-cam .hfc-off{position:absolute;inset:0;display:none;place-items:center;color:#aab3d6;font-size:13px}
.hx-float-cam.off video{display:none}.hx-float-cam.off .hfc-off{display:grid}
.hfc-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:6px;padding:8px;background:linear-gradient(transparent,rgba(5,8,26,.85))}
.hfc-live{padding:4px 8px;border-radius:999px;background:#e5483b;color:#fff;font-size:11px;font-weight:800}
.hfc-bar button{height:30px;padding:0 10px;border:0;border-radius:9px;background:rgba(255,255,255,.18);color:#fff;font:700 12px "Onest Hx",system-ui,sans-serif;cursor:pointer}
.hfc-bar button[data-f=back]{margin-left:auto;background:#ffb627;color:#0f1537}
.hfc-bar button[data-f=mic].on{background:#1f9d55}
.hfc-bar button[hidden]{display:none}
@media (min-width:1000px){.hx-float-cam{bottom:24px}}

/* ===== Virtual laboratoriya ===== */
.vl-root{min-height:300px}
.vl-cat{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.vl-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:1px solid var(--hx-line,#e3e7f3);border-radius:22px;background:var(--hx-surface,#fff);color:inherit;text-align:left;cursor:pointer;font:inherit;box-shadow:var(--hx-shadow,0 8px 24px rgba(15,21,55,.06));transition:transform .15s ease,box-shadow .15s ease}
.vl-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(15,21,55,.12)}
.vl-card b{font:800 17px/1.25 "Bricolage Hx","Onest Hx",system-ui,sans-serif}
.vl-card small{color:var(--hx-muted,#58607e);font-size:13px;line-height:1.45}
.vl-ico{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#0f1537;font-size:26px;margin-bottom:4px}
.vl-sub{font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#0b4fd8}
.vl-go{margin-top:auto;padding-top:8px;font-weight:800;color:#0b4fd8;font-size:13.5px}
.vl-note{margin:16px 2px 0;color:var(--hx-muted,#58607e);font-size:13.5px;line-height:1.5}
.vl{display:grid;gap:14px}
.vl-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.vl-head h2{margin:2px 0 0;font:800 20px/1.2 "Bricolage Hx","Onest Hx",system-ui,sans-serif}
.vl-title{flex:1;min-width:200px}
.vl-back,.vl-full,.vl-share,.vl-reset,.vl-record,.vl-actions button,.vl-journal header button{height:40px;padding:0 14px;border:1px solid var(--hx-line,#e3e7f3);border-radius:12px;background:var(--hx-surface,#fff);color:inherit;font:700 13.5px "Onest Hx",system-ui,sans-serif;cursor:pointer}
.vl-head-acts{display:flex;gap:8px}
.vl-share{background:#0b4fd8!important;color:#fff!important;border-color:#0b4fd8!important}
.vl-share.on{background:#1f9d55!important;border-color:#1f9d55!important}
.vl-share.hidden{display:none!important}
.vl-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}
.vl-sim{position:relative;border-radius:18px;overflow:hidden;background:#0d1330;box-shadow:var(--hx-shadow,0 8px 24px rgba(15,21,55,.08))}
.vl-sim canvas{display:block;width:100%;height:auto;aspect-ratio:16/9}
.vl-sim:fullscreen{display:grid;place-items:center;background:#05081a}
.vl-sim:fullscreen canvas{max-height:100vh;width:auto;max-width:100%}
.vl-actions{position:absolute;left:12px;bottom:12px;display:flex;gap:8px}
.vl-actions button{background:#ffb627!important;color:#0f1537!important;border:0!important;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.vl-panel{padding:16px;border:1px solid var(--hx-line,#e3e7f3);border-radius:18px;background:var(--hx-surface,#fff);display:grid;gap:10px}
.vl-panel h3{margin:4px 0 0;font:800 14px "Onest Hx",system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:var(--hx-muted,#58607e)}
.vl-field{display:grid;gap:6px;font-size:13.5px;font-weight:600}
.vl-field>span{display:flex;justify-content:space-between;gap:8px}
.vl-field output{font-weight:800;color:#0b4fd8;font-variant-numeric:tabular-nums}
.vl-field input[type=range]{width:100%;accent-color:#0b4fd8}
.vl-field :is(select,input[type=text]){height:40px;padding:0 10px;border:1.5px solid var(--hx-line,#e3e7f3);border-radius:10px;background:var(--hx-bg,#f7f8fc);color:inherit;font:600 14px "Onest Hx",system-ui,sans-serif}
.vl-field input[type=text]{font-family:ui-monospace,Menlo,Consolas,monospace}
.vl-check{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600}
.vl-readings{display:grid;gap:6px}
.vl-readings div{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;background:var(--hx-bg,#f3f5fb);font-size:13px}
.vl-readings b{font-variant-numeric:tabular-nums}
.vl-readings small{color:var(--hx-muted,#58607e);font-weight:600}
.vl-record{background:#0b4fd8!important;color:#fff!important;border-color:#0b4fd8!important;height:44px!important}
.vl-lower{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}
.vl-journal,.vl-theory{padding:16px;border:1px solid var(--hx-line,#e3e7f3);border-radius:18px;background:var(--hx-surface,#fff)}
.vl-journal header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.vl-journal header h3{margin:0;flex:1;font:800 16px "Onest Hx",system-ui,sans-serif}
.vl-journal header h3 small{color:var(--hx-muted,#58607e);font-weight:600}
.vl-journal header div{display:flex;gap:6px;flex-wrap:wrap}
.vl-journal header button{height:34px;font-size:12.5px}
.vl-table{max-height:260px;overflow:auto;border-radius:12px;border:1px solid var(--hx-line,#e3e7f3);margin-bottom:12px}
.vl-table table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.vl-table th{position:sticky;top:0;background:var(--hx-bg,#f3f5fb);text-align:left;padding:8px 10px;font-weight:800;white-space:nowrap}
.vl-table td{padding:7px 10px;border-top:1px solid var(--hx-line,#eef0f7);white-space:nowrap}
.vl-empty{margin:0;padding:16px;color:var(--hx-muted,#58607e);font-size:13.5px}
.vl-chart{width:100%;height:auto;border-radius:12px;border:1px solid var(--hx-line,#e3e7f3)}
.vl-theory h3{margin:0 0 6px;font:800 15px "Onest Hx",system-ui,sans-serif}
.vl-theory h3+p,.vl-theory ol{margin:0 0 14px;font-size:13.5px;line-height:1.55}
.vl-theory ol{padding-left:20px}
@media (max-width:1100px){.vl-main,.vl-lower{grid-template-columns:1fr}}
@media (max-width:600px){.vl-head h2{font-size:17px}.vl-actions{left:8px;bottom:8px}.vl-actions button{height:34px;padding:0 10px;font-size:12.5px}}
html.hx[data-theme="dark"] .vl-ico{background:#1b2350}
/* Printable lab report */
.vl-print{display:none}
@media print{
 html.vl-printing body *{visibility:hidden!important}
 html.vl-printing .vl-print,html.vl-printing .vl-print *{visibility:visible!important}
 html.vl-printing .vl-print{display:block;position:absolute;left:0;top:0;width:100%;padding:0 8mm;color:#000;background:#fff;font:12pt/1.45 "Onest Hx",Arial,sans-serif}
 .vl-print h1{font-size:18pt;margin:0 0 4pt}.vl-print h2{font-size:13pt;margin:14pt 0 4pt;border-bottom:1px solid #999}
 .vl-print table{width:100%;border-collapse:collapse;font-size:10pt}.vl-print th,.vl-print td{border:1px solid #888;padding:3pt 5pt;text-align:left}
 .vl-print img{max-width:100%;max-height:85mm;display:block;margin:4pt 0}
 .vl-print-lines{height:40mm;background:repeating-linear-gradient(transparent 0 9mm,#bbb 9mm 9.3mm)}
}

/* Lab catalog cards must not inherit the generic one-line button layout */
html.hx #lab .vl-card{white-space:normal!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;height:auto!important;min-height:0!important;padding:18px!important;gap:6px!important;border-radius:22px!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;color:var(--hx-text)!important}
html.hx #lab .vl-card:hover{border-color:var(--hx-brand)!important}
html.hx #lab .vl-card small{white-space:normal!important;display:block}
html.hx #lab .vl-card .vl-go{margin-top:auto;padding-top:6px;color:var(--hx-brand);font-weight:800;font-size:14px}
html.hx #lab .vl-title h2{font:800 22px/1.2 "Bricolage Hx","Onest Hx",system-ui,sans-serif!important;margin:2px 0 0!important}
.wb-cam[hidden]{display:none!important}
/* Lab: never wider than the page (wide journal tables scroll inside their own box) */
html.hx #lab .vl{grid-template-columns:minmax(0,1fr)}
html.hx #lab :is(.vl-main,.vl-lower)>*{min-width:0}
html.hx #lab .vl-title{min-width:0;flex:1}
html.hx #lab .vl-title h2{overflow-wrap:anywhere}
html.hx #lab .vl-journal header{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
html.hx #lab .vl-journal header>div{display:flex;flex-wrap:wrap;gap:6px}
html.hx #lab .vl-chart{width:100%;height:auto;display:block}
@media (max-width:600px){html.hx #lab .vl-journal header>div button{height:34px!important;padding:0 10px!important;font-size:12.5px!important}html.hx #lab .page-head .head-actions{width:100%}}
.hx-float-cam .hfc-min{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(5,8,26,.72);color:#fff;font:900 16px/1 "Onest Hx",system-ui,sans-serif;cursor:pointer;z-index:2}
.hx-float-cam.min{width:84px!important;aspect-ratio:1!important;border-radius:50%!important}
.hx-float-cam.min .hfc-bar,.hx-float-cam.min .hfc-off{display:none!important}
.hx-float-cam.min .hfc-min{top:50%;right:50%;transform:translate(50%,-50%);opacity:0}
.hx-float-cam.min:hover .hfc-min{opacity:1}

/* ===================== University units (bo'limlar) ===================== */
.ux-root{--ux-gap:14px;color:var(--hx-text)}
:where(.ux-root,.ux-sheet,.ux-appframe) :where(button.hx-plain){font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0;text-align:left;min-height:0;box-shadow:none}
.ux-loading{padding:40px;text-align:center;color:var(--hx-muted)}
.ux-empty{display:grid;gap:4px;justify-items:center;text-align:center;padding:28px 16px;border:1.5px dashed var(--hx-line-strong);border-radius:var(--hx-r);color:var(--hx-muted);background:var(--hx-surface)}
.ux-empty b{color:var(--hx-text);font-size:15px}
.ux-note{color:var(--hx-muted);font-size:13px;line-height:1.5;margin:8px 0}
.ux-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 16px!important;border-radius:12px!important;background:var(--hx-brand)!important;color:var(--hx-brand-ink,#fff)!important;font-weight:700!important;font-size:14px;white-space:nowrap;text-decoration:none;border:1px solid var(--hx-brand)!important;transition:filter .15s}
.ux-btn:hover{filter:brightness(1.08)}.ux-btn:disabled{opacity:.6;cursor:wait}
.ux-btn.ghost{background:var(--hx-sunken)!important;color:var(--hx-text)!important;border-color:var(--hx-line-strong)!important}
.ux-btn.danger{background:var(--hx-coral)!important;border-color:var(--hx-coral)!important;color:#fff!important}
.ux-btn.sm{min-height:32px;padding:0 12px!important;font-size:13px}
.ux-btn.big{min-height:50px;padding:0 24px!important;font-size:15px}
.ux-link{color:var(--hx-brand)!important;font-weight:700;text-decoration:underline}
.ux-del{width:30px;height:30px;display:grid!important;place-items:center;text-align:center!important;border-radius:50%!important;color:var(--hx-muted)!important;font-size:18px;flex:none}
.ux-del:hover{background:var(--hx-coral-soft)!important;color:var(--hx-coral)!important}
.ux-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:var(--ux-gap)}
.ux-chips{display:flex;flex-wrap:wrap;gap:6px}
.ux-chips button{padding:7px 14px!important;border-radius:999px!important;background:var(--hx-sunken)!important;font-weight:700;font-size:13px}
.ux-chips button.on{background:var(--hx-ink)!important;color:#fff!important}
/* directory */
.ux-dir-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:18px}
.ux-search{flex:1;min-width:220px}
.ux-search input{width:100%;height:46px;padding:0 16px;border-radius:14px;border:1.5px solid var(--hx-line-strong);background:var(--hx-surface);color:var(--hx-text);font:500 15px var(--hx-font,inherit)}
.ux-admin{display:flex;flex-wrap:wrap;gap:8px}
.ux-group{margin-bottom:24px}
.ux-group h3{font:800 17px/1.2 var(--hx-display,inherit);margin:0 0 10px;display:flex;align-items:center;gap:8px}
.ux-group h3 small{font:700 12px var(--hx-font,inherit);padding:2px 8px;border-radius:999px;background:var(--hx-sunken);color:var(--hx-muted)}
.ux-sub{font-size:13px;font-weight:700;color:var(--hx-muted);margin:12px 0 8px}
.ux-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
.ux-ucard{display:flex!important;align-items:center;gap:12px;padding:14px!important;border-radius:var(--hx-r)!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;box-shadow:var(--hx-shadow);transition:transform .15s,border-color .15s;white-space:normal!important;min-height:76px}
.ux-ucard:hover{transform:translateY(-2px);border-color:var(--hx-brand)!important}
.ux-ico{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:22px;background:var(--hx-sunken)}
.k-leadership .ux-ico{background:#fff3d6}.k-faculty .ux-ico{background:#e7efff}.k-kafedra .ux-ico{background:#eaf7ef}.k-division .ux-ico{background:#f1ecff}.k-center .ux-ico{background:#e5f6fb}.k-service .ux-ico{background:#fdeceb}
html.hx[data-theme="dark"] .ux-ico{background:var(--hx-sunken)!important}
.ux-ub{flex:1;min-width:0;display:grid;gap:3px}
.ux-ub b{font-size:14.5px;line-height:1.3}
.ux-ub small{color:var(--hx-muted);font-size:12.5px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ux-meta{display:grid;gap:4px;justify-items:end;flex:none}
.ux-meta i{font-style:normal;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--hx-sunken);color:var(--hx-text-2);white-space:nowrap}
.ux-meta i.me{background:var(--hx-brand-soft);color:var(--hx-brand)}.ux-meta i.late{background:var(--hx-coral-soft);color:var(--hx-coral)}
.ux-hero-empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:40px 20px;border-radius:var(--hx-r-lg);background:var(--hx-surface);border:1px solid var(--hx-line);box-shadow:var(--hx-shadow)}
.ux-hero-empty h2{margin:0;font:800 22px var(--hx-display,inherit)}.ux-hero-empty p{max-width:620px;color:var(--hx-muted);line-height:1.55;margin:0 0 6px}
.ux-hero-ico{font-size:44px}
/* unit page */
.ux-crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px;font-size:13.5px;color:var(--hx-muted)}
.ux-crumbs button{color:var(--hx-brand)!important;font-weight:700}
.ux-hero{padding:22px;border-radius:var(--hx-r-lg);background:linear-gradient(135deg,var(--hx-ink) 0%,var(--hx-ink-2) 100%);color:#fff;margin-bottom:14px;box-shadow:var(--hx-shadow)}
.ux-hero-kind{font-size:12.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--hx-saffron)}
.ux-hero h1{margin:6px 0 6px;font:800 clamp(22px,3vw,30px)/1.15 var(--hx-display,inherit);color:#fff!important}
.ux-hero p{margin:0 0 12px;color:#c9cfea;line-height:1.5;max-width:860px}
.ux-hero-meta{display:flex;flex-wrap:wrap;gap:8px}
.ux-hero-meta span{font-size:13px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.1)}
.ux-hero-meta .ux-myrole{background:var(--hx-saffron);color:var(--hx-ink);font-weight:800}
.ux-children{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.ux-children button{font-size:12.5px;font-weight:700;padding:6px 12px!important;border-radius:999px!important;background:rgba(255,255,255,.14)!important;color:#fff!important}
.ux-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:14px}
.ux-stats>div{padding:12px;border-radius:14px;background:rgba(255,255,255,.08)}
.ux-stats b{display:block;font:800 24px var(--hx-display,inherit)}.ux-stats span{font-size:12.5px;opacity:.8}
.ux-stats .warn{background:rgba(229,72,59,.3)}
.ux-learn .ux-stats>div{background:var(--hx-surface);border:1px solid var(--hx-line)}
.ux-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:4px;margin-bottom:14px;border-radius:16px;background:var(--hx-surface);border:1px solid var(--hx-line);position:sticky;top:64px;z-index:5}
.ux-tabs::-webkit-scrollbar{display:none}
.ux-tabs button{width:auto!important;flex:none;display:inline-flex!important;gap:6px;align-items:center;padding:9px 14px!important;border-radius:12px!important;font-weight:700;font-size:13.5px;white-space:nowrap;color:var(--hx-text-2)!important}
.ux-tabs button.on{background:var(--hx-ink)!important;color:#fff!important}
/* services */
.ux-svc{display:grid;gap:10px}
.ux-svc-card{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px;border-radius:var(--hx-r);background:var(--hx-surface);border:1px solid var(--hx-line)}
.ux-svc-card.off{opacity:.55}
.ux-svc-card b{display:block;font-size:15px}.ux-svc-card small{display:block;margin-top:4px}.ux-svc-card p{margin:4px 0;color:var(--hx-text-2);font-size:13.5px;line-height:1.45}.ux-svc-card small{color:var(--hx-muted);font-size:12.5px}
.ux-svc-acts{display:flex;gap:6px;flex:none;flex-wrap:wrap;justify-content:flex-end}
/* lists / requests */
.ux-list{display:grid;gap:8px}
.ux-req{display:flex!important;align-items:center;gap:12px;width:100%;padding:12px 14px!important;border-radius:14px!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;white-space:normal!important}
.ux-req:hover{border-color:var(--hx-brand)!important}
.ux-req.overdue{border-left:4px solid var(--hx-coral)!important}
.ux-req-n{flex:none;font:700 12px ui-monospace,monospace;color:var(--hx-muted);min-width:96px}
.ux-req-b{flex:1;min-width:0;display:grid;gap:2px}.ux-req-b small{color:var(--hx-muted);font-size:12.5px}
.ux-req-s{flex:none;display:grid;justify-items:end;gap:3px}.ux-req-s small{font-size:11.5px;color:var(--hx-muted)}
.late{color:var(--hx-coral)!important;font-weight:700}
.ux-st{display:inline-block;font-size:11.5px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap}
.st-new{background:var(--hx-brand-soft);color:var(--hx-brand)}.st-progress{background:var(--hx-saffron-soft);color:var(--hx-saffron-ink)}.st-wait{background:#f1ecff;color:#6b46c1}.st-done{background:var(--hx-green-soft);color:var(--hx-green-ink)}.st-rej{background:var(--hx-coral-soft);color:var(--hx-coral)}.st-cancel{background:var(--hx-sunken);color:var(--hx-muted)}
/* posts */
.ux-posts{display:grid;gap:10px}
.ux-post{padding:16px;border-radius:var(--hx-r);background:var(--hx-surface);border:1px solid var(--hx-line)}
.ux-post.pin{border-color:var(--hx-saffron);box-shadow:0 0 0 2px var(--hx-saffron-soft)}
.ux-post header{display:grid;gap:3px}.ux-post header b{font-size:15.5px}.ux-post header small{color:var(--hx-muted);font-size:12.5px}
.ux-post-body{margin-top:8px;line-height:1.55;font-size:14px}
.ux-post footer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.ux-ok{color:var(--hx-green-ink);font-weight:700;font-size:13px}
/* documents */
.ux-docs{margin-bottom:14px}.ux-docs h4{margin:0 0 8px;font-size:14px;color:var(--hx-muted)}
.ux-doc{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--hx-surface);border:1px solid var(--hx-line);margin-bottom:6px}
.ux-doc-ico{font-size:22px}.ux-doc-b{flex:1;min-width:0;display:grid}.ux-doc-b small{color:var(--hx-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* kanban */
.ux-kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ux-col{padding:10px;border-radius:var(--hx-r);background:var(--hx-sunken);min-height:120px}
.ux-col h4{margin:2px 4px 10px;font-size:13.5px;display:flex;justify-content:space-between}
.ux-task{padding:10px 12px;border-radius:12px;background:var(--hx-surface);border:1px solid var(--hx-line);margin-bottom:8px;border-left:4px solid var(--hx-line-strong)}
.ux-task.pr-high{border-left-color:var(--hx-coral)}.ux-task.pr-low{border-left-color:var(--hx-green)}.ux-task.overdue{background:var(--hx-coral-soft)}
.ux-task b{font-size:14px}.ux-task p{margin:4px 0;font-size:13px;color:var(--hx-text-2)}.ux-task small{color:var(--hx-muted);font-size:12px}
.ux-task-acts{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.ux-task-acts button{font-size:11.5px;font-weight:700;padding:4px 8px!important;border-radius:8px!important;background:var(--hx-sunken)!important}
/* events */
.ux-events{display:grid;gap:8px}
.ux-event{display:flex;gap:14px;align-items:center;padding:12px;border-radius:var(--hx-r);background:var(--hx-surface);border:1px solid var(--hx-line)}
.ux-date{flex:none;width:56px;padding:6px 0;border-radius:12px;text-align:center;background:var(--hx-ink);color:#fff}.ux-date b{display:block;font:800 22px var(--hx-display,inherit)}.ux-date span{font-size:11.5px;text-transform:uppercase;opacity:.8}
.ux-ev-b{flex:1;min-width:0;display:grid;gap:2px}.ux-ev-b small{color:var(--hx-muted);font-size:12.5px}.ux-ev-b p{margin:4px 0 0;font-size:13px;color:var(--hx-text-2)}
.ux-ev-a{flex:none;display:grid;justify-items:end;gap:4px}.ux-ev-a small{font-size:11.5px;color:var(--hx-muted)}
/* apps */
.ux-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.ux-app{display:grid!important;justify-items:center;gap:6px;padding:18px 10px!important;border-radius:var(--hx-r)!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;text-align:center!important}
.ux-app:hover{border-color:var(--hx-brand)!important}.ux-app span{font-size:30px}.ux-app small{color:var(--hx-muted);font-size:11.5px}
.ux-appframe{position:fixed;inset:0;z-index:2100;display:flex;flex-direction:column;background:var(--hx-paper,#fff)}
.ux-appframe header{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--hx-ink);color:#fff}.ux-appframe header b{flex:1}
.ux-appframe iframe{flex:1;width:100%;border:0;background:#fff}
.ux-frame-hint{margin:0;padding:6px 12px;font-size:12px;color:var(--hx-muted);background:var(--hx-sunken)}
/* staff */
.ux-staff{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px}
.ux-person{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:var(--hx-surface);border:1px solid var(--hx-line)}
.ux-av{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--hx-ink);color:#fff;font-weight:800;font-size:14px}
.ux-pb{flex:1;min-width:0;display:grid}.ux-pb small{color:var(--hx-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ux-role{flex:none;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px;background:var(--hx-sunken)}.ux-role.r-head{background:var(--hx-saffron);color:var(--hx-ink)}.ux-role.r-deputy{background:var(--hx-brand-soft);color:var(--hx-brand)}
.ux-learn-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:14px 0}
.ux-learn-links button{padding:16px!important;border-radius:14px!important;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important;font-weight:700}
.ux-learn-links button:hover{border-color:var(--hx-brand)!important}
.ux-settings,.ux-danger{padding:16px;border-radius:var(--hx-r);background:var(--hx-surface);border:1px solid var(--hx-line);margin-bottom:12px}
.ux-settings h4,.ux-danger h4{margin:6px 0 4px}
.ux-mods{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}
/* workspace */
.ux-ws{display:grid;gap:18px}
.ux-ws-sec h3{font:800 16px var(--hx-display,inherit);margin:0 0 10px;display:flex;align-items:center;gap:8px}
.ux-ws-sec h3 small{font:700 12px var(--hx-font,inherit);padding:2px 8px;border-radius:999px;background:var(--hx-sunken);color:var(--hx-muted)}
/* sheet + forms */
.ux-sheet{position:fixed;inset:0;z-index:2050;display:flex;align-items:flex-end;justify-content:center;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:rgba(5,8,26,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.ux-card{width:min(560px,100%);max-height:calc(100vh - 24px);display:flex;flex-direction:column;border-radius:22px;background:var(--hx-surface,#fff);color:var(--hx-text,#0f1537);box-shadow:0 30px 80px rgba(0,0,0,.4);animation:hxSheetIn .2s ease-out;font-family:var(--hx-font,"Onest Hx",system-ui,sans-serif)}
.ux-card.wide{width:min(780px,100%)}
.ux-card header{display:flex;align-items:center;gap:10px;padding:16px 18px 10px;border-bottom:1px solid var(--hx-line)}
.ux-card header h2{flex:1;margin:0;font:800 18px/1.25 var(--hx-display,inherit)}
.ux-x{width:34px;height:34px;display:grid!important;place-items:center;text-align:center!important;border-radius:50%!important;background:var(--hx-sunken)!important;font-size:20px}
.ux-body{padding:14px 18px 18px;overflow:auto}
.ux-form{display:grid;gap:12px}
.ux-form label{display:grid;gap:5px;font-size:13px;font-weight:700;color:var(--hx-text-2)}
.ux-form label em{color:var(--hx-coral);font-style:normal}
.ux-form :is(input:not([type=checkbox]),select,textarea){width:100%;box-sizing:border-box;min-height:42px;padding:9px 12px;border-radius:12px;border:1.5px solid var(--hx-line-strong);background:var(--hx-paper,#fff);color:var(--hx-text);font:500 14.5px var(--hx-font,inherit)}
.ux-form textarea{resize:vertical;min-height:70px}
.ux-form :is(input,select,textarea):focus{outline:none;border-color:var(--hx-brand);box-shadow:0 0 0 3px var(--hx-brand-soft)}
.ux-form fieldset{border:1.5px dashed var(--hx-line-strong);border-radius:14px;padding:10px 12px;display:grid;gap:8px}
.ux-form legend{font-size:13px;font-weight:800;padding:0 6px}
.ux-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;align-items:end}
.ux-chk{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;font-weight:600!important}
.ux-chk input{width:18px;height:18px;accent-color:var(--hx-brand)}
.ux-fields{display:grid;gap:8px}
.ux-frow{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr) auto auto;gap:6px;align-items:center}
.ux-frow input[hidden]{display:none}
.ux-ico-in{max-width:56px;text-align:center}
.ux-pick{display:grid;gap:4px}
.ux-pick button{padding:8px 10px!important;border-radius:10px!important;background:var(--hx-sunken)!important;font-weight:600}
.ux-pick button small{color:var(--hx-muted)}
.ux-req-detail h3{margin:16px 0 8px;font-size:14px}
.ux-req-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:13px;color:var(--hx-muted);margin-bottom:10px}
.ux-dl{display:grid;gap:6px;margin:0 0 12px}
.ux-dl>div{display:grid;grid-template-columns:minmax(120px,38%) 1fr;gap:10px;padding:8px 10px;border-radius:10px;background:var(--hx-sunken)}
.ux-dl dt{font-size:12.5px;color:var(--hx-muted);font-weight:700}.ux-dl dd{margin:0;font-size:14px;word-break:break-word}
.ux-dl .res{background:var(--hx-green-soft)}
.ux-act{padding:12px;border-radius:14px;border:1px solid var(--hx-line);margin-bottom:6px}
.ux-tl{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ux-tl li{display:flex;gap:10px}.ux-tl li>div{flex:1;font-size:13.5px}.ux-tl small{color:var(--hx-muted)}.ux-tl p{margin:4px 0 0;padding:8px 10px;border-radius:10px;background:var(--hx-sunken)}
.ux-dot{flex:none;width:12px;height:12px;border-radius:50%;margin-top:4px;background:var(--hx-line-strong)}
.ux-dot.st-new{background:var(--hx-brand)}.ux-dot.st-progress{background:var(--hx-saffron)}.ux-dot.st-wait{background:#8b5cf6}.ux-dot.st-done{background:var(--hx-green)}.ux-dot.st-rej{background:var(--hx-coral)}
@media (min-width:760px){.ux-sheet{align-items:center}}
@media (max-width:760px){
 .ux-kanban{grid-template-columns:1fr}
 .ux-svc-card{flex-direction:column;align-items:stretch}.ux-svc-acts{justify-content:flex-start}
 .ux-req{flex-wrap:wrap}.ux-req-n{min-width:0;width:100%}.ux-req-s{justify-items:start}
 .ux-frow{grid-template-columns:1fr 1fr}.ux-frow>input[data-k=label],.ux-frow>input[data-k=url]{grid-column:1/-1}
 .ux-tabs{top:56px}
 .ux-dl>div{grid-template-columns:1fr}
}
/* units: keep own colours over the generic page :hover / .ghost rules (both carry #shell specificity) */
html.hx #shell .ux-root .ux-btn.ghost{background:var(--hx-sunken)!important;border-color:var(--hx-line-strong)!important;color:var(--hx-text)!important}
html.hx #shell .ux-root .ux-btn:not(.ghost):not(.danger):hover{background:var(--hx-brand)!important;border-color:var(--hx-brand)!important;color:var(--hx-brand-ink,#fff)!important}
html.hx #shell .ux-root .ux-btn.danger:hover{background:var(--hx-coral)!important;border-color:var(--hx-coral)!important}
html.hx #shell .ux-root :is(.ux-tabs,.ux-chips) button.on,html.hx #shell .ux-root :is(.ux-tabs,.ux-chips) button.on:hover{background:var(--hx-ink)!important;color:#fff!important;border-color:transparent!important}
html.hx #shell .ux-root :is(.ux-tabs button:not(.on),.ux-crumbs button,.ux-del,.ux-link):hover{background:var(--hx-sunken)!important;border-color:transparent!important}
html.hx #shell .ux-root .ux-hero .ux-children button:hover{background:rgba(255,255,255,.24)!important}
html.hx #shell .ux-root :is(.ux-ucard,.ux-req,.ux-app,.ux-learn-links button):hover{background:var(--hx-surface)!important;border-color:var(--hx-brand)!important}

/* ===================== Forms of study (kunduzgi / kechki / sirtqi / masofaviy) ===================== */
.ef-badge,.em-badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;padding:3px 8px;border-radius:999px;white-space:nowrap;background:var(--hx-sunken);color:var(--hx-text-2);margin-right:4px}
.ef-kunduzgi{background:#fff3d6;color:#8a5a00}.ef-kechki{background:#e7e9ff;color:#3b3fb3}.ef-sirtqi{background:#e6f6ee;color:#1f7a4a}.ef-masofaviy{background:#e3f1ff;color:#0b4fd8}
.em-offline{background:#f1ecff;color:#6b46c1}.em-online{background:#e3f1ff;color:#0b4fd8}.em-hybrid{background:#fff0e6;color:#b4500b}
html.hx[data-theme="dark"] :is(.ef-badge,.em-badge){background:var(--hx-sunken)!important;color:var(--hx-text)!important}
.lesson-meta .em-badge,.lesson-meta .ef-badge{margin:0}
.structure-edu{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.ef-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-bottom:16px}
.ef-card{display:grid!important;gap:8px;padding:16px!important;border-radius:var(--hx-r-lg)!important;background:var(--hx-surface)!important;border:1.5px solid var(--hx-line)!important;box-shadow:var(--hx-shadow);text-align:left!important;white-space:normal!important}
.ef-card.sel{border-color:var(--hx-brand)!important;box-shadow:0 0 0 3px var(--hx-brand-soft)}
.ef-card .ef-ico{font-size:28px}.ef-card>b{font:800 18px var(--hx-display,inherit)}
.ef-nums{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--hx-muted)}.ef-nums i{font-style:normal;font-weight:800;color:var(--hx-text);font-size:15px}
.ef-rate small{color:var(--hx-muted);font-size:12px}
.ef-bar{height:8px;border-radius:9px;background:var(--hx-sunken);overflow:hidden;margin:4px 0}
.ef-bar i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,var(--hx-green),#5bd08f);transition:width .5s}
.ef-modes{display:flex;flex-wrap:wrap;gap:4px}
.ef-table{overflow-x:auto;border-radius:var(--hx-r);border:1px solid var(--hx-line);background:var(--hx-surface)}
.ef-table table{width:100%;border-collapse:collapse;font-size:13.5px}
.ef-table th{text-align:left;padding:10px 12px;background:var(--hx-sunken);font-size:12px;color:var(--hx-muted);white-space:nowrap}
.ef-table td{padding:10px 12px;border-top:1px solid var(--hx-line);vertical-align:top}
.ef-table tr.ls-done td{opacity:.6}.ef-table tr.ls-now td{background:var(--hx-saffron-soft)}
html.hx[data-theme="dark"] .ef-table tr.ls-now td{background:rgba(255,182,39,.12)}
.ef-now{font-size:11px;font-weight:800;padding:2px 7px;border-radius:999px;background:var(--hx-coral);color:#fff}
.ef-sess{display:grid;gap:2px;padding:12px 14px;border-radius:14px;background:var(--hx-surface);border:1px solid var(--hx-line);border-left:4px solid var(--hx-line-strong)}
.ef-sess span{font-size:13.5px}.ef-sess small{color:var(--hx-muted);font-size:12px}
.ef-s-active{border-left-color:var(--hx-green)}.ef-s-upcoming{border-left-color:var(--hx-saffron)}
.ef-forms{margin-bottom:12px}
.ef-bells{max-width:520px;padding:14px;border-radius:var(--hx-r);background:var(--hx-surface);border:1px solid var(--hx-line)}
.ef-bell{display:flex;align-items:center;gap:8px}.ef-bell b{min-width:64px;font-size:13.5px}.ef-bell input{max-width:130px}
.ef-srow{grid-template-columns:minmax(0,1fr) 150px 150px auto!important}@media (max-width:560px){.ef-srow{grid-template-columns:1fr 1fr auto!important}.ef-srow>input[data-k=name]{grid-column:1/-1}}
/* attendance sheet */
.ef-att-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:10px;font-size:13.5px;color:var(--hx-muted)}
.ef-att-tabs{margin-bottom:12px}
.ef-att-sum{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ef-att-sum span{font-size:12.5px;padding:5px 10px;border-radius:999px;background:var(--hx-sunken)}
.ef-att-sum .ok{background:var(--hx-green-soft);color:var(--hx-green-ink)}.ef-att-sum .late{background:var(--hx-saffron-soft);color:var(--hx-saffron-ink)}.ef-att-sum .abs{background:var(--hx-coral-soft);color:var(--hx-coral)}
.ef-roster{display:grid;gap:4px;margin:10px 0;max-height:min(52vh,520px);overflow:auto}
.ef-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;background:var(--hx-sunken)}
.ef-n{width:24px;text-align:right;color:var(--hx-muted);font-size:12px;flex:none}
.ef-name{flex:1;min-width:0;font-size:14px;font-weight:600}
.ef-qr,.ef-on{font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:999px;background:var(--hx-brand-soft);color:var(--hx-brand)}
.ef-seg{display:flex;gap:3px;flex:none}
.ef-seg button{padding:6px 9px!important;border-radius:8px!important;font-size:12px;font-weight:700;background:var(--hx-surface)!important;border:1px solid var(--hx-line)!important}
.ef-seg .s-present.on{background:var(--hx-green)!important;color:#fff!important;border-color:var(--hx-green)!important}
.ef-seg .s-late.on{background:var(--hx-saffron)!important;color:var(--hx-ink)!important;border-color:var(--hx-saffron)!important}
.ef-seg .s-absent.on{background:var(--hx-coral)!important;color:#fff!important;border-color:var(--hx-coral)!important}
.ef-seg .s-excused.on{background:#8b5cf6!important;color:#fff!important;border-color:#8b5cf6!important}
.ef-save{position:sticky;bottom:0;padding-top:8px;background:var(--hx-surface)}
.ef-save .ux-btn{width:100%}
.ef-qr-start p{color:var(--hx-text-2);line-height:1.5}
.ef-qr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center;background:var(--hx-surface)}
.ef-qr-img{background:#fff;border-radius:16px;padding:10px;aspect-ratio:1;display:grid;place-items:center}
.ef-qr-img svg{width:100%;height:auto}
.ef-qr-fallback{color:#58607e;text-align:center;font-size:13px}
.ef-qr-side{display:grid;gap:8px}
.ef-code{font:800 clamp(38px,6vw,64px)/1 ui-monospace,monospace;letter-spacing:.06em;color:var(--hx-text)}
.ef-count{font-size:14px}.ef-count b{font-size:22px}
.ef-recent{list-style:none;margin:0;padding:0;display:grid;gap:2px;font-size:13px;color:var(--hx-text-2)}
.ef-qr:fullscreen,.ef-qr.ef-big{position:fixed;inset:0;z-index:3000;padding:4vw;grid-template-columns:1fr 1fr;background:#fff;color:#0f1537}
.ef-qr:fullscreen .ef-code,.ef-qr.ef-big .ef-code{font-size:9vw;color:#0f1537}
/* student check-in */
.ef-checkin-host{margin-bottom:14px}
.ef-checkin{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--hx-r-lg);background:linear-gradient(135deg,var(--hx-ink),var(--hx-ink-2));color:#fff;box-shadow:var(--hx-shadow)}
.ef-ci-ico{font-size:28px}
.ef-checkin>div{flex:1;min-width:200px;display:grid;gap:2px}.ef-checkin small{color:#c9cfea;font-size:12.5px}
.ef-checkin input{width:150px;height:46px;border-radius:12px;border:0;padding:0 12px;font:800 22px ui-monospace,monospace;letter-spacing:.08em;text-align:center;color:#0f1537;background:#fff}
@media (max-width:640px){.ef-qr{grid-template-columns:1fr}.ef-seg button{padding:6px 6px!important;font-size:11px}.ef-checkin input{flex:1}}
html.hx #shell #eduCheckin .ux-btn:hover{background:var(--hx-brand)!important;border-color:var(--hx-brand)!important;color:#fff!important}
.ef-bulk{position:sticky;top:64px;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin-bottom:10px;border-radius:14px;background:var(--hx-ink);color:#fff;box-shadow:var(--hx-shadow)}
.ef-bulk[hidden]{display:none!important}.ef-bulk b{margin-right:auto}
.ef-bulk select{height:36px;border-radius:10px;border:0;padding:0 10px;font:600 13px var(--hx-font,inherit)}
.ef-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--hx-brand)}

/* Campus scenes. The same theme-specific photograph serves the entrance and portal banners. */
html.hx {
 --campus-photo:url('/assets/campus/learning-commons-day.webp');
 --campus-tint:#103e36;
 --campus-panel:linear-gradient(145deg,var(--hx-paper) 44%,#edf6f0);
 --campus-accent:#d8efbe;
}
html.hx[data-theme="dark"] {
 --campus-photo:url('/assets/campus/learning-commons-night.webp');
 --campus-tint:#0b223c;
 --campus-panel:linear-gradient(145deg,var(--hx-paper) 44%,#13263c);
 --campus-accent:#cde6ff;
}
html.hx:not(.a11y-contrast) #login.hx-login {background:var(--campus-panel)!important}
html.hx:not(.a11y-contrast) :is(#login .login-showcase,#shell>main .edu-banner,#shell>main .university-hero) {
 background:var(--campus-photo) 70% 49%/cover no-repeat,var(--campus-tint)!important;
}
html.hx:not(.a11y-contrast) #login .login-showcase {
 justify-content:space-between!important;
}
html.hx:not(.a11y-contrast) #login .showcase-copy p,
html.hx:not(.a11y-contrast) #shell>main :is(.edu-banner p,.university-hero p) {
 color:#e6f0f4!important;
}
html.hx:not(.a11y-contrast) #login .login-showcase::before {
 inset:auto 0 0;
 height:48%;
 opacity:1;
 background:linear-gradient(0deg,rgba(4,24,25,.86),transparent);
 -webkit-mask-image:none;
 mask-image:none;
}
html.hx:not(.a11y-contrast) #login .login-showcase::after {
 content:"";
 position:absolute;
 z-index:-1;
 inset:0;
 pointer-events:none;
 background:radial-gradient(ellipse at 93% 16%,rgba(255,212,118,.31),transparent 45%);
}
html.hx:not(.a11y-contrast)[data-theme="dark"] #login .login-showcase::after {
 background:
  url('/assets/campus/moon-crisp.webp') 95% 7%/clamp(100px,18vw,240px) auto no-repeat,
  url('/assets/campus/night-star.webp') 79% 16%/24px auto no-repeat,
  url('/assets/campus/night-star.webp') 96% 33%/16px auto no-repeat,
  radial-gradient(ellipse at 90% 18%,rgba(120,177,255,.22),transparent 44%);
}
html.hx:not(.a11y-contrast) #login .hx-login-features li {
 background:rgba(5,27,27,.88);
 border:1px solid rgba(227,247,222,.22);
 border-radius:12px;
 padding:12px;
}
html.hx:not(.a11y-contrast) #login .hx-login-features svg,
html.hx:not(.a11y-contrast) #shell>main .edu-banner>span {
 color:var(--campus-accent)!important;
 stroke:currentColor;
}
html.hx #login .login-card {position:relative}
html.hx #login .login-card h1 {padding-inline-end:48px}
html.hx #login .login-card .campus-theme-toggle {
 position:absolute;
 inset-block-start:0;
 inset-inline-end:0;
 width:40px;
 height:40px;
 padding:0;
 border:1px solid var(--hx-line-strong);
 border-radius:12px;
 background:var(--hx-surface);
 color:var(--hx-text);
 font-size:20px;
 cursor:pointer;
}
html.hx:not(.a11y-contrast) #shell>main .edu-banner {
 min-height:132px;
 padding-inline-end:clamp(24px,18vw,220px)!important;
}
html.hx:not(.a11y-contrast) #shell>main .edu-banner::after {content:none}
html.hx:not(.a11y-contrast) #shell>main .edu-banner>div {padding:0}
html.hx:not(.a11y-contrast) #sidebar {
 background:linear-gradient(180deg,#0e292b,#102139 56%,#101932)!important;
}
html.hx:not(.a11y-contrast)[data-theme="dark"] #sidebar {
 background:linear-gradient(180deg,#10243c,#0d142e 64%,#091221)!important;
}
@media (min-width:961px) and (prefers-reduced-motion:no-preference) {
 html.hx:not(.a11y-reduce-motion):not(.a11y-contrast) #login:not(.hidden) .login-showcase::after {
  animation:campus-light 8s ease-in-out 2 alternate;
 }
 html.hx:not(.a11y-reduce-motion):not(.a11y-contrast) #login:not(.hidden) .hx-login-features li {
  animation:campus-enter 550ms var(--hx-ease) both;
 }
 html.hx:not(.a11y-reduce-motion):not(.a11y-contrast) #login:not(.hidden) .hx-login-features li:nth-child(2) {animation-delay:90ms}
 html.hx:not(.a11y-reduce-motion):not(.a11y-contrast) #login:not(.hidden) .hx-login-features li:nth-child(3) {animation-delay:180ms}
 html.hx:not(.a11y-reduce-motion):not(.a11y-contrast) #dashboard.active .edu-banner {
  animation:campus-enter 420ms var(--hx-ease) both;
 }
}
@keyframes campus-light {
 from {opacity:.72;transform:translate3d(0,0,0)}
 to {opacity:1;transform:translate3d(-10px,4px,0)}
}
@keyframes campus-enter {
 from {opacity:0;transform:translateY(9px)}
 to {opacity:1;transform:translateY(0)}
}
@media (max-width:960px) {
 html.hx:not(.a11y-contrast) #login .login-showcase {padding-bottom:42px!important}
 html.hx #login .login-card .campus-theme-toggle {inset-block-start:23px;inset-inline-end:20px}
 html.hx:not(.a11y-contrast) #shell>main .edu-banner {min-height:106px}
}
@media (max-width:540px) {
 html.hx:not(.a11y-contrast) #login .login-showcase {

 }
 html.hx:not(.a11y-contrast)[data-theme="dark"] #login .login-showcase {

 }
}

/* Tactile controls and icon tiles for the portal navigation. */
html.hx {
 --campus-button:linear-gradient(150deg,#157d62,#105d52 72%);
 --campus-button-hover:linear-gradient(150deg,#167e68,#084c43 72%);
 --campus-button-edge:#073b38;
 --campus-tile:linear-gradient(145deg,#284745,#152b36);
 --campus-tile-active:linear-gradient(145deg,#e1ffc8,#83ddad);
 --campus-tile-ink:#092b22;
}
html.hx[data-theme="dark"] {
 --campus-button:linear-gradient(150deg,#2e69bb,#234b8c 72%);
 --campus-button-hover:linear-gradient(150deg,#346dc0,#1b3d77 72%);
 --campus-button-edge:#142a53;
 --campus-tile:linear-gradient(145deg,#263d66,#18284a);
 --campus-tile-active:linear-gradient(145deg,#d7f6ff,#86baff);
 --campus-tile-ink:#102647;
}
html.hx:not(.a11y-contrast) :is(#login .login-submit,#shell>main #dashboardAddSchedule) {
 background:var(--campus-button)!important;
 border:1px solid rgba(158,223,221,.42)!important;
 border-radius:12px!important;
 color:#fff!important;
 box-shadow:0 3px 0 var(--campus-button-edge),inset 0 1px 0 rgba(255,255,255,.23)!important;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:10px;
}
html.hx:not(.a11y-contrast) :is(#login .login-submit,#shell>main #dashboardAddSchedule):not(:disabled):hover {
 background:var(--campus-button-hover)!important;
}
html.hx:not(.a11y-contrast) :is(#login .login-submit,#shell>main #dashboardAddSchedule):not(:disabled):active {
 transform:translateY(2px);
 box-shadow:0 1px 0 var(--campus-button-edge)!important;
}
html.hx :is(#login .login-submit,#shell>main #dashboardAddSchedule) .campus-action-icon {
 width:20px;
 height:20px;
 fill:none;
 stroke:currentColor;
 stroke-width:2;
 stroke-linecap:round;
 stroke-linejoin:round;
 flex:none;
}
html.hx:not(.a11y-contrast) #sidebar nav button {
 min-height:40px!important;
}
html.hx:not(.a11y-contrast) #sidebar nav button [data-ico],
html.hx:not(.a11y-contrast) .hx-tabbar button [data-ico] {
 width:30px!important;
 height:30px!important;
 display:inline-grid!important;
 place-items:center;
 border-radius:9px!important;
 color:#edf9ff!important;
 background:var(--campus-tile)!important;
 border:1px solid rgba(255,255,255,.19)!important;
 box-shadow:0 2px 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.09)!important;
}
html.hx:not(.a11y-contrast) #sidebar nav button.active [data-ico],
html.hx:not(.a11y-contrast) .hx-tabbar button.active [data-ico] {
 background:var(--campus-tile-active)!important;
 color:var(--campus-tile-ink)!important;
}
@media (prefers-reduced-motion:no-preference) {
 html.hx:not(.a11y-reduce-motion):not(.a11y-contrast) :is(#login .login-submit,#shell>main #dashboardAddSchedule) {
  transition:transform .12s,box-shadow .12s;
 }
}
