/* Varexo — signed-in pages (login, register, app). Brand: navy #0B2545,
   teal #14B8A6, blue #3B82F6, sky #E6F2FF (owner's brand sheet, 2026-11-11). */
:root { --navy:#0B2545; --teal:#14B8A6; --teal-d:#0f9488; --blue:#3B82F6; --sky:#E6F2FF;
        --ink:#14213d; --muted:#5b6475; --line:#d9dee7; --bg:#f5f7fb; --card:#fff; --bad:#b42318; --warn:#c2410c; --ok:#15803d; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--blue); }
button, input, select, textarea { font:inherit; }
.brand { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--navy); font-weight:800; font-size:22px; letter-spacing:-.3px; }
.brand img { height:30px; width:auto; }
.brand img.logo, .tabs .side-brand img.logo { height:32px; width:auto; display:block; }   /* the Examnetic logo (owner, 2026-11-13): mark + name in one picture */
.brand .dot { color:var(--teal); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--ink); font-weight:600; cursor:pointer; text-decoration:none; }
.btn:hover { border-color:#b8c0cf; }
.btn.primary { background:var(--teal); border-color:var(--teal); color:#fff; }
.btn.primary:hover { background:var(--teal-d); }
.btn.danger { color:var(--bad); }
.btn.small { padding:6px 10px; font-size:14px; border-radius:8px; }
.btn[disabled] { opacity:.55; cursor:default; }
.btn.link-btn { border:0; background:none; padding:6px 4px; color:var(--muted); font-weight:500; font-size:14px; text-decoration:underline; }   /* "or print from the browser" */
.btn.link-btn:hover { color:var(--ink); }
.btn.link-btn[disabled] { display:none; }
.input, select.input, textarea.input { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); }
textarea.input { min-height:150px; font-family:ui-monospace, Menlo, Consolas, monospace; font-size:14px; }
label.lab { display:block; font-size:13px; font-weight:600; color:var(--muted); margin:10px 0 4px; }
.muted { color:var(--muted); font-size:14px; }
.msg { padding:10px 12px; border-radius:10px; margin:10px 0; font-size:14px; }
.msg.error { background:#fef3f2; color:var(--bad); border:1px solid #f9d0cb; }
.msg.ok { background:#ecfdf3; color:var(--ok); border:1px solid #c6efd6; }
.msg.warn { background:#fff7ed; color:var(--warn); border:1px solid #fbd9b8; }

/* ----- sign-in pages ----- */
.auth { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px 16px; background:linear-gradient(160deg, var(--sky), #fff 60%); }
.auth-card { width:min(420px, 100%); background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px; box-shadow:0 10px 30px rgba(11,37,69,.08); }
.auth-card h1 { margin:16px 0 4px; font-size:24px; color:var(--navy); }
.sso { display:grid; gap:8px; margin-top:16px; }
.sso button { display:flex; align-items:center; justify-content:center; gap:10px; padding:11px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; font-weight:600; color:var(--ink); }
.sso svg { width:18px; height:18px; }
.or { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; margin:16px 0 4px; }
.or::before, .or::after { content:""; flex:1; height:1px; background:var(--line); }
.auth-card form .btn { width:100%; margin-top:14px; }
.auth-note { text-align:center; font-size:14px; margin:12px 0 0; }
.foot { text-align:center; font-size:12px; color:var(--muted); padding:16px; }
.foot a { color:var(--muted); }
.auth-note.agree { font-size:12.5px; color:var(--muted); line-height:1.45; }

/* ----- the app ----- */
.top { position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:12px; padding:10px 16px; background:#fff; border-bottom:1px solid var(--line); }
/* the iPhone/iPad app (vx-native.js → html.vx-in-app): the status bar sits over the page, so the top bar
   starts below it and the page ends above the home bar; the browser's Print doesn't exist in an app —
   a PDF opens in the share sheet, which has Print */
html.vx-in-app .top { padding-top:calc(10px + env(safe-area-inset-top)); }
html.vx-in-app body { padding-bottom:env(safe-area-inset-bottom); }
html.vx-in-app .printcard { top:calc(76px + env(safe-area-inset-top)); }
html.vx-in-app [data-act="printPage"], html.vx-in-app [data-act="printKeys"][data-how="page"], html.vx-in-app #printPageBtn { display:none !important; }
.top .grow { flex:1; }
.top .who { font-size:13px; color:var(--muted); max-width:40vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tabs { display:flex; gap:4px; padding:8px 16px 0; background:#fff; border-bottom:1px solid var(--line); overflow-x:auto; }
.tabs a, .tabs button { padding:10px 14px; border:0; background:none; color:var(--muted); font-weight:600; text-decoration:none; border-bottom:3px solid transparent; cursor:pointer; white-space:nowrap; }
.tabs .on { color:var(--navy); border-bottom-color:var(--teal); }
.tabs .soon { font-size:11px; background:var(--sky); color:var(--blue); border-radius:999px; padding:1px 6px; margin-left:4px; }
/* Full width (owner, 2026-11-12: "make the pages full width"). */
main.wrap { max-width:none; margin:0; padding:18px clamp(16px, 3vw, 40px) 60px; }
.bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:14px; }
.bar h2 { margin:0; font-size:22px; color:var(--navy); flex:1; min-width:160px; }
.bar select.input { width:auto; min-width:150px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.ccard { text-align:left; background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px; cursor:pointer; color:var(--ink); border-top:4px solid var(--teal); }
a.ccard { display:block; text-decoration:none; }
a.back { display:inline-block; text-decoration:none; }
.ccard:hover { box-shadow:0 6px 18px rgba(11,37,69,.08); }
.ccard .nm { font-weight:800; font-size:17px; }
.ccard .meta { color:var(--muted); font-size:14px; margin-top:4px; }
.ccard.add { border:2px dashed var(--line); border-top-width:2px; display:flex; align-items:center; justify-content:center; color:var(--teal-d); font-weight:700; min-height:96px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:14px; }
.panel h3 { margin:0 0 8px; font-size:17px; color:var(--navy); }
.row2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; }
.actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
table.roster { width:100%; border-collapse:collapse; font-size:15px; }
table.roster th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); padding:8px; border-bottom:1px solid var(--line); }
table.roster td { padding:8px; border-bottom:1px solid #eef1f6; vertical-align:middle; }
table.roster td.id { font-variant-numeric:tabular-nums; }
table.roster td.act { text-align:right; white-space:nowrap; }
table.roster tr.edit td { background:var(--sky); }
table.roster input.input { padding:6px 8px; }
.empty { text-align:center; padding:28px 12px; color:var(--muted); }
.start { max-width:520px; margin:40px auto; text-align:center; }
.start h2 { color:var(--navy); }
.probs { margin:8px 0 0; padding-left:18px; font-size:14px; color:var(--warn); }
.back { background:none; border:0; color:var(--blue); cursor:pointer; padding:0; font-weight:600; margin-bottom:8px; }
@media (max-width:560px) { .top .who { display:none; } .bar h2 { font-size:19px; } }

/* ----- working… (owner, 2026-11-12: "a processing icon on the buttons …
   so they lock from clicking twice"; "animated loadings are always cool") ----- */
@keyframes vxspin { to { transform: rotate(360deg); } }
.btn.busy, .sso button.busy, .ccard.busy { pointer-events:none; cursor:progress; }
.btn.busy::before, .sso button.busy::before { content:""; width:15px; height:15px; flex:none; border-radius:50%;
  border:2px solid rgba(20,184,166,.28); border-top-color:var(--teal); animation:vxspin .7s linear infinite; }
.btn.primary.busy::before { border-color:rgba(255,255,255,.4); border-top-color:#fff; }
.btn.primary.ready { background:var(--teal-d); border-color:var(--teal-d); }   /* "Your PDF is ready — open it" */
.btn.danger.busy::before { border-color:rgba(180,35,24,.25); border-top-color:var(--bad); }
.btn.busy { opacity:.9; }
/* The loader: an answer sheet's bubbles filling in, one after another. */
.vx-loader { display:flex; flex-direction:column; align-items:center; gap:12px; padding:48px 12px; color:var(--muted); font-weight:600; }
.vx-loader .bubbles { display:flex; gap:10px; }
.vx-loader .bubbles i { width:22px; height:22px; border-radius:50%; border:2.5px solid var(--navy); position:relative; overflow:hidden; }
.vx-loader .bubbles i::after { content:""; position:absolute; inset:2px; border-radius:50%; background:var(--teal); transform:scale(0); animation:vxfill 1.6s ease-in-out infinite; }
.vx-loader .bubbles i:nth-child(2)::after { animation-delay:.2s; }
.vx-loader .bubbles i:nth-child(3)::after { animation-delay:.4s; }
.vx-loader .bubbles i:nth-child(4)::after { animation-delay:.6s; }
@keyframes vxfill { 0%, 15% { transform:scale(0); } 35%, 65% { transform:scale(1); } 85%, 100% { transform:scale(0); } }
.vx-loader.small { padding:16px; flex-direction:row; }
.vx-loader.small .bubbles i { width:14px; height:14px; border-width:2px; }
/* Placeholder cards while classes load (a soft shimmer). */
@keyframes vxshimmer { to { background-position:-200% 0; } }
.ccard.skel { cursor:default; min-height:96px; background:linear-gradient(90deg, #fff 0%, #eef2f7 50%, #fff 100%); background-size:200% 100%; animation:vxshimmer 1.3s linear infinite; border-top-color:#d9dee7; }
@media (prefers-reduced-motion: reduce) {
  .vx-loader .bubbles i::after { animation:none; transform:scale(1); opacity:.5; }
  .ccard.skel { animation:none; }
  .btn.busy::before, .sso button.busy::before { animation-duration:2s; }
}
/* Scanner on a computer: open it on a phone or tablet instead. */
.qrbox { display:inline-block; padding:12px; background:#fff; border:1px solid var(--line); border-radius:14px; margin:12px 0; }
.qrbox svg { display:block; width:180px; height:180px; }

/* ----- slide-out menu on phones/tablets (owner, 2026-11-12: "a slide out
   menu on ipad and mobile … a link to open it next to the logo that
   transforms into a close button") ----- */
.menu-btn { display:inline-flex; flex-direction:column; justify-content:center; gap:5px; width:40px; height:40px; padding:0 9px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; flex:none; }
.menu-btn[hidden] { display:none; }
.menu-btn span { display:block; height:2.5px; border-radius:2px; background:var(--navy); transition:transform .25s ease, opacity .2s ease; transform-origin:center; }
.vx-menu-open .menu-btn span:nth-child(1) { transform:translateY(7.5px) rotate(45deg); }
.vx-menu-open .menu-btn span:nth-child(2) { opacity:0; transform:scaleX(.2); }
.vx-menu-open .menu-btn span:nth-child(3) { transform:translateY(-7.5px) rotate(-45deg); }
.vx-drawer .tabs { position:fixed; z-index:40; top:0; left:0; bottom:0; width:min(290px, 84vw); flex-direction:column; gap:2px; padding:max(76px, calc(env(safe-area-inset-top) + 66px)) 12px 20px;
  background:#fff; border-bottom:0; border-right:1px solid var(--line); box-shadow:8px 0 30px rgba(11,37,69,.16); overflow-y:auto;
  transform:translateX(-105%); transition:transform .28s cubic-bezier(.2,.8,.2,1); visibility:hidden; }
.vx-drawer.vx-menu-open .tabs { transform:none; visibility:visible; }
.vx-drawer .tabs a, .vx-drawer .tabs button { display:block; text-align:left; padding:14px 14px; border-radius:10px; border-bottom:0; font-size:17px; color:var(--ink); }
.vx-drawer .tabs .on { background:var(--sky); color:var(--navy); box-shadow:inset 4px 0 0 var(--teal); }
.vx-drawer .top { z-index:45; }                       /* the bar (and its ✕) stays above the menu */
.menu-backdrop { position:fixed; inset:0; z-index:35; background:rgba(11,37,69,.35); animation:vxfade .2s ease; }
.menu-backdrop[hidden] { display:none; }
@keyframes vxfade { from { opacity:0; } to { opacity:1; } }
.vx-menu-open body, .vx-scan-open body { overflow:hidden; }

/* ----- the scanner in a pop-up (owner, 2026-11-12) ----- */
.scan-modal { position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; background:#000; animation:vxup .25s cubic-bezier(.2,.8,.2,1); }
@keyframes vxup { from { transform:translateY(24px); opacity:0; } to { transform:none; opacity:1; } }
.scan-bar { display:flex; align-items:center; gap:10px; padding:max(8px, env(safe-area-inset-top)) 12px 8px; background:var(--navy); color:#fff; }
.scan-bar .grow { flex:1; }
/* Live scanning: the scanner fills the window, over the bar and its ✕. */
.scan-modal.live .scan-bar { display:none; }
/* (inside a frame the scanner can't see the notch: the pop-up keeps it clear) */
.scan-modal.live { padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.scan-close { width:40px; height:40px; border-radius:50%; border:0; background:rgba(255,255,255,.16); color:#fff; font-size:20px; cursor:pointer; }
.scan-modal iframe { flex:1; width:100%; border:0; background:#fff; }
@media (prefers-reduced-motion: reduce) {
  .menu-btn span, .vx-drawer .tabs { transition:none; }
  .scan-modal, .menu-backdrop { animation:none; }
}

/* ----- exam library (owner, 2026-11-12) ----- */
.pill { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12.5px; font-weight:700; }
.pill.ok { background:#ecfdf3; color:var(--ok); }
.pill.warn { background:#fff7ed; color:var(--warn); }
.vtabs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 10px; }
.vtabs a { padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); text-decoration:none; font-weight:600; }
.vtabs a small { color:var(--muted); font-weight:600; margin-left:4px; }
.vtabs a.on { border-color:var(--teal); box-shadow:inset 0 -3px 0 var(--teal); color:var(--navy); }
.vtab-add { padding:8px 12px; border:1px dashed #b9c2d0; border-radius:10px; background:transparent; color:var(--teal-d); font-weight:600; cursor:pointer; }
.vtab-add:hover { border-color:var(--teal); background:#fff; }
.keyhead { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.progress { height:8px; border-radius:999px; background:#eef2f7; overflow:hidden; margin:6px 0 4px; }
.progress i { display:block; height:100%; background:var(--teal); transition:width .25s ease; }
.subpanel { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px; margin-top:10px; }
.keygrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:6px 18px; margin-top:12px; }
.krow { display:flex; align-items:center; gap:6px; padding:3px 4px; border-radius:10px; }
.krow.empty { background:#fffbeb; }
.kq { width:30px; text-align:right; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; flex:none; }
.kopt { width:36px; height:36px; border-radius:50%; border:2px solid #9aa4b5; background:#fff; color:var(--ink); font-weight:700; font-size:14px; cursor:pointer; padding:0; flex:none; }
.kopt:hover { border-color:var(--navy); }
.kopt.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.ksec { grid-column:1 / -1; font-weight:800; color:var(--navy); margin-top:8px; }
@media (max-width:560px) { .kopt { width:40px; height:40px; } .keygrid { grid-template-columns:1fr; } }
/* the key laid out like the paper sheet: numbered DOWN each column (owner, 2026-11-12) */
.kcols { display:flex; flex-wrap:wrap; gap:6px 22px; margin-top:12px; align-items:flex-start; }
.kcol { display:flex; flex-direction:column; gap:2px; min-width:0; }
.kcols.kmatch { margin-top:4px; }
.ksec { margin-top:14px; }
.krow.multi { background:#eef6ff; }
.kmulti { font-size:11px; font-weight:800; color:var(--navy); background:#dbeafe; border-radius:999px; padding:2px 7px; margin-left:2px; white-space:nowrap; }
.kask { background:#fffbeb; border:1px solid #f5d38a; border-radius:10px; padding:8px 10px; margin:2px 0 6px; max-width:360px; font-size:14px; }
.kask .actions { margin-top:6px; }
.keypanel.locked .kopt { cursor:default; opacity:.8; }
.keypanel.locked .kopt:hover { border-color:#9aa4b5; }
.keypanel.locked .kopt.on { opacity:1; }
.keypanel.locked .krow.empty { background:transparent; }
#keyCount.nudge { color:var(--navy); font-weight:600; }
.mappanel .bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mcols { display:flex; flex-wrap:wrap; gap:4px 22px; }
.mrow { display:flex; align-items:center; gap:6px; padding:2px 0; }
.mrow .muted { font-size:13px; white-space:nowrap; }
.mnum { width:64px; padding:6px 8px; text-align:center; }
.mnum.dup, .mnum.bad { border-color:var(--bad); background:#fef3f2; }
.mapall { margin-top:8px; }
.mapall summary { cursor:pointer; color:var(--navy); font-weight:600; }
.bad { color:var(--bad); }
@media (max-width:560px) { .kcols { gap:6px 14px; } .kcol { width:100%; } }

/* ----- give to classes + printing a class's sheets (owner, 2026-11-12) ----- */
.checks { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:4px 14px; margin-top:10px; }
label.check { display:flex; align-items:center; gap:8px; padding:8px; border-radius:10px; cursor:pointer; font-size:15px; }
label.check:hover { background:var(--bg); }
label.check input { width:20px; height:20px; flex:none; accent-color:var(--teal); }
label.check.was { opacity:.7; }
label.check > span { flex:1; min-width:0; }
.blankn { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; margin:2px 0 4px 36px; font-size:15px; }
.blankn .input { width:80px; padding:6px 8px; }
.glist { display:flex; flex-direction:column; gap:8px; }
.gitem { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; flex-wrap:wrap; }
.gact { display:flex; gap:8px; }
.printpages { display:flex; flex-direction:column; align-items:center; gap:18px; margin-top:6px; }
.printpages .page { width:100%; max-width:720px; background:#fff; box-shadow:0 2px 10px rgba(20,33,61,.12); }
.printpages .page svg { display:block; width:100%; height:auto; }
@media print {
  /* only the sheets print (same rules as the Print sheets page: no blank last page) */
  .vx-print-mode body { background:#fff; }
  .vx-print-mode header.top, .vx-print-mode nav.tabs, .vx-print-mode .noprint, .vx-print-mode .foot, .vx-print-mode .menu-backdrop { display:none !important; }
  .vx-print-mode main.wrap { max-width:none; padding:0; margin:0; }
  .vx-print-mode .printpages { display:block; gap:0; margin:0; }
  .vx-print-mode .printpages .page { max-width:none; width:100%; overflow:hidden; box-shadow:none; break-inside:avoid; page-break-inside:avoid; }
  .vx-print-mode .printpages .page + .page { break-before:page; page-break-before:always; }
  /* The sheet must fit the printable HEIGHT: a browser that adds its own
     margins (Safari / iPhone / iPad, Chrome "Default margins") makes a
     full-WIDTH sheet taller than the page, and its bottom row + corner
     markers spill onto a 2nd page (owner, 2026-11-12, twice). "vh" did NOT
     fix it — in print it means different things in different browsers (the
     phone SCREEN on iOS) — so the size is in INCHES. 9.5in still left a
     BLANK page after every sheet for the owner (2026-11-12): their printer /
     browser keeps ~1in total, so the sheet's bottom white edge spilled over.
     9in tall (6.95in wide, the Letter ratio) fits 11in minus up to 1in top +
     1in bottom. The scanner reads by the corner markers, so a slightly
     smaller sheet still scans. */
  .vx-print-mode .printpages .page svg { display:block; width:auto; height:9in; max-width:100%; margin:0 auto; }
  /* ONLY the sheets: any message, card or bar left on the page pushed every
     sheet down and split its bottom corner markers onto a 2nd page
     (owner, 2026-11-12: "print is also showing a second page for each student"). */
  .vx-print-mode body > :not(main) { display:none !important; }
  .vx-print-mode #view > :not(.printpages) { display:none !important; }
  .vx-print-mode html, .vx-print-mode body { margin:0 !important; padding:0 !important; height:auto !important; }
}
@page { size: letter; margin: 0; }

/* ----- results (owner, 2026-11-12) ----- */
.rlinks td a { font-weight:700; color:var(--navy); }
.scorebig { font-size:40px; font-weight:800; color:var(--teal-d); margin:4px 0; }
.scorebig small { font-size:20px; color:var(--muted); font-weight:700; margin-left:6px; }
.vpick { display:flex; gap:8px; flex-wrap:wrap; }
.krow.r-right .kopt.on { background:#16a34a; border-color:#16a34a; }
.krow.r-wrong .kopt.on { background:#dc2626; border-color:#dc2626; }
.krow.r-wrong { background:#fef3f2; }
.krow.r-check { background:#fff7ed; }
.rinfo { font-size:13px; color:var(--muted); margin-left:4px; }
.krow.r-wrong .rinfo { color:var(--bad); font-weight:600; }
.linkbtn { background:none; border:0; padding:0; color:var(--blue); font:inherit; font-size:13px; cursor:pointer; text-decoration:underline; }
.items { display:flex; flex-direction:column; gap:4px; }
.item { display:grid; grid-template-columns:34px 1fr 46px; align-items:center; gap:8px; font-size:14px; }
.item .muted { grid-column:2 / 4; font-size:12.5px; margin-top:-2px; }
.item .bar { height:10px; border-radius:999px; background:#eef2f7; overflow:hidden; }
.item .bar i { display:block; height:100%; background:var(--ok); }
.item.mid .bar i { background:#f59e0b; }
.item.low .bar i { background:var(--bad); }
.item .pc { font-weight:700; text-align:right; }

/* ----- class › exam page: print card + results (owner, 2026-11-12) ----- */
.printonly { display:none; }
.gpage { display:grid; grid-template-columns:300px 1fr; gap:18px; align-items:start; }
.gmain { min-width:0; }
.printcard { position:sticky; top:76px; margin:0; max-height:calc(100vh - 92px); max-height:calc(100dvh - 92px); overflow-y:auto; overscroll-behavior:contain; }   /* never taller than the screen: a long card scrolls inside */
.printcard summary { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; font-weight:800; color:var(--navy); list-style:none; }
.printcard summary::-webkit-details-marker { display:none; }
.printcard summary::after { content:"▾"; color:var(--muted); transition:transform .2s ease; }
.printcard[open] summary::after { transform:rotate(180deg); }
.checks.one { grid-template-columns:1fr; max-height:320px; overflow:auto; border:1px solid var(--line); border-radius:10px; padding:4px; margin-top:8px; }
.panel h4 { margin:14px 0 6px; font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
@media (max-width:899px) {
  .gpage { grid-template-columns:minmax(0, 1fr); }
  .printcard { position:static; max-height:none; overflow:visible; }                 /* phones: a fold-open card at the top */
}
@media print { .vx-print-mode .printpages.printonly { display:block; } }

/* ----- the subject box: suggestions + add new (owner, 2026-11-12) ----- */
.combo { position:relative; }
.combo-list { position:absolute; z-index:20; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 30px rgba(11,37,69,.14); padding:4px; max-height:260px; overflow:auto; }
.combo-opt { padding:9px 10px; border-radius:8px; cursor:pointer; }
.combo-opt:hover, .combo-opt.on { background:var(--sky); }
.combo-opt.add { color:var(--teal-d); font-weight:700; }

/* ----- import a paper test (owner, 2026-11-12) ----- */
.imp-add .btn { cursor:pointer; }
.imp-pages { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:10px; }
.imp-page { margin:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.imp-page img { display:block; width:100%; height:140px; object-fit:cover; object-position:top; }
.imp-page figcaption { display:flex; align-items:center; gap:6px; padding:4px 8px; font-size:14px; }
.imp-page figcaption b { flex:1; }
.imp-doc { margin-top:10px; }
.imp-busy { display:flex; flex-direction:column; align-items:center; text-align:center; padding:28px 16px; }
.vx-spin { width:34px; height:34px; border-radius:50%; border:4px solid #dbe4f0; border-top-color:var(--teal); animation:vxspin .9s linear infinite; }
@keyframes vxspin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vx-spin { animation-duration:3s; } }
.imp-q.flagged { border-color:#f5d38a; box-shadow:inset 4px 0 0 #f59e0b; }
.imp-qh { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-bottom:8px; }
.imp-qh label { font-weight:700; display:flex; align-items:center; gap:6px; }
.imp-num { width:70px; padding:6px 8px; }
.imp-kind { width:auto; padding:6px 8px; }
.imp-qh .danger { margin-left:auto; color:var(--bad); }
.imp-flags { margin:0 0 8px; padding:8px 12px 8px 28px; background:#fffbeb; border-radius:10px; color:#92400e; font-size:14px; }
.imp-sec { font-size:13px; margin-bottom:4px; }
.imp-ansh { margin:8px 0 4px; }
.imp-choices { display:flex; flex-direction:column; gap:6px; }
.imp-ch { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.imp-ch .input { flex:1; min-width:160px; padding:7px 9px; }
.imp-ch.on .input { border-color:var(--navy); }
.imp-chfig { flex-basis:100%; padding-left:44px; }
.imp-fig { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; margin:8px 0; }
.imp-fig img { max-width:min(100%, 420px); max-height:260px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.imp-modal { position:fixed; inset:0; z-index:60; background:rgba(11,37,69,.6); display:flex; align-items:flex-start; justify-content:center; padding:16px; overflow:auto; }
.imp-modal-in { background:#fff; border-radius:14px; padding:14px; width:min(900px, 100%); }
.imp-stage { position:relative; touch-action:none; user-select:none; cursor:crosshair; border:1px solid var(--line); }
.imp-stage img { display:block; width:100%; height:auto; pointer-events:none; }
.imp-box { position:absolute; border:3px solid var(--teal); background:rgba(20,184,166,.12); display:none; pointer-events:none; }
.testpanel summary { cursor:pointer; }
.tq { border-top:1px solid var(--line); padding:10px 0; }
.tq-text { white-space:pre-wrap; margin:4px 0; }
.tq-img { display:block; max-width:min(100%, 480px); max-height:320px; margin:6px 0; border-radius:8px; border:1px solid var(--line); }
.tq-ch { margin:4px 0 0; padding-left:0; list-style:none; }
.tq-ch li { padding:3px 0; }
.tq-ch li.right { font-weight:600; }
.testedit h4 { margin:16px 0 6px; }
.te-q { border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:8px 0; }
.te-h { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:6px; }
.te-h .grow { flex:1; }
.te-h select.input { width:auto; max-width:100%; }
.te-num { display:inline-flex; align-items:center; gap:4px; font-weight:600; }
.te-num .input { width:4.5em; }
.te-text, .te-lab textarea, .te-lab .input { width:100%; box-sizing:border-box; }
.te-lab { display:block; margin-top:8px; font-size:.9em; color:var(--muted, inherit); }
.te-ch { list-style:none; margin:6px 0; padding:0; }
.te-ch li { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:4px 0; border-top:1px dashed var(--line); }
.te-ch li .input { flex:1 1 12em; min-width:0; }
.te-ch li.right .input { font-weight:600; }
.te-right { display:inline-flex; align-items:center; gap:2px; cursor:pointer; }
.te-right input { width:20px; height:20px; }
.te-lab-l { min-width:1.4em; }
.te-pic { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0; }
.te-pic.small { margin:0; }
.te-img { display:block; max-width:min(100%, 360px); max-height:240px; border-radius:8px; border:1px solid var(--line); }
.te-pic.small .te-img { max-width:120px; max-height:80px; }
.te-add { margin-top:8px; }
.imp-bal { margin:10px 0 0; }
.imp-bal.bad { color:var(--bad); }
/* the cost of an import, before anything is read (owner, 2026-11-14) */
.imp-cost { margin:12px 0 0; padding:10px 14px; border:1px solid #bfe9e3; border-left:4px solid var(--teal); border-radius:10px; background:#f0fdfa; color:var(--ink); }
.imp-cost.bad { border-color:#f5c2c0; border-left-color:var(--bad); background:#fef3f2; color:var(--bad); }
.imp-tagopt { margin-top:12px; }
/* Tag subjects (exam page, 2026-11-15) */
.tg-counts { display:flex; flex-wrap:wrap; gap:6px 16px; margin:0 0 12px; color:var(--muted); font-size:14px; }
.tg-counts b { color:var(--navy); }
.tg-opt { align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:12px; margin:0 0 8px; }
.tg-opt span { display:flex; flex-direction:column; }
.tg-opt small { color:var(--muted); font-size:13px; }
.tg-opt.off { opacity:.55; }
.tq-topic { margin:4px 0 2px; }
.tq-subj { background:var(--sky); color:var(--navy); font-weight:600; }
.bk-topics { margin:0 0 6px; }
.bk-topics .hs-box { margin:0 0 8px; }
#bkTopicBox .schip { min-height:32px; font-size:13px; }
/* Subjects on an exam + results by subject (2026-11-15) */
.subj-card .card-h .btn { margin-left:auto; }
.subj-bar { display:flex; height:14px; border-radius:999px; overflow:hidden; background:#eef2f7; margin:4px 0 12px; }
.subj-bar i { display:block; height:100%; }
.subj-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; vertical-align:middle; }
.subj-table tr.subj-row td, .subj-res tr.subj-row td { border-top:2px solid var(--line); }
.subj-table tr.subj-topic td:first-child, .subj-res tr.subj-topic td:first-child { padding-left:32px; color:var(--ink); }
.subj-nums { color:var(--muted); font-size:13px; white-space:normal; min-width:140px; }
.subj-none td { color:var(--muted); }
/* question numbers as links → the review pop-up (2026-11-15) */
.subj-nums .qlink { display:inline-block; min-width:28px; margin:2px 3px 2px 0; padding:2px 7px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--blue); font:inherit; font-size:13px; font-weight:700; cursor:pointer; text-align:center; }
.subj-nums .qlink:hover { border-color:var(--teal); background:#f0fdfa; color:var(--navy); }
.subj-nums .qlink:focus-visible { outline:3px solid rgba(20,184,166,.45); outline-offset:1px; }
.qpeek { max-width:720px; }
.qp-nav { gap:8px; align-items:center; margin:6px 0 8px; flex-wrap:wrap; }
.qp-btns { display:inline-flex; gap:6px; align-items:center; }
@media (max-width:640px) { .qp-btns { width:100%; justify-content:flex-end; } }
.qpeek .tq { border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:10px 0 0; }
.qp-stim { background:#f8fafc; }
.qpeek .tq-img { max-width:100%; height:auto; border-radius:8px; margin-top:8px; }
.qpeek .tq-ch li.right { font-weight:600; }
.subj-res .bar { display:inline-block; width:120px; height:8px; border-radius:999px; background:#eef2f7; overflow:hidden; vertical-align:middle; }
.subj-res .bar i { display:block; height:100%; background:var(--teal); }
.subj-res .bar.mid i { background:#f59e0b; } .subj-res .bar.low i { background:var(--bad); }
.subj-res tr.below td:nth-child(2), .subj-st td.below { color:var(--bad); font-weight:700; }
/* on a phone these stay TABLES (the app's other tables stack into cards): few, short columns */
@media (max-width:900px) {
  .rtable.subj-table, .rtable.subj-res, .rtable.subj-st { display:table; width:100%; }
  .rtable.subj-table thead, .rtable.subj-res thead, .rtable.subj-st thead { display:table-header-group; }
  .rtable.subj-table tbody, .rtable.subj-res tbody, .rtable.subj-st tbody { display:table-row-group; }
  .rtable.subj-table tr, .rtable.subj-res tr, .rtable.subj-st tr { display:table-row; }
  .rtable.subj-table td, .rtable.subj-res td, .rtable.subj-st td, .rtable.subj-table th, .rtable.subj-res th, .rtable.subj-st th { display:table-cell; width:auto; padding:8px 6px; font-size:14px; }
  .rtable.subj-table td::before, .rtable.subj-res td::before, .rtable.subj-st td::before { content:none; }
  .subj-table tr.subj-topic td:first-child, .subj-res tr.subj-topic td:first-child { padding-left:18px; }
  .subj-res .bar { width:56px; }
  .subj-nums { min-width:0; }
}
.imp-topic { display:inline-flex; align-items:center; gap:6px; margin:6px 0 2px; padding:3px 6px 3px 10px; border-radius:999px; background:var(--sky); color:var(--navy); font-size:13px; font-weight:600; }
.imp-topic .linkbtn { padding:0 4px; color:var(--muted); }
.imp-pass { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:14px; margin:4px 0 6px; color:var(--muted); }
.imp-pass .input { width:auto; max-width:100%; padding:5px 8px; }
.imp-shared { border-left:4px solid var(--teal); }

/* ----- versions of an imported test (owner, 2026-11-12) ----- */
.vmake { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; }
.vmake > label:not(.check) { display:flex; align-items:center; gap:6px; font-weight:600; }
.vmake .input { width:auto; padding:6px 8px; }
.vmake label.check { padding:4px 0; }
.arr-q { border-top:1px solid var(--line); padding:8px 0; }
.arr-h { display:flex; align-items:flex-start; gap:8px; }
.arr-t { flex:1; min-width:0; }
.arr-btns { display:flex; gap:4px; flex:none; }
.arr-ch { margin:4px 0 0 28px; padding:0; list-style:none; font-size:14px; }
.booklet { font-family: Georgia, "Times New Roman", serif; color:#000; font-size:12pt; line-height:1.35; }
.bk-head { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 18px; border-bottom:1.5pt solid #000; padding-bottom:6pt; margin-bottom:10pt; }
.bk-sec { font-weight:700; margin:12pt 0 4pt; }
.bk-pass { border:1pt solid #888; border-radius:4pt; padding:6pt 8pt; margin:8pt 0; break-inside:avoid; }
.bk-q { margin:0 0 10pt; break-inside:avoid; page-break-inside:avoid; }
.bk-text { white-space:pre-wrap; }
.bk-ch { list-style:none; margin:3pt 0 0 18pt; padding:0; break-inside:avoid; page-break-inside:avoid; }   /* the answers never split (browser print too) */
.bk-ch li { margin:1pt 0; break-inside:avoid; page-break-inside:avoid; }
.bk-write { break-inside:avoid; page-break-inside:avoid; }
.booklet img { display:block; max-width:100%; max-height:3.6in; margin:4pt 0; }
.bk-write { height:0.9in; border-bottom:0.75pt solid #999; margin-top:4pt; }
/* the page margins come from @page while the exam prints (printBooklet), so every page has space top and bottom */
@media print { .vx-print-mode .printpages .booklet { display:block; padding:0 0.1in; } }
/* "The stimulus below refers to questions 4–6." — kept with its stimulus */
.bk-for { font-weight:700; font-style:italic; margin:14pt 0 4pt; break-after:avoid; page-break-after:avoid; }
.bk-pass { break-after:avoid; page-break-after:avoid; }

/* ===== New-exam pop-up (owner, 2026-11-13): three steps that slide; the
   import opens in it too. ===== */
html.vx-modal-open, html.vx-modal-open body { overflow:hidden; }
.vx-modal { position:fixed; inset:0; z-index:90; display:flex; align-items:flex-start; justify-content:center; padding:max(16px, 6vh) 16px 16px; background:rgba(11,37,69,.45); overflow-y:auto; }
/* 📱 iPhone app (edge to edge) — a pop-up's top edge and its ✕ stay BELOW the Dynamic Island / notch, and its bottom above the
   home bar (owner, 2026-11-20: "the scanner modal's close button goes into the island"). On the website env() is 0: no change. */
.vx-modal { padding-top:max(16px, 6vh, calc(env(safe-area-inset-top) + 12px)); padding-bottom:max(16px, calc(env(safe-area-inset-bottom) + 8px)); }
.vx-modal.opening { animation:vxfade .2s ease-out; }
.vx-modal.opening .vx-mbox { animation:wizPop .24s cubic-bezier(.2,.8,.2,1); }
@keyframes wizPop { from { transform:translateY(12px) scale(.98); opacity:0; } to { transform:none; opacity:1; } }
.vx-mbox { position:relative; width:100%; max-width:640px; background:#fff; border:1px solid var(--line); border-radius:20px; padding:22px 24px 24px; box-shadow:0 24px 60px rgba(11,37,69,.25);
  /* clip SIDEWAYS only: the sliding steps stay inside, but the subject list can drop below the box (owner, 2026-11-13: "the dropdown for subjects gets cutoff") */
  overflow:visible; overflow-x:clip; }
.vx-mbox.wide { max-width:1100px; }
.vx-mtop { display:flex; align-items:center; gap:10px; }
.vx-mtop .grow { flex:1; }
.wiz-kicker { font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.wiz-step { font-size:14px; }
.vx-x { border:0; background:none; font-size:18px; line-height:1; padding:6px 8px; border-radius:8px; cursor:pointer; color:var(--muted); }
.vx-x:hover { background:var(--bg); color:var(--ink); }
.wiz-bars { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; margin:14px 0 18px; }
.wiz-bars span { height:6px; border-radius:3px; background:#eef1f5; transition:background .3s; }
.wiz-bars span.on { background:var(--teal); }
.wiz-pane h2 { margin:0 0 4px; font-size:22px; color:var(--navy); }
.wiz-pane > p.muted { margin:0 0 16px; }
.wiz-pane .input { width:100%; }
.wiz-err { color:var(--bad); font-size:14px; margin-top:6px; }
.wiz-cards { display:flex; flex-direction:column; gap:12px; }
.wiz-card { position:relative; display:flex; gap:12px; align-items:flex-start; padding:16px 18px; border:1.5px solid var(--line); border-radius:14px; cursor:pointer; background:#fff; transition:border-color .15s, box-shadow .15s; }
.wiz-card:hover { border-color:#b9c2d0; }
.wiz-card input { position:absolute; opacity:0; pointer-events:none; }
.wiz-card:has(input:checked) { border-color:var(--teal); box-shadow:0 0 0 1px var(--teal); }
.wiz-card:has(input:focus-visible) { outline:3px solid var(--blue); outline-offset:2px; }
.wiz-ico svg { width:24px; height:24px; fill:none; stroke:var(--navy); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.wiz-card:has(input:checked) .wiz-ico svg { stroke:var(--teal-d); }
.wiz-ct { flex:1; display:flex; flex-direction:column; gap:4px; }
.wiz-ct b { font-size:17px; color:var(--ink); }
.wiz-ct span { color:var(--muted); line-height:1.4; }
.wiz-dot { flex:none; width:22px; height:22px; border-radius:50%; border:2px solid #c6cdd8; margin-top:2px; }
.wiz-card:has(input:checked) .wiz-dot { border-color:var(--teal); background:var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.wiz-nav { display:flex; align-items:center; gap:10px; margin-top:20px; }
.wiz-nav .grow { flex:1; }
.wiz-nav .btn, .wiz-back { border-radius:999px; padding:11px 20px; }
.wiz-go.wide { width:100%; }
.wiz-nav svg, .wiz-back svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.vx-mbox .wiz-back.small { padding:6px 12px; margin-bottom:8px; }
.vx-mbox #impRoot .panel { box-shadow:none; }
/* the steps slide: forward from the right, Back from the left */
.wiz-pane.anim-next, .wiz-pane.anim-back { will-change:transform, opacity; backface-visibility:hidden; }
.wiz-pane.anim-next { animation:wizInR .28s cubic-bezier(.2,.8,.2,1); }
.wiz-pane.anim-back { animation:wizInL .28s cubic-bezier(.2,.8,.2,1); }
.wiz-pane.anim-open { animation:vxfade .2s ease-out; }
@keyframes wizInR { from { transform:translateX(48px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes wizInL { from { transform:translateX(-48px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes vxfade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .vx-modal.opening, .vx-modal.opening .vx-mbox, .wiz-pane.anim-next, .wiz-pane.anim-back, .wiz-pane.anim-open { animation:none; } }
@media (max-width:560px) {
  .vx-modal { padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom)); }
  .vx-mbox { padding:16px; border-radius:16px; }
  .wiz-pane h2 { font-size:19px; }
  .wiz-card { padding:14px; }
}
/* the set-up above a typed-in answer key */
.setup-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:4px 14px; }
.setup-grid .input { width:100%; }
/* the exam editor's text boxes are writing, not code (textarea.input is the paste box's) */
textarea.input.te-text, .te-lab textarea.input { min-height:0; font-family:inherit; font-size:inherit; }

/* ===== THE FRAME (owner's mock-ups, 2026-11-13): dark sidebar + light top
   bar over a wave-art page. vx-header.js draws it; .vx-side = the sidebar
   sits beside the page (a computer); .vx-drawer = it slides out (phones,
   tablets, narrow windows). ===== */
:root { --side-w:248px; }
body { background:#f4f7fc url("brand/waves-light.svg") top center / 100% auto no-repeat; }
@media print { .vx-print-mode body { background:#fff; } }      /* print only — the results page stays in print mode on screen */
.top .ico, .tabs .ico { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
/* the sidebar */
.tabs { background:#0b2545 url("brand/waves-dark.svg") bottom center / cover no-repeat; color:#dbe7f3; border:0; }
.tabs .side-brand { display:flex; align-items:center; gap:8px; padding:6px 10px 18px; color:#fff; text-decoration:none; font-weight:800; font-size:24px; letter-spacing:-.3px; border:0; }
.tabs .side-brand img { height:34px; width:auto; }
.tabs .side-brand img.logo { height:36px; }
.tabs .side-brand .dot { color:var(--teal); }
.tabs .side-nav, .tabs .side-group, .tabs .side-foot { display:flex; flex-direction:column; gap:4px; }
.tabs .side-nav a, .tabs .side-link, .tabs .side-soon, .tabs .side-school { display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:12px; color:#dbe7f3; text-decoration:none; font-weight:600; font-size:16px; border:0; }
.tabs .side-link:hover, .tabs .side-nav a:hover { background:rgba(255,255,255,.08); color:#fff; }
.tabs .side-link.on, .tabs .side-nav a.on { background:linear-gradient(90deg, #14b8a6, #0d9488); color:#fff; box-shadow:0 6px 16px rgba(20,184,166,.28); }
.tabs .side-soon, .tabs .side-school { color:rgba(219,231,243,.5); cursor:default; }
.tabs .lbl { flex:1; }
.tabs .soon { font-size:10.5px; letter-spacing:.04em; text-transform:uppercase; background:rgba(255,255,255,.1); color:rgba(219,231,243,.75); border-radius:999px; padding:2px 7px; margin:0; }
.tabs .side-group { margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); }
.tabs .side-foot { margin-top:auto; padding-top:14px; }
.tabs .side-h { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:rgba(219,231,243,.55); padding:0 14px 2px; }
.tabs .side-school { border:1px solid rgba(255,255,255,.18); margin-bottom:10px; }
.vx-side .tabs { position:fixed; z-index:30; top:0; left:0; bottom:0; width:var(--side-w); display:flex; flex-direction:column; gap:0; padding:20px 14px 18px; overflow-y:auto; }
.vx-side body { padding-left:var(--side-w); }
/* …never on paper: the answer sheet builder doesn't use print mode, so its sheets printed squeezed into the page minus the sidebar — smaller, corner squares far from the edges (owner, 2026-11-13) */
@media print { .vx-side body { padding-left:0 !important; } .vx-side .tabs, .vx-side .top { display:none !important; } }
.vx-side .top-brand, .vx-side .menu-btn { display:none; }
/* the top bar */
.top { background:transparent; border-bottom:0; gap:10px; padding:12px 24px; }
.vx-side .top { position:sticky; top:0; background:rgba(244,247,252,.72); backdrop-filter:saturate(1.4) blur(10px); -webkit-backdrop-filter:saturate(1.4) blur(10px); }
.top-search { position:relative; display:flex; align-items:center; gap:8px; flex:0 1 420px; min-width:0; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 14px; color:var(--muted); }
.top-search input { flex:1; min-width:0; border:0; background:none; font:inherit; color:var(--ink); outline:none; }
.top-search input:disabled { color:var(--muted); }
.top-search:focus-within { border-color:var(--teal); box-shadow:0 0 0 3px rgba(20,184,166,.15); }
/* search results (owner, 2026-11-14) */
.search-list { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:65; list-style:none; margin:0; padding:6px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 34px rgba(11,37,69,.16); max-height:min(420px, 70vh); overflow-y:auto; }
.search-list[hidden] { display:none; }
.search-list li a { display:grid; grid-template-columns:auto minmax(0, 1fr); column-gap:10px; align-items:center; padding:8px 10px; border-radius:10px; color:var(--ink); text-decoration:none; }
.search-list li a small { grid-column:2; color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-list li a b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-list li.on a, .search-list li a:hover { background:#f0fdfa; }
.search-list li.none { padding:10px; color:var(--muted); font-size:14px; }
.search-list .sk { grid-row:span 2; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:3px 7px; border-radius:999px; background:#eef2f7; color:var(--muted); }
.search-list .sk-exam { background:#e6f7f5; color:#0f766e; } .search-list .sk-class { background:#eef2ff; color:#4338ca; } .search-list .sk-student { background:#fff7ed; color:#c2410c; }
.top-search-x { border:0; background:none; color:var(--muted); font-size:15px; cursor:pointer; padding:2px 4px; }
.top .search-btn { display:none; }
.top-search input::-webkit-search-cancel-button { -webkit-appearance:none; display:none; }   /* our ✕ only */
a.top-ico { color:var(--muted); text-decoration:none; }
a.top-ico:hover { background:rgba(11,37,69,.05); color:var(--ink); }
.top-search .soon, .top .soon { font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; background:var(--sky); color:var(--blue); border-radius:999px; padding:2px 7px; }
.top-ico { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:0; border-radius:999px; background:none; color:var(--muted); }
.top-ico:disabled { opacity:.55; cursor:default; }
.acct { position:relative; }
.acct-btn { display:flex; align-items:center; gap:8px; border:0; background:none; padding:4px 6px; border-radius:999px; cursor:pointer; color:var(--ink); font-weight:600; }
.acct-btn:hover { background:rgba(11,37,69,.05); }
.acct-btn .ico { width:18px; height:18px; }
.avatar { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg, #14b8a6, #0d9488); color:#fff; font-weight:700; font-size:15px; }
.acct-name { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acct-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:50; min-width:220px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 34px rgba(11,37,69,.16); padding:14px; }
.acct-menu[hidden] { display:none; }
.acct-who { font-size:13px; color:var(--muted); margin-bottom:10px; overflow-wrap:anywhere; }
.acct-who b { color:var(--ink); }
.acct-menu .btn { width:100%; }
/* phones / tablets / narrow: the sidebar is the slide-out menu */
.vx-drawer .tabs { background:#0b2545 url("brand/waves-dark.svg") bottom center / cover no-repeat; display:flex; }
.vx-drawer .tabs .side-brand { display:none; }                  /* the bar shows the logo */
.vx-drawer .tabs a, .vx-drawer .tabs .side-soon, .vx-drawer .tabs .side-school { color:#dbe7f3; }
.vx-drawer .tabs .side-link.on, .vx-drawer .tabs .side-nav a.on { background:linear-gradient(90deg, #14b8a6, #0d9488); color:#fff; box-shadow:none; }
/* the lower menu items (Reports … Give Feedback) are .side-link: the old phone rule above (".vx-drawer .tabs a", line ~139:
   display:block, 14px padding, 17px) out-ranked their sidebar layout, so their icon sat high with no gap before the
   words and their rows — and the active highlight — were taller than Home … Answer Sheets (owner, 2026-11-23: "on the
   slideout menu the alignment with icons and text as well as the highlighting of active is off"). Same as the top items. */
.vx-drawer .tabs .side-link { display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:12px; font-size:16px; }
.vx-drawer .tabs .side-soon, .vx-drawer .tabs .side-school { color:rgba(219,231,243,.5); }
.vx-drawer .top { background:#fff; border-bottom:1px solid var(--line); padding:10px 16px; }
@media (max-width:900px) { .top-search { display:none; } .acct-name { display:none; }
  .top .search-btn { display:inline-flex; }
  .top-search.open { display:flex; position:absolute; left:10px; right:10px; top:50%; transform:translateY(-50%); z-index:70; box-shadow:0 8px 24px rgba(11,37,69,.18); } }
/* phones (owner, 2026-11-22: "fix the account button issue"): the logo kept its full 165px and nothing else could
   give, so the account picture sat ~37px past the right edge at 390px and the page scrolled sideways. The LOGO is now
   the one thing that shrinks; the buttons keep their size (Help was being squashed to 22px) and the gaps tighten. */
.top-brand { min-width:0; flex:0 1 auto; }
.top-brand img.logo { max-width:100%; height:auto; }
.top .menu-btn, .top .top-ico, .top .bell-wrap, .top .acct, .top .live-wrap { flex:none; }
@media (max-width:480px) { .vx-drawer .top { gap:6px; padding-left:12px; padding-right:12px; } .top .top-ico { width:36px; }
  .acct-btn { padding:2px; } .avatar { width:34px; height:34px; font-size:14px; } }
/* …and while a test is LIVE online the red pill needs the room: a smaller pill on phones, and on the smallest (≤400 px)
   the logo steps aside until the test closes — LIVE and the account button matter more there than the logo. */
@media (max-width:480px) { .live-wrap { margin-right:0; } .live-pill { gap:4px; padding:5px 9px; font-size:12px; letter-spacing:.02em; } }
@media (max-width:400px) { .top:has(.live-wrap:not([hidden])) .top-brand { display:none; } }
@media (max-width:340px) { .vx-drawer .top { gap:4px; padding-left:10px; padding-right:10px; } .top .top-ico { width:34px; } }
/* printing: no sidebar or bar (print only: the class results page keeps print mode on while on screen — owner, 2026-11-13) */
@media print { .vx-print-mode .tabs, .vx-print-mode .top { display:none !important; } .vx-print-mode body { padding-left:0 !important; } }
.tabs[hidden] { display:none !important; }

/* ===== HOME (owner's mock-up, 2026-11-13) ===== */
.hico { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hico.sm { width:18px; height:18px; color:var(--teal-d); }
.home-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:8px 0 22px; }
.home-hi { margin:0; font-size:clamp(28px, 4vw, 40px); letter-spacing:-.6px; color:var(--navy); }
.home-sub { margin:4px 0 0; color:var(--muted); font-size:17px; }
.home-new { padding:13px 22px; font-size:17px; border-radius:14px; box-shadow:0 10px 24px rgba(13,148,136,.25); }
.home-new .hico { width:20px; height:20px; }
.stat-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:16px; margin-bottom:20px; }
.stat { display:flex; align-items:center; gap:16px; padding:20px; background:#fff; border:1px solid var(--line); border-radius:18px; text-decoration:none; color:var(--ink); box-shadow:0 2px 10px rgba(11,37,69,.04); position:relative; transition:box-shadow .15s, transform .15s; }
.stat:hover { box-shadow:0 10px 26px rgba(11,37,69,.09); transform:translateY(-1px); }
.stat.skel { min-height:104px; }
.stat-ico { display:inline-flex; align-items:center; justify-content:center; width:60px; height:60px; border-radius:16px; background:#e6f7f5; color:var(--teal-d); flex:none; }
.stat-ico .hico { width:30px; height:30px; }
.stat-body { display:flex; flex-direction:column; min-width:0; }
.stat-lbl { font-weight:600; color:var(--ink); }
.stat-lbl small { font-weight:500; color:var(--muted); }
.stat-num { font-size:34px; font-weight:800; letter-spacing:-.5px; line-height:1.15; color:var(--navy); }
.chip { position:absolute; right:16px; bottom:16px; display:inline-flex; align-items:center; gap:3px; font-size:13px; font-weight:700; border-radius:999px; padding:4px 10px; }
.chip .hico { width:14px; height:14px; stroke-width:2.4; }
.chip.up { background:#e3f7ee; color:#15803d; }
.chip.down { background:#fdecec; color:var(--bad); }
.home-grid { display:grid; grid-template-columns:minmax(0, 1.75fr) minmax(0, 1fr); gap:16px; align-items:start; }
@media (max-width:1100px) { .home-grid { grid-template-columns:minmax(0, 1fr); } }
.card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px 22px; box-shadow:0 2px 10px rgba(11,37,69,.04); }
.card-h { display:flex; align-items:center; gap:10px; margin-bottom:12px; color:var(--teal-d); }
.card-h h2 { margin:0; font-size:20px; color:var(--navy); }
.card-h .grow { flex:1; }
.card-h .more { display:inline-flex; align-items:center; gap:4px; font-weight:700; color:var(--teal-d); text-decoration:none; }
.card-h .more .hico { width:18px; height:18px; }
.htable { width:100%; border-collapse:collapse; }
.htable th { text-align:left; font-size:13px; font-weight:600; color:var(--muted); background:#f4f7fb; padding:10px 12px; }
.htable th:first-child { border-radius:10px 0 0 10px; } .htable th:last-child { border-radius:0 10px 10px 0; }
.htable td { padding:13px 12px; border-bottom:1px solid #eef1f5; vertical-align:middle; }
.htable tr:last-child td { border-bottom:0; }
.hx { display:inline-flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; }
.hx:hover b { color:var(--teal-d); text-decoration:underline; }
.status { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; border-radius:999px; padding:3px 10px; white-space:nowrap; }
.status::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status.ready { background:#e3f7ee; color:#15803d; }
.status.given { background:#e6f0ff; color:#1d4ed8; }
.status.draft { background:#eef1f5; color:#5b6475; }
@media (max-width:640px) {
  .htable thead { display:none; }
  .htable, .htable tbody, .htable tr, .htable td { display:block; width:100%; }
  .htable tr { padding:10px 0; border-bottom:1px solid #eef1f5; }
  .htable td { border:0; padding:3px 0; display:flex; gap:8px; }
  .htable td::before { content:attr(data-l); min-width:84px; color:var(--muted); font-size:13px; }
  .htable td:first-child::before { display:none; }
}
.act { list-style:none; margin:0; padding:0; }
.act li { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid #eef1f5; }
.act li:last-child { border-bottom:0; }
.act-ico { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:#e6f7f5; color:var(--teal-d); flex:none; }
.act-ico.check { background:#e3f7ee; color:#15803d; }
.act-ico.give { background:#e6f0ff; color:#1d4ed8; }
.act-b { flex:1; min-width:0; display:flex; flex-direction:column; }
.act-b span { color:var(--muted); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.act-t { font-size:13px; color:var(--muted); white-space:nowrap; }
/* the subject list opens upward when the keyboard leaves no room below (vx-app.js comboFit) */
.combo-list.up { top:auto; bottom:calc(100% + 4px); }
/* phones / tablets (owner, 2026-11-13: "the background … doesn't come through on mobile"):
   the waves stay full height on a narrow screen, and the bar lets them show through */
@media (max-width:900px) { body { background-size:max(100%, 1100px) auto; } }
.vx-drawer .top { background:rgba(255,255,255,.55); border-bottom:1px solid rgba(217,222,231,.6); backdrop-filter:saturate(1.4) blur(10px); -webkit-backdrop-filter:saturate(1.4) blur(10px); }
.vx-drawer.vx-menu-open .top { background:#fff; }
/* the tagline under the logo (owner, 2026-11-13: "Assessment, Simplified.") */
/* the four steps (owner, 2026-11-18: "add this to examnetic messaging") */
.motto { margin:-10px 0 14px 40px; font-size:12.5px; font-weight:700; color:var(--muted, #5b6b82); letter-spacing:.03em; }
.tagline { margin:2px 0 14px 40px; font-size:13.5px; font-weight:600; color:var(--teal-d); letter-spacing:.02em; }
.tabs .side-brand { padding-bottom:2px; }
.tabs .side-tagline { margin:0 0 18px; padding:0 0 0 54px; font-size:12px; font-weight:600; letter-spacing:.01em; color:#5eead4; white-space:nowrap; }   /* one line (owner, 2026-11-13) */
.vx-drawer .tabs .side-tagline { padding-left:14px; }

/* ===== THE EXAM PAGE (owner's mock-up, 2026-11-13) ===== */
.crumbs { display:flex; align-items:center; gap:8px; font-size:15px; color:var(--muted); margin:4px 0 12px; }
.crumbs a { color:var(--muted); text-decoration:none; } .crumbs a:hover { color:var(--teal-d); text-decoration:underline; }
.crumbs span:last-child { color:var(--ink); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.exam-head { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom:14px; }
.ex-ico { display:inline-flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:18px; background:#d7f3ef; color:var(--teal-d); flex:none; }
.ex-ico .hico { width:38px; height:38px; }
.ex-t { flex:1; min-width:220px; }
.ex-t h1 { margin:0; font-size:clamp(24px, 3.4vw, 34px); color:var(--navy); letter-spacing:-.4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; overflow-wrap:anywhere; }
.ex-edit { border:0; background:none; color:var(--muted); padding:4px; border-radius:8px; cursor:pointer; }
.ex-edit:hover { color:var(--teal-d); background:#eef7f6; }
.ex-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:6px; color:var(--muted); font-weight:500; }
.ex-meta > span { display:inline-flex; align-items:center; gap:6px; }
.badge { border-radius:999px; padding:4px 12px; font-size:14px; font-weight:600; }
.badge.keyonly { background:#e6f7f5; color:var(--teal-d); }
.badge.full { background:#e6f0ff; color:#1d4ed8; }
.ex-acts { display:flex; align-items:center; gap:10px; margin-left:auto; }
.kebab { position:relative; }
.kebab summary { list-style:none; display:inline-flex; align-items:center; justify-content:center; width:46px; height:44px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; color:var(--ink); }
.kebab summary::-webkit-details-marker { display:none; }
.kebab-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:180px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 34px rgba(11,37,69,.16); padding:6px; display:flex; flex-direction:column; }
.kebab-menu button { text-align:left; border:0; background:none; padding:10px 12px; border-radius:8px; font-weight:600; cursor:pointer; color:var(--ink); }
.kebab-menu button:hover { background:#f4f7fb; } .kebab-menu .danger { color:var(--bad); }
.etabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:4px 0 18px; overflow-x:auto; scrollbar-width:none; }
.etabs a { padding:12px 16px; color:var(--muted); font-weight:600; text-decoration:none; border-bottom:3px solid transparent; white-space:nowrap; font-size:16px; }
.etabs a:hover { color:var(--ink); }
.etabs a.on { color:var(--teal-d); border-bottom-color:var(--teal); }
.etabs small { background:#e6f7f5; color:var(--teal-d); border-radius:999px; padding:1px 7px; font-size:12px; margin-left:4px; }
.stat-row.four { grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); }
.stat.sm { padding:16px; gap:12px; }
.stat.sm .stat-ico { width:46px; height:46px; border-radius:12px; }
.stat.sm .stat-ico .hico { width:24px; height:24px; }
.stat.sm .stat-num { font-size:28px; }
.stat-sub { font-size:13px; color:var(--muted); }
.stat.sm:hover { transform:none; box-shadow:0 2px 10px rgba(11,37,69,.04); }
.xgrid { display:grid; grid-template-columns:minmax(0, 1.6fr) minmax(0, 1fr); gap:16px; align-items:start; margin-bottom:16px; }
.xgrid.lower { grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width:1100px) { .xgrid, .xgrid.lower { grid-template-columns:minmax(0, 1fr); } }
.xacts { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:12px; }
.xact { display:flex; align-items:center; gap:14px; text-align:left; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); text-decoration:none; cursor:pointer; font:inherit; transition:border-color .15s, box-shadow .15s; }
.xact:hover { border-color:var(--teal); box-shadow:0 6px 18px rgba(13,148,136,.12); }
.xact.off { opacity:.55; cursor:default; } .xact.off:hover { border-color:var(--line); box-shadow:none; }
.xact-ico { color:var(--teal-d); } .xact-ico .hico { width:28px; height:28px; }
.xact-t { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.xact-t b { font-size:16px; } .xact-t span { color:var(--muted); font-size:14px; }
.xact .chev { width:18px; height:18px; color:var(--muted); }
.drow { display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid #eef1f5; }
.drow:last-child { border-bottom:0; }
.drow .dk { flex:1; color:var(--ink); } .drow .dv { font-weight:600; text-align:right; }
.drow .hico.sm { color:var(--muted); }
.soon { font-size:11px; text-transform:uppercase; letter-spacing:.04em; background:var(--sky); color:var(--blue); border-radius:999px; padding:2px 8px; font-weight:700; }
.emptybox { display:flex; gap:14px; align-items:center; background:#eef8f7; border-radius:14px; padding:18px; }
.emptybox > .hico { width:40px; height:40px; color:var(--teal-d); }
.emptybox b { display:block; } .emptybox span { color:var(--muted); }
.act-ico.pencil { background:#fff4e5; color:#c2410c; } .act-ico.exam { background:#eef1f5; color:#5b6475; }
.soonpanel h3 { display:flex; align-items:center; gap:8px; }
@media (max-width:640px) { .ex-acts { margin-left:0; width:100%; flex-wrap:wrap; } .ex-acts .btn { flex:1 1 auto; } .ex-ico { width:56px; height:56px; } }   /* wrap: three buttons were wider than a phone (owner, 2026-11-14) */

/* ===== THE CLASS PAGE (owner's mock-up, 2026-11-13) ===== */
.hico.down { transform:rotate(90deg); }
.kebab.manage summary { width:auto; padding:0 14px; gap:6px; font-weight:600; }
.ex-meta > span[aria-hidden] { color:#c6cdd8; }
.cgrid { display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr); gap:16px; align-items:start; }
.cgrid.wide { grid-template-columns:minmax(0, 1fr); } .cgrid.wide .cside { display:none; }   /* the Reports tab: the builder goes full width below */
.cr-intro { margin:14px 4px 4px; }
.cr-root { margin-top:16px; }
/* minmax(0, …): a plain 1fr column grows to its widest content (the class tabs row) and the
   whole page got wider than a phone — "the header is only about 2/3 of the page" (owner, 2026-11-14) */
@media (max-width:1100px) { .cgrid { grid-template-columns:minmax(0, 1fr); } }
.cside { display:flex; flex-direction:column; gap:16px; }
.ctabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:-6px 0 16px; overflow-x:auto; scrollbar-width:none; }
.ctabs button { display:inline-flex; align-items:center; gap:7px; border:0; background:none; padding:12px 14px; font:inherit; font-weight:600; color:var(--muted); border-bottom:3px solid transparent; cursor:pointer; white-space:nowrap; }
.ctabs button.on { color:var(--teal-d); border-bottom-color:var(--teal); }
.ctabs .soonish { color:#9aa3b2; }
.rtools { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.rsearch { flex:1 1 240px; display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:12px; padding:0 12px; background:#fff; color:var(--muted); }
.rsearch input { flex:1; border:0; background:none; padding:10px 0; font:inherit; min-width:0; }
.rsearch input:focus { outline:none; } .rsearch:focus-within { border-color:var(--teal); box-shadow:0 0 0 3px rgba(20,184,166,.15); }
.rtools select.input { width:auto; min-width:200px; flex:0 1 auto; }
.rtable { width:100%; border-collapse:collapse; }
.rtable th { text-align:left; font-size:13px; font-weight:600; color:var(--muted); background:#f4f7fb; padding:10px 12px; }
.rtable th:first-child { border-radius:10px 0 0 10px; } .rtable th:last-child { border-radius:0 10px 10px 0; }
.rtable td { padding:11px 12px; border-bottom:1px solid #eef1f5; vertical-align:middle; }
.rtable tr[hidden] { display:none; }
.rtable td.act { width:52px; text-align:right; }
.rtable tr.edit td { background:#f8fbff; }
.sname { display:flex; align-items:center; gap:12px; }
.sname > span:last-child { display:flex; flex-direction:column; }
.sname small { color:var(--muted); font-size:12.5px; } .sname small.warnish { color:var(--warn); }
.sav { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; font-weight:700; font-size:14px; flex:none; }
.trend { display:inline-flex; align-items:center; gap:8px; }
.spark { width:64px; height:22px; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.spark.up { stroke:#14b8a6; } .spark.down { stroke:#ef4444; }
.chip-in { font-size:12.5px; font-weight:700; border-radius:999px; padding:2px 8px; white-space:nowrap; }
.chip-in.up { background:#e3f7ee; color:#15803d; } .chip-in.down { background:#fdecec; color:var(--bad); }
.kebab.row summary { width:36px; height:34px; border-color:transparent; background:none; }
.kebab.row summary:hover { background:#f4f7fb; }
.addrow { margin-top:14px; padding-top:14px; border-top:1px solid #eef1f5; }
.linkish { border:0; background:none; font:inherit; cursor:pointer; }
.cside .act li { align-items:center; }
.cside .act-b { text-decoration:none; color:inherit; }
.cside .act-b:hover b { color:var(--teal-d); text-decoration:underline; }
/* exam page: a Submissions row / a scan in Recent Activity opens that class's sheets (owner, 2026-11-16) */
.act a.act-b.go { text-decoration:none; color:inherit; }
.act a.act-b.go:hover b { color:var(--teal-d); text-decoration:underline; }
.act .go-chev { align-self:center; color:var(--muted); flex:none; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
@media (max-width:640px) {
  .rtable thead { display:none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display:block; width:100%; }
  .rtable tr { position:relative; padding:10px 0; border-bottom:1px solid #eef1f5; }
  .rtable td { border:0; padding:3px 0; display:flex; gap:8px; align-items:center; }
  .rtable td::before { content:attr(data-l); min-width:84px; color:var(--muted); font-size:13px; }
  .rtable td:first-child::before, .rtable td.act::before { display:none; }
  .rtable td.act { position:absolute; right:0; top:10px; width:auto; }
  .rtools select.input { width:100%; }
}

/* ===== A CLASS'S EXAM RESULTS (owner, 2026-11-13) ===== */
.stat-num small { font-size:18px; color:var(--muted); font-weight:700; }
.gpage { grid-template-columns:320px minmax(0, 1fr); gap:16px; }
/* TABLETS (owner, 2026-11-13: on a tablet the Scores table's Status column hung
   outside its card, the stat cards split 3 + 1). This block must come AFTER the
   two-column rule above — the older "max-width:899px" stack sat before it and
   never applied. Below 1100px: one column, the print card a fold-open card on
   top (as on phones), the Scores table full width. */
@media (max-width:1099px) {
  .gpage { grid-template-columns:minmax(0, 1fr); }
  .printcard { position:static; max-height:none; overflow:visible; }
}
/* a table that still can't fit scrolls INSIDE its card */
.tscroll { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
.tscroll > .rtable { min-width:560px; }
/* the four stat cards: four across, or 2 × 2 — never 3 + 1 */
.stat-row.four { grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:899px) { .stat-row.four { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:1149px) { .vx-side .stat-row.four { grid-template-columns:repeat(2, minmax(0, 1fr)); } }   /* the sidebar takes ~250px */
@media (max-width:480px) { .stat-row.four { grid-template-columns:minmax(0, 1fr); } }                       /* phones: one card per row, as before */
@media (max-width:640px) { .tscroll > .rtable { min-width:0; } }   /* phones: the table is stacked rows */
.gmain { display:flex; flex-direction:column; gap:16px; }
.printcard { background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px 20px; box-shadow:0 2px 10px rgba(11,37,69,.04); top:84px; }
.printcard summary span { font-size:18px; }
.printcard .pfoot { position:sticky; bottom:-18px; margin:10px -20px -18px; padding:12px 20px 16px; background:#fff; border-top:1px solid #eef1f5; z-index:2; }
.sortby { display:inline-flex; align-items:center; gap:8px; }
.sortby select.input { width:auto; min-width:150px; padding:7px 10px; }
.stable tr.miss td { color:var(--muted); }
.stable tr.miss .sav { opacity:.55; }
.stable a.sname { text-decoration:none; color:var(--ink); }
.stable a.sname:hover b { color:var(--teal-d); text-decoration:underline; }
.sbar { display:inline-flex; align-items:center; gap:8px; min-width:180px; }
.sbar > span { flex:1; height:8px; border-radius:999px; background:#eef1f5; overflow:hidden; min-width:70px; }
.sbar i { display:block; height:100%; border-radius:999px; background:#14b8a6; }
.sbar.mid i { background:#f59e0b; } .sbar.low i { background:#ef4444; }
.sbar small { color:var(--muted); }
.status.warnish { background:#fff4e5; color:#c2410c; }
@media (max-width:640px) { .sbar { min-width:0; width:100%; } }

/* ----- the class's exam results on tablets / narrow windows (owner, 2026-11-13) ----- */
/* (at the END of the file so it wins over the .sbar / .gpage rules above) */
@media (max-width:1349px) {                     /* a computer with the sidebar: the page is ~250px narrower */
  .vx-side .gpage { grid-template-columns:minmax(0, 1fr); }
  .vx-side .printcard { position:static; max-height:none; overflow:visible; }
}
@media (max-width:899px) {                      /* tighter Scores table so it fits a portrait tablet */
  .rtable.stable th, .rtable.stable td { padding:10px 8px; }
  .rtable.stable .sbar { min-width:140px; }
  .rtable.stable .sbar > span { min-width:44px; }
}
@media (max-width:1149px) {                     /* …and a narrow computer window with the sidebar */
  .vx-side .rtable.stable th, .vx-side .rtable.stable td { padding:10px 8px; }
  .vx-side .rtable.stable .sbar { min-width:140px; }
  .vx-side .rtable.stable .sbar > span { min-width:44px; }
}

/* ===== EXAMS + CLASSES lists, a student's scanned sheet, sign-in in the new look (owner, 2026-11-13) ===== */
.list-head .ex-ico { width:60px; height:60px; border-radius:16px; }
.list-head .ex-ico .hico { width:32px; height:32px; }
.list-head .ex-acts { flex-wrap:wrap; }
.list-head .ex-acts select.input { width:auto; min-width:0; max-width:100%; }
.ltools { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.lsearch { position:relative; flex:1 1 240px; display:flex; align-items:center; }
.lsearch .hico { position:absolute; left:12px; width:18px; height:18px; color:var(--muted); pointer-events:none; }
.lsearch .input { padding-left:38px; width:100%; }
.ltools select.input { width:auto; flex:0 0 auto; }
/* Exams list: SUBJECT chips (owner, 2026-11-14) — one row that scrolls sideways; on a computer
   ‹ › arrows show when there is more that way (like Knovli's rows); on a touch screen, swipe. */
.hs-box { position:relative; margin:-2px 0 12px; }
.schips { display:flex; gap:8px; overflow-x:auto; scroll-behavior:smooth; scrollbar-width:none; padding:2px 2px 4px; -webkit-overflow-scrolling:touch; }
.schips::-webkit-scrollbar { display:none; }
.schip { flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:6px 14px; border:1px solid var(--line); border-radius:999px;
  background:#fff; color:var(--navy); font:inherit; font-size:14px; font-weight:600; white-space:nowrap; cursor:pointer; transition:background .15s, border-color .15s, color .15s; }
.schip:hover { border-color:var(--teal); background:#f0fdfa; }
.schip:focus-visible { outline:3px solid rgba(20,184,166,.45); outline-offset:2px; }
.schip-n { min-width:22px; padding:1px 7px; border-radius:999px; background:var(--sky); color:var(--navy); font-size:12px; font-weight:700; text-align:center; }
.schip.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.schip.on .schip-n { background:var(--teal); color:#fff; }
/* the edge fades say "there is more this way" (also on a phone, where there are no arrows) */
.hs-box::before, .hs-box::after { content:''; position:absolute; top:0; bottom:4px; width:44px; pointer-events:none; opacity:0; transition:opacity .15s; z-index:1; }
.hs-box::before { left:0; background:linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)); }
.hs-box::after { right:0; background:linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)); }
.hs-box.fade-l::before, .hs-box.fade-r::after { opacity:1; }
.hs-arrow { position:absolute; top:calc(50% - 2px); transform:translateY(-50%); z-index:2; width:32px; height:32px; padding:0; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--navy); cursor:pointer; box-shadow:0 4px 12px rgba(11,37,69,.16); }
.hs-arrow[hidden] { display:none; }
.hs-arrow.prev { left:0; } .hs-arrow.next { right:0; }
.hs-arrow svg { width:16px; height:16px; }
.hs-arrow.prev svg { transform:rotate(180deg); }
.hs-arrow:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
.hs-arrow:focus-visible { outline:3px solid rgba(20,184,166,.45); outline-offset:2px; }
@media (hover:none) { .hs-arrow { display:none !important; } }      /* touch: swipe instead */
.xtable .hx span { display:flex; flex-direction:column; }
.xtable .hx small { color:var(--muted); font-size:13px; font-weight:500; }
.xtable td .pill { white-space:nowrap; }
.empty-card { text-align:center; padding:34px 22px; }
.empty-card .ex-ico { margin:0 auto 10px; }
.empty-card h2 { margin:0 0 6px; color:var(--navy); }
.empty-card .btn { margin-top:12px; }
.skel-card { min-height:180px; display:flex; flex-direction:column; gap:14px; }
.skel-line { height:16px; border-radius:8px; background:linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%); background-size:200% 100%; animation:vxshimmer 1.3s linear infinite; }
@media (prefers-reduced-motion:reduce) { .skel-line { animation:none; } }
/* classes */
.clgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.clcard { display:flex; flex-direction:column; gap:14px; background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px 20px; color:var(--ink); text-decoration:none; box-shadow:0 2px 10px rgba(11,37,69,.04); transition:box-shadow .15s ease, transform .15s ease; font:inherit; text-align:left; cursor:pointer; }
.clcard:hover { box-shadow:0 10px 26px rgba(11,37,69,.09); transform:translateY(-1px); }
.cl-top { display:flex; align-items:center; gap:12px; min-width:0; }
.cl-av { width:46px; height:46px; border-radius:14px; font-size:16px; }
.cl-t { display:flex; flex-direction:column; min-width:0; }
.cl-t b { font-size:18px; color:var(--navy); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-t span { color:var(--muted); font-size:14px; }
.cl-nums { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:12px 0; border-top:1px solid #eef1f5; border-bottom:1px solid #eef1f5; }
.cl-nums span { display:flex; flex-direction:column; font-size:12px; color:var(--muted); }
.cl-nums b { font-size:22px; color:var(--navy); line-height:1.2; }
.cl-nums b.ok { color:#15803d; } .cl-nums b.mid { color:#c2410c; } .cl-nums b.low { color:#b42318; }
.cl-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; }
.cl-open { display:inline-flex; align-items:center; gap:2px; color:var(--teal-d); font-weight:700; }
.cl-open .hico { width:16px; height:16px; }
.clcard.add { align-items:center; justify-content:center; border:2px dashed var(--line); box-shadow:none; color:var(--teal-d); min-height:180px; gap:8px; }
.clcard.add .hico { width:28px; height:28px; }
/* a student's scanned sheet */
.res-av .sav { width:64px; height:64px; font-size:22px; }
.stat-num.tone-ok { color:#15803d; } .stat-num.tone-mid { color:#c2410c; } .stat-num.tone-low { color:#b42318; }
.rask { margin-bottom:16px; }
.rask h3 { margin-top:0; }
.rpage { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
.rpage.one { grid-template-columns:minmax(0, 1fr); }
.rsheet .sheetv { width:100%; height:auto; display:block; border-radius:10px; border:1px solid var(--line); }
.rhint { font-size:13px; }
@media (max-width:1099px) { .rpage { grid-template-columns:minmax(0, 1fr); } }
@media (max-width:1349px) { .vx-side .rpage { grid-template-columns:minmax(0, 1fr); } }
@media (max-width:640px) { .list-head .ex-acts select.input { flex:1 1 100%; } .ltools select.input { flex:1 1 45%; } }
/* sign-in / sign-up: the app's waves */
.auth { background:#f4f7fc url("brand/waves-light.svg") top center / max(100%, 1100px) auto no-repeat; }
.rsheet .legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; font-size:13px; }
@media (max-width:1099px) { .rsheet .sheetv { max-width:520px; margin:0 auto; } }
@media (max-width:1349px) { .vx-side .rsheet .sheetv { max-width:520px; margin:0 auto; } }
.auth-card { border-radius:18px; padding:28px; box-shadow:0 12px 34px rgba(11,37,69,.10); }
.auth-card a { color:var(--teal-d); font-weight:600; }
/* Imports read in the background (owner, 2026-11-13) */
.imports { margin-bottom:16px; }
.imp-list { list-style:none; margin:0; padding:0; }
.imp-list li { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 0; border-bottom:1px solid #eef1f5; }
.imp-list li:last-child { border-bottom:0; }
.imp-list .hx { flex:1 1 220px; min-width:0; }
.imp-list .hx span { display:flex; flex-direction:column; }
.imp-list .hx small { color:var(--muted); font-size:13px; }

/* the subject list, floated out of a pop-up while open (iOS clipped it; owner 2026-11-13) */
.combo-list.combo-float { position:fixed; right:auto; z-index:120; }
.combo-list.combo-float.up { top:auto; }
/* scanning a printed class list (owner, 2026-11-14) */
.rscan { margin:6px 0 4px; }
.vx-spin.sm { display:inline-block; width:14px; height:14px; border-width:2px; vertical-align:-2px; }
.msg.info { background:#eef6ff; border-color:#bfdbfe; color:#1e3a8a; }
p.small, .small { font-size:13px; }
/* "Use a picture from…" in the exam editor (owner, 2026-11-14) */
.te-pic .te-move { width:auto; max-width:100%; padding:5px 8px; font-size:13px; }
/* very small phones (360px): the top bar fits (owner, 2026-11-14) */
@media (max-width:380px) { .top { gap:6px; padding-left:12px; padding-right:12px; } .top .brand img.logo { height:26px; } }

/* ===== The page camera (vx-camera.js): auto-captures each clear page ===== */
.vxcam { position: fixed; inset: 0; z-index: 3000; background: #000; color: #fff; display: flex; flex-direction: column; }
/* contain, not cover: what the teacher sees is exactly what is saved */
.vxcam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vxcam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vxcam-flash.on { animation: vxcamflash .35s ease-out; }
@keyframes vxcamflash { from { opacity: .85; } to { opacity: 0; } }
.vxcam-top { position: relative; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); }
.vxcam-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vxcam-n { font-size: 14px; opacity: .9; white-space: nowrap; }
.vxcam-torch { background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 999px; width: 40px; height: 40px; font-size: 18px; }
.vxcam-torch.on { background: #f5c542; }
.vxcam-cd { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(0,0,0,.72); border-radius: 16px; padding: 16px 22px; text-align: center; max-width: calc(100% - 32px); }
.vxcam-cd[hidden] { display: none; }
.vxcam-num { font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.vxcam-cd .btn { margin-top: 10px; }
.vxcam-bot { position: relative; margin-top: auto; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8) 30%); }
.vxcam-say { text-align: center; font-size: 15px; margin: 0 auto 8px; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.65); width: fit-content; max-width: 100%; }
.vxcam-strip { display: flex; gap: 6px; overflow-x: auto; min-height: 0; margin-bottom: 8px; }
.vxcam-strip:empty { display: none; }
.vxcam-th { position: relative; flex: 0 0 auto; }
.vxcam-th img { height: 56px; border-radius: 4px; display: block; border: 1px solid rgba(255,255,255,.5); }
.vxcam-th b { position: absolute; left: 3px; bottom: 2px; font-size: 11px; background: rgba(0,0,0,.6); border-radius: 3px; padding: 0 3px; }
.vxcam-th button { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #d33; color: #fff; font-size: 11px; padding: 0; }
.vxcam-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vxcam-acts .btn { min-width: 0; }
.vxcam-shut { width: 64px; height: 64px; border-radius: 50%; font-size: 30px; padding: 0; flex: 0 0 auto; }

/* ===== Smooth page changes (owner, 2026-11-14: "switching from answer sheets to any other
   pages is a little glitchy in loading"). Answer Sheets is its own page, so moving to or
   from it reloads. Browsers that can (Chrome/Edge, Safari 18.2+) now cross-fade the
   content while the sidebar and top bar stay put; others simply load as before. ===== */
@view-transition { navigation: auto; }
.tabs { view-transition-name: vx-side; }
.top { view-transition-name: vx-top; }
/* (2026-11-17) the new page RISES in while the old one fades — the same feel as moving inside the app */
::view-transition-old(root) { animation: .16s ease-out both vxVtOut; }
::view-transition-new(root) { animation: .3s cubic-bezier(.22,1,.36,1) both vxVtIn; }
@keyframes vxVtOut { to { opacity: 0; } }
@keyframes vxVtIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.vx-loading { display:flex; align-items:center; gap:8px; padding:24px 0; }
.vxcam-note { text-align: center; font-size: 14px; margin: 0 auto 6px; padding: 6px 12px; border-radius: 10px; background: #fff7e0; color: #5a4300; width: fit-content; max-width: 100%; }
.vxcam-note[hidden] { display: none; }

/* ===== The inline exam editor (owner, 2026-11-14): one question or stimulus at a time ===== */
.testedit.inline .tq { position: relative; }
.te-card .tq-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.te-card .tq-h .grow, .te-bar .grow, .te-foot .grow { flex: 1; }
.te-card .te-edit { padding: 4px 10px; }
.te-card .te-edit:disabled { opacity: .45; }
.tq-sec { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; margin: 10px 0 2px; }
.te-open { border: 2px solid var(--teal, #14b8a6); background: #fbfffe; box-shadow: 0 6px 22px rgba(13,148,136,.12); scroll-margin-top: 90px; }
.te-bar { display: flex; align-items: center; gap: 8px; margin: -2px 0 6px; }
.te-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
/* formatted text — shown and edited */
.rt ul, .rt ol, .rte ul, .rte ol { margin: 4px 0; padding-left: 1.4em; }
.tq-text.rt, .bk-text { white-space: pre-wrap; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.rte-b { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.rte-b:hover { border-color: var(--teal, #14b8a6); }
.rte { min-height: 3.2em; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; line-height: 1.45; }
.rte.one { min-height: 0; white-space: normal; flex: 1 1 12em; min-width: 0; }
.rte:focus { outline: none; border-color: var(--teal, #14b8a6); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.rte:empty::before { content: attr(data-ph); color: #94a3b8; pointer-events: none; }
.te-ch li .rte.one { margin: 0; }
.te-take { width: auto; max-width: 100%; }
.te-stim { max-width: 100%; }
/* phones: the top bar was ~25px wider than a 390px phone (the account button's arrow fell off
   the edge, so the page could slide sideways). The greyed "coming soon" bell / help and the
   arrow give way; the avatar still opens the account menu. */
@media (max-width:480px) { .top-ico:disabled { display:none; } .acct-btn .ico { display:none; } }

/* ===== Question groups (owner, 2026-11-14: "more distinct, easier to tell apart"): a stimulus and its
   questions in one coloured box; each group its own colour ===== */
.tgroup { --gc:#0d9488; --gb:#f0fdfa; border:2px solid var(--gc); border-left-width:7px; border-radius:14px; background:var(--gb); padding:2px 14px 6px; margin:16px 0; }
.tgroup.g1 { --gc:#4f46e5; --gb:#f5f5ff; }
.tgroup.g2 { --gc:#b45309; --gb:#fffbeb; }
.tgroup.g3 { --gc:#be185d; --gb:#fdf2f8; }
.tgroup.g4 { --gc:#0369a1; --gb:#f0f9ff; }
.tgroup.g5 { --gc:#15803d; --gb:#f0fdf4; }
.tg-h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 -14px 4px; padding:8px 14px; border-bottom:1px solid color-mix(in srgb, var(--gc) 30%, transparent); color:var(--gc); font-size:14px; }
.tg-h b { text-transform:uppercase; letter-spacing:.05em; font-size:12.5px; }
.tg-n { color:var(--ink); font-weight:600; }
.tg-dot { width:10px; height:10px; border-radius:50%; background:var(--gc); flex:none; }
.tgroup > .tq:first-of-type, .tgroup > .tg-h + .tq { border-top:0; }
.tgroup .tq-pass { background:#fff; border:1px solid color-mix(in srgb, var(--gc) 35%, transparent); border-radius:10px; padding:10px 12px; margin:6px 0 4px; }
.tgroup .te-open { background:#fff; }
.tgroup .tq-stim { display:none; }   /* the "Stimulus P1" chip: the box already says it */
.tgroup .tq-pass .tq-h .muted { display:none; }   /* "for questions 2, 3" — the group header says it */
.tg-foot { padding:8px 0 4px; border-top:1px dashed color-mix(in srgb, var(--gc) 35%, transparent); margin-top:6px; }
.tg-add { border-color:var(--gc); color:var(--gc); background:#fff; }
/* a stimulus's BYLINE (owner, 2026-11-14): its own line, set apart from the passage */
.tq-src, .bk-src { margin-top:10px; text-align:right; font-style:italic; color:var(--muted); font-size:.95em; }
.bk-src { color:#333; }
.imp-src { margin-top:8px; }

/* ===== The bell + the "AI draft ready" pop-up (owner, 2026-11-14) ===== */
.bell-wrap { position:relative; display:inline-flex; }
#vxBell { position:relative; cursor:pointer; }
#vxBell:disabled { cursor:default; }
#vxBell.has { color:var(--teal-d, #0f766e); }
.bell-n { position:absolute; top:3px; right:2px; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#e11d48; color:#fff; font-size:11px; font-weight:800; line-height:18px; text-align:center; box-shadow:0 0 0 2px #fff; }
.bell-n[hidden] { display:none; }
.bell-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:60; width:min(340px, calc(100vw - 24px)); background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 14px 34px rgba(11,37,69,.16); padding:6px; }
.bell-menu[hidden] { display:none; }
/* phones (2026-11-23): pinned to the bell's right edge, the 340px menu ran off the LEFT of a 390px screen —
   on a phone it spans the screen under the top bar instead (bell and LIVE menus alike) */
@media (max-width:480px) { .bell-menu { position:fixed; left:12px; right:12px; width:auto; top:calc(var(--vx-top-h, 62px) + 4px); max-height:calc(100vh - var(--vx-top-h, 62px) - 24px); overflow-y:auto; } }
.bell-h { font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:8px 10px 4px; }
.bell-menu ul { list-style:none; margin:0; padding:0; }
.bell-menu li { position:relative; }
.bell-menu li a { display:flex; flex-direction:column; gap:2px; padding:9px 36px 9px 10px; border-radius:10px; color:var(--ink); text-decoration:none; border-left:4px solid transparent; }
/* ✕ clear one (owner, 2026-11-23) — a 32px target, top right of its notification */
.bell-menu .bn-x { position:absolute; top:4px; right:4px; width:32px; height:32px; border:0; border-radius:999px; background:none; color:var(--muted); font-size:14px; line-height:1; cursor:pointer; }
.bell-menu .bn-x:hover, .bell-menu .bn-x:focus-visible { background:#eef2f7; color:var(--ink); }
.bell-h { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.bell-menu .bn-all { border:0; background:none; color:var(--teal-d, #0f766e); font:inherit; font-size:12px; font-weight:700; text-transform:none; letter-spacing:0; cursor:pointer; padding:4px 6px; border-radius:8px; }
.bell-menu .bn-all:hover { background:#f0fdfa; }
.bell-menu li a:hover { background:#f4f7fb; }
.bell-menu li.bn-ready a { border-left-color:#14b8a6; }
.bell-menu li.bn-failed a { border-left-color:#f97316; }
.bell-menu li.bn-reply a { border-left-color:#6366f1; }
/* new help replies (owner, 2026-11-15): a count on the top bar's ? and the sidebar's Help */
a.help-ico { position:relative; }
.side-n { margin-left:auto; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#e11d48; color:#fff; font-size:11px; font-weight:800; line-height:20px; text-align:center; }
.side-n[hidden] { display:none; }
.bell-menu li.bn-reading a { border-left-color:#cbd5e1; color:var(--muted); }
.bell-menu li span { font-size:13px; color:var(--muted); }
.bell-none { margin:6px 10px 10px; color:var(--muted); font-size:14px; }
.vx-toast { position:fixed; z-index:2500; right:16px; bottom:16px; max-width:min(440px, calc(100vw - 32px)); display:flex; align-items:center; gap:10px; padding:12px 12px 12px 14px; background:#fff; border:1px solid var(--line); border-left:5px solid #14b8a6; border-radius:14px; box-shadow:0 16px 40px rgba(11,37,69,.22); animation:vxToastIn .25s ease-out; }
.vx-toast.warn { border-left-color:#f97316; }
.vx-toast[hidden] { display:none; }
.vt-txt { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.vt-txt span { font-size:13px; color:var(--muted); }
.vt-x { border:0; background:none; color:var(--muted); font-size:16px; cursor:pointer; padding:4px; }
@keyframes vxToastIn { from { transform:translateY(12px); opacity:0; } to { transform:none; opacity:1; } }
@media (max-width:480px) { .vx-toast { left:12px; right:12px; bottom:12px; max-width:none; } }
@media (prefers-reduced-motion: reduce) { .vx-toast { animation:none; } }
.exfont { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--muted); }
.exfont select.input { width:auto; padding:6px 8px; }
.bk-dir { margin:6pt 0 10pt; white-space:pre-wrap; break-after:avoid; page-break-after:avoid; }
.te-dir.te-card { background:#fbfcfe; }
/* the "Make versions" pop-up (owner, 2026-11-14) */
.vmake-box { max-width:520px; }
.vmake-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:12px; margin-bottom:12px; }
.vmake-grid .input { width:100%; margin-top:4px; }
.vmake-box .check { display:flex; gap:8px; align-items:flex-start; margin:8px 0; }
@media (max-width:480px) { .vmake-grid { grid-template-columns:minmax(0, 1fr); } }
/* the version map pop-up (owner, 2026-11-14) */
.vmap-box { max-width:980px; }
.vmap td, .vmap th { white-space:nowrap; vertical-align:top; }
.vmap td.vmap-none b { color:#aab4c3; }
/* one pair of columns per version — "#" and "Answer" — in version A's order (owner, 2026-11-14) */
.vmap { border-collapse:collapse; }
.vmap th.vm-v { text-align:center; background:var(--navy); color:#fff; border-left:2px solid #fff; }
.vmap tr.vm-sub th { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:#eef2f7; text-align:center; }
.vmap td.vm-n, .vmap td.vm-a { text-align:center; min-width:52px; }
.vmap td.vm-n { border-left:2px solid var(--line); }
.vmap td.vm-a { font-weight:800; color:var(--teal-d); }
.vmap td.vm-a.vm-w { font-weight:500; font-style:italic; color:var(--muted); font-size:13px; }
.vmap td.vm-a.vm-blank { color:#aab4c3; }
.vmap tbody td:nth-child(1), .vmap tbody td:nth-child(2) { background:#f0fdfa; }
.vmap .vm-t { white-space:normal; min-width:200px; max-width:360px; border-left:2px solid var(--line); text-align:left; }
.vmap th.vm-t { background:var(--navy); color:#fff; vertical-align:middle; }

/* ===== Help + Give Feedback (owner, 2026-11-14) ===== */
.sup-search { width:100%; margin-bottom:10px; }
.sup-items { display:flex; flex-direction:column; gap:8px; }
.sup-item { border:1px solid var(--line); border-radius:12px; padding:0 14px; background:#fff; }
.sup-item > summary { cursor:pointer; padding:12px 0; font-weight:700; color:var(--navy); list-style:none; display:flex; justify-content:space-between; gap:10px; }
.sup-item > summary::-webkit-details-marker { display:none; }
.sup-item > summary::after { content:"▾"; color:var(--muted); }
.sup-item[open] > summary::after { transform:rotate(180deg); }
.sup-item ol, .sup-faq { margin:0 0 12px; line-height:1.55; }
.sup-item ol li { margin:4px 0; }
.sup-list { list-style:none; margin:0; padding:0; }
.sup-list > li { border-top:1px solid var(--line); }
.sup-row { display:flex; align-items:center; gap:10px; width:100%; padding:12px 4px; border:0; background:none; font:inherit; text-align:left; cursor:pointer; color:var(--ink); }
.sup-row b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sup-list > li.unread .sup-row b::before { content:"● "; color:#e11d48; }
.sup-thread { padding:4px 4px 14px; }
.sup-msg { background:#f6f8fb; border-radius:12px; padding:10px 12px; margin:8px 0; max-width:640px; }
.sup-msg.staff { background:#ecfdf5; margin-left:auto; }
.sup-who { font-size:12px; color:var(--muted); margin-bottom:4px; font-weight:600; }
.sup-kinds { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:8px; margin-bottom:12px; }
.sup-kind { display:flex; align-items:center; gap:8px; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; font-weight:600; }
.sup-kind:has(input:checked) { border-color:var(--teal); box-shadow:0 0 0 1px var(--teal); background:#f0fdfa; }

/* ===== Exam Stats · class Reports · Reports (owner, 2026-11-16) — vx-statsui.js + vx-charts.js ===== */
.xs-controls { padding:14px 16px; }
.xs-controls + .xs-controls { margin-top:12px; }
.xs-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-bottom:6px; }
.xs-top h2 { font-size:17px; color:var(--navy); }
.xs-crow { display:flex; align-items:flex-start; gap:10px; padding:8px 0; border-top:1px solid #eef1f5; }
.xs-clbl { flex:0 0 112px; padding-top:7px; font-size:13px; font-weight:700; color:var(--muted); }
.xs-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-width:0; }
.xs-chip { min-height:32px; padding:5px 12px; font-size:13.5px; }
.xs-chip.sm { min-height:28px; padding:3px 10px; font-size:13px; }
.xs-sub { color:var(--muted); font-size:12px; font-weight:500; }
.xs-chip.on .xs-sub { color:#cfe3ff; }
/* a chip turned OFF reads as crossed out (it is left out of the numbers) */
.xs-fgrp .xs-chip:not(.on), [data-st="flag"].xs-chip:not(.on), .xs-scope .xs-chip:not(.on) { background:#fff; color:var(--muted); text-decoration:line-through; text-decoration-color:rgba(91,100,117,.45); }
.xs-chip:not(.on) .schip-n { background:#f1f5f9; color:var(--muted); }
.xs-allnone { font-size:13px; color:var(--muted); margin-left:4px; }
.xs-fgrp { border-top:1px solid #eef1f5; padding:8px 0; }
.xs-fgrp > summary { cursor:pointer; list-style:none; display:flex; gap:8px; align-items:baseline; padding:2px 0; }
.xs-fgrp > summary::-webkit-details-marker { display:none; }
.xs-fgrp > summary::before { content:"▸"; color:var(--muted); transition:transform .15s ease; display:inline-block; }
.xs-fgrp[open] > summary::before { transform:rotate(90deg); }
.xs-fgrp .xs-chips { margin-top:8px; }
.xs-hint { margin:6px 0 0; font-size:13px; }
.xs-foot { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; border-top:1px solid #eef1f5; padding-top:10px; font-size:13px; }
.xs-seg { display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.xs-seg button { border:0; background:none; padding:8px 12px; font-size:13.5px; font-weight:600; color:var(--muted); cursor:pointer; }
.xs-seg button + button { border-left:1px solid var(--line); }
.xs-seg button.on { background:var(--navy); color:#fff; }
.xs-line { display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:var(--muted); }
.xs-line .input { width:auto; padding:6px 8px; }
.xs-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin:14px 0; }
.xs-tile .stat-num small { font-size:.55em; color:var(--muted); font-weight:600; }
.xs-sec { margin-top:14px; }
.xs-sec .card-h { flex-wrap:wrap; }
.xs-hsub { font-size:13px; }
.xs-h3 { font-size:15px; margin:18px 0 6px; color:var(--navy); }
.xs-chart { margin:8px 0 12px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
/* on a phone a chart keeps a readable size and scrolls sideways in its box (like the heat grids) */
@media (max-width:640px) { .xs-chart > .vxc { min-width:560px; } .xs-two .xs-chart > .vxc { min-width:520px; } }
.xs-two { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; }
.xs-build { display:flex; flex-wrap:wrap; gap:10px 14px; padding-top:10px; border-top:1px solid #eef1f5; }
.xs-build label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:700; color:var(--muted); min-width:150px; flex:1 1 150px; }
@media (max-width:900px) { .xs-two { grid-template-columns:minmax(0, 1fr); } .xs-crow { flex-direction:column; gap:4px; } .xs-clbl { flex-basis:auto; padding-top:0; } }
.xs-table td, .xs-table th { white-space:nowrap; }
.xs-table td:first-child { white-space:normal; min-width:150px; }
.xs-table.xs-narrow { max-width:460px; }
.xs-table.xs-wrap td { white-space:normal; }
.xs-controls > .xs-crow:first-child { border-top:0; padding-top:0; }
.xs-qtext { display:inline-block; max-width:340px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; font-size:13px; }
.xs-table tr.xs-below td:first-child { box-shadow:inset 3px 0 0 #ef4444; }
.xs-table tr.xs-subj td { background:#f8fafc; }
.xs-table tr.xs-topic td:first-child { padding-left:22px; }
.xs-table tr.xs-total td { border-top:2px solid var(--line); background:#f8fafc; }
.xs-heat td.h-ok { background:#ccfbf1; } .xs-heat td.h-mid { background:#fef3c7; } .xs-heat td.h-low { background:#fee2e2; }
.xs-grid td, .xs-grid th { text-align:center; }
.xs-grid td:first-child, .xs-grid th:first-child { text-align:left; position:sticky; left:0; background:#fff; z-index:1; }
.xs-grid tr.xs-total td:first-child { background:#f8fafc; }
.xs-d { font-size:12px; font-weight:700; } .xs-d.up { color:#0f766e; } .xs-d.down { color:#be123c; }
.xs-flag { color:var(--warn); font-weight:700; } .xs-flag.bad { color:var(--bad); }
.xs-sw { display:inline-block; padding:2px 8px; border-radius:999px; font-size:13px; margin:2px 4px 2px 0; background:#f1f5f9; }
.xs-sw.h-ok { background:#ccfbf1; } .xs-sw.h-mid { background:#fef3c7; } .xs-sw.h-low { background:#fee2e2; }
.xs-bandline { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:14px; }
/* the heat grids stay TABLES on a phone (scroll sideways, names stick) */
@media (max-width:900px) {
  .rtable.xs-grid { display:table; width:100%; }
  .rtable.xs-grid thead { display:table-header-group; } .rtable.xs-grid tbody { display:table-row-group; }
  .rtable.xs-grid tr { display:table-row; }
  .rtable.xs-grid td, .rtable.xs-grid th { display:table-cell; width:auto; padding:7px 6px; font-size:13px; }
  .rtable.xs-grid td::before { content:none; }
}
/* charts */
.vxc { width:100%; height:auto; display:block; font-family:inherit; }
.vxc-grid { stroke:#e8ecf2; stroke-width:1; }
.vxc-pass { stroke:#0B2545; stroke-width:1.5; stroke-dasharray:5 4; opacity:.55; }
.vxc-ax { font-size:11px; fill:var(--muted); }
.vxc-lbl { font-size:12.5px; fill:var(--ink); }
.vxc-val { font-size:11.5px; fill:var(--ink); font-weight:700; }
.vxc-legend { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13px; margin-top:6px; }
.vxc-legend i { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.hico.back { transform:rotate(180deg); }

/* ===== Question Bank (owner, 2026-11-14) ===== */
.bk-filters { display:grid; grid-template-columns:minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap:10px; }
@media (max-width:760px) { .bk-filters { grid-template-columns:minmax(0, 1fr); } }
.bk-bar { position:sticky; top:62px; z-index:5; display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 6px 18px rgba(11,37,69,.06); }
.bk-bar .grow { flex:1; }
.bk-list { display:flex; flex-direction:column; gap:10px; }
.bk-item { display:flex; gap:12px; padding:14px 16px; background:#fff; border:1.5px solid var(--line); border-radius:14px; }
.bk-item.on { border-color:var(--teal); box-shadow:0 0 0 1px var(--teal); background:#f8fffe; }
.bk-pick input { width:20px; height:20px; margin-top:2px; }
.bk-body { flex:1; min-width:0; }
.bk-meta { font-size:13px; margin-bottom:6px; }
.bk-meta a { color:var(--muted); }
.bk-stim { font-size:13.5px; background:#f6f8fb; border-left:3px solid #cbd5e1; padding:6px 10px; border-radius:6px; margin-bottom:6px; color:var(--muted); }
.bk-text { white-space:pre-wrap; }
.bk-chs { list-style:none; margin:6px 0 0; padding:0; } .bk-chs li { padding:2px 0; } .bk-chs li.right { font-weight:600; }
.bk-targets { display:flex; flex-direction:column; gap:8px; max-height:50vh; overflow-y:auto; margin:10px 0; }
.bk-target { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; }
.bk-target small { display:block; color:var(--muted); }
.bk-target.off { opacity:.55; cursor:default; }
.bk-target:has(input:checked) { border-color:var(--teal); box-shadow:0 0 0 1px var(--teal); }

/* ===== Settings (owner, 2026-11-14) ===== */
.st-sec .check { display:flex; gap:8px; align-items:flex-start; margin:8px 0; }
.st-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; }
.st-grid .lab { display:flex; flex-direction:column; gap:4px; }
.st-save { position:sticky; bottom:12px; z-index:4; display:flex; justify-content:flex-end; margin:4px 0 14px; }
.st-save .btn { box-shadow:0 8px 20px rgba(13,148,136,.25); }
.bk-by { font-weight:400; font-style:italic; font-size:.9em; margin-top:2pt; }

/* ===== Templates (owner, 2026-11-14) ===== */
.tp-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px; }
.tp-card { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:16px; border:1.5px solid var(--line); border-radius:14px; background:#fff; font:inherit; text-align:left; cursor:pointer; color:var(--ink); }
.tp-card:hover { border-color:var(--teal); box-shadow:0 6px 18px rgba(13,148,136,.12); }
.tp-card small { color:var(--muted); }
.tp-ico { font-size:22px; }
.tp-go { margin-top:auto; padding-top:6px; color:var(--teal-d, #0f766e); font-weight:700; font-size:14px; }
.tp-list { list-style:none; margin:0; padding:0; }
.tp-list li { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--line); flex-wrap:wrap; }
.tp-t { flex:1; min-width:160px; } .tp-t small { display:block; color:var(--muted); }

/* ===== Exam page pop-ups: Give to classes (this school year only) + Edit details (owner, 2026-11-15) ===== */
.give-year { display:flex; align-items:center; gap:6px; min-height:44px; padding:0 2px; color:var(--ink); }
.give-box .checks { max-height:min(46vh, 420px); overflow:auto; }
#examForm.in-modal .actions { flex-wrap:wrap; }
#examForm.in-modal .actions .grow { flex:1; }
@media (max-width:480px) { #examForm.in-modal .actions .btn.danger { order:3; width:100%; } }
.pick-acts { align-items:center; margin:0 0 8px; }
.pick-acts .grow { flex:1; }
.pick-box .pick-list { max-height:min(52vh, 460px); overflow:auto; border:1px solid var(--line); border-radius:12px; padding:6px 10px; }
/* a student's result: READ-ONLY until Edit (owner, 2026-11-15) */
.kopt.ro { display:inline-flex; align-items:center; justify-content:center; cursor:default; }
.kopt.ro:hover { border-color:#9aa4b5; }
.kopt.ro.on:hover { border-color:var(--navy); }
.krow.r-right .kopt.ro.on:hover { border-color:#16a34a; }
.krow.r-wrong .kopt.ro.on:hover { border-color:#dc2626; }
.rver .card-h { margin:0; }

/* Print answer sheets → pick the class (owner, 2026-11-15) */
.pp-list { list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:8px; max-height:min(52vh, 460px); overflow:auto; }
.pp-row { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; color:var(--ink); text-decoration:none; }
.pp-row:hover, .pp-row:focus-visible { border-color:var(--teal, #14b8a6); background:#f4fbfa; }
.pp-t { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.pp-t small { color:var(--muted); font-size:13px; }
.pp-go { color:var(--teal-d, #0f766e); font-weight:700; white-space:nowrap; }

/* a student DROPPED from a class (owner, 2026-11-15): kept, shown "(dropped)" in red, not ticked to print */
.dropped { color:#dc2626; font-weight:700; font-size:.92em; }
.rtable tr.is-dropped td { color:var(--muted); }
.rtable tr.is-dropped .sname b { color:var(--muted); }
/* Settings → Plan & AI pages (vx-plan.js, owner 2026-11-16) */
.plan-bar { height:8px; border-radius:999px; background:#eef2f7; overflow:hidden; margin:10px 0 4px; max-width:420px; }
.plan-bar i { display:block; height:100%; background:var(--teal); } .plan-bar i.mid { background:#f59e0b; } .plan-bar i.low { background:var(--bad); }
.plan-period { display:inline-flex; gap:4px; padding:4px; margin:2px 0 10px; border:1px solid var(--line, #dde3ea); border-radius:999px; background:var(--card); }
.plan-period button { border:0; background:transparent; color:var(--muted, #5b6b7f); font:inherit; font-weight:700; padding:7px 14px; border-radius:999px; cursor:pointer; }
.plan-period button.on { background:var(--ink); color:#fff; }
.plan-period button.on .plan-save { color:#86efac; }
.plan-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px; max-width:640px; }
.plan-card { border:1px solid var(--line, #dde3ea); border-radius:12px; padding:12px 14px; background:var(--card); min-width:0; }
.plan-card .btn { margin-top:8px; }
.plan-price { margin:4px 0 0; font-size:1.25em; font-weight:800; } .plan-price .muted { font-size:.7em; font-weight:500; }
.plan-save { margin:2px 0 0; color:#15803d; font-weight:700; font-size:.88em; }
.plan-buy { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 4px; }

/* ===== Modern page changes (owner, 2026-11-17: "can you update the page transitions to be more
   modern"). Moving to another page inside the app, the new page GLIDES in instead of popping:
   from the right going deeper (Exams → an exam → a class's scores), from the left going back,
   rising gently when you switch sections in the sidebar (vx-app.js pageEnter). Redraws within a
   page never animate. The sidebar's highlight slides to the item you pick (vx-header.js). ===== */
#view.vx-in-fwd { animation: vxInFwd .34s cubic-bezier(.22,1,.36,1) both; }
#view.vx-in-back { animation: vxInBack .34s cubic-bezier(.22,1,.36,1) both; }
#view.vx-in-tab { animation: vxInTab .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes vxInFwd { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes vxInBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes vxInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* the sidebar's gliding highlight: one pill behind the links (only where the sidebar is a sidebar) */
.tabs .side-ind { display: none; }
.vx-side .tabs.has-ind .side-ind, .vx-drawer .tabs.has-ind .side-ind { display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 12px;
  background: linear-gradient(90deg, #14b8a6, #0d9488); box-shadow: 0 6px 16px rgba(20,184,166,.28); opacity: 0;
  transition: transform .42s cubic-bezier(.22,1,.36,1), width .42s cubic-bezier(.22,1,.36,1), height .42s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
.vx-side .tabs.has-ind .side-ind.shown, .vx-drawer .tabs.has-ind .side-ind.shown { opacity: 1; }
.tabs.has-ind .side-ind.jump { transition: none !important; }
.vx-side .tabs.has-ind a[data-tab], .vx-drawer .tabs.has-ind a[data-tab] { position: relative; z-index: 1; transition: color .25s ease, background-color .2s ease; }
.vx-side .tabs.has-ind a[data-tab].on, .vx-drawer .tabs.has-ind a[data-tab].on { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  #view.vx-in-fwd, #view.vx-in-back, #view.vx-in-tab { animation: none; }
  .tabs.has-ind .side-ind { transition: none !important; }
}

/* ===== Knovli sync (vx-sync.js, owner 2026-11-17): the class page's Knovli card, the connect
   pop-up and the labels on students ===== */
.kvs-card .card-h { align-items: center; }
.kvs-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.kvs-card .card-h .status { margin-left: auto; }
.kvs-to { margin: 4px 0 2px; }
.kvs-check { margin: 10px 0; }
.kvs-check p { margin: 0 0 6px; }
.kvs-check .actions { margin: 0; flex-wrap: wrap; }
.kvs-check select { min-width: 0; flex: 1 1 180px; }
.kvs-hist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.kvs-hist li { line-height: 1.35; }
.kvs-from { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-right: 4px; background: #eef2f7; color: var(--muted, #475569); }
.kvs-from.knovli { background: #ede9fe; color: #5b21b6; }
.kvs-from.examnetic { background: #ccfbf1; color: #0f766e; }
.kvs-chip { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.kvs-chip.in { background: #ede9fe; color: #5b21b6; }
.kvs-chip.wait { background: #fef3c7; color: #92400e; }
.kvs-chip.check { background: #fee2e2; color: #991b1b; }
.kvs-box { max-width: 720px; }
.kvs-classes { display: grid; gap: 10px; max-height: 50vh; overflow: auto; margin-bottom: 8px; }
.kvs-class { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 8px 12px 10px; margin: 0; }
.kvs-class legend { font-weight: 700; padding: 0 4px; }
.kvs-class .check { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.kvs-pairs { margin-top: 8px; }
.kvs-pairs select { width: 100%; min-width: 0; }
.kvs-sum { margin: 10px 0 6px; padding-left: 1.2em; }

/* ===== Learning insights on Exam Stats (vx-statsui.js insightsSection, owner 2026-11-17) ===== */
.xs-gap-intro { margin: 0 0 10px; }
.xs-chips.xs-inline { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; flex-wrap: wrap; }
.xs-gap { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.xs-gap.need { border-left: 4px solid #f59e0b; }
.xs-gap.ok { border-left: 4px solid #14b8a6; }
.xs-gap-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.xs-gap-t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.xs-gap-t .muted { font-size: 13px; }
.xs-gap-n { font-size: 14px; white-space: nowrap; }
.xs-gap-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xs-who { display: inline-flex; gap: 4px; align-items: baseline; font-size: 13px; padding: 3px 8px; border-radius: 999px; background: #fef3c7; color: #78350f; }
.xs-gap-lim .xs-who { background: #eef2f7; color: var(--muted, #475569); }
.xs-gap-lim { margin-top: 6px; font-size: 14px; }
.xs-gap-lim summary { cursor: pointer; color: var(--muted, #475569); }

/* ===== Pick a question's topic by hand (vx-app.js topicPickHtml, owner 2026-11-17) ===== */
.tq-pick { font-size: 13px; margin-left: 4px; }
.tp-box { max-width: 640px; }
.tp-list { max-height: min(56vh, 520px); overflow: auto; margin-top: 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 4px 6px 8px; }
.tp-subj h3 { position: sticky; top: 0; margin: 0; padding: 8px 6px 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #475569); background: var(--card, #fff); }
.tp-row { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: inherit; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.tp-row:hover, .tp-row:focus-visible { background: #e6f7f5; }
.tp-row.on { background: #ccfbf1; font-weight: 600; }
.tp-row.tp-gen { font-style: italic; }
.tp-row:disabled { opacity: .6; cursor: default; }
.tp-none { padding: 10px; }
.tp-row[hidden], .tp-subj[hidden], .tp-none[hidden] { display: none; }   /* the search hides rows (display:block above would win over [hidden]) */

/* ===== Targeted practice (vx-practice.js, owner 2026-11-17) ===== */
.xs-pr { margin-top: 14px; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-box { max-width: 760px; }
.pr-topic { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 8px 12px 10px; margin: 0 0 10px; }
.pr-topic.on { border-color: #14b8a6; }
.pr-topic legend { padding: 0 4px; }
.pr-rows { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pr-st, .pr-deck { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.pr-st.off { opacity: .6; }
.pr-st .muted, .pr-deck .muted { font-size: 13px; }
.pr-draft { border-top: 1px dashed var(--line, #e2e8f0); margin-top: 8px; padding-top: 8px; max-height: 46vh; overflow: auto; }
.pr-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 6px; align-items: start; margin-bottom: 6px; }
@media (max-width: 600px) { .pr-card { grid-template-columns: minmax(0, 1fr) auto; } .pr-card textarea { grid-column: 1 / 2; } }
.pr-sum { padding-left: 1.2em; }
/* shared card bank (vx-practice.js) */
.pr-bankh { margin: 8px 0 2px; }
.pr-bank { border-left: 3px solid #14b8a6; padding-left: 8px; margin: 2px 0 6px; }
.pr-prev summary { cursor: pointer; color: var(--navy, #1e3a8a); margin-left: 22px; }
.pr-prev ol { margin: 4px 0 4px 22px; padding-left: 1.2em; max-height: 30vh; overflow: auto; }
.pr-prev .link-btn { margin-left: 22px; }
.pr-flag { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 4px 22px; }
.pr-flag .input { flex: 1 1 220px; min-width: 0; }
.pr-share { margin-top: 6px; }
.xs-more .emptybox a { font-weight: 600; }
/* a short retest after practice (vx-retest.js) */
.pr-rt { margin: 4px 0 8px; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-up { color: #15803d; font-weight: 700; }
.pr-down { color: #b42318; font-weight: 700; }
.rt-box { max-width: 680px; }
.rt-warn { color: #9a6700; }
/* an AI button the plan leaves out / with no AI pages left (vx-app.js aiBtn, 2026-11-18) */
.ai-off { display: inline-flex; align-items: flex-start; gap: 6px; padding: 6px 10px; border: 1px dashed var(--line, #cbd5e1); border-radius: 10px; color: var(--muted, #5b6b82); font-size: 13px; line-height: 1.4; background: #f8fafc; }
.ai-off a { font-weight: 600; white-space: nowrap; }
/* several tests in one file (vx-import-ui.js splitHtml) */
.imp-test .imp-test-info { align-self: end; line-height: 1.4; }
.imp-test-act { margin-top: 6px; align-items: center; }
.imp-test-act .input { width: auto; display: inline-block; margin-left: 6px; }
.imp-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* deck or quiz per topic; the AI quiz editor (vx-practice.js) */
.pr-kind { display: flex; gap: 16px; margin: 2px 0 6px; font-weight: 600; }
.pr-q { border-top: 1px dashed var(--line, #e2e8f0); padding: 8px 0; }
.pr-q:first-of-type { border-top: 0; }
.pr-qh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: start; margin-bottom: 4px; }
.pr-opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; align-items: center; margin: 3px 0 3px 18px; }
.pr-opt > span { font-weight: 700; color: var(--navy, #1e3a8a); width: 1.2em; }
.pr-plans .pr-plan + .pr-plan { border-top: 1px solid var(--line, #e2e8f0); margin-top: 10px; padding-top: 6px; }
.pr-group { margin-top: 10px; }
.pr-gh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pr-gh .pr-count { margin-left: auto; font-size: 14px; }
.pr-tab { margin-top: 6px; }
.pr-th { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.pr-th select { width: auto; min-width: 0; }
.pr-auto { align-items: flex-start; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; }
.pr-autoline { margin: 2px 0 6px; }

/* the ❓ menu + page help (vx-pagehelp.js, 2026-11-18) */
.ph-wrap { position: fixed; z-index: 60; }
.ph-menu { min-width: 260px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .16); padding: 6px; display: grid; gap: 2px; }
.ph-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 9px; background: none; font: inherit; color: var(--ink, #0f172a); text-decoration: none; cursor: pointer; }
.ph-item:hover, .ph-item:focus-visible { background: #f1f5f9; }
.ph-item span { display: grid; }
.ph-item small { color: var(--muted, #5b6b82); font-size: 12px; }
.ph-item.ph-off { opacity: .5; cursor: default; }
.ph-item.ph-off:hover { background: none; }
.ph-item.ph-admin { border-top: 1px dashed var(--line, #e2e8f0); border-radius: 0 0 9px 9px; }
.ph-box { max-width: 720px; }
.ph-pick { max-height: 46vh; overflow: auto; margin: 8px 0; display: grid; gap: 2px; }
.ph-row { padding: 4px 2px; }
/* a how-to video in a help article (vx-support.js faqBody) */
.sup-video { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; margin: 8px 0; border-radius: 10px; overflow: hidden; background: #0f172a; }
.sup-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 📱 THE iPHONE/iPAD APP's MENU (owner, 2026-11-18: "remove the logo and catch phrase from the menu on native since
   the header remains … logo is also partially covered by header, so please adjust rest of menu"):
   no logo or tagline in the menu (the bar keeps the logo); the bar keeps its room under the status bar
   (.vx-drawer .top's padding had undone it); the menu starts below the bar's real height (vx-header.js
   measures it into --vx-top-h). */
html.vx-in-app .tabs .side-brand, html.vx-in-app .tabs .side-tagline { display:none !important; }
html.vx-in-app.vx-drawer .top { padding-top:calc(10px + env(safe-area-inset-top)); }
html.vx-in-app.vx-drawer .tabs { padding-top:calc(var(--vx-top-h, calc(env(safe-area-inset-top) + 62px)) + 14px); }

/* ===== TESTS GIVEN ONLINE (vx-online.js, 2026-11-18) ===== */
.on-box { max-width:720px; }
.on-set { border:1px solid var(--line); border-radius:14px; padding:10px 14px 12px; margin:0 0 12px; }
.on-set legend { font-weight:700; color:var(--navy); padding:0 6px; }
.on-opt { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:6px 0; }
.on-row { display:flex; gap:12px; flex-wrap:wrap; margin:8px 0; } .on-row label { display:flex; align-items:center; gap:6px; }
.on-num { width:80px; display:inline-block; }
.on-extra { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:4px 14px; margin-top:8px; max-height:260px; overflow-y:auto; }
.on-xrow { display:flex; align-items:center; justify-content:space-between; gap:8px; } .on-xrow select { width:auto; }
.on-sits { list-style:none; margin:0; padding:0; } .on-sits li { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:8px 0; border-bottom:1px solid var(--line); } .on-sits li span:nth-child(2) { flex:1; }
.on-code-sm { letter-spacing:.12em; }
.on-join { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.on-link { font-size:18px; font-weight:700; color:var(--navy); overflow-wrap:anywhere; }
.on-code { font-size:clamp(40px, 8vw, 72px); font-weight:800; letter-spacing:.18em; color:var(--navy); line-height:1.1; }
.on-qr { width:150px; } .on-qr svg { width:100%; height:auto; display:block; }
.on-alerts h2 { margin:0 0 6px; font-size:17px; color:var(--warn); } .on-alerts ul { margin:0; padding-left:18px; }
.on-table { width:100%; border-collapse:collapse; font-size:15px; }
.on-table th, .on-table td { text-align:left; padding:9px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.on-table tr.on-hot td { background:#fff7ed; transition:background 1s; }
.on-flag { color:var(--warn); }
.on-acts { white-space:nowrap; } .on-acts .btn { margin-right:4px; }
.on-more { display:inline-block; position:relative; } .on-more summary { list-style:none; cursor:pointer; padding:4px 10px; border-radius:8px; border:1px solid var(--line); display:inline-block; }
.on-more summary::-webkit-details-marker { display:none; }
.on-more > div { position:absolute; right:0; z-index:20; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px; display:flex; flex-direction:column; gap:6px; box-shadow:0 12px 28px rgba(11,37,69,.16); }
.on-tl ol { margin:6px 0 0; padding-left:20px; } .on-tl li.on-w { color:var(--warn); font-weight:600; }
@media (max-width:760px) { .on-table th:nth-child(3), .on-table td:nth-child(3) { display:none; } }
.on-who { border:0; background:none; padding:0; font:inherit; font-weight:600; color:var(--navy); cursor:pointer; text-align:left; } .on-who:hover { text-decoration:underline; }
.on-acc { display:grid; gap:6px; margin-top:8px; max-height:300px; overflow-y:auto; }
.on-acc .on-xrow { display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; } .on-acc .on-opt { margin:0; }
/* written answers to grade (online tests step 4) */
.wr-item { border-top:1px solid var(--line); padding:12px 0; }
.wr-q { margin:0 0 6px; } .wr-a { background:#f8fafc; border:1px solid var(--line); border-radius:12px; padding:10px 12px; overflow-wrap:anywhere; } .wr-a ul, .wr-a ol { padding-left:22px; }
.wr-pts { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; } .wr-pts label { display:flex; align-items:center; gap:6px; } .wr-n { width:90px; }
.wr-foot { display:flex; justify-content:flex-end; padding-top:10px; }

/* ===== EQUATIONS + SYMBOLS (mathEditorUI.js, kv-symbols.js — 2026-11-18) ===== */
math.kv-eq { font-size:1.08em; }
.rte math.kv-eq { cursor:pointer; padding:0 2px; border-radius:4px; } .rte math.kv-eq:hover { background:var(--sky, #e6f2ff); }
.kv-sym { position:fixed; z-index:100040; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 34px rgba(15,23,42,.22); padding:8px; box-sizing:border-box; }
.kv-sym-tabs { display:flex; flex-wrap:wrap; gap:4px; padding-bottom:6px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.kv-sym-tab { border:0; background:transparent; color:var(--muted); font:inherit; font-size:12px; font-weight:700; padding:5px 9px; border-radius:999px; cursor:pointer; }
.kv-sym-tab.is-on { background:var(--sky, #e6f2ff); color:var(--navy, #0B2545); }
.kv-sym-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(34px, 1fr)); gap:4px; max-height:190px; overflow-y:auto; }
.kv-sym-k { height:34px; border:1px solid var(--line); border-radius:8px; background:#f8fafc; color:var(--ink); font-size:17px; line-height:1; cursor:pointer; font-family:"Times New Roman", "Noto Serif", serif; }
.kv-sym-k:hover { border-color:var(--teal); background:#e6fffb; }
/* ===== the student's test, the timeline and the grading queue — pop-ups (vx-online.js, 2026-11-18) ===== */
.on-mbox { max-width:860px; } .on-mt { margin:0; font-size:20px; color:var(--navy); } .on-mbody { margin-top:10px; }
.on-prog { border:0; background:none; padding:2px 4px; margin:-2px -4px; font:inherit; color:var(--navy); text-align:left; cursor:pointer; border-radius:8px; } .on-prog:hover { background:var(--sky, #e6f2ff); text-decoration:underline; }
.on-gradebar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:#f0fdfa; border-color:#99f6e4; }
.on-tlist { margin:0; padding-left:20px; } .on-tlist li { padding:3px 0; } .on-tlist li.on-w { color:var(--warn); font-weight:600; }
.od-head { margin:0 0 10px; color:var(--muted); } .od-head b { color:var(--ink); }
.od-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.od-q { border:1px solid var(--line); border-radius:14px; padding:12px 14px; background:#fff; }
.od-q.od-right { border-left:4px solid #16a34a; } .od-q.od-wrong { border-left:4px solid var(--bad); } .od-q.od-here { box-shadow:0 0 0 3px rgba(20,184,166,.35); }
.od-qh { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; } .od-ok { color:#15803d; font-weight:700; } .od-no { color:var(--bad); font-weight:700; }
.od-tag { background:var(--teal); color:#fff; border-radius:999px; padding:1px 8px; font-size:12px; font-weight:700; }
.od-text { margin-bottom:6px; overflow-wrap:anywhere; } .od-ch { margin:0; padding-left:18px; } .od-ch li { padding:2px 0; } .od-ch li.ok { color:#15803d; } .od-ch li.no { color:var(--bad); }
.od-key { font-weight:700; } .od-exp, .od-ans { border-radius:10px; padding:8px 10px; margin-top:6px; overflow-wrap:anywhere; } .od-exp { background:#f0fdfa; } .od-ans { background:#f8fafc; border:1px solid var(--line); }
.od-foot { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:12px; }
.oq-top { display:flex; align-items:center; gap:12px; margin-bottom:10px; } .oq-bar { flex:1; height:6px; border-radius:3px; background:#eef1f5; overflow:hidden; } .oq-bar i { display:block; height:100%; background:var(--teal); transition:width .3s; }
.oq-done { text-align:center; padding:20px 0; } .oq-big { font-size:20px; font-weight:700; color:var(--navy); }
.grade-note { display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:#fff7ed; border-color:#fed7aa; } .gn-ico { font-size:22px; } .gn-t { flex:1; min-width:200px; }
/* the Give-online pop-up and the other online pop-ups FIT THE WINDOW (owner, 2026-11-18): the header and the
   buttons stay put, what's between them scrolls */
.vx-mbox.on-fit, .vx-mbox.on-mbox { display:flex; flex-direction:column; max-height:calc(100vh - max(16px, 6vh) - 16px); max-height:calc(100dvh - max(16px, 6vh) - 16px); overflow:hidden; }
.on-fit .on-scroll, .on-mbox .on-mbody { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:6px -24px 0; padding:4px 24px 8px; }
.on-foot { display:flex; align-items:center; gap:8px; padding-top:12px; border-top:1px solid var(--line); margin-top:4px; flex-wrap:wrap; }
.on-bars { margin:10px 0 4px; }
.on-pane.anim-next { animation:wizInR .28s cubic-bezier(.2,.8,.2,1); } .on-pane.anim-back { animation:wizInL .28s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .on-pane.anim-next, .on-pane.anim-back { animation:none; } }
.on-h { margin:4px 0 4px; font-size:21px; color:var(--navy); }
.on-picks { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px; margin-top:10px; }
.on-pick { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; cursor:pointer; background:#fff; }
.on-pick:has(input:checked) { border-color:var(--teal); background:#f0fdfa; box-shadow:inset 0 0 0 1px var(--teal); }
.on-done { list-style:none; margin:10px 0 0; padding:0; } .on-done li { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 0; border-bottom:1px solid var(--line); }
.home-acts { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.home-online { padding:13px 20px; font-size:16px; border-radius:14px; font-weight:700; }
.on-foot .grow { flex:1; } .on-foot .btn[data-on="back"] { margin-right:auto; }
.on-opt .input { width:auto; display:inline-block; } .on-row .input { width:auto; }

/* ===== SHARE AN EXAM (vx-share.js, 2026-11-18) ===== */
.sh-lab { display:block; font-weight:700; margin:12px 0 4px; }
.sh-h { font-size:15px; margin:18px 0 6px; }
.sh-list { list-style:none; margin:0; padding:0; }
.sh-list li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 0; border-top:1px solid var(--line); }
.sh-who { flex:1 1 180px; min-width:0; overflow-wrap:anywhere; }
.sh-st { font-weight:700; font-size:13px; }
.sh-st.sh-added { color:var(--ok); } .sh-st.sh-declined { color:var(--muted); } .sh-st.sh-sent { color:var(--warn); }
.sh-cards { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:10px; }
.sh-card { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:var(--card); }
.sh-card.sh-focus { border-color:var(--teal); box-shadow:0 0 0 2px rgba(20,184,166,.18); }
.sh-card .sh-t b { font-size:16px; }
.sh-note { margin:6px 0 0; font-style:italic; }
.sh-card .actions { margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

/* ● LIVE in the top bar (2026-11-18): a test given online is open right now */
.live-wrap { position:relative; display:inline-flex; margin-right:4px; }
.live-wrap[hidden] { display:none; }
.live-pill { display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:13px; font-weight:800; letter-spacing:.04em; color:#fff; background:#e11d48; border:0; border-radius:999px; padding:6px 12px; cursor:pointer; }
.live-pill:hover { background:#be123c; }
.live-pill .live-n { font-weight:800; }
.live-dot { width:8px; height:8px; border-radius:50%; background:#fff; animation:vxLivePulse 1.4s ease-in-out infinite; }
@keyframes vxLivePulse { 0%, 100% { opacity:1; } 50% { opacity:.3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation:none; } }
.live-menu li.bn-live a { border-left-color:#e11d48; }

/* ===== BULK GIVE on the Exams list (2026-11-18) ===== */
.xtable th.xsel, .xtable td.xsel { width:36px; text-align:center; }
.xtable td.xsel input, .xtable th.xsel input { width:18px; height:18px; cursor:pointer; }
.exbar { position:sticky; bottom:12px; z-index:20; display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; padding:10px 12px; background:var(--navy, #0B2545); color:#fff; border-radius:14px; box-shadow:0 12px 28px rgba(11,37,69,.25); }
.exbar[hidden] { display:none; }
.exbar .grow { flex:1; }
.exbar .btn:not(.primary) { background:transparent; color:#fff; border-color:rgba(255,255,255,.35); }
.bg-checks { display:flex; flex-direction:column; gap:6px; }
.bg-checks .check { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 6px; width:100%; }

/* ===== ✨ AI QUESTION WRITING (vx-aiwrite.js, 2026-11-19) ===== */
.btn.ai-w { border-color:#c4b5fd; color:#5b21b6; background:#f5f3ff; }
.btn.ai-w:hover { background:#ede9fe; }
.aw-lab { display:block; font-weight:700; margin:10px 0 0; }
.aw-lab .input, .aw-lab select, .aw-lab textarea { display:block; width:100%; margin-top:4px; font-weight:400; }
.aw-row { display:flex; flex-wrap:wrap; gap:10px; } .aw-row .aw-lab { flex:1 1 140px; }
.aw-opt { display:inline-flex; align-items:center; gap:6px; margin:10px 14px 0 0; }
.aw-sm { width:auto !important; display:inline-block !important; padding:4px 8px; }
.aw-foot { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:14px; } .aw-foot .grow { flex:1; }
.aw-busy { text-align:center; padding:30px 10px; }
.aw-before { background:#f6f8fb; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:8px 0; }
.aw-how { border:0; padding:0; margin:10px 0 0; } .aw-how legend { font-weight:700; padding:0; } .aw-how .aw-opt { display:flex; margin:8px 0 0; }
.aw-cards { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:10px; }
.aw-card { border:1px solid #ddd6fe; border-left:4px solid #8b5cf6; border-radius:12px; padding:10px 12px; background:#fff; }
.aw-card.aw-ok { border-left-color:var(--ok, #15803d); border-color:#bbf7d0; }
.aw-top { display:flex; align-items:center; gap:8px; } .aw-top .grow { flex:1; }
.aw-tag { font-size:12px; font-weight:800; color:#6d28d9; background:#f5f3ff; border-radius:999px; padding:2px 8px; }
.aw-card.aw-ok .aw-tag { color:var(--ok, #15803d); background:#f0fdf4; }
.aw-check { font-weight:700; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.aw-ch { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:6px; }
.aw-ch li { display:flex; align-items:center; gap:8px; } .aw-ch li .input { flex:1; min-width:0; }
.aw-ch li.right b { color:var(--ok, #15803d); }
.aw-ch.aw-ro li { font-size:14px; }
.aw-right { display:inline-flex; align-items:center; gap:2px; cursor:pointer; color:var(--muted); }
.aw-cost { white-space:nowrap; }
.aw-card textarea.aw-text { min-height:0; height:auto; resize:vertical; }

/* ===== POINTS PER QUESTION (2026-11-19) ===== */
.pts-all { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:8px 0; } .pts-all .grow { flex:1; }
.pts-n { width:84px !important; display:inline-block !important; text-align:right; }
.pts-list { list-style:none; margin:0; padding:0; max-height:55vh; overflow:auto; border-top:1px solid var(--line); }
.pts-list li { display:flex; align-items:center; gap:10px; padding:6px 2px; border-bottom:1px solid var(--line); }
.pts-num { flex:none; width:2.6em; font-weight:700; text-align:right; } .pts-t { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== STANDARDS (vx-standards.js, 2026-11-19) ===== */
.std-list { list-style:none; margin:0; padding:0; max-height:55vh; overflow:auto; border-top:1px solid var(--line); }
.std-list li { display:flex; align-items:center; gap:10px; padding:6px 2px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.std-in { width:200px !important; flex:none; }
.std-same { flex:none; min-width:7em; font-size:13px; }
@media (max-width: 640px) { .std-list .pts-t { flex-basis:100%; order:3; white-space:normal; } .std-in { flex:1; width:auto !important; } }
/* 📚 the standards LIBRARY (vx-stdlib.js, 2026-11-23): wording under a code, the AI suggest bar, Settings → Standards */
.std-words { flex-basis:100%; display:flex; flex-direction:column; gap:2px; padding-left:2.2em; }
.std-w { display:block; font-size:12.5px; color:var(--muted); line-height:1.35; }
.std-w b { color:var(--ink); margin-right:4px; }
td .std-w { margin-top:2px; max-width:46ch; }
.std-from { margin:0 0 8px; } .std-ai { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.std-in.std-ai-filled { border-color:#a78bfa; background:#f5f3ff; }
.vxs-group { border:1px solid var(--line); border-radius:12px; padding:8px 12px; margin:0 0 10px; }
.vxs-group legend { font-weight:700; font-size:13px; padding:0 6px; color:var(--muted); }
.vxs-set > span { display:flex; flex-direction:column; gap:2px; }
.vxs-notice { color:var(--muted); font-size:11.5px; }
.vxs-none { border:1px dashed var(--line); border-radius:12px; padding:10px 12px; margin:0 0 10px; }
.vxs-own { margin:6px 0 10px; } .vxs-own summary { cursor:pointer; }
.vxs-text { width:100%; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:13px; }
.vxs-ask { margin-top:10px; }
.std-intro { margin:4px 0 10px; } .std-key { display:inline-flex; gap:6px; align-items:center; flex-wrap:wrap; margin-left:6px; }
.std-key i, .std-bar i { display:inline-block; }
.std-key i { width:10px; height:10px; border-radius:3px; margin-left:6px; }
.mastered { --stdc:#16a34a; } .approaching { --stdc:#f59e0b; } .notyet { --stdc:#dc2626; }
.std-key i, .std-bar i { background:var(--stdc); }
.std-bar { display:flex; height:6px; border-radius:99px; overflow:hidden; background:#e5e7eb; margin-top:5px; max-width:220px; }
.std-bar i { height:100%; }
.std-h { font-size:16px; margin:18px 0 6px; }
.std-grid th, .std-grid td { text-align:center; white-space:nowrap; } .std-grid th[scope="row"] { text-align:left; }
.std-cell { font-weight:700; font-size:13px; }
.std-cell.mastered { background:#dcfce7; color:#166534; } .std-cell.approaching { background:#fef3c7; color:#92400e; } .std-cell.notyet { background:#fee2e2; color:#991b1b; }
.std-cell.few { color:var(--muted); } .std-cell.none { background:#f8fafc; }
.std-m { font-weight:700; }

/* ===== PROGRESS + FAMILY REPORTS (vx-reportcard.js, 2026-11-19) ===== */
.rc-stats { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin:4px 0 12px; }
.rc-stats > div { border:1px solid var(--line); border-radius:12px; padding:8px 12px; display:flex; flex-direction:column; }
.rc-stats b { font-size:22px; color:var(--navy, #0B2545); } .rc-stats b.up { color:var(--ok, #15803d); } .rc-stats b.down { color:var(--bad, #b42318); }
@media (max-width: 560px) { .rc-stats { grid-template-columns:1fr; } }
.rc-chart { margin:6px 0 10px; } .rc-chart svg { width:100%; height:auto; }
.rc-tbl { width:100%; border-collapse:collapse; font-size:14px; } .rc-tbl th, .rc-tbl td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); } .rc-tbl th { background:#f5f7fb; }
.rc-std { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; } @media (max-width: 560px) { .rc-std { grid-template-columns:1fr; } }
.rc-std-col { border:1px solid var(--line); border-radius:10px; padding:8px 10px; } .rc-std-col b { display:block; }
.rc-std-col.mastered { border-color:#86efac; } .rc-std-col.approaching { border-color:#fcd34d; } .rc-std-col.notyet { border-color:#fca5a5; }

/* ⭐ Plans in the slide-out menu (2026-11-19) */
.tabs .side-link.side-plans { color:#fde68a; font-weight:700; }
.tabs .side-link.side-plans .ico { color:#fbbf24; }
.tabs .side-link.side-plans:hover { background:rgba(251,191,36,.12); color:#fff; }

/* The NEXT STEP after adding pages: "Read the exam (N pages)" pulses gently once the pages and their AI-page cost are
   shown, so it is clear what to tap (owner, 2026-11-20: "after pages are scanned, if the next step is to have AI process,
   can we have that button animate so users know to click it after viewing the # of pages it will cost"). Stops on hover /
   focus; still for anyone who asks for less motion. */
.btn.imp-go:not([disabled]) { animation:impGo 1.8s ease-in-out infinite; }
.btn.imp-go:hover, .btn.imp-go:focus-visible { animation:none; }
@keyframes impGo { 0%, 100% { box-shadow:0 0 0 0 rgba(20,184,166,.55); transform:none; } 50% { box-shadow:0 0 0 10px rgba(20,184,166,0); transform:scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .btn.imp-go:not([disabled]) { animation:none; } }

/* ===== PLANS like the website's pricing page (vx-plan.js plansHtml; owner, 2026-11-20: "update the plan pages inside the
   app to look like the ones outside of it...so users can see the differences and what's included"). Same layout as
   marketing/site.css .plan / .compare, in the app's colours. ===== */
.vxp-head { margin:16px 0 8px; }
.vxp-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap:12px; }
.vxp { border:1px solid var(--line, #dde3ea); border-radius:16px; padding:18px; background:var(--card, #fff); display:flex; flex-direction:column; min-width:0; }
.vxp.best { border:2px solid var(--teal); box-shadow:0 12px 26px rgba(20,184,166,.14); }
.vxp.mine { border-color:var(--navy); }
.vxp h3 { margin:0; font-size:18px; color:var(--navy); }
.vxp-price { font-size:30px; font-weight:800; color:var(--navy); margin:6px 0 0; }
.vxp-price small { font-size:14px; color:var(--muted); font-weight:600; }
.vxp-yearly { color:var(--teal-d); font-weight:700; font-size:13px; min-height:18px; }
.vxp-inc { list-style:none; padding:12px 0 0; margin:10px 0 14px; display:grid; align-content:start; gap:6px; font-size:14px; color:var(--ink); border-top:1px solid var(--line, #dde3ea); flex:1; }
.vxp-inc li { padding-left:22px; position:relative; }
.vxp-inc li::before { content:"✓"; position:absolute; left:0; color:var(--teal-d); font-weight:900; }
.vxp-inc li.all { font-weight:700; color:var(--navy); }
.vxp-inc li.off { color:var(--muted); }
.vxp-inc li.off::before { content:"—"; color:#94a3b8; }
.vxp .btn { align-self:stretch; }
.vxp-kv { display:inline-block; font-size:11px; font-weight:700; color:#6d28d9; background:#f3e8ff; border-radius:999px; padding:1px 7px; vertical-align:1px; }
.vxp-compare { margin-top:14px; border:1px solid var(--line, #dde3ea); border-radius:14px; background:var(--card, #fff); }
.vxp-compare > summary { cursor:pointer; padding:12px 14px; font-weight:700; color:var(--navy); }
.vxp-compare .tscroll { overflow-x:auto; border-top:1px solid var(--line, #dde3ea); }
.vxp-compare table.compare { width:100%; border-collapse:collapse; font-size:14px; min-width:480px; }
.vxp-compare .compare th, .vxp-compare .compare td { padding:9px 12px; border-bottom:1px solid var(--line, #dde3ea); text-align:center; }
.vxp-compare .compare th[scope="row"] { text-align:left; font-weight:600; color:var(--ink); }
.vxp-compare .compare thead th { color:var(--navy); vertical-align:bottom; }
.vxp-compare .compare thead th small { display:block; color:var(--muted); font-weight:600; font-size:12px; }
.vxp-compare .compare tr.grp th, .vxp-compare .compare tr.grp td { background:var(--bg); color:var(--navy); font-weight:800; text-transform:uppercase; font-size:11px; letter-spacing:.06em; }
.vxp-compare .compare td.yes { color:var(--teal-d); font-weight:800; }
.vxp-compare .compare td.no { color:#94a3b8; }

/* 🎯 in-app promos (harborframe-promos.js): the bottom banner starts right of the sidebar on computers */
html.vx-side { --hfp-foot-left:var(--side-w); }
.vxp-deal { margin:4px 0 6px; font-size:13px; color:#991b1b; line-height:1.4; }   /* 🎯 a new-subscriber deal on a plan card */
.plan-sale { font-size:14px; color:#991b1b; }
