/* Академия ЦЭЛТ — design system.
 * Colours from celt.ru (navy #1d3e71 / #0e2f76, light blues #d1defa #dbe7f7 #f1f5fd, sky #5cc4ef,
 * red #d6453b for errors and «В эфире» only). Fonts: Inter (text) and Onest (headings), both SIL OFL 1.1,
 * self-hosted in /fonts. No CDN, no inline styles (strict CSP): every colour is a class or a token. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable-cyr-lat.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest/OnestVariable-cyr-lat.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --navy: #1d3e71;
  --navy-deep: #0e2f76;
  --navy-ink: #0b2350;
  --blue-1: #d1defa;
  --blue-2: #dbe7f7;
  --blue-3: #f1f5fd;
  --sky: #5cc4ef;
  --sky-deep: #1b86b5;
  --red: #d6453b;

  --bg: #ffffff;
  --bg-soft: #f1f5fd;
  --bg-muted: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --line: #e3e8f1;
  --line-strong: #d1defa;
  --text: #2b2b2b;
  --text-2: #424242;
  --muted: #5c6577;
  --heading: #14213d;

  --primary: var(--navy);
  --primary-hover: var(--navy-deep);
  --primary-ink: #ffffff;
  --primary-soft: #dbe7f7;
  --primary-soft-ink: #1d3e71;
  --link: #1d4f9a;
  --focus: #1b86b5;

  --ok: #1f7a4d; --ok-soft: #e4f4ea;
  --warn: #8a5300; --warn-soft: #fff3dc;
  --danger: #b8352c; --danger-soft: #fdecea;

  --hero-1: #0e2f76; --hero-2: #1d3e71; --hero-ink: #ffffff; --hero-muted: rgba(255,255,255,.78);

  --radius-xs: 6px; --radius-s: 10px; --radius: 14px; --radius-l: 20px;
  --shadow-1: 0 1px 2px rgba(20, 33, 61, .06);
  --shadow-2: 0 1px 2px rgba(20, 33, 61, .05), 0 6px 20px rgba(20, 33, 61, .07);
  --shadow-3: 0 2px 4px rgba(20, 33, 61, .06), 0 16px 40px rgba(20, 33, 61, .12);
  --wrap: 1240px;
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* Dark: derived from the navy. Applies when chosen, or when the system asks and nothing was chosen. */
:root[data-theme="dark"] {
  --bg: #0b1526; --bg-soft: #0f1c33; --bg-muted: #0e1a2e; --surface: #111f37; --surface-2: #15253f;
  --line: #22355a; --line-strong: #2b4270;
  --text: #e6ebf4; --text-2: #c9d2e3; --muted: #9aa8c2; --heading: #f2f5fb;
  --primary: #5cc4ef; --primary-hover: #84d3f4; --primary-ink: #04203a;
  --primary-soft: #18315a; --primary-soft-ink: #cfe0ff; --link: #8cc8ff; --focus: #84d3f4;
  --ok: #6fd39b; --ok-soft: #12301f; --warn: #f2c26b; --warn-soft: #2f2410; --danger: #ff8a80; --danger-soft: #3a1714;
  --hero-1: #0a1a3f; --hero-2: #12295a;
  --shadow-1: 0 1px 2px rgba(0,0,0,.35);
  --shadow-2: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
  --shadow-3: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1526; --bg-soft: #0f1c33; --bg-muted: #0e1a2e; --surface: #111f37; --surface-2: #15253f;
    --line: #22355a; --line-strong: #2b4270;
    --text: #e6ebf4; --text-2: #c9d2e3; --muted: #9aa8c2; --heading: #f2f5fb;
    --primary: #5cc4ef; --primary-hover: #84d3f4; --primary-ink: #04203a;
    --primary-soft: #18315a; --primary-soft-ink: #cfe0ff; --link: #8cc8ff; --focus: #84d3f4;
    --ok: #6fd39b; --ok-soft: #12301f; --warn: #f2c26b; --warn-soft: #2f2410; --danger: #ff8a80; --danger-soft: #3a1714;
    --hero-1: #0a1a3f; --hero-2: #12295a;
    --shadow-1: 0 1px 2px rgba(0,0,0,.35);
    --shadow-2: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
    --shadow-3: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
img, video { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.icon { flex: none; vertical-align: middle; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 479px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .8rem; }
.lead { font-size: 1.125rem; color: var(--text-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 2000; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .no-js-only { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

main { min-height: 60vh; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-soft { background: var(--bg-soft); }
.section-alt { background: var(--bg-soft); }
@media (max-width: 639px) { .section { padding: 40px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; font: 600 .78rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 8px; }
:root[data-theme="dark"] .eyebrow { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--sky); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- top bars ---------- */
.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .875rem; padding: 6px 16px; }
.impersonation-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 10px 16px; background: #8a1c1c; color: #fff; font-size: .95rem; text-align: center; }
.impersonation-bar form { margin: 0; }
.impersonation-bar button { background: #fff; color: #8a1c1c; border: 0; border-radius: 6px; padding: 6px 12px; font: 600 .9rem var(--font); cursor: pointer; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; flex: none; }
.brand:hover { color: var(--heading); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; display: grid; place-items: center; font: 700 19px/1 var(--font-head); box-shadow: inset 0 -2px 0 rgba(92,196,239,.55); }
.brand-text { font: 700 1.02rem/1.1 var(--font-head); letter-spacing: -0.01em; }
.brand-text small { display: block; font: 500 .7rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: var(--radius-s); font-weight: 550; color: var(--text); }
.menu-trigger:hover, .menu[open] > .menu-trigger { background: var(--bg-soft); }
.menu[open] > .menu-trigger .icon { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 8px; z-index: 120; }
.menu-right { left: auto; right: 0; min-width: 240px; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; background: none; border: 0; font: 500 .95rem var(--font); cursor: pointer; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-soft); color: var(--text); }
.menu-panel form { margin: 0; }
.menu-head { display: flex; flex-direction: column; padding: 8px 12px 10px; margin: 0 0 6px; border-bottom: 1px solid var(--line); }
.menu-all { justify-content: space-between; color: var(--link) !important; font-weight: 600 !important; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-s) var(--radius-s) !important; margin-top: 6px; }
.dept-badge { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; color: #fff; }

.header-search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; }
.header-search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.header-search input[type=search] { width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: 400 .95rem var(--font); }
.header-search input[type=search]:focus { background: var(--surface); border-color: var(--line-strong); }
.nav-main { display: flex; align-items: center; gap: 2px; }
.nav-main a { padding: 8px 10px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-weight: 550; white-space: nowrap; }
.nav-main a:hover { background: var(--bg-soft); color: var(--text); }
.nav-main a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-grid; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.avatar { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-ink); font: 700 .9rem var(--font-head); }
.mobile-menu .i-close { display: none; }
.mobile-menu[open] .i-close { display: block; }
.mobile-menu[open] .i-open { display: none; }
.mobile-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); max-height: calc(100dvh - var(--header-h) - 16px); overflow-y: auto; min-width: 0; }
.mobile-search { display: flex; gap: 8px; padding: 4px 4px 10px; }
.mobile-search input { flex: 1; min-width: 0; height: 44px; }
.mobile-panel .btn-block { margin-top: 8px; justify-content: center; color: var(--primary-ink); }
.mobile-panel .btn-block:hover { background: var(--primary-hover); color: var(--primary-ink); }

@media (min-width: 1100px) { .mobile-menu { display: none; } }
@media (max-width: 1099px) {
  .nav-main, .dept-menu, .header-search { display: none; }
  .hide-sm { display: none !important; }
  .user-menu { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: 600 .98rem/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; color: var(--text); background: var(--surface); border-color: var(--line); }
.btn:hover { border-color: var(--line-strong); color: var(--text); }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn-secondary { background: var(--primary-soft); color: var(--primary-soft-ink); border-color: transparent; }
.btn-secondary:hover { color: var(--primary-soft-ink); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--primary); }
.btn-text { background: none; border-color: transparent; color: var(--text); padding: 0 12px; }
.btn-text:hover { background: var(--bg-soft); border-color: transparent; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--blue-2); color: var(--navy-deep); border-color: var(--blue-2); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-soft-ink); border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- chips, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font: 500 .9rem var(--font); background: var(--surface); white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); background: var(--bg-soft); color: var(--text); }
.chip.is-on, .chip[aria-current="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip .count { color: var(--muted); font-size: .8rem; }
.chip.is-on .count { color: inherit; opacity: .8; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 .75rem/1 var(--font); padding: 5px 8px; border-radius: 6px; background: var(--bg-muted); color: var(--text-2); white-space: nowrap; }
.badge-free { background: var(--ok-soft); color: var(--ok); }
.badge-live { background: var(--danger-soft); color: var(--danger); }
.badge-soft { background: var(--primary-soft); color: var(--primary-soft-ink); }
.badge-done { background: var(--ok-soft); color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem/1.2 var(--font); padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-ink); }
.pill-live { background: var(--danger-soft); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot-live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Department palettes (cover gradients, badges). Brand blues only. */
.accent-navy { background: linear-gradient(140deg, #0e2f76 0%, #1d3e71 55%, #2b5aa3 100%); }
.accent-sky { background: linear-gradient(140deg, #0d4f7c 0%, #146c9e 55%, #1f8cc2 100%); }
.accent-indigo { background: linear-gradient(140deg, #26306f 0%, #3a4a9f 60%, #6a7fd6 100%); }
.accent-sea { background: linear-gradient(140deg, #0f5560 0%, #187a86 60%, #46b3bf 100%); }
.accent-slate { background: linear-gradient(140deg, #2c3a55 0%, #44587d 60%, #7d8fb2 100%); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.on-dark .crumbs, .crumbs.on-dark { color: var(--hero-muted); }
.on-dark .crumbs a:hover { color: #fff; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); background: radial-gradient(900px 420px at 85% -10%, rgba(92,196,239,.28), transparent 60%), linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 75%); padding: 64px 0 72px; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 45%; height: 120%; background: radial-gradient(closest-side, rgba(209,222,250,.12), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); } }
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: 16px; }
.hero .lead { color: var(--hero-muted); max-width: 54ch; }
.hero .pill { background: rgba(92,196,239,.18); color: #c9efff; }
.hero-search { display: flex; gap: 8px; margin-top: 24px; max-width: 560px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(4, 16, 44, .35); }
.hero-search .icon { color: #5c6577; margin: 0 2px 0 8px; align-self: center; }
.hero-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; color: #2b2b2b; font: 400 1rem var(--font); padding: 0 6px; min-height: 44px; }
.hero-search input[type=search]:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.hero-search .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero-search .btn-primary:hover { background: var(--navy-deep); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--hero-muted); font-size: .92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--sky); }
.hero-panel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-l); padding: 22px; backdrop-filter: blur(6px); }
.hero-panel h2 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.hero-panel .muted, .hero-panel p { color: var(--hero-muted); }
.hero-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-panel-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,.06); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.08); }
.hero-panel-list a:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-panel-list strong { display: block; font-weight: 600; }
.hero-panel-list small { color: var(--hero-muted); }
.hero-panel-list .icon:last-child { margin-left: auto; opacity: .7; }
.hero-panel .btn-row { margin-top: 14px; }

/* ---------- department tiles ---------- */
.dept-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
.dept-tile { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--text); text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.dept-tile:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); color: var(--text); transform: translateY(-2px); }
.dept-tile .dept-badge { width: 56px; height: 56px; border-radius: 16px; }
.dept-tile h3 { margin: 2px 0 6px; font-size: 1.25rem; }
.dept-tile p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.dept-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--text-2); }
.dept-stats span { display: inline-flex; align-items: center; gap: 6px; }
.dept-tile .chips { margin-top: 12px; }
.dept-tile .chip { min-height: 30px; font-size: .82rem; padding: 0 10px; pointer-events: none; }
.dept-tile .go { position: absolute; right: 18px; top: 22px; color: var(--muted); }

/* ---------- course cards ---------- */
.grid-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .grid-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ccard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; min-width: 0; }
.ccard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-strong); }
.ccard:focus-within { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.ccover { position: relative; aspect-ratio: 16 / 9; color: #fff; overflow: hidden; }
.ccover img { width: 100%; height: 100%; object-fit: cover; }
.ccover .art { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.ccover .art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at 100% 0%, rgba(255,255,255,.18), transparent 70%), repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.ccover .art-icon { position: absolute; right: -14px; bottom: -18px; width: 132px; height: 132px; opacity: .22; color: #fff; }
.ccover .art-top { position: relative; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ccover .art-dept { font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.16); }
.ccover .art-topic { position: relative; font: 600 1.02rem/1.25 var(--font-head); max-width: 80%; text-wrap: balance; }
.ccover .badge { position: relative; background: rgba(255,255,255,.92); color: #1f7a4d; }
.cbody { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.cprovider { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.cprovider .brand-mark { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; box-shadow: none; }
.ctitle { font: 650 1.06rem/1.3 var(--font-head); margin: 0; color: var(--heading); }
.ctitle a { color: inherit; text-decoration: none; }
.ctitle a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ctitle a:focus-visible { outline: none; }
.ccard:has(.ctitle a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.csub { margin: 0; color: var(--text-2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: .84rem; color: var(--muted); }
.cmeta span { display: inline-flex; align-items: center; gap: 5px; }
.cfaculty { font-size: .85rem; color: var(--text-2); }
.cprogress { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.cprogress .bar { flex: 1; }

/* Horizontal rails become a scroll strip on phones, a grid on desktop. */
.rail { display: grid; gap: 20px; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: minmax(280px, 46%); } }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; margin: 0; } }

/* ---------- progress ---------- */
progress.bar { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
progress.bar::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--sky-deep), var(--sky)); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--sky-deep), var(--sky)); border-radius: 99px; }
progress.bar.done::-webkit-progress-value { background: var(--ok); }
progress.bar.done::-moz-progress-bar { background: var(--ok); }
.ring { position: relative; width: 72px; height: 72px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--sky-deep); transition: stroke-dasharray .4s ease; }
.ring.done .value { stroke: var(--ok); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1rem var(--font-head); color: var(--heading); }
.ring-sm { width: 44px; height: 44px; }
.ring-sm b { font-size: .75rem; }

/* ---------- continue watching ---------- */
.continue-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cw { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); align-items: center; }
.cw:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.cw-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-s); display: grid; place-items: center; color: #fff; overflow: hidden; }
.cw-thumb .icon { width: 34px; height: 34px; padding: 8px; border-radius: 99px; background: rgba(255,255,255,.2); }
.cw h3 { font-size: 1rem; margin: 0 0 2px; }
.cw h3 a { color: var(--heading); text-decoration: none; }
.cw h3 a::after { content: ""; position: absolute; inset: 0; }
.cw p { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.cw .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---------- steps, faq, trust ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-soft-ink); font: 700 1rem var(--font-head); margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }
.trust { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust .panel { display: flex; gap: 14px; align-items: flex-start; }
.trust .panel .ticon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-soft-ink); flex: none; }
.trust .panel h3 { font-size: 1.02rem; margin-bottom: 4px; }
.trust .panel p { margin: 0; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font: 600 1rem var(--font-head); color: var(--heading); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 16px; color: var(--text-2); }
.faq .answer p:last-child { margin: 0; }
.split { display: grid; gap: 28px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }

