/* Egitora — app styles. Tenant colors arrive as --brand / --side from base.html. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/manrope-latin-ext.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: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/manrope-latin.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: "Unbounded"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/unbounded-latin-ext.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: "Unbounded"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/unbounded-latin.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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/jetbrainsmono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/jetbrainsmono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC; }

:root {
  --brand: #1E7BFF;
  --side: #0B1834;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 35%, transparent);
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --line: #E3E8F1;
  --line-2: #CFD8E6;
  --ink: #0E1A33;
  --ink-2: #47566F;
  --ink-3: #7A879C;
  --ok: #12805C;  --ok-bg: #E3F6EE;
  --info: #1D5FD1; --info-bg: #E6EEFC;
  --warn: #9A5B00; --warn-bg: #FFF2DB;
  --bad: #C2323F;  --bad-bg: #FDE7E9;
  --muted-bg: #EEF1F6;
  --shadow: 0 1px 2px rgba(14,26,51,.05), 0 8px 24px -12px rgba(14,26,51,.18);
  --radius: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --side-w: 264px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070D1C; --surface: #0D172D; --surface-2: #101C36; --line: #1C2A47; --line-2: #2A3B5E;
    --ink: #E8EEFA; --ink-2: #A6B3CB; --ink-3: #7183A3;
    --ok: #4BD39C; --ok-bg: #0E2F27; --info: #7FB0FF; --info-bg: #10244A; --warn: #F2B65A; --warn-bg: #33250C;
    --bad: #FF7A85; --bad-bg: #3A1520; --muted-bg: #16223D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070D1C; --surface: #0D172D; --surface-2: #101C36; --line: #1C2A47; --line-2: #2A3B5E;
  --ink: #E8EEFA; --ink-2: #A6B3CB; --ink-3: #7183A3;
  --ok: #4BD39C; --ok-bg: #0E2F27; --info: #7FB0FF; --info-bg: #10244A; --warn: #F2B65A; --warn-bg: #33250C;
  --bad: #FF7A85; --bad-bg: #3A1520; --muted-bg: #16223D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--brand); }
a.link:hover, .prose a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
img, svg { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 15px; height: 15px; } .ic.lg { width: 22px; height: 22px; } .ic.xl { width: 30px; height: 30px; }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }
.muted { color: var(--ink-3); } .dim { color: var(--ink-2); }
.small { font-size: .85rem; } .tiny { font-size: .75rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: var(--side); color: #DCE6F7; padding: 18px 14px 14px;
  background-image: radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 60%);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.side-brand img { max-height: 34px; width: auto; }
.tenant-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; font: 700 .85rem var(--display); box-shadow: 0 6px 18px -6px var(--brand); }
.side-brand b { display: block; font-weight: 750; font-size: .98rem; color: #fff; line-height: 1.2; }
.side-brand span { font-size: .7rem; color: #8FA3C6; letter-spacing: .04em; }
.nav-group { margin-top: 8px; }
.nav-title { font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6D82A8; padding: 12px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #C5D3EA; font-weight: 550; font-size: .92rem; position: relative; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav .count { margin-left: auto; font: 600 .7rem var(--mono); background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; font-size: .7rem; color: #6D82A8; display: flex; align-items: center; gap: 8px; }
.side-foot svg { width: 22px; height: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand-line); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 .62rem/17px var(--font); text-align: center; border: 2px solid var(--surface); }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 12px; border: 1px solid transparent; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--line); background: var(--surface); }
.menu-who { line-height: 1.15; } .menu-who b { display: block; font-size: .88rem; } .menu-who span { font-size: .72rem; color: var(--ink-3); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 40; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font: inherit; font-size: .9rem; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.burger { display: none; }

.content { padding: 26px 28px 60px; width: 100%; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span::before { content: "›"; margin-right: 6px; }

.impersonate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 28px; background: #2A1B00; color: #FFD28A; font-size: .85rem; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1rem; }
.card-head a.more { font-size: .82rem; color: var(--brand); font-weight: 600; }
.card-body { padding: 18px 20px; }
.empty { padding: 30px 20px; text-align: center; color: var(--ink-3); }
.empty .ic { margin: 0 auto 10px; width: 30px; height: 30px; color: var(--line-2); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.stack { display: grid; gap: 18px; }
.stack > *, .split > *, .grid > *, .course-hero > *, .player > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.sticky { position: sticky; top: 84px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; font: 650 .9rem/1.1 var(--font);
  background: var(--brand); color: #fff; border: 1px solid transparent; cursor: pointer; transition: filter .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 8px 20px -10px var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 7px 11px; font-size: .8rem; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; font-weight: 600; }
.inline { display: inline; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-bg); } .pill.info { color: var(--info); background: var(--info-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); } .pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.muted { color: var(--ink-2); background: var(--muted-bg); }
.pill.plain::before { display: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; background: var(--muted-bg); color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.red { background: var(--bad-bg); color: var(--bad); }

.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 30) 70% 38%)); }
.av-sm { width: 26px; height: 26px; font-size: .62rem; } .av-md { width: 36px; height: 36px; font-size: .74rem; }
.av-lg { width: 64px; height: 64px; font-size: 1.2rem; } .av-xl { width: 88px; height: 88px; font-size: 1.6rem; }

.bar { height: 8px; border-radius: 99px; background: var(--muted-bg); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); min-width: 2px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.ok > i { background: var(--ok); } .bar.thin { height: 5px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: .9rem; }
.alert .ic { margin-top: 2px; }
.alert.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--info); }
.alert.ok, .alert.success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert.warn, .alert.warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.alert.bad, .alert.error { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.alert b { color: inherit; } .alert p { margin: 2px 0 0; color: var(--ink-2); }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.t th { text-align: left; font: 650 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--surface-2); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.who b { display: block; font-weight: 650; } .who > div > span { display: block; font-size: .76rem; color: var(--ink-3); }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > label, .label { font-weight: 650; font-size: .86rem; color: var(--ink); }
.field .help { font-size: .76rem; color: var(--ink-3); }
.field .err { font-size: .78rem; color: var(--bad); font-weight: 600; }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input.sm { width: 80px; }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.input.multi { background-image: none; padding-right: 12px; min-height: 140px; }
input[type="color"].input { padding: 4px; height: 42px; }
input[type="range"].input { padding: 0; border: 0; box-shadow: none; accent-color: var(--brand); }
input[type="file"].input { padding: 8px; }
.check { width: 18px; height: 18px; accent-color: var(--brand); }
.field.checkbox { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.field.checkbox > label { order: 2; font-weight: 600; } .field.checkbox .help, .field.checkbox .err { grid-column: 2; order: 3; }
.choices-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-list label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .86rem; cursor: pointer; }
.choices-list input { accent-color: var(--brand); }
.choices-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.fieldset-title { grid-column: 1 / -1; font: 650 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.fieldset-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; font-weight: 650; font-size: .9rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs .n { font: 600 .68rem var(--mono); background: var(--muted-bg); color: var(--ink-2); padding: 1px 7px; border-radius: 99px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .input { width: auto; min-width: 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* stat tiles */
.stat { padding: 18px 20px; }
.stat .k { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.stat .v { font: 700 1.9rem/1.1 var(--display); letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .78rem; color: var(--ink-3); }
.stat.warn .v { color: var(--bad); }
.stat .ic.lg { color: var(--brand); margin-bottom: 8px; }

/* course cards & covers */
.cover { position: relative; aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(var(--h2) 75% 24%)); color: #fff; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.5) 0 2px, transparent 3px) 0 0 / 22px 22px,
    repeating-radial-gradient(circle at 110% 120%, transparent 0 18px, rgba(255,255,255,.22) 18px 19px); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cover .cv-icon { position: absolute; right: 14px; bottom: 12px; opacity: .9; }
.cover .cv-icon .ic { width: 34px; height: 34px; stroke-width: 1.4; }
.cover .cv-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cover .cv-tags span { background: rgba(0,0,0,.28); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 7px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.cover .cv-tags span.req { background: #FF4D5E; }
.ccard { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14,26,51,.06), 0 18px 40px -18px rgba(14,26,51,.35); }
.ccard .cover { border-radius: 0; }
.ccard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard-body h3 { font-size: .98rem; line-height: 1.35; }
.ccard-body p { font-size: .84rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .ic { width: 14px; height: 14px; }
.ccard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stars { color: #F2A900; letter-spacing: 1px; font-size: .85rem; } .stars .off { color: var(--line-2); }

/* list rows */
.lrow { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--surface-2); }
.lrow .grow { flex: 1; min-width: 0; }
.lrow .grow b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 52px; height: 40px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 48%), hsl(var(--h2) 75% 26%)); }
.datebox { width: 52px; flex: none; text-align: center; border-radius: 11px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.datebox b { display: block; font: 700 1.2rem/1.2 var(--display); padding: 5px 0 2px; }
.datebox span { display: block; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--brand); color: #fff; padding: 3px 0; }

/* hero (dashboard) */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; color: #fff; isolation: isolate;
  background: linear-gradient(120deg, var(--side), color-mix(in srgb, var(--brand) 70%, var(--side))); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-radial-gradient(ellipse at 95% 130%, transparent 0 22px, rgba(255,255,255,.12) 22px 23px); }