/* ---------- live ---------- */
.live-list { display: grid; gap: 12px; }
.live-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 760px) { .live-card { grid-template-columns: 84px minmax(0, 1fr) auto; } }
.live-date { text-align: center; border-radius: var(--radius-s); background: var(--primary-soft); color: var(--primary-soft-ink); padding: 8px 4px; line-height: 1.1; }
.live-date b { display: block; font: 700 1.5rem/1 var(--font-head); }
.live-date span { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.live-card h3 { margin: 4px 0; font-size: 1.05rem; }
.live-card p { margin: 0; }
.live-card .side-note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .live-card .side-note { grid-column: auto; max-width: 220px; text-align: right; } }

/* ---------- page heads (department, catalogue, course) ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { margin: 0; max-width: 70ch; }
.dept-hero { color: #fff; padding: 36px 0 40px; position: relative; overflow: hidden; }
.dept-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% 0%, rgba(255,255,255,.16), transparent 60%); }
.dept-hero .wrap { position: relative; }
.dept-hero h1 { color: #fff; }
.dept-hero .lead { color: rgba(255,255,255,.85); }
.dept-hero .dept-badge { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 8px 24px rgba(0,0,0,.25); }
.dept-hero .crumbs { color: rgba(255,255,255,.75); }
.dept-hero .crumbs a:hover { color: #fff; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 0; padding: 0; list-style: none; }
.stat-row li { display: flex; flex-direction: column; }
.stat-row b { font: 700 1.5rem/1.1 var(--font-head); }
.stat-row span { font-size: .85rem; opacity: .8; }
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 14px 12px; color: var(--text-2); text-decoration: none; font-weight: 550; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--primary); border-color: var(--line-strong); }

/* ---------- faculty ---------- */
.faculty-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.person-photo { width: 56px; height: 56px; border-radius: 999px; flex: none; display: grid; place-items: center; font: 700 1.05rem var(--font-head); color: #fff; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1rem; margin: 2px 0 2px; }
.person p { margin: 0; font-size: .875rem; color: var(--muted); }
.person .badge { margin-top: 8px; }

/* ---------- lists (procedures, lessons in search) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@media (min-width: 760px) { .link-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--text); text-decoration: none; min-height: 52px; }
.link-list a:hover { background: var(--bg-soft); color: var(--text); }
.link-list .code { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.link-list .right { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ---------- catalogue ---------- */
.catalog-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 1000px) { .catalog-layout { grid-template-columns: 280px minmax(0, 1fr); } }
.filters-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filters-box > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.filters-box > summary::-webkit-details-marker { display: none; }
@media (min-width: 1000px) {
  .filters-box { align-self: start; }
  .filters-box > summary { pointer-events: none; }
  .filters-box > summary .icon { display: none; }
}
.filters-form { padding: 0 16px 16px; }
.fgroup { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 10px; min-width: 0; }
.fgroup legend { font: 600 .9rem var(--font-head); color: var(--heading); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font: 400 .92rem/1.35 var(--font); margin: 0; cursor: pointer; color: var(--text-2); }
.fopt input { flex: none; }
.fopt .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.fsub { padding-left: 26px; }
.filters-form select { min-height: 40px; font-size: .92rem; }
.filters-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters-actions .btn { flex: 1; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.results-head p { margin: 0; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters .chip { min-height: 32px; font-size: .85rem; background: var(--primary-soft); color: var(--primary-soft-ink); border-color: transparent; }
.active-filters .chip:hover { background: var(--primary-soft); text-decoration: line-through; }
.search-big { display: flex; gap: 8px; margin-top: 16px; max-width: 720px; }
.search-big input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; font-size: 1rem; }
.search-big .btn { min-height: 50px; }
.hit-group { margin-top: 32px; }
.hit-group h2 { font-size: 1.2rem; }

/* ---------- empty states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 36px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--primary); opacity: .8; margin-bottom: 4px; }
.empty h3 { margin: 0; color: var(--heading); font-size: 1.05rem; }
.empty p { margin: 0; max-width: 46ch; }
.empty .btn { margin-top: 10px; }
.empty-inline { padding: 18px; text-align: left; justify-items: start; }

/* ---------- course page ---------- */
.course-hero { color: #fff; background: radial-gradient(800px 360px at 95% -20%, rgba(92,196,239,.25), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); padding: 32px 0 40px; }
.course-hero h1 { color: #fff; max-width: 24ch; }
.course-hero .lead { color: var(--hero-muted); max-width: 62ch; }
.course-hero .crumbs { color: var(--hero-muted); }
.course-hero .crumbs a:hover { color: #fff; }
.course-hero .pill { background: rgba(255,255,255,.12); color: #fff; }
.course-hero .by { color: var(--hero-muted); font-size: .95rem; margin: 12px 0 0; }
.course-hero .by strong { color: #fff; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.facts .icon { color: var(--sky); }
.course-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 1000px) {
  .course-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .course-layout .buy-col { grid-column: 2; grid-row: 1 / span 2; margin-top: -170px; }
}
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-3); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .buy-box { position: sticky; top: calc(var(--header-h) + 16px); } }
.buy-box h2 { font-size: 1.15rem; margin: 0; }
.buy-box .price { font: 700 2rem/1.1 var(--font-head); color: var(--heading); margin: 0; }
.buy-box .price small { font: 500 .85rem var(--font); color: var(--muted); }
.buy-box .btn { width: 100%; }
.buy-box form { margin: 0; }
.buy-list { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .9rem; color: var(--text-2); }
.buy-list li { display: flex; gap: 10px; align-items: flex-start; }
.buy-list .icon { color: var(--ok); margin-top: 2px; }
.my-progress { display: flex; align-items: center; gap: 14px; }
.my-progress p { margin: 0; }
.block { margin-bottom: 36px; }
.block > h2 { margin-bottom: 14px; }
.outcomes { list-style: none; margin: 0; padding: 18px; display: grid; gap: 12px 24px; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; }
.outcomes .icon { color: var(--ok); margin-top: 3px; }
.prose { color: var(--text-2); max-width: 72ch; }
.prereq { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.prereq li + li { margin-top: 6px; }
.syllabus-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.syllabus-head h2 { margin: 0; }
.syllabus-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.module + .module { margin-top: 10px; }
.module > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface-2); }
.module > summary::-webkit-details-marker { display: none; }
.module > summary .icon { transition: transform .2s ease; color: var(--muted); }
.module[open] > summary .icon { transform: rotate(180deg); }
.module > summary h3 { margin: 0; font-size: 1.02rem; flex: 1; }
.module > summary span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li + li { border-top: 1px solid var(--line); }
.lesson-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; text-decoration: none; color: var(--text); min-height: 52px; }
.lesson-row:hover { background: var(--bg-soft); color: var(--text); }
.lesson-row .state { display: grid; place-items: center; color: var(--muted); }
.lesson-row .state.done { color: var(--ok); }
.lesson-row .state.part { color: var(--sky-deep); }
.lesson-row .t { min-width: 0; }
.lesson-row .t strong { display: block; font-weight: 550; line-height: 1.35; }
.lesson-row .t small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.lesson-row .d { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lesson-row[aria-current="page"] { background: var(--primary-soft); }
.lesson-row[aria-current="page"] .t strong { color: var(--primary-soft-ink); font-weight: 650; }

/* ---------- watch page ---------- */
.watch-top { padding-top: 16px; }
.watch { display: grid; gap: 24px; padding-top: 10px; padding-bottom: 48px; grid-template-columns: minmax(0, 1fr); }
.watch > * { min-width: 0; }
@media (min-width: 1100px) { .watch { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 639px) { .watch { padding-top: 0; } .player { margin: 0 -16px; border-radius: 0 !important; } .watch-top .crumbs { margin-bottom: 8px; } }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; user-select: none; -webkit-user-select: none; }
.player video { width: 100%; height: 100%; background: #000; }
.player-shell:fullscreen, .player-shell.is-page-full { display: flex; flex-direction: column; background: #000; color: #fff; }
.player-shell:fullscreen .player, .player-shell.is-page-full .player { flex: 1; min-height: 0; aspect-ratio: auto; border-radius: 0; margin: 0; }
.player-shell:fullscreen .surgery-bar, .player-shell.is-page-full .surgery-bar { background: #000; color: #fff; padding: 8px; margin: 0; }
/* iPhones have no element fullscreen: the player fills the page instead, watermark included. */
.player-shell.is-page-full { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.player-shell.is-page-full .surgery-bar { flex-wrap: nowrap; overflow-x: auto; flex: none; }
.player-shell.is-page-full .surgery-bar > * { flex: none; }
.player-shell.is-page-full .mini-controls { padding: 8px 8px 0; margin: 0; }
html.page-full-open, html.page-full-open body { overflow: hidden; }
.mini-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mini-controls button { min-height: 44px; min-width: 96px; padding: 0 12px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: 600 .9rem var(--font); cursor: pointer; }
.mini-controls input { flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; }
.mini-controls span { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.surgery-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.surgery-bar button, .surgery-bar select { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: 600 .88rem var(--font); cursor: pointer; }
.surgery-bar button:hover, .surgery-bar select:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.surgery-bar select { width: auto; min-width: 0; }
.surgery-bar select option { color: #111; }
.surgery-bar button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.surgery-bar .speed { display: inline-flex; align-items: center; gap: 6px; margin: 0; font: 600 .88rem var(--font); }
.surgery-bar .loop-state { font-size: .86rem; color: var(--muted); }
.surgery-bar .loop-ab { display: inline-flex; gap: 6px; }
.surgery-bar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 2px; }
.watermark { position: absolute; z-index: 3; pointer-events: none; font: 600 13px/1.2 var(--font); color: rgba(255,255,255,.42); text-shadow: 0 0 2px rgba(0,0,0,.6); transition: top 1.2s ease, left 1.2s ease; white-space: nowrap; }
.player-overlay { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; background: rgba(6, 16, 36, .92); color: #fff; padding: 16px; text-align: center; overflow-y: auto; }
.player-overlay.is-on { display: grid; }
.player-overlay .box { max-width: 560px; width: 100%; }
.player-overlay h2 { color: #fff; font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.player-overlay p { color: rgba(255,255,255,.85); }
.player-tools { position: absolute; z-index: 5; top: 10px; right: 10px; display: flex; gap: 6px; }
.player-tools button { background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font: 600 13px var(--font); cursor: pointer; }
.upnext-overlay .btn-row { justify-content: center; }
.upnext-overlay .label { font: 600 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.preview-bar { margin-top: 10px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preview-bar .pill { background: var(--warn-soft); color: var(--warn); }
.options { display: grid; gap: 10px; text-align: left; margin-top: 14px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.option:hover { background: rgba(255,255,255,.14); color: #fff; }
.option strong { font-size: 1.05rem; }
.lesson-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; margin-top: 20px; }
.lesson-head h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); margin: 0 0 6px; }
.lesson-head .course-link { margin: 0; color: var(--muted); }
.lesson-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.side { display: flex; flex-direction: column; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.panel > h2, .panel > h3 { font-size: 1.02rem; margin-bottom: 12px; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush > h2, .panel-flush > h3, .panel-flush > .panel-head { padding: 14px 16px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-head h2 { font-size: 1.02rem; margin: 0; }
.panel .lessons { max-height: 460px; overflow-y: auto; border-top: 1px solid var(--line); }
.panel .lesson-row { padding: 10px 14px; grid-template-columns: 24px minmax(0, 1fr) auto; }
.upnext { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--text); position: relative; }
.upnext:hover { color: var(--text); }
.upnext .cw-thumb { aspect-ratio: 16/10; }
.upnext small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.upnext strong { display: block; line-height: 1.35; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters button { width: 100%; text-align: left; display: flex; gap: 10px; padding: 9px 10px; border: 0; background: none; color: var(--text); font: .93rem/1.4 var(--font); border-radius: 8px; cursor: pointer; align-items: flex-start; }
.chapters button:hover { background: var(--bg-soft); }
.chapters .time { color: var(--link); font-variant-numeric: tabular-nums; min-width: 48px; font-weight: 600; }
.chapters .locked { color: var(--muted); }
.chapters .locked .icon { margin-left: auto; }
dl.case { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; font-size: .93rem; }
dl.case dt { color: var(--muted); }
dl.case dd { margin: 0; }
.notes-form textarea { width: 100%; min-height: 84px; resize: vertical; }
.notes-form .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.notes-form .check { margin: 0; font-size: .88rem; }
.notes-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.note { padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; }
.note-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.note-time { border: 0; background: var(--primary-soft); color: var(--primary-soft-ink); font: 600 .78rem var(--font); padding: 3px 8px; border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.note-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.note-del:hover { color: var(--danger); background: var(--danger-soft); }
.note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-msg { font-size: .85rem; margin: 6px 0 0; min-height: 1.2em; }
.form-msg.err { color: var(--danger); }

/* ---------- my learning ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dash-head h1 { margin: 0 0 4px; }
.dash-tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 18px; scrollbar-width: none; }
.dash-tabs a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 550; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.dash-tabs a:hover { border-color: var(--line-strong); color: var(--primary); }
.dash-tabs .count { color: var(--muted); font-weight: 500; margin-left: 4px; }
.enrol-list { display: grid; gap: 12px; }
.enrol { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); align-items: center; }
@media (min-width: 760px) { .enrol { grid-template-columns: 160px minmax(0, 1fr) auto; } }
.enrol .cw-thumb { aspect-ratio: 16/10; }
.enrol h3 { margin: 0 0 4px; font-size: 1.05rem; }
.enrol h3 a { color: var(--heading); text-decoration: none; }
.enrol h3 a:hover { text-decoration: underline; }
.enrol p { margin: 0 0 8px; font-size: .86rem; color: var(--muted); }
.enrol .pct { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.enrol .pct progress { max-width: 280px; }
.enrol .act { grid-column: 1 / -1; }
@media (min-width: 760px) { .enrol .act { grid-column: auto; } }
.note-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.note-group + .note-group { margin-top: 12px; }
.note-group h3 { font-size: 1rem; margin: 0 0 2px; }
.note-group .notes-list { margin-top: 10px; }
.pref-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pref-form select { width: auto; min-width: 220px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .93rem; color: var(--heading); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 400 1rem var(--font);
}
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 0; border-color: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); }
.check input { flex: none; margin-top: 2px; }
main:has(> .wrap > .form-card), main:has(> .wrap > .auth-card) { background: radial-gradient(800px 360px at 100% 0%, var(--blue-2), transparent 60%), var(--bg-soft); }
:root[data-theme="dark"] main:has(> .wrap > .form-card) { background: var(--bg-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main:has(> .wrap > .form-card) { background: var(--bg-soft); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; }
.form-card { max-width: 520px; margin: 0 auto; padding: 32px; box-shadow: var(--shadow-3); display: block; }
main > .wrap:has(> .form-card) { padding-top: 40px; padding-bottom: 56px; }
@media (max-width: 479px) { .form-card { padding: 22px 18px; } main > .wrap:has(> .form-card) { padding-top: 20px; padding-bottom: 32px; } }
.form-card h1 { font-size: 1.7rem; }
.form-card .price { font: 700 1.9rem var(--font-head); color: var(--heading); }
.errors { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.errors ul { margin: 0; padding-left: 1.1em; }
.notice { background: var(--primary-soft); color: var(--primary-soft-ink); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.note-draft { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: .92rem; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; }

/* ---------- tables (account) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scroll-x .table tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
  .table.stack td:empty { display: none; }
}
.account-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .account-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.account-grid .wide { grid-column: 1 / -1; }

/* ---------- legal ---------- */
.legal { max-width: 780px; padding-top: 8px; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal p, .legal li { color: var(--text-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.78); padding: 44px 0 0; margin-top: 0; font-size: .92rem; }
:root[data-theme="dark"] .site-footer { background: #07101f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #07101f; } }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-text small { color: rgba(255,255,255,.6); }
.site-footer .footer-about p { margin-top: 14px; max-width: 46ch; }
.footer-h { font: 600 .82rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 4px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 32px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.site-footer :focus-visible { outline-color: var(--sky); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ccard:hover, .dept-tile:hover { transform: none; }
  .watermark { transition: none; }
}
.topic-chips { margin-bottom: 20px; }
#all-access-note { margin-top: 18px; }
@media (min-width: 1000px) { .course-layout .course-main { grid-column: 1; grid-row: 1; } .faculty-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buy-prices { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.buy-prices p { margin: 0; }
.fgroup .fl { margin: 0; font: inherit; color: inherit; }
.ring-mini { display: block; }
.case-panel { margin-top: 20px; }
.dept-tile { padding-right: 52px; }
@media (max-width: 959px) { .hero-panel { display: none; } .hero { padding: 40px 0 48px; } }
@media (max-width: 479px) { .hero .btn-row .btn { flex: 1 1 100%; } }
.lesson-row .t small.free-note { color: var(--ok); font-weight: 600; }
.lesson-head + p, .lesson-head + .prose { margin-top: 14px; }
.lesson-actions { margin-bottom: 4px; }
@media (max-width: 639px) { .surgery-bar .sep { display: none; } .watch-top .crumbs li:not(:first-child):not(:last-child) { display: none; } }
.lesson-row .lesson-free { margin-top: 6px; }
.form-card form + p { margin-top: 16px; }
.menu-panel .mobile-search input[type=search] { flex: 1; width: auto; min-width: 0; min-height: 44px; }
.menu-panel .mobile-search button { width: auto; flex: none; justify-content: center; background: var(--primary); color: var(--primary-ink); padding: 0 14px; min-height: 44px; }
.menu-panel .mobile-search button:hover { background: var(--primary-hover); color: var(--primary-ink); }
.menu-panel a.btn-primary { background: var(--primary); color: var(--primary-ink); justify-content: center; font-weight: 600; min-height: 46px; margin-top: 8px; }
.menu-panel a.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }

/* ---------- review round 1 (visual-qa, 2026-11-17) ---------- */
/* 1. Course purchase: one loud primary; secondary readable in dark. */
.mobile-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-2); position: sticky; top: calc(var(--header-h) + 8px); z-index: 40; }
.mobile-buy > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mobile-buy strong { font: 700 1.25rem var(--font-head); color: var(--heading); }
.mobile-buy .btn { flex: none; }
@media (min-width: 1000px) { .mobile-buy { display: none; } }
@media (max-width: 999px) { .mobile-buy { order: 0; } .course-layout .course-main { order: 1; } .course-layout .buy-col { order: 2; } }
.owned { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-weight: 600; }
.buy-box .next-line { margin: -4px 0 0; }
.all-access-line { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.all-access-line p { margin: 0; }
:root[data-theme="dark"] .btn-secondary { background: rgba(92,196,239,.12); color: #c4ebfc; border-color: rgba(92,196,239,.38); }
:root[data-theme="dark"] .btn-secondary:hover { background: rgba(92,196,239,.2); color: #e4f6fe; }
:root[data-theme="dark"] .btn-ghost { color: #9bd9f5; border-color: #2f4c7c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-secondary { background: rgba(92,196,239,.12); color: #c4ebfc; border-color: rgba(92,196,239,.38); }
  :root:not([data-theme="light"]) .btn-secondary:hover { background: rgba(92,196,239,.2); color: #e4f6fe; }
  :root:not([data-theme="light"]) .btn-ghost { color: #9bd9f5; border-color: #2f4c7c; }
}

/* 3. Own radios and checkboxes: transparent with a line border; checked = navy (light) / sky (dark). */
:root { --check: #1d3e71; --check-ink: #ffffff; }
:root[data-theme="dark"] { --check: #5cc4ef; --check-ink: #04203a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --check: #5cc4ef; --check-ink: #04203a; } }
input[type=radio], input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex: none; display: inline-grid; place-content: center; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; vertical-align: middle; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox] { border-radius: 5px; }
.check input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
input[type=radio]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--check-ink); transform: scale(0); }
input[type=checkbox]::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--check-ink); border-bottom: 2px solid var(--check-ink); transform: translateY(-1px) rotate(-45deg) scale(0); }
input[type=radio]:checked, input[type=checkbox]:checked { background: var(--check); border-color: var(--check); }
input[type=radio]:checked::before { transform: scale(1); }
input[type=checkbox]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type=radio]:hover, input[type=checkbox]:hover { border-color: var(--check); }
input[type=radio]:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.surgery-bar select { padding-right: 30px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; }
select option { background: var(--surface); color: var(--text); }

/* 4. Few items: one or two wide horizontal cards instead of a lonely grid cell. */
@media (min-width: 700px) {
  .grid-cards:has(> .ccard:only-child), .grid-cards:has(> .ccard:nth-child(2):last-child),
  .rail:has(> .ccard:only-child), .rail:has(> .ccard:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; overflow: visible; padding: 0; margin: 0; }
  .grid-cards > .ccard:nth-last-child(-n+2):first-child, .grid-cards > .ccard:nth-child(2):last-child,
  .rail > .ccard:nth-last-child(-n+2):first-child, .rail > .ccard:nth-child(2):last-child { flex-direction: row; }
  .grid-cards > .ccard:nth-last-child(-n+2):first-child .ccover, .grid-cards > .ccard:nth-child(2):last-child .ccover,
  .rail > .ccard:nth-last-child(-n+2):first-child .ccover, .rail > .ccard:nth-child(2):last-child .ccover { width: 42%; max-width: 440px; aspect-ratio: auto; min-height: 220px; flex: none; }
  .grid-cards > .ccard:nth-last-child(-n+2):first-child .cbody, .grid-cards > .ccard:nth-child(2):last-child .cbody,
  .rail > .ccard:nth-last-child(-n+2):first-child .cbody, .rail > .ccard:nth-child(2):last-child .cbody { padding: 22px 24px; gap: 10px; }
  .grid-cards > .ccard:only-child .ctitle, .rail > .ccard:only-child .ctitle { font-size: 1.3rem; }
  .grid-cards > .ccard:only-child .csub, .rail > .ccard:only-child .csub { -webkit-line-clamp: 3; line-clamp: 3; font-size: 1rem; }
}
.dept-split { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .dept-split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.dept-split .side-faculty h2 { font-size: 1.2rem; margin-bottom: 12px; }
.dept-split .side-faculty .faculty-grid { grid-template-columns: minmax(0, 1fr); }
.catalog-layout.compact { grid-template-columns: minmax(0, 1fr); }
.catalog-layout.compact .filters-box > summary { pointer-events: auto; }
.catalog-layout.compact .filters-box > summary .icon { display: inline-block; }
@media (min-width: 1000px) {
  .catalog-layout.compact .filters-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .catalog-layout.compact .filters-actions { grid-column: 1 / -1; }
}

/* 5. Filter groups fold. */
details.fgroup { border-top: 1px solid var(--line); padding: 0; }
details.fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 12px 0; font: 600 .9rem var(--font-head); color: var(--heading); }
details.fgroup > summary::-webkit-details-marker { display: none; }
details.fgroup > summary .icon { color: var(--muted); transition: transform .2s ease; margin-left: auto; }
details.fgroup[open] > summary .icon { transform: rotate(180deg); }
details.fgroup > .fbody { padding: 0 0 12px; }
details.fgroup .on-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--check); margin-left: 8px; }

/* 6. Space under login/registration forms. */
.form-card form + p, .form-card .btn-row + p { margin-top: 14px; }

/* 7. Profile. */
.account-grid > .panel { height: 100%; }
.account-grid > section.wide { margin-top: 16px; }
.account-grid h2 { font-size: 1.2rem; margin-bottom: 12px; }
.account-grid .summary-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.account-grid .summary-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.account-grid .summary-list li span:first-child { color: var(--muted); }

/* 8. Dashboard chips wrap. */
.dash-tabs { flex-wrap: wrap; overflow: visible; }

/* 9. Outcomes in one readable column. */
.outcomes { grid-template-columns: minmax(0, 1fr) !important; }

/* 10. Hero side card sits with the text block. */
@media (min-width: 960px) { .hero-grid { align-items: start; } .hero-panel { margin-top: 34px; } }
.hero-panel .hero-totals { display: flex; gap: 22px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.hero-panel .hero-totals li { display: flex; flex-direction: column; }
.hero-panel .hero-totals b { font: 700 1.35rem/1.1 var(--font-head); color: #fff; }
.hero-panel .hero-totals span { font-size: .8rem; color: var(--hero-muted); }
.hero-panel .panel-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: #c9efff; font-weight: 600; text-decoration: none; }
.hero-panel .panel-link:hover { color: #fff; text-decoration: underline; }

/* 11. Department hero stays navy; the department colour is a stripe and the badge. */
.dept-hero { background: radial-gradient(800px 360px at 95% -20%, rgba(92,196,239,.22), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); }
.dept-stripe { height: 5px; }
.section.tight-top { padding-top: 8px; }
.empty h2.h3 { font-size: 1.05rem; margin: 0; }
.dept-live-head { margin-top: 32px; }