.hero h1 { font: 600 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.hero p { color: rgba(255,255,255,.8); margin: 8px 0 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }
.hero-stats div b { display: block; font: 700 1.5rem/1 var(--display); }
.hero-stats div span { font-size: .76rem; color: rgba(255,255,255,.7); }

/* course page */
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.course-hero .cover { aspect-ratio: auto; min-height: 230px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 20px; }
.course-hero .cover h1 { font: 650 1.7rem/1.2 var(--display); letter-spacing: -.02em; max-width: 760px; }
.course-hero .cover p { color: rgba(255,255,255,.85); max-width: 720px; margin: 10px 0 0; }
.enroll-box { padding: 20px; }
.enroll-box .big { font: 700 2.2rem/1 var(--display); }
.facts { display: grid; gap: 0; margin: 14px 0; }
.facts div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.facts div span:first-child { color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.facts div span:last-child { font-weight: 650; text-align: right; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.objectives li { display: flex; gap: 10px; font-size: .9rem; }
.objectives .ic { color: var(--ok); margin-top: 2px; }

.curriculum .mod { border-bottom: 1px solid var(--line); }
.curriculum .mod:last-child { border-bottom: 0; }
.curriculum .mod > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 20px; font-weight: 700; }
.curriculum .mod > summary::-webkit-details-marker { display: none; }
.curriculum .mod > summary .chev { margin-left: auto; transition: transform .2s; color: var(--ink-3); }
.curriculum .mod[open] > summary .chev { transform: rotate(180deg); }
.curriculum .mod-n { font: 600 .7rem var(--mono); color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 26px; font-size: .9rem; border-top: 1px solid var(--line); }
.lesson-row:hover { background: var(--surface-2); }
.lesson-row .state { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--line-2); color: var(--ink-3); }
.lesson-row .state .ic { width: 13px; height: 13px; }
.lesson-row.done .state { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-row.prog .state { border-color: var(--brand); color: var(--brand); }
.lesson-row.locked { opacity: .55; }
.lesson-row .grow { flex: 1; min-width: 0; }
.lesson-row .kind { font-size: .74rem; color: var(--ink-3); }

/* player */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.stage { overflow: hidden; }
.stage video, .stage iframe.embed { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border: 0; }
.stage iframe.doc { width: 100%; height: 78vh; border: 0; display: block; background: var(--surface-2); }
.stage iframe.scorm { width: 100%; height: 76vh; border: 0; display: block; background: #fff; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.watch { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-2); min-width: 220px; }
.watch .bar { flex: 1; }
.outline { max-height: calc(100vh - 110px); overflow-y: auto; }
.outline .lesson-row { padding-left: 18px; }
.outline .lesson-row.cur { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.prose { font-size: .98rem; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: 1.25rem; margin: 1.4em 0 .5em; } .prose h3 { margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .3em 0; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.prose code { font-family: var(--mono); background: var(--muted-bg); padding: 1px 6px; border-radius: 5px; font-size: .85em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; } .prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }
.prose mark { background: color-mix(in srgb, #FFD84D 55%, transparent); padding: 0 3px; border-radius: 3px; color: inherit; }
.docs { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc:hover { border-color: var(--brand-line); }
.doc .ext { width: 40px; height: 44px; border-radius: 8px; display: grid; place-items: center; flex: none; font: 700 .62rem var(--mono); text-transform: uppercase; color: #fff; background: #5B6B8C; position: relative; }
.doc .ext::after { content: ""; position: absolute; right: 0; top: 0; border: 7px solid transparent; border-right-color: var(--surface); border-top-color: var(--surface); }
.doc .ext.pdf { background: #D9343F; } .doc .ext.ppt, .doc .ext.pptx { background: #D2611C; } .doc .ext.doc, .doc .ext.docx { background: #2B63C9; }
.doc .ext.xls, .doc .ext.xlsx, .doc .ext.csv { background: #1A7F4B; } .doc .ext.zip { background: #6B4FB8; } .doc .ext.mp4 { background: #0B1834; }
.doc .grow { flex: 1; min-width: 0; } .doc .grow b { display: block; font-size: .9rem; } .doc .grow span { font-size: .76rem; color: var(--ink-3); }

/* quiz */
.q { padding: 20px; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q-head { display: flex; gap: 12px; margin-bottom: 12px; }
.q-n { font: 700 .78rem var(--mono); color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 4px 9px; height: fit-content; }
.q-text { font-weight: 650; font-size: 1rem; }
.opts { display: grid; gap: 8px; padding-left: 46px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--brand-line); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { border-color: var(--ok); background: var(--ok-bg); } .opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.timer { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; margin-bottom: 16px; }
.timer b { font: 700 1.3rem var(--display); font-variant-numeric: tabular-nums; }
.timer.low b { color: var(--bad); }
.score-ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%), var(--muted-bg) 0); }
.score-ring > div { width: 112px; height: 112px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.score-ring b { font: 700 1.7rem/1 var(--display); } .score-ring span { font-size: .72rem; color: var(--ink-3); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .wd { padding: 10px; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 108px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.other { background: var(--surface-2); color: var(--ink-3); }
.cal .day .n { font-weight: 700; font-size: .82rem; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cal .day.today .n { background: var(--brand); color: #fff; }
.ev { display: block; margin-top: 4px; padding: 3px 7px; border-radius: 6px; font-size: .72rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--brand-soft); color: var(--brand); }
.ev.offer { background: var(--muted-bg); color: var(--ink-2); }
.ev.due { background: var(--warn-bg); color: var(--warn); }

/* charts (single series: one hue, rounded data-ends, hover tooltip) */
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 12px 4px 0; border-bottom: 1px solid var(--line-2); }
.vbars .b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.vbars .b i { display: block; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; transition: opacity .15s; }
.vbars .b:hover i { opacity: .8; }
.vbars .b .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 4px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 3; }
.vbars .b:hover .tip { opacity: 1; }
.vbars-x { display: flex; gap: 6px; padding: 6px 4px 0; }
.vbars-x span { flex: 1; text-align: center; font-size: .66rem; color: var(--ink-3); font-family: var(--mono); }
.hbars { display: grid; gap: 12px; }
.hb { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: .84rem; }
.hb .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hb .trk { height: 10px; background: var(--muted-bg); border-radius: 0 4px 4px 0; }
.hb .trk i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hb .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.stackbar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .78rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.s-completed { background: var(--ok); } .s-in_progress { background: var(--brand); } .s-not_started { background: var(--line-2); }
.s-failed { background: var(--bad); } .s-pending { background: #E3A008; }

/* compliance matrix */
.matrix td.cell { text-align: center; padding: 8px; }
.mx { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; }
.mx .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.mx.ok { background: var(--ok-bg); color: var(--ok); } .mx.open { background: var(--info-bg); color: var(--info); }
.mx.late { background: var(--bad-bg); color: var(--bad); } .mx.none { background: transparent; color: var(--line-2); }
.matrix th.rot { writing-mode: vertical-rl; transform: rotate(180deg); height: 210px; text-transform: none; letter-spacing: 0; font: 600 .76rem var(--font); color: var(--ink-2); vertical-align: bottom; padding: 8px 4px; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; font-size: .72rem; font-weight: 650; color: var(--ink-2); }
.badge .medal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, hsl(var(--h) 90% 70%), hsl(var(--h) 75% 40%)); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px hsl(var(--h) 60% 70%), 0 8px 18px -8px hsl(var(--h) 70% 40%); }
.badge .medal .ic { width: 24px; height: 24px; }
.badge.locked .medal { filter: grayscale(1); opacity: .35; }

/* steps (paths) */
.steps { position: relative; display: grid; gap: 14px; }
.steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.step .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font: 700 .9rem var(--display); color: var(--ink-3); z-index: 1; }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.cur .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; isolation: isolate;
  background: linear-gradient(150deg, var(--side) 10%, color-mix(in srgb, var(--brand) 55%, var(--side)) 100%); }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.auth-art .brandline { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.auth-art .brandline img { max-height: 40px; width: auto; }
.auth-art .brandline .brandhome { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.auth-main { margin: auto 0; padding: 40px 0; }
.auth-eyebrow { display: inline-block; font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); margin-bottom: 18px; }
.auth-art h1 { font: 500 clamp(1.8rem, 3.3vw, 3rem)/1.12 var(--display); letter-spacing: -.03em; max-width: 620px; }
.auth-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); max-width: 520px; }
.auth-stats b { display: block; font: 600 1.5rem var(--display); } .auth-stats span { font-size: .78rem; color: rgba(255,255,255,.65); }
.auth-art p { color: rgba(255,255,255,.78); max-width: 520px; margin-top: 16px; font-size: 1.02rem; }
.auth-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.auth-feats span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: .82rem; backdrop-filter: blur(6px); }
.auth-feats .ic { width: 15px; height: 15px; }
.auth-foot { font-size: .74rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; }
.auth-foot svg { width: 24px; height: 17px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card.wide { max-width: 580px; }
.tab-r { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--muted-bg); margin-bottom: 24px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 11px; font-weight: 650; font-size: .9rem;
  color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
#tab-demo:checked ~ .seg label[for=tab-demo], #tab-login:checked ~ .seg label[for=tab-login] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14,26,51,.14); }
#tab-demo:focus-visible ~ .seg label[for=tab-demo], #tab-login:focus-visible ~ .seg label[for=tab-login] { outline: 2px solid var(--brand); outline-offset: 2px; }
.tab-r ~ .pane { display: none; }
#tab-demo:checked ~ .pane-demo, #tab-login:checked ~ .pane-login { display: block; }
.pane-login .sub { margin-bottom: 18px; }
.login-min { gap: 14px !important; }
.login-min .field label { font-size: .84rem; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-card { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 12px; align-content: start;
  transition: border-color .15s, box-shadow .15s; }
.demo-card:hover { border-color: hsl(var(--h) 70% 55% / .55); box-shadow: 0 10px 24px -18px hsl(var(--h) 70% 40%); }
.demo-head { display: flex; gap: 10px; align-items: center; min-width: 0; }
.demo-head b { display: block; font-size: .92rem; } .demo-head div > span { display: block; font-size: .76rem; color: var(--ink-3); }
.demo-head .pkg-icon .ic { width: 18px; height: 18px; }
.auth-form:has(.auth-card.wide) { align-items: flex-start; padding-top: max(40px, 8vh); }
.demo-card .demo-roles { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.demo-card .chip { cursor: pointer; font: inherit; font-size: .78rem; font-weight: 650; padding: 6px 11px; background: var(--surface); }
.demo-card .chip:hover { border-color: hsl(var(--h) 70% 50%); color: hsl(var(--h) 70% 38%); }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-card h2 { font: 650 1.5rem var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 26px; }
.auth-card form { display: grid; gap: 16px; }
.pw-wrap { position: relative; } .pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 8px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .76rem; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tenant-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.tenant-chip b { display: block; } .tenant-chip span { font-size: .78rem; color: var(--ink-3); }

/* tutoring slot picker */
.slot-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.slot-day { padding: 10px 8px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.slot-day:last-child { border-right: 0; }
.slot-day.today { background: var(--brand-soft); }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; padding: 0 2px 6px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.slot-head span { color: var(--ink-3); font-family: var(--mono); font-size: .72rem; }
.slot { cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: block; text-align: center; padding: 7px 4px; border-radius: 9px; border: 1.5px solid var(--line-2); font: 600 .82rem var(--mono); background: var(--surface); }
.slot:hover span { border-color: var(--brand); color: var(--brand); }
.slot input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.slot-none { color: var(--line-2); text-align: center; padding-top: 8px; }
@media (max-width: 760px) { .slot-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .slot-day { border-bottom: 1px solid var(--line); min-height: 0; } }

/* pdf viewer */
.pdfv { overflow: hidden; display: flex; flex-direction: column; }
.pdfv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.pdfv-bar .icon-btn { width: 34px; height: 34px; font-weight: 700; }
.pdfv-pages { height: 78vh; overflow: auto; background: color-mix(in srgb, var(--ink) 8%, var(--bg)); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; outline: none; }
.pdfv-page { background: #fff; box-shadow: 0 6px 24px -10px rgba(0,0,0,.35); border-radius: 4px; overflow: hidden; flex: none; }
.pdfv-page canvas { display: block; }
.pdfv-loading { margin: auto; display: grid; justify-items: center; gap: 10px; color: var(--ink-3); }
.pdfv:fullscreen .pdfv-pages { height: calc(100vh - 56px); }
.doc.cur { border-color: var(--brand); background: var(--brand-soft); }

/* live session (embedded room) */
.live-hero.compact { padding: 18px 22px; }
.live-hero.compact h1 { font-size: 1.25rem; margin-top: 0; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; margin-top: 18px; align-items: start; }
.room { overflow: hidden; }
.room iframe { display: block; width: 100%; height: min(78vh, 820px); border: 0; background: #0B1834; }
.live-timer { display: grid; justify-items: end; line-height: 1.15; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.1); }
.live-timer b { font: 700 1.3rem var(--display); }
.live-timer.over b { color: #FFB4BC; }
@media (max-width: 1180px) { .live-layout { grid-template-columns: minmax(0, 1fr); } }

/* live session */
.live-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; color: #fff; isolation: isolate;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 60%), var(--side); }
.live-hero h1 { font: 600 1.6rem/1.2 var(--display); margin-top: 14px; }
.live-hero p { color: rgba(255,255,255,.8); margin: 6px 0 0; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #E5303F; font: 700 .72rem var(--mono); letter-spacing: .12em; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.2s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .25; } }
.live-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; margin-bottom: 18px; color: #fff; background: linear-gradient(100deg, #C8243A, #E5303F 60%, #F05A3C); box-shadow: 0 14px 30px -16px #E5303F; }
.live-strip b { font-weight: 750; } .live-strip .grow { flex: 1; min-width: 0; } .live-strip .btn { background: #fff; color: #C8243A; }

/* projector QR */
.projector { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--side); color: #fff; }
.projector .left { padding: 48px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.projector h1 { font: 600 clamp(1.6rem, 3vw, 2.6rem)/1.15 var(--display); }
.qrbox { background: #fff; border-radius: 26px; padding: 22px; width: min(460px, 80vw); aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); position: relative; }
.qrbox svg { width: 100%; height: 100%; }
.qr-ttl { position: absolute; left: 22px; right: 22px; bottom: 10px; height: 4px; border-radius: 4px; background: #E3E8F1; overflow: hidden; }
.qr-ttl i { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }
.code-big { font: 700 clamp(2.4rem, 6vw, 4.6rem)/1 var(--mono); letter-spacing: .18em; }
.projector .right { padding: 48px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 18px; }
.counter { font: 700 4rem/1 var(--display); } .counter small { font-size: 1.4rem; opacity: .6; }
.feed { display: grid; gap: 10px; }
.feed div { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.07); animation: slide .5s; }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }

/* misc */
.kpi-inline { display: flex; gap: 22px; flex-wrap: wrap; }
.kpi-inline div b { display: block; font: 700 1.3rem var(--display); }
.kpi-inline div span { font-size: .76rem; color: var(--ink-3); }
.notice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.builder-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.builder-lesson .ord { display: flex; flex-direction: column; }
.builder-lesson .ord button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0 4px; line-height: 1; font-size: .7rem; }
.builder-lesson .ord button:hover { color: var(--brand); }
.kind-pick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-top: 1px dashed var(--line); background: var(--surface-2); }
.thread-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.thread-post.answer { background: var(--ok-bg); }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.6rem; color: var(--line-2); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #F2A900; }
.likert { display: flex; flex-wrap: wrap; gap: 6px; }
.likert label { flex: 1; min-width: 44px; text-align: center; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.likert input { position: absolute; opacity: 0; pointer-events: none; }
.likert label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.likert-ends { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); margin-top: 4px; }
.cert-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cert-mini { aspect-ratio: 1.41; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden; }
.cert-mini::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.cert-mini::after { content: ""; position: absolute; right: -20px; top: -20px; width: 60px; height: 60px; background: var(--side); transform: rotate(45deg); }
.cert-mini i { position: absolute; left: 16px; right: 24px; height: 4px; border-radius: 2px; background: var(--line-2); }
.cert-mini i:nth-child(1) { top: 26%; width: 50%; background: var(--ink); } .cert-mini i:nth-child(2) { top: 46%; } .cert-mini i:nth-child(3) { top: 60%; width: 40%; }
.verify-card { max-width: 620px; margin: 0 auto; }
.seal { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.seal.ok { background: var(--ok-bg); color: var(--ok); } .seal.bad { background: var(--bad-bg); color: var(--bad); }
.seal .ic { width: 34px; height: 34px; stroke-width: 2.2; }
.public-wrap { min-height: 100vh; padding: 40px 18px; display: grid; align-content: start; gap: 24px; }
.public-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.public-brand svg { width: 34px; height: 24px; }
.tenant-list .lrow .tenant-mark { width: 34px; height: 34px; font-size: .74rem; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.pagination span.cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .split, .player, .course-hero { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
  .outline { max-height: none; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5,10,22,.5); z-index: 55; }
  .burger { display: grid; }
  .top { padding: 10px 16px; }
  .content { padding: 18px 16px 50px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 24px 22px; min-height: 0; }
  .auth-main { padding: 26px 0 6px; }
  .auth-feats, .auth-foot, .auth-stats, .auth-eyebrow { display: none; }
  .projector { grid-template-columns: minmax(0, 1fr); }
  .menu-who { display: none; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .objectives { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
  .hb { grid-template-columns: 96px minmax(0, 1fr) 40px; }
  .cal .day { min-height: 64px; padding: 4px; }
  .cal .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .opts { padding-left: 0; }
  .cert-card { grid-template-columns: 80px minmax(0, 1fr); }
  .cert-card > :last-child { grid-column: 1 / -1; }
  .hero { padding: 20px; } .hero h1 { font-size: 1.2rem; }
  .page-head h1 { font-size: 1.3rem; }
  .t th, .t td { padding: 10px; }
  .lrow { padding: 12px 14px; }
}
@media print {
  .side, .top, .btn, .tabs { display: none !important; }
  .shell { display: block; } .card { box-shadow: none; }
}

/* ===================== commerce / public shop ===================== */
body.pub { background: var(--bg); }
.pub-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.pub-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.pub-nav { gap: 20px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.pub-nav a:hover { color: var(--brand); }
.pub-hero { position: relative; overflow: hidden; color: #fff; padding: 70px 0 60px; isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--brand) 70%, transparent), transparent 60%), #0B1834; }
.pub-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background: repeating-radial-gradient(ellipse at 90% 120%, transparent 0 26px, rgba(255,255,255,.08) 26px 27px); }
.pub-hero h1 { font: 600 clamp(1.9rem, 4.2vw, 3.3rem)/1.12 var(--display); letter-spacing: -.03em; margin-top: 16px; max-width: 900px; }
.pub-hero p { color: rgba(255,255,255,.82); max-width: 720px; font-size: 1.06rem; margin-top: 16px; }
.grad { background: linear-gradient(100deg, #BFE3FF, #5BB8FF 40%, #7AA8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .88rem; color: rgba(255,255,255,.85); }
.pub-points span { display: inline-flex; align-items: center; gap: 7px; }
.pub-foot { border-top: 1px solid var(--line); padding: 30px 0; background: var(--surface); margin-top: 20px; }
.fam-head { display: flex; align-items: center; gap: 14px; margin: 44px 0 16px; flex-wrap: wrap; }
.fam-head p { margin: 0; }
.fam-badge { font: 700 .8rem var(--display); letter-spacing: .06em; padding: 8px 14px; border-radius: 10px; color: #fff; }
.fam-badge.edu { background: linear-gradient(120deg, #1E7BFF, #0D55D1); } .fam-badge.business { background: linear-gradient(120deg, #0B1834, #2A4E98); } .fam-badge.pro { background: linear-gradient(120deg, #7C3AED, #C2410C); }
.pkg { display: flex; flex-direction: column; padding: 22px; transition: transform .2s, box-shadow .2s; border-top: 4px solid hsl(var(--h) 75% 50%); }
.pkg:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(14,26,51,.4); }
.pkg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pkg-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 215) 75% 55%), hsl(var(--h, 215) 70% 35%)); }
.pkg-icon.sm { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.pkg h3 { font: 650 1.15rem var(--display); }
.pkg-list { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 6px; font-size: .86rem; }
.pkg-list li { display: flex; gap: 8px; align-items: flex-start; } .pkg-list .ic { color: var(--ok); margin-top: 3px; }
.pkg-price { margin-top: auto; padding: 12px 0; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pkg-price b { font: 700 1.6rem var(--display); }
.tier-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 4px; }
.tier-card b { font: 650 1.05rem var(--display); } .tier-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.feat { display: flex; gap: 12px; padding: 14px; align-items: flex-start; box-shadow: none; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; } .faq summary { font-weight: 700; cursor: pointer; } .faq p { margin: 8px 0 0; color: var(--ink-2); }
.tier-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.tier-pick label, .chip-radio { cursor: pointer; }
.tier-pick input, .chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.tier-pick span { display: grid; gap: 3px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 12px; transition: all .15s; }
.tier-pick em, .chip-radio em { font-style: normal; font-size: .74rem; color: var(--ink-3); }
.tier-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.chip-radio span { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: .85rem; }
.chip-radio input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; } .chip-radio input:checked + span em { color: #DCEBFF; }
.mod-group { border-top: 1px solid var(--line); }
.mod-title { font: 650 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 12px 20px 4px; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; cursor: pointer; }
.mod-row:hover { background: var(--surface-2); }
.mod-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.mod-row .grow { display: grid; min-width: 0; } .mod-row .grow b { font-size: .9rem; }
.mod-row.core, .mod-row.soon { opacity: .7; cursor: default; }
.mod-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); flex: none; }
.mod-price { font: 600 .82rem var(--mono); white-space: nowrap; color: var(--ink-2); }
.summary h3 { margin-bottom: 10px; }
.sum-lines { display: grid; gap: 6px; font-size: .85rem; margin-bottom: 10px; }
.sum-lines .row span { color: var(--ink-2); } .sum-lines .row b { font-weight: 650; white-space: nowrap; }
.summary .row.between { flex-wrap: nowrap; }
.sum-monthly { padding: 10px 0; border-top: 1px dashed var(--line); font-weight: 700; }
.summary hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0 10px; }
.summary .small { margin: 3px 0; }
.sum-total { padding: 12px 0; margin: 8px 0; border-top: 2px solid var(--ink); }
.sum-total b { font: 700 1.5rem var(--display); }
.sum-limits { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin: 8px 0 14px; color: var(--ink-2); }
.summary.loading .sum-total b { opacity: .4; }
.steps-bar { display: flex; gap: 6px; margin: 6px 0 18px; flex-wrap: wrap; }
.steps-bar span { padding: 7px 14px; border-radius: 999px; background: var(--muted-bg); font-size: .8rem; font-weight: 650; color: var(--ink-3); }
.steps-bar span.on { background: var(--brand); color: #fff; } .steps-bar span.done { background: var(--ok-bg); color: var(--ok); }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.slug-input .input { border: 0; border-radius: 0; box-shadow: none !important; font-family: var(--mono); }
.slug-input span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--ink-3); font: 500 .8rem var(--mono); white-space: nowrap; }
.help.ok { color: var(--ok); font-weight: 600; } .help.bad { color: var(--bad); font-weight: 600; }
.paytr-frame { width: 100%; height: 760px; border: 0; margin-top: 12px; }
.sim-pay { text-align: center; padding: 20px 10px; }
.fake-card { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; width: min(340px, 100%); aspect-ratio: 1.586; margin: 18px auto; padding: 22px; border-radius: 16px; color: #fff; font-family: var(--mono);
  background: linear-gradient(135deg, #1E7BFF, #0B1834); box-shadow: 0 20px 40px -18px #1E7BFF; }
.fake-card b { font: 700 1.2rem var(--display); }
.demo-bar { background: #2A1B00; color: #FFD28A; padding: 8px 28px; font-size: .84rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-bar a { color: #fff; text-decoration: underline; }
.demo-bar.trial { background: var(--info-bg); color: var(--info); } .demo-bar.trial a { color: var(--info); }
.demo-bar.due { background: var(--bad-bg); color: var(--bad); } .demo-bar.due a { color: var(--bad); }
.demo-pick { display: grid; gap: 8px; }
.demo-pick details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.demo-pick summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.demo-pick summary::-webkit-details-marker { display: none; }
.demo-pick summary .grow { display: grid; line-height: 1.2; }
.demo-roles { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.demo-roles .chip { cursor: pointer; font: inherit; font-size: .8rem; font-weight: 650; }
.grade-grid .grade-in { width: 64px; padding: 6px; text-align: center; font-family: var(--mono); }
.grade-grid th { text-transform: none; letter-spacing: 0; font-family: var(--font); line-height: 1.3; }
@media (max-width: 760px) { .pub-nav a:not(.btn) { display: none; } .pub-hero { padding: 44px 0; } .paytr-frame { height: 900px; } }

/* ===================== configuration assistant, capacity ===================== */
.seat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 14px; }
.seat-pick label { cursor: pointer; }
.seat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seat-pick span { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; transition: all .15s; }
.seat-pick b { font: 650 1rem var(--display); } .seat-pick em { font-style: normal; font-size: .72rem; color: var(--ink-3); }
.seat-pick i { font-style: normal; font: 600 .76rem var(--mono); color: var(--ink-2); }
.seat-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.seat-pick input:focus-visible + span, .tier-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--brand); font-size: .86rem; color: var(--ink-2); }
.explain p { margin: 0; } .explain p + p { margin-top: 6px; } .explain b { color: var(--ink); }
.mod-item + .mod-item { border-top: 1px dashed var(--line); }
.mod-help { padding: 0 20px 10px 62px; font-size: .84rem; color: var(--ink-2); }
.mod-help summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .8rem; width: fit-content; }
.mod-help p { margin: 6px 0 0; max-width: 70ch; } .mod-ex { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.live-note { display: inline-flex; align-items: center; gap: 4px; color: var(--info, var(--brand)); margin-top: 2px; font-weight: 600; }
.sum-lines .row span em { display: block; font-style: normal; margin-top: 1px; }
.wiz-result { margin-bottom: 18px; border-left: 4px solid var(--brand); }
.wiz-reasons { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.wiz-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 26px; padding: 18px 20px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); max-width: 860px; }
.wiz-cta .pkg-icon { background: linear-gradient(135deg, #5BB8FF, #1E7BFF); }
.wiz-cta b { font: 650 1.12rem var(--display); color: #fff; } .wiz-cta p { margin: 4px 0 0; font-size: .9rem; }
.wiz { max-width: 920px; margin: 0 auto; padding: 30px 0 60px; }
.wiz-step { padding: 24px; }
.wiz-step + .wiz-step { margin-top: 16px; }
.wiz.js .wiz-step { display: none; } .wiz.js .wiz-step.on { display: block; }
.wiz-step h2 { font: 650 1.35rem var(--display); margin: 0 0 4px; }
.wiz-step > p.dim { margin: 0 0 16px; }
.wiz-org { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.org-card { position: relative; display: block; cursor: pointer; min-width: 0; }
.org-card > input { position: absolute; opacity: 0; pointer-events: none; }
.org-box { position: relative; display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px 34px 14px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.org-card:hover .org-box { border-color: var(--brand-line); transform: translateY(-1px); box-shadow: 0 8px 20px -14px rgba(14,26,51,.35); }
.org-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.org-txt { display: grid; gap: 3px; min-width: 0; line-height: 1.3; }
.org-txt b { font-size: .93rem; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.org-txt em { font-style: normal; font-size: .78rem; color: var(--ink-3); }
.org-tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: transparent; transition: all .15s; }
.org-tick .ic { width: 12px; height: 12px; }
.org-card > input:checked + .org-box { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.org-card > input:checked + .org-box .org-ic { background: var(--brand); color: #fff; }
.org-card > input:checked + .org-box .org-tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.org-card > input:focus-visible + .org-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.wiz-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wiz-fields label > b { display: block; font-size: .9rem; margin-bottom: 4px; } .wiz-fields .help { margin-top: 4px; }
.wiz-needs { display: grid; gap: 14px; }
.wiz-needs fieldset { border: 0; padding: 0; margin: 0; }
.wiz-needs legend { font: 650 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.wiz-needs .grid-n { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.wiz-needs label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wiz-needs label:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.wiz-needs input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.wiz-needs b { display: block; font-size: .88rem; } .wiz-needs em { font-style: normal; font-size: .76rem; color: var(--ink-3); }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.wiz:not(.js) .wiz-nav [data-next], .wiz:not(.js) .wiz-nav [data-prev] { display: none; }
.wiz-live[hidden] { display: none; }
.cap-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cap-table th, .cap-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cap-table th { font: 650 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cap-table td.num { font-family: var(--mono); white-space: nowrap; }
.cap-scroll { overflow-x: auto; }
.cap-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cap-hero .card { padding: 18px; box-shadow: none; } .cap-hero b { font: 650 1.05rem var(--display); display: block; margin-bottom: 4px; }
.cap-hero p { margin: 0; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .wiz-cta { grid-template-columns: 1fr; } .mod-help { padding-left: 20px; } .wiz-step { padding: 18px; }
}
.wiz-nav [hidden], #seat-card[hidden], .wiz [hidden] { display: none !important; }
@media (max-width: 560px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-form { padding: 24px 16px 36px; }
  .seg label { font-size: .84rem; padding: 10px 6px; }
}

/* ===================== messaging ===================== */
.inbox { overflow: hidden; }
.ib-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.ib-row:last-child { border-bottom: 0; } .ib-row:hover { background: var(--surface-2); }
.ib-row .grow { min-width: 0; flex: 1; } .ib-row .nowrap { white-space: nowrap; }
.ib-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-subj { color: var(--ink); margin-top: 1px; } .ib-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ib-row.unread { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); } .ib-row.unread .ib-title, .ib-row.unread .ib-subj { font-weight: 750; }
.ib-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 6px; }
.thread { display: flex; flex-direction: column; min-height: 520px; }
.msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 64vh; overflow-y: auto; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; } .msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.msg.mine .bubble { background: var(--brand); color: #fff; border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg-body { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; } .msg.mine .msg-body a { color: #fff; text-decoration: underline; }
.msg-time { font-size: .68rem; opacity: .65; justify-self: end; }
.msg-file { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 9px; background: rgba(127,127,127,.12); color: inherit; }
.msg-day, .msg-new { text-align: center; font-size: .72rem; color: var(--ink-3); margin: 6px 0; }
.msg-day span, .msg-new span { padding: 3px 10px; border-radius: 99px; background: var(--muted-bg); }
.msg-new span { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.composer { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 8px; }
.rcpt { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 10px; }
.rcpt-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.rcpt-row:hover { background: var(--surface-2); } .rcpt-row b { display: block; font-size: .88rem; } .rcpt-row em { font-style: normal; font-size: .74rem; color: var(--ink-3); }
.seg-inline { display: flex; flex-wrap: wrap; gap: 6px; } .seg-inline label { cursor: pointer; }
.seg-inline input { position: absolute; opacity: 0; pointer-events: none; }
.seg-inline span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .86rem; }
.seg-inline input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.seg-inline input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ===================== timetable ===================== */
.tt-wrap { padding: 0; }
table.tt { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; table-layout: fixed; }
.tt th { font: 650 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tt th.today { color: var(--brand); }
.tt td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; height: 76px; }
.tt td.today { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.tt .tt-time { width: 84px; } .tt td.tt-time { padding: 10px 12px; } .tt-time b { display: block; font-size: .9rem; } .tt-time span { font-size: .74rem; color: var(--ink-3); }
.tt-slot { display: grid; gap: 2px; height: 100%; padding: 8px 10px; border-radius: 10px; font-size: .8rem; color: var(--ink);
  background: hsl(var(--h) 70% 50% / .12); border-left: 3px solid hsl(var(--h) 65% 48%); }
a.tt-slot:hover { background: hsl(var(--h) 70% 50% / .2); }
.tt-slot b { font-size: .86rem; } .tt-slot span { color: var(--ink-2); } .tt-slot em { font-style: normal; font-size: .72rem; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; }
.tt-slot.online em { color: var(--info, var(--brand)); font-weight: 650; }

/* ===================== misc new modules ===================== */
.stat-tile { padding: 16px 18px; display: grid; gap: 4px; box-shadow: none; } .stat-tile b { font: 650 1.5rem var(--display); }
.stat-tile b.bad { color: var(--bad); } a.stat-tile:hover, .stat-tile.on { border-color: var(--brand); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.kv span { color: var(--ink-2); }
.import-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.q-order, .q-match { display: grid; gap: 8px; }
.q-order .opt, .q-match .opt { display: flex; align-items: center; gap: 10px; cursor: default; }
.q-match .ml { flex: 1; font-weight: 600; } .q-match .ma { color: var(--ink-3); } .q-match select { max-width: 50%; }
.setup-card .card-head { align-items: center; }
.setup-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 16px 18px 18px; }
.setup-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.setup-step:hover { border-color: var(--brand-line); }
.setup-step .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem var(--mono); border: 1.5px solid var(--line-2); color: var(--ink-3); }
.setup-step b { display: block; font-size: .88rem; } .setup-step span:not(.dot) { font-size: .76rem; color: var(--ink-3); }
.setup-step.done { opacity: .62; } .setup-step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.setup-step.next { border-color: var(--brand); background: var(--brand-soft); } .setup-step.next .dot { border-color: var(--brand); color: var(--brand); }
.bar.bad > i { background: var(--bad); }
@media (max-width: 640px) { .msg { max-width: 92%; } .q-match .opt { flex-wrap: wrap; } .q-match select { max-width: 100%; } }
@media print {
  .side, .top, .demo-bar, .page-head .row, .chips, form, .crumbs { display: none !important; }
  .shell, .main, .content { display: block !important; padding: 0 !important; margin: 0 !important; }
  .card { box-shadow: none !important; border-color: #ccc !important; } table.tt { min-width: 0; }
}

/* ===================== homework files, dropzone, rubric ===================== */
.wfiles { display: grid; gap: 6px; }
.wfile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); min-width: 0; }
.wfile .grow { min-width: 0; flex: 1; } .wfile b { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wfile .grow span { font-size: .72rem; color: var(--ink-3); }
.wf-ic { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font: 700 .62rem var(--mono); color: #fff; background: #64748B; }
.wf-ic.sm { width: 26px; height: 20px; border-radius: 5px; font-size: .5rem; display: inline-grid; vertical-align: middle; }
.wf-ic.ext-pdf { background: #DC2626; } .wf-ic.ext-doc, .wf-ic.ext-docx, .wf-ic.ext-odt, .wf-ic.ext-rtf { background: #2563EB; }
.wf-ic.ext-xls, .wf-ic.ext-xlsx, .wf-ic.ext-ods, .wf-ic.ext-csv { background: #16A34A; }
.wf-ic.ext-ppt, .wf-ic.ext-pptx, .wf-ic.ext-odp, .wf-ic.ext-key { background: #EA580C; }
.wf-ic.ext-jpg, .wf-ic.ext-jpeg, .wf-ic.ext-png, .wf-ic.ext-gif, .wf-ic.ext-webp, .wf-ic.ext-heic { background: #9333EA; }
.wf-ic.ext-zip, .wf-ic.ext-rar, .wf-ic.ext-7z { background: #78716C; } .wf-ic.ext-mp3, .wf-ic.ext-m4a, .wf-ic.ext-wav, .wf-ic.ext-mp4, .wf-ic.ext-mov { background: #0891B2; }
.wf-img { display: block; max-width: 100%; max-height: 640px; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border: 2px dashed var(--line-2); border-radius: 14px;
  text-align: center; color: var(--ink-2); font-size: .88rem; background: var(--surface-2); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 26px; height: 26px; color: var(--brand); } .dropzone u { color: var(--brand); }
.dropzone em { font-style: normal; font-size: .78rem; color: var(--ink); font-weight: 600; } .dropzone em:empty { display: none; }
.rubric { display: grid; gap: 6px; }
.rubric > div, .rubric label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); font-size: .86rem; }
.rubric label span { flex: 1; } .rubric label em { font-style: normal; color: var(--ink-3); font-size: .78rem; }
b.bad { color: var(--bad); }

/* ===================== collapsible sidebar (icon rail) ===================== */
.shell { transition: grid-template-columns .22s ease; }
.side-toggle { display: grid; }
body.side-mini { --side-w: 76px; }
body.side-mini .side { padding: 18px 10px 14px; overflow-x: hidden; }
body.side-mini .side-brand { justify-content: center; padding: 4px 0 18px; }
body.side-mini .side-brand > div, body.side-mini .nav-title, body.side-mini .side-foot { display: none; }
body.side-mini .nav a { font-size: 0; gap: 0; justify-content: center; padding: 11px 0; }
body.side-mini .nav a .ic { width: 20px; height: 20px; }
body.side-mini .nav a.on::before { left: -10px; }
body.side-mini .nav .count { position: absolute; top: 3px; right: 5px; margin: 0; font-size: .58rem; padding: 0 5px; }
body.side-mini .nav-group + .nav-group { border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; padding-top: 8px; }
@media (max-width: 920px) {  /* phones/tablets keep the slide-in drawer with full labels */
  .side-toggle { display: none; }
  body.side-mini .side { padding: 18px 14px 14px; }
  body.side-mini .side-brand { justify-content: flex-start; padding: 4px 8px 18px; }
  body.side-mini .side-brand > div, body.side-mini .nav-title { display: block; }
  body.side-mini .side-foot { display: flex; }
  body.side-mini .nav a { font-size: .92rem; gap: 11px; justify-content: flex-start; padding: 9px 10px; }
  body.side-mini .nav .count { position: static; margin-left: auto; }
}

/* ===================== live classroom (embedded) ===================== */
body.live-page .content { max-width: none; padding-top: 14px; padding-bottom: 20px; }
.live-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(100deg, var(--side), color-mix(in srgb, var(--brand) 45%, var(--side))); }
.live-bar .live-badge { flex: none; }
.lb-title { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.lb-title b { font: 650 1rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-title span { font-size: .78rem; color: rgba(255,255,255,.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stat { flex: none; display: grid; justify-items: end; line-height: 1.15; padding: 5px 12px; border-radius: 10px; background: rgba(255,255,255,.1); }
.lb-stat span { font-size: .66rem; color: rgba(255,255,255,.7); white-space: nowrap; } .lb-stat b { font: 650 .95rem var(--display); white-space: nowrap; }
.live-bar .live-timer { padding: 5px 12px; } .live-bar .live-timer b { font-size: .95rem; }
.lb-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.live-bar .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; width: 36px; height: 36px; }
.live-bar .icon-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.live-stage { margin-top: 12px; border-radius: 16px; overflow: hidden; background: #0B1834; border: 1px solid var(--line);
  height: max(540px, calc(100vh - 190px)); }
.live-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.live-stage:fullscreen { height: 100vh; border-radius: 0; border: 0; }
@media (max-width: 920px) {
  .live-bar { flex-wrap: wrap; gap: 8px 10px; } .lb-title { flex-basis: calc(100% - 90px); }
  .live-stage { height: max(460px, calc(100vh - 230px)); }
}
.live-bar .btn.soft-dark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.live-bar .btn.soft-dark:hover { background: rgba(255,255,255,.22); box-shadow: none; }
.mod-tools { position: relative; } .mod-tools > summary { list-style: none; } .mod-tools > summary::-webkit-details-marker { display: none; }
.mod-pop { width: min(440px, 92vw); max-height: min(70vh, 640px); overflow-y: auto; padding: 12px; color: var(--ink); z-index: 70; }
.mt-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 9px; }
.mt-row > .ic { flex: none; margin-top: 2px; color: var(--brand); }
.mt-row b { display: block; font-size: .86rem; } .mt-row span { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.45; }
.mt-row em { font-style: normal; font-weight: 650; color: var(--ink); }
.link-row:hover { background: var(--surface-2); } .mt-sep { border-top: 1px solid var(--line); margin: 6px 0; }
@media (max-width: 920px) { .mod-tools > summary { font-size: 0; gap: 0; padding: 9px; } .mod-tools > summary .ic { width: 18px; height: 18px; } }

/* ---------- conditional forms, searchable pickers, identifiers ---------- */
.form-grid [hidden], .stack [hidden] { display: none !important; }
.form-sec { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-sec h4 { margin: 0; font-size: .95rem; }
.form-sec p { margin: 3px 0 0; font-size: .82rem; color: var(--ink-3); }
.stack > .form-sec { margin-top: 4px; }
.choices-list > div:not([class]) { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-list.long { display: block; max-height: 264px; overflow: auto; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; }
.choices-list.long > div, .choices-list.long > div > div { display: block; }
.choices-list.long label { display: flex; border: 0; border-radius: 7px; padding: 7px 9px; }
.choices-list.long label:hover { background: var(--muted-bg); }
.choices-list.long label:has(input:checked) { background: var(--brand-soft); font-weight: 600; }
.pick-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pick-bar input { flex: 1; max-width: 340px; }
.idno { display: inline-block; padding: 0 6px; margin-right: 4px; border-radius: 5px; font: 600 .74rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--brand-soft); color: var(--ink); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }

/* ---------- exam security: hall, timers, warnings, full-screen gate, proctor view ---------- */
.exam-bar { position: sticky; top: 76px; z-index: 5; display: flex; gap: 12px; max-width: 900px; }
.exam-bar .timer { position: static; flex: 1; margin-bottom: 16px; }
.qtimer { position: relative; overflow: hidden; }
.qbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--muted-bg); }
.qbar i { display: block; height: 100%; width: 100%; background: var(--brand); transition: width 1s linear; }
.qtimer.low .qbar i { background: var(--bad); }
.exam-warn { max-width: 900px; margin: -4px 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 600; border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.exam-secure .q, .exam-secure .q-text { -webkit-user-select: none; user-select: none; }
.exam-secure input, .exam-secure textarea { -webkit-user-select: text; user-select: text; }
.exam-gate[hidden], .exam-warn[hidden] { display: none !important; }
.exam-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.exam-gate .card { max-width: 520px; text-align: center; }
.exam-gate .ic { width: 40px; height: 40px; color: var(--brand); }
.exam-gate p { color: var(--ink-2); }
.lobby { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; max-width: 1080px; }
.lobby-main h1 { margin: 10px 0 8px; }
.lobby-main h3 { margin: 22px 0 10px; }
.lobby-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--muted-bg); font-size: .9rem; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rules li > .ic { color: var(--brand); flex: none; margin-top: 2px; }
.rules b { display: block; font-size: .92rem; }
.rules span { font-size: .84rem; color: var(--ink-2); }
.lobby-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.sync-clock { display: grid; gap: 4px; justify-items: center; padding: 18px; border-radius: 14px; background: var(--muted-bg); text-align: center; }
.sync-clock b { font: 700 2.1rem/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sync-clock.live { background: var(--ok-bg); }
.sync-clock.live b { color: var(--ok); }
.consent { gap: 8px; }
.t-bad { color: var(--bad); }
.t-brand { color: var(--brand); }
tr.row-bad td { background: color-mix(in srgb, var(--bad) 6%, transparent); }
@media (max-width: 860px) { .lobby { grid-template-columns: minmax(0, 1fr); } .lobby-side { position: static; } .exam-bar { flex-direction: column; gap: 0; } }

/* ---------- question media, cloze gaps, spoken answers, net tally ---------- */
.q-media { display: grid; gap: 10px; justify-items: start; margin: 10px 0 6px; }
.q-media img { max-width: min(100%, 640px); max-height: 420px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.q-media audio { width: min(100%, 420px); }
.q-text.cloze { line-height: 2.3; }
.q-text .input.gap { display: inline-block; width: 150px; height: 34px; padding: 4px 10px; margin: 0 4px; vertical-align: baseline; }
.rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.rec .rec-time { font: 600 .95rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.rec audio { height: 36px; max-width: 100%; }
.rec [data-rec-state] { flex-basis: 100%; }
.rec-review { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 4px; }
.tally span { display: grid; padding: 8px 4px; border-radius: 10px; background: var(--muted-bg); font-size: .74rem; color: var(--ink-3); }
.tally b { font: 700 1.2rem/1.2 var(--display); color: var(--ink); }
.tally .net { background: var(--brand-soft); }
.tally .net b { color: var(--brand); }

/* ---------- paper mock exams: option spread, net trend ---------- */
.picks { display: flex; gap: 4px; flex-wrap: wrap; }
.picks span { display: inline-flex; gap: 4px; align-items: baseline; padding: 2px 7px; border-radius: 6px; background: var(--muted-bg); font-size: .76rem; color: var(--ink-2); }
.picks span b { font-size: .72rem; color: var(--ink-3); }
.picks span.on { background: var(--ok-bg); color: var(--ok); }
.picks span.on b { color: var(--ok); }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 14px; }
.trend.wide { height: 150px; }
.trend .tb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.trend .tb i { display: block; width: 100%; max-width: 44px; background: var(--line-2); border-radius: 5px 5px 0 0; min-height: 3px; }
.trend .tb.on i, .trend.wide .tb:last-child i { background: var(--brand); }
.trend .tb b { font: 700 .82rem var(--display); order: -1; }
.trend .tb span { font-size: .66rem; color: var(--ink-3); font-family: var(--mono); }
.stat .v small { font-size: .9rem; color: var(--ink-3); font-weight: 600; }
@media print { .no-print, .side, .topbar, .crumbs { display: none !important; } }

/* ---------- fees: due vs collected bars ---------- */
.fee-bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; margin-top: 14px; }
.fee-bars .fb { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fee-bars .fbars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fee-bars .fbars i { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.fee-bars .due { background: var(--line-2); }
.fee-bars .got { background: var(--brand); }
.fee-bars span { font-size: .66rem; color: var(--ink-3); font-family: var(--mono); }
tr.muted td { opacity: .6; }

/* ---------- annual training plan grid ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-month .card-head h3 { margin: 0; }
.plan-month .lrow { align-items: flex-start; }
.plan-month .lrow .grow > span { display: block; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- two-step verification ---------- */
.input.otp { font: 600 1.25rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3em; text-align: center; }
.qr-box { width: 220px; padding: 10px; margin: 12px 0; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: auto; display: block; }
.codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; }
.codes span { padding: 8px; border-radius: 8px; background: var(--muted-bg); text-align: center; }
.steps-list { margin: 0 0 6px 18px; padding: 0; display: grid; gap: 4px; }
@media (max-width: 600px) { .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- users list bulk bar ---------- */
.bulk-bar { position: sticky; top: 76px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--brand-line, var(--line-2)); box-shadow: var(--shadow); }
.bulk-bar[hidden], .bulk-bar [hidden] { display: none !important; }
.bulk-bar .input.sm { width: auto; max-width: 260px; }

/* ---------- karne: wrong / blank questions as chips ---------- */
.misses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.miss { display: inline-flex; gap: 4px; align-items: baseline; padding: 3px 8px; border-radius: 7px; font: 600 .76rem/1.3 var(--mono); }
.miss b { font-weight: 800; }
.miss.y { background: var(--bad-bg); color: var(--bad); }
.miss.b { background: var(--muted-bg); color: var(--ink-2); }

/* ---------- recruitment: candidate mode, pipeline board, scorecards ---------- */
.shell.solo { grid-template-columns: minmax(0, 1fr); }
.cand-top { justify-content: space-between; }
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.pipe-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.pipe-col h3 { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 2px 4px 4px; }
.pipe-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: inherit; }
.pipe-card:hover { border-color: var(--brand); }
.pipe-card b { display: block; font-size: .92rem; }
.pipe-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: .74rem; color: var(--ink-3); }
.cav { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; flex: none; }
.cav.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.score-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.score-pick label { cursor: pointer; }
.score-pick input { position: absolute; opacity: 0; pointer-events: none; }
.score-pick span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; }
.score-pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.score-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.crit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl-item .ic { width: 18px; height: 18px; color: var(--ink-3); margin-top: 2px; }
.tl-item.note { background: var(--brand-soft); border-radius: 10px; padding: 10px; border-bottom: 0; margin: 4px 0; }
.portal-wrap { max-width: 860px; margin: 0 auto; padding: 28px 16px 60px; }
.portal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.portal-head img { height: 44px; }
@media (max-width: 760px) { .pipe { grid-auto-columns: minmax(200px, 82%); } .crit-row { grid-template-columns: 1fr; } }

/* demo (inspection) mode */
.demo-off, .demo-off:hover { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.demo-note { margin: 10px 0 0; font-size: .78rem; color: var(--warn, #A15C00); display: flex; gap: 6px; align-items: center; }
.demo-note::before { content: "🔒"; }
