
*{ box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --topbar-h: 76px;   /* real sticky-topbar height — the left sidebar & sticky table heads offset by this */
  --accent: 34,211,238; --accent2: 167,139,250;
  --red: #d6001c; --blue: #1f6fd6; --green: #2e9e5b;
  
  --bg0: #0b1120; --txt: #eef2f8; --mut: #a7b2c6;
  --glass: rgba(255,255,255,.04); --glass2: rgba(255,255,255,.075);
  --bord: rgba(255,255,255,.09); --bord2: rgba(255,255,255,.18);
  --vio: rgb(var(--accent)); --pink: rgb(var(--accent2)); --cyan: rgb(var(--accent)); --grn: var(--ok); --amber: var(--warn);
  --grad: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent2)));
  --grad2: linear-gradient(120deg, rgb(var(--accent2)), rgb(var(--accent)));
  --r: 16px; --r2: 12px;
  --glow: 0 10px 30px rgba(var(--accent),.16); --shadow: 0 6px 24px rgba(2,8,23,.4);
  --font-ui: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* ===== Theme rails (Phase 1, v624). Dark values below = the exact literals already
     in use app-wide, so dark mode is pixel-identical. The light overrides live in the
     html[data-theme="light"] block at the END of this file. Aliases (--bg/--card/
     --fg/--muted) resolve vars some views (SOP) already reference. */
  color-scheme: dark;
  --bg1: #070b1c; /* the actual page backdrop (the later body rule at ~L4529 overrides --bg0) */
  --bg: var(--bg0); --card: var(--glass); --fg: var(--txt); --muted: var(--mut);
  --glass3: rgba(255,255,255,.09); --glass4: rgba(255,255,255,.14);
  --faint: #8291ad;
  --overlay: rgba(10,10,16,.6);
  --topbar: #0b0f20;
  --menu: rgba(22,24,38,.97);
  --side: rgba(9,13,30,.55);
  --ok: #34d399; --ok-2: #6ee7b7;
  --warn: #fbbf24; --warn-2: #fcd34d;
  --bad: #fb7185; --bad-2: #fca5a5;
  --info: #38bdf8; --info-2: #7dd3fc;
  --viol: #a78bfa; --viol-2: #c4b5fd;
  /* Phase 2 additions (v626): dark value = the exact literal being replaced, so dark
     stays byte-identical. --bad-3 is the rose-300 (#fda4af) family, distinct from
     --bad-2 (#fca5a5). The --glass-NN ladder covers the white-alpha fills/borders
     between the Phase 1 glass stops; --mut-2/3/4 are the three recurring muted text
     greys that don't equal --mut's dark value. */
  --bad-3: #fda4af;
  --glass-03: rgba(255,255,255,.03); --glass-045: rgba(255,255,255,.045);
  --glass-05: rgba(255,255,255,.05); --glass-06: rgba(255,255,255,.06);
  --glass-07: rgba(255,255,255,.07); --glass-08: rgba(255,255,255,.08);
  --glass-10: rgba(255,255,255,.10); --glass-12: rgba(255,255,255,.12);
  --mut-2: #8aa0bd; --mut-3: #8fa0c5; --mut-4: #9fb0c9;
  /* Phase 3 additions (v627): dark value = the exact literal replaced, so dark stays
     byte-identical. --mut-8 deliberately skipped (its candidate slate ink is dialog/light-
     artifact colour and stays literal). */
  --mut-5: #94a3b8; --mut-6: #64748b; --mut-7: #cbd5e1; --mut-9: #7f8db1; --mut-10: #c8d4e8;
  --info-3: #93c5fd; --info-4: #bae6fd; --viol-3: #a5b4fc;
  /* v628 additions: dark value = the exact literal replaced (lead-score panel ink + points column) */
  --ink-2: #e6edf7; --aqua-2: #7fe3e3;
  /* v630 — high-ink TEXT tokens. Dark value = the exact near-white literal each one replaced
     (dark is pixel-identical by token identity; nothing collapsed — one token per literal).
     Light (end of file) turns them all into dark ink #16213a; the deliberately-dark surfaces
     (.sf-side/.tw-widget/.sh-wxbox/overlay panels…) re-pin the dark literals so near-white
     text INSIDE them stays light. NOTE: --ink itself is deliberately NOT defined here — its
     ~10 usage sites carry per-site fallbacks (#e8edf6/#e8eefc/#eef4ff/#e8eef7) that must keep
     resolving in dark; light defines --ink once as #16213a. */
  --ink-hi: #eaf4ff; --ink-hi2: #e8f3ff; --ink-hi3: #dbe4ee; --ink-hi4: #e8eefc;
  --ink-hi5: #f1f5ff; --ink-hi6: #e5ecff; --ink-hi7: #eaf6ff; --ink-hi8: #e8f4ff;
  --ink-hi9: #dbe4f0; --ink-hi10: #e7eefb;
}
html,body{ height: 100%; }
body{
  font-family: var(--font-ui);
  color: var(--txt); background: var(--bg0);
  background-image:
    radial-gradient(900px 600px at 3% -8%, rgba(var(--accent),.16), transparent 60%),
    radial-gradient(880px 580px at 100% -4%, rgba(var(--accent2),.19), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
button{ font: inherit; cursor: pointer; }
input,textarea,select{ font: inherit; }
.hidden{ display: none !important; }
::selection{ background: rgba(var(--accent),.42); }

.switch{ position: relative; width: 60px; height: 30px; display: inline-block; cursor: pointer; flex-shrink: 0; }
.switch input{ display: none; }
.switch .slider{ position: absolute; inset: 0; border-radius: 30px; background: var(--glass2);
  border: 1px solid var(--bord2); display: flex; align-items: center; justify-content: space-between;
  padding: 0 7px; font-size: 13px; transition: .2s; }
.switch .slider::after{ content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); top: 2px; left: 2px; transform: translateX(30px); transition: .22s;
  box-shadow: 0 2px 8px rgba(var(--accent),.5); }
.switch input:checked + .slider::after{ transform: translateX(0); }
.switch:hover .slider{ border-color: var(--vio); }
.login-switch{ position: fixed; top: 18px; right: 22px; z-index: 10; }
.login-switch .slider{ background: var(--glass-06); border-color: rgba(255,255,255,.17); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
html[data-theme="light"] .login-switch .slider{ background: #fff; border-color: var(--bord); box-shadow: 0 4px 14px rgba(23,32,55,.13); }

.login-wrap.login-split{ flex-direction: row; align-items: stretch; justify-content: stretch; padding: 0; }
.login-hero{ flex: 1 1 50%; background: linear-gradient(125deg, #1e293b 0%, #0ea5e9 70%, rgb(var(--accent)) 100%); position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 46px 40px; overflow: hidden; }
.login-hero .hero-art{ width: 100%; max-width: 440px; }
.login-hero .hero-cap{ color: #fff; text-align: center; margin-top: 14px; max-width: 430px; }
.login-hero .hero-h{ font-size: 27px; font-weight: 900; letter-spacing: -.4px; }
.login-hero .hero-s{ font-size: 14px; line-height: 1.55; margin-top: 9px; color: rgba(255,255,255,.92); }
.login-cardwrap{ flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 40px 28px; position: relative; }
.login-split .login-card{ margin: 0; }
@media (max-width: 900px){ .login-hero{ display: none; } .login-cardwrap{ flex: 1 1 100%; padding: 24px 16px; } }

.overlay .panel p.sc-intro{ max-width: 400px; margin: 0 auto 20px; color: #444; }
.play-btn.ghost{ background: #fff; border: 1.5px solid #111; color: #111; box-shadow: none; font-size: 15px; padding: 11px 26px; }
.play-btn.ghost:hover{ background: #f1f2f5; }
.sc-vol{ display: flex; align-items: center; gap: 12px; max-width: 300px; margin: 18px auto 7px; }
.sc-vol input[type=range]{ flex: 1; accent-color: #111; }
.sc-vol span{ font-size: 15px; }
.sc-status{ font-size: 12.5px; color: #6b7280; min-height: 16px; margin-bottom: 16px; }
.overlay .panel p.sc-note{ font-size: 12.5px; color: #6b7280; line-height: 1.5; max-width: 380px; margin: 0 auto 20px; }
.overlay .panel .play-btn.ghost + .sc-vol{ margin-top: 14px; }

.topbar{ background: var(--topbar); /* dark: #0b0f20 via :root token */
  border-bottom: 1px solid var(--bord); padding: 9px 28px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 5; }
.topbar .tr-name .avatar{ width: 42px; height: 42px; border-radius: 11px; font-size: 16px; }
.topbar > .logo{ margin-top: 4px; font-size: 34px; }
.topbar .logo{ font-weight: 900; font-size: 21px; letter-spacing: .5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar{ width: 64px; height: 64px; border-radius: 14px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
  letter-spacing: .5px; box-shadow: var(--glow); flex-shrink: 0; }
.topbar .role-chip{ background: rgba(37,99,235,.18); color: var(--info-3); font-size: 11px; font-weight: 800;
  letter-spacing: .8px; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(37,99,235,.35); }
.topbar .spacer{ flex: 1; }
.top-right{ position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.logo-link{ cursor: pointer; transition: .15s; }
.logo-link:hover{ filter: brightness(1.25); }
.tr-name{ display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 10px; border-radius: 14px; transition: .15s; }
.tr-name:hover{ background: var(--glass2); }
.caret{ color: var(--mut); font-size: 12px; margin-left: 2px; }
.user-menu{ position: absolute; top: calc(100% + 6px); right: 0; background: var(--menu); /* dark: rgba(22,24,38,.97) via :root token */
  border: 1px solid var(--bord2); border-radius: 14px; padding: 6px; min-width: 240px; z-index: 30;
  box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.user-menu button{ display: block; width: 100%; text-align: right; padding: 10px 14px; border: 0;
  background: none; color: var(--txt); border-radius: 10px; font-weight: 700; font-size: 14px; }
.user-menu button:hover{ background: var(--glass2); }
.user-menu .mi-soon{ color: var(--mut); font-weight: 600; font-size: 12.5px; cursor: default; }
.user-menu .mi-soon:hover{ background: none; }
.menu-sep{ height: 1px; background: var(--bord); margin: 6px 4px; }
.menu-progress{ padding: 10px 12px 12px; border-bottom: 1px solid var(--bord); margin-bottom: 6px; }
.mp-row{ display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mut); margin-bottom: 8px; }
.mp-row b{ color: var(--txt); }
.mp-bar{ height: 6px; border-radius: 6px; background: var(--glass2); overflow: hidden; }
.mp-bar span{ display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.under-bar{ display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 10px 28px 0; }
.ub-right{ display: flex; align-items: center; gap: 9px; }
.hero-row{ display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.chart-row{ display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.cr-left{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cr-left .card{ flex: 1; }
.weather-card{ width: 280px; flex-shrink: 0; }
@media (max-width: 900px){ .weather-card{ width: 100%; } }
.w-row{ display: flex; flex-direction: column; gap: 10px; }
.w-loading{ color: var(--mut); font-size: 13px; }
.w-city{ padding: 11px 13px; border: 1px solid var(--bord); border-radius: 12px; background: var(--glass2); }
.w-head{ display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.w-name{ display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.w-tag{ font-size: 10px; color: var(--mut); border: 1px solid var(--bord2); border-radius: 10px; padding: 1px 7px; }
.w-clock{ margin-left: auto; color: var(--mut); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.w-main{ font-size: 17px; margin: 6px 0 3px; }
.w-main span{ font-size: 13px; color: var(--mut); }
.w-meta{ font-size: 12px; color: var(--mut); }
@media (max-width: 900px){ .weather-card{ width: 100%; } }
.hero-status{ display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--mut);
  text-align: right; padding-top: 12px; flex-shrink: 0; }
.theme-lbl{ font-size: 12px; font-weight: 700; color: var(--mut); letter-spacing: .5px; }
.who-col{ display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.1; }
.track-line{ font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--mut); }
.topbar .user{ color: var(--mut); font-size: 14px; }

.btn{ border: 1px solid var(--bord2); background: var(--glass2); color: var(--txt);
  border-radius: var(--r2); padding: 9px 18px; font-weight: 600; letter-spacing: .1px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease; }
.btn:hover{ background: var(--glass-12); transform: translateY(-1px); }
.btn:active{ transform: translateY(0) scale(.985); }
.btn:focus-visible{ outline: 2px solid var(--vio); outline-offset: 2px; }
.btn.primary{ background: var(--grad); color: #fff; border: 0; font-weight: 700; box-shadow: var(--glow); }
.btn.primary:hover{ transform: translateY(-1px); box-shadow: 0 12px 30px rgba(var(--accent),.26); filter: brightness(1.05); }
.btn.danger-line{ color: var(--bad); border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.08); }
.btn.small{ padding: 6px 13px; font-size: 13px; border-radius: 10px; }

.wrap{ max-width: 1080px; margin: 0 auto; padding: 34px 24px 80px; }
.h1{ font-size: 29px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }

.h1,.section-h,.topbar .logo,.login-card .ielts-logo,.brand-ielts,.band-big,.stat .v,.stat-tile .st-n,.rv-ring-pct,.rv-hero-score b,.pf-name,.login-hero .hero-h{ font-family: var(--font-display); }

.topbar{ position: sticky; }
.topbar::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent),.45), transparent); }
.h1 .grad{ background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub{ color: var(--mut); font-size: 14.5px; margin-bottom: 28px; }
.section-h{ font-size: 19px; font-weight: 800; margin: 38px 0 6px; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 11px;
  border-top: 1px solid var(--bord); padding-top: 28px; }
.section-h::before{ content: ""; width: 4px; height: 21px; border-radius: 4px; background: var(--grad);
  flex-shrink: 0; box-shadow: 0 0 8px rgba(var(--accent),.3); }
.section-sub{ color: var(--mut); font-size: 13px; margin: 0 0 14px; }

.grid{ display: grid; gap: 16px; }
.grid.cols3{ grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.cols4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .grid.cols4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid.cols4{ grid-template-columns: 1fr; } }
.card{ background: var(--glass); border: 1px solid var(--bord); border-radius: var(--r);
  padding: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.grid .card:hover{ transform: translateY(-3px); border-color: rgba(var(--accent),.45); }
.card h3{ font-size: 16.5px; margin-bottom: 5px; font-weight: 750; }
.card .desc{ color: var(--mut); font-size: 13px; margin-bottom: 12px; }
.meta-line{ color: var(--mut); font-size: 12.5px; margin-bottom: 14px; }

.grid .card{ position: relative; padding-bottom: 66px; }
.grid .card .btn.primary,.grid .card .btn[disabled]{ position: absolute; bottom: 18px; left: 18px; right: 18px; }
.t-lines{ margin: 10px 0 12px; border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; width: 100%; }
.t-line{ display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; }
.t-line + .t-line{ border-top: 1px solid var(--glass-06); }
.t-emo{ font-size: 16px; line-height: 1; }
.t-left{ display: flex; flex-direction: column; gap: 1px; flex: 1; }
.t-name{ font-weight: 700; white-space: nowrap; }
.t-left small{ color: var(--mut); font-size: 11.5px; }
.t-time{ color: var(--mut); white-space: nowrap; font-weight: 600; }
.tag{ display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px;
  padding: 4px 11px; border-radius: 20px; margin-bottom: 12px; }
.tag.drill{ background: rgba(251,191,36,.14); color: var(--amber); border: 1px solid rgba(251,191,36,.35); }
.tag.partial{ background: rgba(34,211,238,.12); color: var(--cyan);  border: 1px solid rgba(34,211,238,.35); }
.tag.full{ background: rgba(6,182,212,.13); color: var(--info-2);      border: 1px solid rgba(6,182,212,.4); }
.tag.done{ background: rgba(52,211,153,.13); color: var(--grn);   border: 1px solid rgba(52,211,153,.35); }
.tag.pending{ background: rgba(251,191,36,.13); color: var(--amber); border: 1px solid rgba(251,191,36,.35); }
.chip-row{ display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 24px; }
.chip-row .tag,.chip-row .diff{ margin: 0; }
.card-sub{ color: var(--mut); font-size: 12.5px; margin: 2px 0 12px; }
.rate-chip.new{ color: var(--cyan); font-size: 11px; letter-spacing: .8px; }
.rate-chip.wait{ color: var(--amber); font-size: 11px; letter-spacing: .8px; }
.rate-chip.ok{ color: var(--grn); font-size: 11px; letter-spacing: .8px; }
.diff{ display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .8px; padding: 3px 9px;
  border-radius: 20px; margin: 0 0 12px 8px; }
.diff.easy{ background: rgba(52,211,153,.13); color: var(--grn); border: 1px solid rgba(52,211,153,.4); }
.diff.moderate{ background: rgba(251,191,36,.13); color: var(--amber); border: 1px solid rgba(251,191,36,.4); }
.diff.difficult{ background: rgba(251,113,133,.13); color: var(--bad); border: 1px solid rgba(251,113,133,.45); }
.rate-chip{ font-size: 13px; font-weight: 800; color: var(--amber); white-space: nowrap; }

/* v1.150 — FULL-MOCK ROW CHIPS ARE REAL CHIPS. `.rate-chip` is named a chip but renders as bare
   coloured text (above) — on the Full Mock Tests list that put "✅ READY" and "⌛ EXPIRES 11-FEB-2027"
   next to the paper's name as loose words, so the row read as one run-on sentence instead of a name
   followed by its status. These rules give them the house soft-badge treatment (.stu-score /
   .pm-tchip pattern: faint tint of the hue, solid text in it, theme-aware).
   ⚠ SCOPED TO .fm-row ON PURPOSE. `.rate-chip` is used on vocabulary, partial-mock and rating
   surfaces elsewhere in the app that were NOT asked to change and are laid out for plain text;
   restyling the bare class would silently reflow all of them. */
/* v1.150 — stall overlay. Deliberately NOT dismissible by clicking away: the only ways out are the
   resume button, the recording coming back on its own, or (after 3 minutes) ending the section. A
   student who taps the backdrop and lands back on a frozen timer has learned nothing. */
.overlay.stall-overlay .panel{ max-width: 460px; text-align: center; }
.overlay.stall-overlay .sc-ico{ font-size: 34px; line-height: 1; margin-bottom: 6px; }
.overlay.stall-overlay p{ font-size: 13.5px; line-height: 1.55; margin: 8px 0; }
.overlay.stall-overlay .btn{ width: 100%; padding: 10px; font-size: 14px; }

.fm-row .rate-chip{ display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:999px;
  font-size:10.5px; font-weight:800; letter-spacing:.06em; line-height:1.7; white-space:nowrap;
  background:rgba(148,163,184,.16); color:var(--mut); }
.fm-row .rate-chip.ok  { background:rgba(52,211,153,.16); color:#6ee7b7; }
.fm-row .rate-chip.wait{ background:rgba(251,191,36,.16); color:#fbbf24; }
.fm-row .rate-chip.new { background:rgba(6,182,212,.16);  color:#67e8f9; }
.fm-row .rate-chip.dead{ background:rgba(248,113,113,.16); color:#f87171; }
html[data-theme="light"] .fm-row .rate-chip     { background:rgba(71,85,105,.10);  color:#475569; }
html[data-theme="light"] .fm-row .rate-chip.ok  { background:rgba(5,150,105,.12);  color:#047857; }
html[data-theme="light"] .fm-row .rate-chip.wait{ background:rgba(161,98,7,.12);   color:#a16207; }
html[data-theme="light"] .fm-row .rate-chip.new { background:rgba(8,145,178,.12);  color:#0e7490; }
html[data-theme="light"] .fm-row .rate-chip.dead{ background:rgba(190,18,60,.10);  color:#be123c; }
/* v649 — last-attempt score badge on test cards (Option B). Colour graded vs the target band. */
.stu-score{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:9px; font-size:14px; line-height:1; white-space:nowrap; }
.stu-score small{ font-size:9.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; opacity:.9; }
.stu-score b{ font-weight:800; }
.stu-score.ok{ background:rgba(52,211,153,.16); color:#6ee7b7; }
.stu-score.mid{ background:rgba(251,191,36,.16); color:#fbbf24; }
.stu-score.low{ background:rgba(251,113,133,.16); color:#fda4b0; }
html[data-theme="light"] .stu-score.ok{ background:rgba(5,150,105,.12); color:#047857; }
html[data-theme="light"] .stu-score.mid{ background:rgba(161,98,7,.12); color:#a16207; }
html[data-theme="light"] .stu-score.low{ background:rgba(190,18,60,.1); color:#be123c; }
/* Question-type pill — one --c hue, theme-aware shade (soft-badge pattern, like .stu-score).
   Dark: bright colour on a faint tint. Light: the SAME hue darkened so it stays readable on white. */
.pm-tchip{ display:inline-block; padding:2px 9px; border-radius:999px; font-size:10.5px; font-weight:700; white-space:nowrap; line-height:1.6;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  color: var(--c); }
/* v1.076 — AT MOST 5 CHIPS PER LINE. This was `display:flex; flex-wrap:wrap`, which packs as many
   chips as fit — and once reading gained its 13 real task types (v1.073) a row could carry 7, so six
   landed on line 1 and ran up against the "60 min" duration text.
   GRID, not flex, because the cap must hold regardless of chip WIDTH: "Choose TWO" and
   "Note / Table / Flow-chart Completion" differ ~4x, so no max-width can express "5 per line" —
   only an explicit column count can. minmax(0,max-content) lets a track shrink rather than overflow
   when five wide chips meet a narrow viewport; unused tracks collapse to 0, so a 3-chip row still
   sits flush left. */
.pm-tchips{ min-width:0; display:grid; grid-template-columns:repeat(5, minmax(0, max-content));
  gap:6px 7px; align-items:center; justify-content:start; }

html[data-theme="light"] .pm-tchip{
  background: color-mix(in srgb, var(--c) 13%, #fff);
  border-color: color-mix(in srgb, var(--c) 34%, #fff);
  color: color-mix(in srgb, var(--c) 58%, #000); }
.rate-chip small{ color: var(--mut); font-weight: 600; }
.stars .star{ background: none; border: 0; font-size: 24px; color: rgba(255,255,255,.25); padding: 0 2px; transition: .12s; }
.stars .star:hover{ transform: scale(1.2); }
.stars .star.on{ color: var(--amber); }
.empty{ color: var(--mut); font-size: 14px; background: var(--glass); border: 1px dashed var(--bord2);
  border-radius: var(--r); padding: 26px; text-align: center; }

.skill-btns{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 2px 0 12px; }
.skill-btn{ display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 12px; min-height: 44px;
  background: var(--glass); border: 1px solid var(--bord); border-radius: 12px; color: var(--txt);
  transition: .18s; }
.skill-btn .emo{ font-size: 18px; display: inline-flex; align-items: center; }
.skill-btn .nm{ font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.skill-btn .ct{ font-size: 11px; color: var(--mut); letter-spacing: .3px; white-space: nowrap; }
.skill-btn:hover{ border-color: var(--bord2); }
.skill-btn.active{ background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(6,182,212,.18));
  border-color: rgba(37,99,235,.65); box-shadow: var(--glow); }
.skill-btn.active .ct{ color: var(--info-3); }
/* DECISIONS §107 — Partial Mock Tests source switch (Cambridge Materials / house Exclusive / BC IELTS Ready
   Premium since v1.334, §108): large segmented options on one track; the selected one is the raised card. */
.pm-src{ display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;   /* v1.335 (§110): 2 or 3 options */ gap: 4px; padding: 5px; margin: 2px 0 12px;
  background: var(--glass2); border: 1px solid var(--bord); border-radius: 14px; }
.pm-src-b{ display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: 10px; color: var(--mut); font: inherit; }
.pm-src-b .ic{ width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: var(--card); border: 1px solid var(--bord); color: var(--txt); }
.pm-src-b b{ display: block; font-size: 15px; color: var(--txt); }
.pm-src-b small{ display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.pm-src-b.active{ background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--bord2); }
.pm-new{ margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; vertical-align: 2px;
  background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.5); color: var(--txt); }
@media (max-width: 700px){ .pm-src{ grid-auto-flow: row; grid-template-columns: 1fr; } }
.w-cols{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.w-col-h{ font-size: 14px; font-weight: 800; color: var(--mut); margin-bottom: 12px; letter-spacing: .3px; }
.w-stack{ display: grid; gap: 14px; }
@media (max-width: 760px){ .w-cols{ grid-template-columns: 1fr; } }
.card.soon{ opacity: .65; }
.card.soon .btn[disabled]{ cursor: default; color: var(--mut); }
@media (max-width: 700px){ .skill-btns{ grid-template-columns: repeat(2, 1fr); }
  .skill-btn{ flex-direction: column; gap: 2px; padding: 8px 6px; }
  .skill-btn .ct{ font-size: 10.5px; } }

.stats{ display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.stat{ background: var(--glass); border: 1px solid var(--bord); border-radius: 16px; padding: 12px 18px; min-width: 120px; }
.stat-link{ cursor:pointer; transition:border-color .15s, background .15s, transform .06s; }
.stat-link:hover{ border-color:#0284c7; background:rgba(2,132,199,.08); }
.stat-link:active{ transform:translateY(1px); }

.sales-cards{ display:grid; grid-template-columns:1.15fr 1fr; gap:14px; }
@media (max-width:760px){ .sales-cards{ grid-template-columns:1fr; } }
.sales-card{ background:var(--glass); border:1px solid var(--bord); border-radius:14px; padding:13px 15px; display:flex; flex-direction:column; gap:10px; }
.sales-card .sc-h{ font-size:13px; font-weight:800; color:var(--txt); display:flex; align-items:center; gap:8px; }
.sales-card .sc-n{ display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:var(--grad); color:#fff; font-size:11.5px; font-weight:800; }
.sales-card .sc-sub{ margin-left:auto; font-size:11.5px; font-weight:700; color:var(--mut); }
.sf-list{ display:flex; flex-direction:column; gap:6px; }
.sf-row{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:transparent; border:1px solid transparent; border-radius:10px; padding:6px 8px; cursor:pointer; color:var(--txt); transition:background .15s, border-color .15s; }
.sf-row:hover{ background:rgba(2,132,199,.08); border-color:var(--bord); }
.sf-ava{ flex:0 0 auto; width:30px; height:30px; border-radius:10px; background:var(--grad); color:#fff; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.sf-main{ display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.sf-name{ font-size:13.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sf-reason{ font-size:11.5px; font-weight:600; }
.sf-reason.sf-od{ color:#f87171; }
.sf-reason.sf-warn{ color:var(--warn); }
.sf-reason.sf-exam{ color:rgb(var(--accent)); }
.sf-go{ color:var(--mut); font-size:18px; font-weight:700; flex:0 0 auto; }
.sf-empty{ font-size:13px; color:var(--mut); padding:10px 4px; }
.fn-wrap{ display:flex; flex-direction:column; gap:10px; padding-top:2px; }
.fn-row{ display:flex; align-items:center; gap:10px; }
.fn-l{ flex:0 0 58px; font-size:12px; color:var(--mut); font-weight:600; }
.fn-track{ flex:1; height:14px; border-radius:7px; background:var(--glass-05); overflow:hidden; }
.fn-fill{ display:block; height:100%; border-radius:7px; }
.fn-v{ flex:0 0 auto; font-size:13px; font-weight:800; color:var(--txt); min-width:24px; text-align:right; }
.stat .v{ font-size: 22px; font-weight: 850; background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l{ font-size: 11.5px; color: var(--mut); letter-spacing: .6px; text-transform: uppercase; margin-top: 2px; }
.stats.dash{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stats.dash .stat{ min-width: 0; text-align: center; padding: 12px 8px; }
.stats.dash .stat.now{ background: linear-gradient(135deg, rgba(37,99,235,.28), rgba(6,182,212,.2));
  border-color: rgba(37,99,235,.65); box-shadow: var(--glow); }
.stats.dash .stat.now .v{ background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 560px){ .stats.dash{ grid-template-columns: repeat(3, 1fr); } }

table.list{ width: 100%; border-collapse: collapse; background: var(--glass); border: 1px solid var(--bord);
  border-radius: var(--r); overflow: hidden; }
table.list th{ text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--mut); padding: 12px 16px; background: var(--glass-03); border-bottom: 1px solid var(--bord); }
table.list td{ padding: 13px 16px; border-bottom: 1px solid var(--glass-05); font-size: 14px; }
table.list tr:last-child td{ border-bottom: 0; }
table.list tr:hover td{ background: rgba(255,255,255,.025); }

table.list.bc-grid{ table-layout: fixed; font-size: 13px; }
.bc-grid col.c-date{ width: 96px; }
.bc-grid col.c-phone{ width: 132px; }
.bc-grid col.c-country{ width: 104px; }
.bc-grid col.c-sc{ width: 74px; }
.bc-grid col.c-ov{ width: 92px; }

.bc-grid th,.bc-grid td{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bc-grid thead th{ padding: 10px 14px; vertical-align: middle; font-size: 10.5px; letter-spacing: .6px; color: var(--mut); }
.bc-grid thead th.bsc{ text-align: center; padding-left: 4px; padding-right: 4px; font-size: 10px; letter-spacing: .3px; }
.bc-grid thead th.scgrp{ padding-bottom: 4px; font-size: 10px; color: var(--mut-5); }
.bc-grid thead tr:last-child th.bsc{ padding-top: 2px; padding-bottom: 8px; }

.bc-grid tbody td{ padding: 11px 14px; vertical-align: middle; border-radius: 0; background: none;
  border: 0; border-bottom: 1px solid var(--glass-045); }
.bc-grid tbody tr:hover td{ background: rgba(255,255,255,.025); }
.bc-grid td.ct{ color: var(--mut); }
.bc-grid td.bsc{ text-align: center; padding-left: 4px; padding-right: 4px; }

.bc-grid tbody td.ov,.bc-grid thead th:last-child{ border-left: 1px solid var(--glass-06); }

.bc-grid .num{ color: var(--ink-hi3); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bc-grid .dash{ color: #3c4657; font-weight: 500; }
.bc-grid .num-ov{ color: #f4f7fb; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }

.bc-grid .flag{ display: inline-block; min-width: 24px; padding: 3px 9px; border-radius: 6px;
  color: #fcbf49; background: rgba(245,158,11,.13); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.bc-grid .flag-ov{ display: inline-block; min-width: 28px; padding: 3px 10px; border-radius: 6px;
  color: var(--bad-2); background: rgba(239,68,68,.15); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }

.band-big{ font-size: 38px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band-cards{ display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 22px; }
.band-card{ background: var(--glass); border: 1px solid var(--bord); border-radius: 18px; padding: 16px 22px; min-width: 130px; text-align: center; }
.band-card .lbl{ font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .8px; }
.band-card .val{ font-size: 30px; font-weight: 850; margin-top: 3px; }
.note{ background: rgba(251,191,36,.09); border: 1px solid rgba(251,191,36,.3); color: #fde68a;
  font-size: 13px; border-radius: 14px; padding: 11px 15px; margin: 10px 0; }
.review-q{ padding: 9px 14px; border-bottom: 1px solid var(--glass-05); display: grid;
  grid-template-columns: 44px 1fr 1fr 70px; gap: 10px; font-size: 13.5px; align-items: center; }
.review-q .ok{ color: var(--grn); font-weight: 800; }
.review-q .bad{ color: var(--bad); font-weight: 800; }
.answer-box{ background: rgba(0,0,0,.25); border: 1px solid var(--bord); border-radius: 14px;
  padding: 15px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; max-height: 320px; overflow: auto; }

.field{ margin-bottom: 14px; }
.field label{ display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input,.field select,.crit-row select{
  width: 100%; padding: 10px 12px; border: 1px solid var(--bord2); border-radius: 12px;
  background: rgba(0,0,0,.3); color: var(--txt); }
.field input:focus,.field select:focus,.crit-row select:focus{ outline: none; border-color: var(--vio); box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.crit-row{ display: grid; grid-template-columns: 1fr 100px; gap: 10px; align-items: center; margin-bottom: 9px; }
.crit-row select{ width: 100px; }
select option{ background: #15162a; color: var(--txt); }

.toast{ position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: rgba(20,21,36,.92); border: 1px solid var(--bord2); color: #fff; padding: 12px 22px;
  border-radius: 16px; font-size: 14px; z-index: 99; backdrop-filter: blur(10px); box-shadow: var(--glow); }

.login-wrap{ min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
/* v658 (codex #5): max-width was 94vw alone — at a 390px phone, 94vw (366.6px) + the cardwrap's
   16px side paddings overflowed the viewport and the login scrolled sideways. The calc() term caps
   the card to the viewport minus the wrapper's 2×16px padding (box-sizing is border-box globally);
   desktop is untouched because 424px is far below both bounds there. */
.login-card{ width: 424px; max-width: min(94vw, calc(100vw - 32px)); background: linear-gradient(180deg, rgba(255,255,255,.062), var(--glass-03));
  border: 1px solid var(--glass-12);
  border-radius: 22px; padding: 36px 34px 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 var(--glass-07), 0 30px 70px -30px rgba(0,0,0,.8), 0 8px 26px -14px rgba(0,0,0,.55); }
html[data-theme="light"] .login-card{ background: #fff; border-color: var(--bord);
  box-shadow: 0 1px 2px rgba(23,32,55,.05), 0 12px 32px -12px rgba(23,32,55,.14), 0 34px 80px -42px rgba(23,32,55,.22); }
@media (max-width: 480px){ .login-card{ padding: 28px 22px 24px; border-radius: 18px; } }
.login-brandrow{ display: flex; justify-content: center; margin-bottom: 16px; }
.login-brandrow .lum-logo{ width: 156px; height: 30px; }
/* v1.236 — ANik, 7 Sep: "remove text rightsight over welcome". A tenant with NO logo files gets
   .lum-text from __brandApply (index.html) and paints its name as a text wordmark. On the LOGIN CARD
   that line is redundant — the hero beside it already carries the brand — so the whole row collapses
   there. Scoped to .login-brandrow ON PURPOSE: the topbar brand-block and the TRF centre stamp keep
   the text wordmark, because a logo-less tenant has no other name on those screens. Luminedge (has
   logos, never .lum-text) is byte-unaffected. */
.login-brandrow:has(.lum-logo.lum-text){ display: none; }
.login-brandrow .lum-logo.lum-text{ display: none; } /* pre-:has browsers: hide the wordmark, keep the 16px row */
.login-brandrow .lum-logo .lum-img{ height: 70px; margin: -20px 0 0 -27px; }
html[data-theme="light"] .login-brandrow .lum-img-dark{ display: none; }
html[data-theme="light"] .login-brandrow .lum-img-light{ display: block; }
.login-hh{ font-size: 22px; font-weight: 800; letter-spacing: -.4px; text-align: center; font-family: var(--font-display); }
.login-hs{ font-size: 13.5px; color: var(--mut); text-align: center; margin: 5px 0 24px; line-height: 1.5; }
.login-card .ielts-logo{ font-weight: 900; font-size: 40px; text-align: center; margin-bottom: 2px; letter-spacing: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-title{ font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 1px; letter-spacing: -.2px; }
.login-by{ text-align: center; font-size: 12.5px; font-weight: 600; color: var(--mut); letter-spacing: .4px; margin-bottom: 8px; }
.login-card h2{ font-size: 13.5px; text-align: center; margin-bottom: 18px; font-weight: 600; color: var(--mut);
  text-transform: uppercase; letter-spacing: 1.2px; }
.alertbar{ background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.3); color: #a5f3fc;
  font-size: 13px; border-radius: 12px; padding: 10px 13px; margin-bottom: 18px; }
.li-field{ margin-bottom: 15px; }
.li-lbl{ display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--mut); margin: 0 0 7px 2px; }
.li-lblrow{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.li-lblrow .li-lbl{ margin-bottom: 7px; }
/* ⚠ THE FORGOT LINK LIVES BELOW THE PASSWORD BOX, NOT BESIDE THE LABEL — AND THAT IS A TAB-ORDER
   FIX, NOT A STYLE PREFERENCE (ANik, 21 Aug 2026). In the label row it sat between the username
   input and the password input IN THE DOM, and TAB ORDER FOLLOWS THE DOM: a student typing their
   ID and pressing Tab landed on "Forgot password?", not on the password box. `.login-card` is a
   plain block, not a flex container, so CSS `order` could not separate visual position from DOM
   position; moving the element is the only fix that does not make the link unreachable by keyboard
   (which is what `tabindex="-1"` would have done). Order is now user -> password -> forgot -> Login.
   ⚠⚠ IT IS DUPLICATED IN index.html (the v1.139 instant-paint shell) AND app.js. Both must move
   together or the pre-boot form and the rendered form disagree. */
.li-forgotrow{ margin-top: 8px; text-align: right; }
/* Contact-cell proof badge (v1.145). Deliberately quiet — it annotates a number, it is not a
   status the eye should land on before the number itself. */
.ca-proof{ display:inline-block; margin-left:6px; padding:1px 6px; border-radius:999px; font-size:10px;
  font-weight:800; letter-spacing:.02em; vertical-align:middle;
  background:rgba(148,163,184,.18); color:var(--mut); }
.ca-proof.ok{ background:rgba(37,211,102,.16); color:#1e9e56; }
html[data-theme="dark"] .ca-proof.ok{ color:#4ade80; }
.login-forgot{ font-size: 12.5px; font-weight: 700; color: var(--info); text-decoration: none; }
.login-forgot:hover{ text-decoration: underline; text-underline-offset: 3px; }
.login-forgot:focus-visible{ outline: 2px solid var(--info); outline-offset: 2px; border-radius: 4px; }
.login-card input{ width: 100%; height: 48px; padding: 12px 14px; border: 1px solid var(--bord2); border-radius: 12px;
  margin: 0; background: var(--glass2); color: var(--txt); font-size: 14.5px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.login-card input::placeholder{ color: var(--faint); opacity: 1; }
.login-card input:hover{ border-color: var(--faint); }
.login-card input:focus{ outline: none; border-color: var(--info); box-shadow: 0 0 0 3.5px rgba(var(--accent),.20); }
.pw-field{ position: relative; }
.pw-field input{ margin-bottom: 0; padding-right: 48px; }
/* 10 Nov 2026 show password in the dialogs: the dialog box rules set the padding shorthand, so the eye's room is kept here */
.overlay .pw-field input{ padding-right: 52px !important; }
.pw-toggle{ position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--mut); display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; cursor: pointer; transition: .15s; }
.pw-toggle:hover{ color: var(--txt); background: var(--glass2); }
.pw-toggle:focus-visible{ outline: 2px solid var(--info); outline-offset: 1px; }
.pw-toggle svg{ width: 19px; height: 19px; }
.login-card .btn-login{ width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 12px; color: #fff;
  background: linear-gradient(120deg, #0e7490, #6d28d9); padding: 0 16px; font-weight: 800; font-size: 15px; letter-spacing: .2px;
  box-shadow: inset 0 1px 0 var(--bord2), 0 12px 26px -10px rgba(var(--accent),.4);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.login-card .btn-login:hover{ transform: translateY(-1px); filter: brightness(1.09);
  box-shadow: inset 0 1px 0 var(--bord2), 0 16px 32px -12px rgba(var(--accent),.5); }
.login-card .btn-login:active{ transform: translateY(0) scale(.99); filter: brightness(.97); }
.login-card .btn-login:focus-visible{ outline: 2px solid var(--info); outline-offset: 3px; }
.login-card .btn-login:disabled{ opacity: .65; cursor: default; transform: none; filter: none; }
/* ── THE FREE-ACCOUNT CTA (v1.148) ────────────────────────────────────────────────────────────
   Injected into #li-social by app.js, above the Google button, so a stranger can see that a free
   account exists at all. The sign-in form above it stays the primary action for returning users:
   this block carries NO filled button of its own — the one button under it is the existing
   "Continue with Google", so the visual weight order on the card is Login > Google > this copy.
   THEME: every colour here is a token (--mut/--faint/--txt/--bord/--glass2), which is how the rest
   of .login-card works, so light and dark both come out right with no second ruleset. The card is
   424px wide (356px of content at the desktop padding) — nothing here sets a width. */
.li-signup{ margin: 2px 0 14px; text-align: center; }   /* v1.155 — two lines above the Google button; centred with it */
.li-signup-h{ font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: var(--txt); margin-bottom: 4px; }
.li-signup-s{ font-size: 12.5px; line-height: 1.5; color: var(--mut); margin-bottom: 10px; }
.li-signup-s b{ color: var(--txt); font-weight: 800; }
.li-signup-list{ list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.li-signup-list li{ position: relative; padding-left: 22px; font-size: 12.5px; line-height: 1.45; color: var(--mut); }
.li-signup-list li b{ color: var(--txt); font-weight: 800; }
.li-signup-list li::before{ content: "✓"; position: absolute; left: 0; top: 0; width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--glass2); border: 1px solid var(--bord); color: var(--info); font-size: 10px; font-weight: 900; }
.li-signup-fine{ font-size: 11px; line-height: 1.5; color: var(--faint); }

/* "Continue with Google" reuses .btn-login but is white — replace the accent directional glow with an even, complete soft shadow */
#li-social #li-google{ box-shadow: 0 4px 16px rgba(0,0,0,.30); }
#li-social #li-google:hover{ box-shadow: 0 8px 22px rgba(0,0,0,.38); }
.login-foot{ color: var(--faint); font-size: 12px; line-height: 1.55; text-align: center; margin-top: 18px; }
.or-divider{ display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--faint);
  font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.or-divider::before,.or-divider::after{ content: ""; flex: 1; height: 1px; background: var(--bord); }
.social-row{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.social-btn{ display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 6px;
  border: 1px solid var(--bord); border-radius: 12px; background: transparent; color: var(--mut);
  font-weight: 700; font-size: 13px; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.social-btn:hover{ background: var(--glass2); border-color: var(--bord2); color: var(--txt); transform: translateY(-1px); }
.social-btn:focus-visible{ outline: 2px solid var(--info); outline-offset: 2px; }
.demo-accounts{ margin-top: 28px; text-align: center; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-accounts .lbl{ font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; grid-column: 1 / -1; }
.demo-accounts button{ width: 100%; font-size: 13px; font-weight: 800; padding: 9px 6px; border-radius: 14px; white-space: nowrap;
  border: 1px solid var(--bord2); background: var(--glass2); color: var(--txt); transition: .15s; }
.demo-accounts button:hover{ border-color: var(--vio); background: rgba(37,99,235,.18); }
.demo-accounts .crm-login-grid{ color:#bff0ff !important; background:linear-gradient(135deg,rgba(14,165,233,.24),rgba(34,211,238,.15)) !important; border:1.5px solid rgba(34,211,238,.5) !important; }
.demo-accounts .crm-login-grid:hover{ border-color:#22d3ee !important; background:linear-gradient(135deg,rgba(14,165,233,.34),rgba(34,211,238,.24)) !important; }
.login-err{ display: flex; align-items: flex-start; gap: 9px; text-align: left;
  background: rgba(251,113,133,.1); border: 1px solid rgba(244,63,94,.32); color: var(--bad-2);
  font-size: 13px; line-height: 1.45; font-weight: 600; border-radius: 12px; padding: 10px 13px; margin-bottom: 16px; }
.login-err::before{ content: "!"; flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--bad);
  color: #fff; font-size: 11.5px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

/* Typography matched to the REAL computer-delivered IELTS player (Inspera), measured from the
   official familiarisation tests: body font is Arial (no webfont), base 16px, passage and
   question text 16px / 24px line-height. We were running 14.5px / 1.75 — noticeably smaller and
   looser than the real thing, which is the single biggest "this isn't the real test" tell. */
.player{ position: fixed; inset: 0; background: #fff; display: flex; flex-direction: column; z-index: 50;
  --ink: #1c1c1c; --grey: #6b6b6b; --line: #d9d9d9;
  color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
.p-head{ background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 8px 18px; gap: 14px; min-height: 56px; flex-shrink: 0; }
.p-head .ielts{ color: var(--red); font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.p-head .who{ line-height: 1.25; }
.p-head .who .tid{ font-weight: 700; font-size: 14px; }
.p-head .who .status{ font-size: 12px; color: var(--grey); }
.p-head .spacer{ flex: 1; }
.p-head .timer{ font-weight: 700; font-size: 15px; color: var(--ink); margin-right: 8px; font-variant-numeric: tabular-nums; }
.p-head .timer{ font-variant-numeric: tabular-nums; }
.p-head .timer.warn{ color: var(--red); }
.p-head .timer.last2{ color: var(--red); }   /* v1.478 — the classic clock is red from 2:00 too (already red from 10:00 via .warn in Reading/Writing; this holds it for the Listening check) */
.p-head .timer.flash{ animation: p-timer-blink 1s steps(2,start) infinite; }
@keyframes p-timer-blink{ to{ visibility: hidden; } }
/* code review 24 Sep X-08: no blinking for a reduced-motion preference (the red .warn colour still shows) */
@media (prefers-reduced-motion: reduce){ .p-head .timer.flash{ animation: none; } }
.icon-btn{ background: none; border: 0; padding: 6px; border-radius: 6px; display: flex; align-items: center; }
.icon-btn:hover{ background: #f0f0f0; }
.icon-btn svg{ width: 21px; height: 21px; stroke: #444; fill: none; stroke-width: 1.8; }

.p-body{ flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.part-banner{ background: #f1f2ec; border-bottom: 1px solid var(--line); padding: 12px 16px; font-size: 16px; line-height: 24px; flex-shrink: 0; color: var(--ink); }
.part-banner b{ font-weight: 700; }
.p-content{ flex: 1; overflow: auto; padding: 22px 26px 40px; }
.p-content.split{ display: flex; overflow: hidden; padding: 0; }
.pane{ overflow-y: auto; padding: 22px 26px 60px; }
.pane.left{ flex: 1 1 50%; }
.pane.right{ flex: 1 1 50%; }
.divider{ width: 7px; background: #e3e3e3; cursor: col-resize; position: relative; flex: 0 0 7px; }
.divider::after{ content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #bdbdbd; color: #fff; width: 22px; height: 22px; border-radius: 4px; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
.divider:hover,.divider.active{ background: #cfcfcf; }

.q-group{ margin-bottom: 30px; max-width: 720px; }
.q-intro{ font-size: 16px; margin-bottom: 16px; line-height: 24px; }
/* The real player puts "Questions 1–7" on its own bold line above the instruction. */
.q-head{ font-size: 16px; font-weight: 700; line-height: 24px; margin: 0 0 8px; color: var(--ink); }
/* v1.077 — the TRUE/FALSE/NOT GIVEN answer KEY, printed as a two-column table on the paper (label
   left, gloss right, aligned) rather than run into the rubric paragraph. Built by rubric() step 7.
   `max-content` on the label column means all three rows share the widest label automatically, so
   this is FONT-SIZE PROOF — nothing here is a measured pixel width, and it survives fs-small /
   default / fs-large and any future label wording. Colour and size are INHERITED from .q-intro,
   which is what the theme-wb / theme-yb overrides already recolour, so the key needs no theme rule
   of its own. */
.q-key{ display: grid; grid-template-columns: max-content 1fr; column-gap: 1.6em; row-gap: 6px;
        margin: 8px 0 2px; padding-left: 1.4em; align-items: baseline; }
.q-key-l{ font-weight: 700; white-space: nowrap; }
.q-key-l b{ font-weight: 700; }
.q-key-d{ font-style: italic; }
/* Box width is sized from the REAL answer set, not by eye: measured every accepted answer in all
   69 listening tests at the rendered 16px Arial → gapfill p90=97px p95=111px p99=151px,
   gaptable p90=96px p95=108px p99=143px of text. Usable text area = width − 16px padding − 3px
   border, so 150px holds 131px ≈ p95 with margin. p99 (long phrases like "breakfast and supper")
   still scrolls inside the box — that matches real CD-IELTS and the text is never lost. */
.q-input{ border: 1.5px solid #8a8a8a; border-radius: 3px; padding: 4px 8px; width: 150px; font-size: 16px; background: #fff; color: var(--ink); text-align: center; }
.q-input::placeholder{ color: #767676; font-weight: 700; }   /* code review 24 Sep X-06: #999 measured 2.85:1 on white */
/* Empty box = the question number reads as a centred watermark label; once the student
   types, the answer left-aligns like normal text (CD-IELTS behaviour). */
.q-input.filled{ text-align: left; }
.q-input:focus,.q-input.filled{ border-color: var(--blue); outline: none; }
.form-table{ border-collapse: collapse; width: 100%; max-width: 640px; }
.form-table caption{ font-weight: 700; padding: 8px; border: 1px solid #bbb; border-bottom: 0; background: #f7f7f7; font-size: 14.5px; }
.form-table td, .form-table th{ border: 1px solid #bbb; padding: 9px 12px; font-size: 14px; }
.form-table td:first-child{ width: 42%; background: #fbfbfb; }
/* Listening notes-TABLE (gaptable, e.g. "Restaurant recommendations"): keep every feature on ONE
   line. Cramming a 4-column table into the 640/720 form width wrapped each line and dropped the gap
   onto its own row. Fix: lift the width caps so the table can grow to fit its content, stop cells
   wrapping mid-line (so "The [5]" / "All the [7] are very good" stay together), and use compact
   in-cell inputs so the label + gap + trailing words sit on a single line. */
.player .q-group:has(.gap-table){ max-width: none; }
/* Note-completion: widen the group so a long sentence keeps its answer box on the SAME line
   (720px was too narrow — Q31/32-type lines wrapped the box to a new line). max-width only caps,
   so short note lines are unaffected. */
.player .q-group:has(.gap-sentence){ max-width: 960px; }
/* ── Titled note/form/table sheet (v0.947) ────────────────────────────────────
   Groups whose intro carries a CENTRED heading get wrapped in .q-sheet by
   player.js. `width:fit-content` makes the sheet hug its widest child, so the
   heading and the notes/table beneath it share ONE width — the heading finally
   centres over the content it labels instead of over the 720/960/full-width
   .q-group box. Applies portal-wide (every listening test with a titled note,
   form, table, flow-chart or summary box). */
.player .q-sheet{ width: fit-content; max-width: 100%; }
.player .q-sheet-head{ font-size: 16px; line-height: 24px; margin-bottom: 10px; }
.player .q-sheet-head > div:first-child{ margin-top: 0 !important; }
/* The printed book puts these notes on a torn page / inside a ruled box. Give the
   sheet that outline — but NOT when it already contains its own bordered table
   (gaptable/form), which would double up the frame. */
.player .q-sheet:not(:has(table)){ border: 1px solid #bbb; border-radius: 4px; padding: 14px 18px; background: #fbfbfa; }
.player .q-sheet:not(:has(table)) .q-intro{ margin-bottom: 10px; }
.player.theme-wb .q-sheet:not(:has(table)),.player.theme-yb .q-sheet:not(:has(table)){ background: transparent; border-color: #666; }
.player .gap-table{ max-width: none; width: auto; }
.player .gap-table td, .player .gap-table th{ white-space: nowrap; padding: 8px 14px; vertical-align: middle; line-height: 2.1; }
.player .gap-table td:first-child{ width: auto; min-width: 120px; }
/* ⚠ THE ESCAPE HATCH FROM nowrap, and it is not optional (v1.090). nowrap above is correct for the
   short label/answer cells a LISTENING table is made of (median 17 characters) and wrong for a
   READING table, whose cells carry prose — a 3-column reading table rendered 1,277px wide inside a
   680px question pane and the whole paper scrolled sideways. player.js emits .gt-wrap per CELL when
   its plain text runs past 60 characters; measured portal-wide, that is 104 of 953 cells across 35
   sections, so 849 cells keep the proven nowrap behaviour byte-for-byte. max-width caps a single
   greedy cell so it cannot claim the whole table on its own. */
/* ── PROSE TABLE (v1.090) ─────────────────────────────────────────────────────────────────────
   `.gt-prose` is put on the TABLE by player.js when its cells carry sentences rather than the short
   labels a listening table is made of (see the emit site for the two measured signals). Wrapping
   only the individual long cells was tried and measured and is NOT enough — the remaining 40–56
   character cells still set a 961px min-content floor — so every cell in a prose table may wrap.
   `max-width` and not `width`: a table that already fits keeps its natural width, so this can only
   ever shrink a table that was overflowing, never stretch one that was fine. */
.player .gap-table.gt-prose td{ white-space: normal; line-height: 1.7; }
.player .gap-table.gt-prose{ max-width: 100%; }
/* ⚠ AND THE TWO WRAPPERS ABOVE IT, or the 100% resolves against nothing. `.q-group` is
   `max-width:none` for a table and `.q-sheet` is `width:fit-content` — so the sheet sizes to the
   table, the table sizes to the sheet, and they settle on the table's NATURAL width, which is the
   overflow we are trying to stop. Capping both against the pane is what makes the columns share it. */
.player .q-group:has(.gt-prose){ max-width: 100%; }
.player .q-sheet:has(.gt-prose){ max-width: 100%; }
/* ── FLOW-CHART (v1.090) ──────────────────────────────────────────────────────────────────────
   Cambridge prints a flow-chart as a column of separated boxes joined by downward arrows. We were
   printing plain run-on lines with a small arrow trailing each one, and ANik — sitting the paper —
   could not read it as a process at all. A single-column gap-table already gives one box per stage,
   so this only has to break the shared borders apart and put the arrow between them. Driven by the
   `qc-flowchart` class player.js puts on the group, so it reaches all seven flow-charts in the
   portal, not just the one that was reported. The arrow is a ::after on the row, which keeps it
   out of the data — a literal &darr; in a gap-table cell would be esc()'d and print as text. */
.player .qc-flowchart .gap-table{ border-collapse: separate; border-spacing: 0; margin: 0 auto; max-width: 640px; }
/* Each cell becomes the STAGE BOX. `display:block` takes the cells out of table layout, which is
   what lets them size to the content column and carry their own margin — a flow-chart is a single
   column of boxes, not a grid, so nothing is lost. */
.player .qc-flowchart .gap-table td{
  display: block; position: relative; white-space: normal;
  border: 1px solid #b9bec8; border-radius: 6px;
  padding: 11px 16px; margin: 0 auto 32px; max-width: 560px;
  line-height: 1.7; text-align: center; color: inherit;
}
.player .qc-flowchart .gap-table tr:last-child td{ margin-bottom: 0; }
/* The joining arrow sits in the 32px gap below every box but the last. It is a ::after on the CELL,
   not on the row: a <tr> is not a reliable containing block for absolute positioning. */
.player .qc-flowchart .gap-table tr:not(:last-child) td::after{
  content: "↓"; position: absolute; left: 0; right: 0; bottom: -27px;
  text-align: center; font-size: 18px; line-height: 1; opacity: .8; pointer-events: none;
}
/* ⚠ ROW-LABEL BOLD, NARROWED TWICE. It was blanket-bold on every first column until v1.084,
   on a comment claiming it "matched the paper" that nobody had checked against a printed page.
   ANik saw Mock 20's date column — half given dates, half gaps — reading as headers, so v1.084
   removed it entirely. That over-corrected: it also de-bolded columns that ARE row headers.
   v1.087 makes the decision per TABLE in player.js. */
.player .gap-table td.gt-rowhead{ font-weight: 700; }  /* a TRUE row-label column only — player.js
   emits this class per table, never per cell: bold when column 1 has no gaps anywhere in it, plain
   when it mixes given text with gaps (v1.087; see the comment at the emit site). */
.player .gap-table th{ text-align: left; }              /* header row is left-aligned in the paper, not centred */
/* Compact answer box (real CD-IELTS is ~one text line tall). Reset the input's own line-height so
   it does NOT inherit the cell's 2.1 (which stretched the box); the cell line-height still spaces
   consecutive gap lines apart so 7/8 and 9/10 don't touch. */
/* 90px left only 72px of text area — narrower than the MEDIAN answer, so ordinary answers like
   "convenient" / "city centre" / "door-to-door" were clipped mid-word.
   128px is the MEASURED CEILING, not a guess: it gives 110px usable (clears gaptable p95 = 108px)
   while the widest table in the set — pm-l-6 / pm-l-68, FOUR inputs side by side in one row, cells
   are nowrap so the table can't reflow — comes to 1269px and still fits a 1280 viewport without
   horizontal scroll. 132px already overflows at 1280. Don't raise this without re-measuring that
   table (see /tmp recipe in CLAUDE.md v0.951). */
.player .gap-table .q-input{ width: 128px; line-height: 1.2; padding: 2px 8px; margin: 0; }
.qnum{ font-weight: 700; color: #555; margin-right: 4px; }
.tfng-item{ margin-bottom: 18px; }
.tfng-item .stmt{ font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.radio-row label{ display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }

.radio-col{ display: flex; flex-direction: column; gap: 2px; }
.radio-col label{ align-items: flex-start; }
.radio-col label b{ min-width: 14px; }
.gap-sentence{ font-size: 14.5px; line-height: 2.1; margin-bottom: 10px; }
/* FLOW-CHART CENTRING (v1.169). A printed flow-chart is a column of centred boxes joined by a
   centred arrow; left-aligned it read as a list, and the ↓ sat under the first word instead of
   under the box. `center:true` on a gapfill group is opt-in and touches nothing else — every
   sentence-completion and note group renders byte-identically without the flag. */
.gap-sentence.gap-center{ text-align: center; }
/* Compact answer box (real CD-IELTS is ~one text line tall). Reset the input's line-height so it
   doesn't inherit the .gap-sentence 2.1 (which stretched the box tall), and use a moderate width. */
/* Roomiest of the three — a sentence gap sits on its own line with space to spare, and this is
   where the long phrase answers live (Complete the sentences / summary). 175px → 156px usable,
   which clears gapfill p99 (151px). */
.gap-sentence .q-input{ width: 175px; line-height: 1.2; padding: 2px 8px; }
/* FLOW MODE — a summary is one paragraph, not a stack of blocks (v1.090). player.js emits this only
   for a group carrying `flow:true`; the entries become inline spans so the prose runs on and wraps
   like the printed page instead of breaking at every gap. The 2.1 line-height inherited from
   .gap-sentence is too airy for real prose, so flow drops to 2.0 and the spans are plain inline. */
.gap-flow{ line-height: 2.0; }
.gap-flow > span{ display: inline; }
/* A multi-paragraph summary emits one .gap-flow per printed paragraph; give the second and later
   blocks the paragraph gap the single-block case never needed. */
.gap-flow + .gap-flow{ margin-top: 12px; }
/* Reading questions live in a HALF-WIDTH pane, so the roomy 175px box is what pushes a long
   short-answer question's box onto a line of its own with nothing before it — which reads as
   broken. 148px still gives 129px of usable text, clearing the measured gapfill p95 (111px). */
.player .pane.right .gap-sentence .q-input{ width: 148px; }
/* SHORT ANSWER — keep the box beside its question, never stranded on a line of its own (v1.090).
   A short-answer question is a whole sentence, so in the half-width reading pane the box regularly
   wrapped to the next line with nothing before it, which reads as broken rather than as an answer
   space. Laying the entry out as a flex row makes the QUESTION the wrapping element and pins the box
   to the end of it, so the pairing survives at any pane width. The text node becomes an anonymous
   flex item, which is why no extra markup is needed. */
.player .qc-shortanswer .gap-sentence{ display: flex; align-items: baseline; gap: 8px; }
.player .qc-shortanswer .gap-sentence .q-input{ flex: 0 0 auto; }
/* ANSWER-BOX GLUE (task #304) — inputify wraps the token before a gap + the input in .gap-glue.
   nowrap is the ONLY mechanism that stops a wrap before the box: an <input> is an atomic inline and
   CSS grants it a soft-wrap opportunity on both sides regardless of any no-break CHARACTER (U+00A0
   and U+2060 were both measured NOT to hold — see specs/orphan-classification.md). With the wrapper,
   a box that wraps always drags the preceding word with it, so it can never sit alone on a line. */
.player .gap-glue{ white-space: nowrap; }
/* In the short-answer flex row the BOX must stay the pinned flex item (v1.090); without this the
   glue span would capture the question's last word and pull it across the 8px flex gap, which reads
   as a double space mid-sentence. display:contents dissolves the span there and only there. */
.player .qc-shortanswer .gap-sentence > .gap-glue{ display: contents; }
/* Second-level note bullet (◦, emitted by noteLines from the "&#9702;" marker) — a hanging indent
   under its parent &bull; line. inline-block (NOT block) because the span already follows a <br>:
   a block would add a second line break. padding-left + negative text-indent keeps a WRAPPED
   sub-line indented, which these long lines need even at the 960px group width (:546).
   Declares NO colour and NO background ON PURPOSE — the wb (:815) / yb (:819) / light / dark themes
   recolour .gap-sentence and this span inherits, and the em units track the fs-large/fs-small
   font-size overrides (:824/:826). Nothing here for a theme to have to override. */
.gap-sentence .nl-sub{
  display: inline-block; vertical-align: top;
  margin-left: 1.8em; padding-left: 1.15em; text-indent: -1.15em;
  max-width: calc(100% - 1.8em);
}

.answer-grid{ border-collapse: collapse; margin: 10px 0 4px; font-size: 14px; }
.answer-grid th,.answer-grid td{ border: 1px solid #d5d5d5; padding: 8px 10px; text-align: center; }
.answer-grid th{ background: #f4f6f8; font-weight: 700; }
.answer-grid td.ag-item{ text-align: left; max-width: 520px; }
.answer-grid .ag-cell label{ display: flex; justify-content: center; align-items: center; cursor: pointer; margin: 0; }
.player .answer-grid input[type=radio]{
  appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin: 0;
  border: 1.5px solid #767676; border-radius: 50%; background: #fff; flex-shrink: 0;
  display: inline-grid; place-content: center; cursor: pointer; }
.player .answer-grid input[type=radio]:hover{ border-color: #1c1c1c; }
.player .answer-grid input[type=radio]:checked{ border-color: #1c1c1c; }
.player .answer-grid input[type=radio]:checked::before{
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: #1c1c1c; }

.headings-legend{ border: 1px solid #999; border-radius: 6px; padding: 10px 14px; margin: 8px 0 14px; max-width: 560px; background: #fafafa; }
.headings-legend .hl-title{ font-weight: 700; margin-bottom: 6px; }
.headings-legend .hl-row{ padding: 2px 0; font-size: 14px; }
.head-row{ display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; min-width: 0; }
.head-row .head-sec{ min-width: 120px; }
/* A <select> sizes itself to its WIDEST option. That is harmless for matching-headings (short
   roman-numeral labels) but a sentence-endings task (A-J, full sentences) blew the dropdown clean
   off the right edge of the question pane. flex:1 1 0 + min-width:0 makes it shrink to the space
   available and clip its own text instead. */
/* ⚠ min-width:0 OVER-CORRECTED AND HID THE ANSWER (ANik, 29 Aug 2026, Official Guide Test 8 Q37).
   `flex:1 1 0` + `min-width:0` lets the select shrink to ZERO. When the statement beside it wraps
   to two lines it eats the row, the select collapses to just its chevron, and THE LETTER THE
   CANDIDATE JUST CHOSE BECOMES INVISIBLE — the answer is stored and scored, but the student cannot
   see what they picked, or whether they picked anything. Q36/38/39/40 on that page have one-line
   statements and looked fine; only Q37 wrapped, which is why it read as a one-question glitch.
   A floor of 68px always fits a letter plus the chevron; the statement beside it wraps instead,
   which is the correct thing to give up. The original clipping fix is preserved — `flex:1 1 0`
   and `max-width:100%` still stop a long sentence-ending option from blowing off the right edge. */
.head-select{ padding: 5px 8px; font-size: 14px; border: 1.5px solid #8a8a8a; border-radius: 4px; background: #fff;
  flex: 1 1 0; min-width: 68px; max-width: 100%; }
.head-select.head-select-short{ flex: 0 0 auto; width: 96px; }   /* v1.386 — letter-only choices: a compact box (teacher: "this option should not be this big") */
.head-row:has(.head-select-short) .head-sec{ flex: 0 0 220px; }   /* …and the boxes line up in one column (a longer label wraps) */

/* READING · Matching Information (v1.142) — a single-character box beside each question, which is
   what the real computer-delivered exam gives you (teacher report, 2026-08-20). The row reuses
   `.head-row` so it inherits the same vertical rhythm as the other beside-the-question tasks; only
   the box itself is new. `.infomatch-stmt` overrides `.head-row .head-sec{min-width:120px}` — a
   Matching Information statement is a full sentence, not a short label, so it takes the space and
   the box stays pinned at its natural width on the right, never squeezed. */
.head-row.infomatch-row{ align-items: flex-start; gap: 12px; }
.head-row.infomatch-row .infomatch-stmt{ min-width: 0; flex: 1 1 auto; }
.q-input.letter-box{ width: 46px; flex: 0 0 auto; text-align: center; text-transform: uppercase;
  font-weight: 700; letter-spacing: 0; padding: 4px 2px; }
/* `.q-input.filled` left-aligns every other answer box (a long typed answer reads better that way).
   A one-character letter must stay CENTRED in its box, so this re-asserts it after that rule. */
.q-input.letter-box.filled{ text-align: center; }
/* READING · Matching Information grid (31 Oct 2026 — owner's ruling from a real-test screenshot; replaces
   the v1.142 letter box above, whose `.infomatch-row` rules are now unused by infomatch — `.letter-box`
   stays for word-list summary gaps). The grid is the mcq `.answer-grid`, but with up to 11 letters
   (A–K) it is wider than a phone's question pane (measured: 10 letters = 510px table in a 285px pane at
   360px). So when ITS OWN pane is narrow — a container query, not a viewport one, because split panes
   on tablets are narrow too — each row becomes the statement on a full-width line with a row of radios
   under it, each labelled by its letter (`data-l`), and the header row is hidden. Wide panes are untouched. */
.im-wrap{ container: imgrid / inline-size; max-width: 100%; overflow-x: auto; }
@container imgrid (max-width: 560px){
  .answer-grid.im-grid, .answer-grid.im-grid tbody{ display: block; width: 100%; }
  .answer-grid.im-grid thead{ display: none; }
  .answer-grid.im-grid tr{ display: flex; flex-wrap: wrap; border: 1px solid #d5d5d5; border-top: 0; }
  .answer-grid.im-grid tbody tr:first-child{ border-top: 1px solid #d5d5d5; }
  .answer-grid.im-grid td{ border: 0; }
  .answer-grid.im-grid td.ag-item{ flex: 1 1 100%; max-width: none; padding-bottom: 4px; }
  .answer-grid.im-grid td.ag-cell{ flex: 1 1 22px; min-width: 22px; padding: 2px 0 8px; }   /* a non-zero basis, or the cells fit beside the 100% statement at 0px and never wrap */
  .answer-grid.im-grid td.ag-cell::before{ content: attr(data-l); display: block; font-weight: 700; font-size: 12.5px; line-height: 1.4; }
}

.para-letter{ font-weight: 800; }

.chip{ display: inline-block; background: #fff; border: 1.5px solid #777; border-radius: 16px;
  padding: 5px 14px; font-size: 13.5px; margin: 4px; cursor: grab; user-select: none; color: var(--ink); }
.chip:active{ cursor: grabbing; }
.chip.in-gap{ margin: 0; }
.chips-list{ margin: 10px 0; }
.drop-gap{ display: block; min-height: 34px; border: 2px dashed #999; border-radius: 6px;
  margin: 8px 0 10px; padding: 2px 6px; background: #fcfcfc; min-width: 220px; }
.drop-gap.over{ border-color: var(--blue); background: #eef4fd; }
/* v1.277 (audit SP-08) — tap-to-place: a picked chip is unmistakable, and the gaps/chips are focusable */
.chip.picked,.mchip.picked{ outline: 3px solid var(--blue); outline-offset: 1px; background: #eef4fd; }
.chip:focus-visible,.mchip:focus-visible,.drop-gap:focus-visible,.mgap:focus-visible{ outline: 3px solid var(--blue); outline-offset: 2px; }
.drop-gap .gnum{ font-weight: 700; color: #888; font-size: 13px; margin-right: 6px; }
.transcript-box{ max-width: 720px; background: #f7f8fa; border: 1px solid #d9dce3; border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; font-size: 13.5px; }
.transcript-box .ts-demo{ color: #888; font-size: 12px; }
.transcript-box p{ margin-top: 8px; line-height: 1.7; color: #333; }
.sec-letter{ font-size: 13px; color: #666; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .5px; }
.map-wrap{ position: relative; max-width: 640px; border: 1px solid #bbb; background: #fafafa; margin-bottom: 12px; }
.map-wrap svg{ display: block; width: 100%; height: auto; }
.map-gap{ position: absolute; transform: translate(-50%, -50%); min-width: 120px; min-height: 32px; display: inline-block; }
.kbd-help{ margin: 8px 0 14px; font-size: 13px; }
.kbd-help summary{ cursor: pointer; color: var(--blue); }
.kbd-help .body{ background: #f6f8fb; border: 1px solid #dce4ef; border-radius: 6px; padding: 10px 12px; margin-top: 6px; line-height: 1.55; }

.passage h2{ font-size: 19px; margin-bottom: 14px; }
/* v1.276 — GT Reading Sections 1 and 2 stack TWO texts under one SECTION heading, so the second
   text carries its own title mid-pane. Same weight and size as the first (they are peers, not a
   sub-heading); the rule and the space above are what say "a new text starts here". */
.passage .gt-text-title{ font-size: 19px; margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--line, rgba(148,163,184,.35)); }
.passage p{ font-size: 16px; line-height: 24px; margin-bottom: 16px; }
/* Bulleted lists inside a passage — the PDF flattened these into one running line. */
.passage ul.p-bullets{ margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.passage ul.p-bullets li{ font-size: 16px; line-height: 24px; margin-bottom: 6px; }
.psec{ margin-bottom: 6px; }
mark.hl{ background: #5d3d54; color: #fff; }   /* v1.377 T7 — the live test's dark purple (teachers' swatch #5D3D54), white text */

.w-task .prompt{ font-size: 14.5px; line-height: 1.7; }
.stim-table{ border-collapse: collapse; background: #fff; font-size: 13.5px; color: #222; }
.stim-table caption{ font-weight: 700; padding: 7px; border: 1px solid #ccc; border-bottom: 0; background: #f7f7f7; }
.stim-table th,.stim-table td{ border: 1px solid #ccc; padding: 7px 14px; text-align: center; }
.stim-table td:first-child{ text-align: left; }
.proc-flow{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff; border: 1px solid #ccc; padding: 14px; }
.proc-step{ background: #f2f6fb; border: 1px solid #b9cce3; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: #234; }
.proc-arrow{ color: #888; font-size: 15px; }
.w-editor{ display: flex; flex-direction: column; }
.w-editor textarea{ flex: none; height: 340px; min-height: 180px; border: 1px solid #949494; border-radius: 2px;
  outline: none; resize: none; font-size: 15px; line-height: 1.7; overflow-y: auto;
  padding: 10px 12px; font-family: inherit; background: #fff; color: var(--ink); }
.w-editor textarea:focus{ border-color: #3d70b8; box-shadow: 0 0 0 1px #3d70b8; }
.w-grip{ height: 14px; border: 1px solid #949494; border-top: 0; background: #ececec;
  border-radius: 0 0 3px 3px; cursor: ns-resize; display: flex; align-items: center; justify-content: center;
  color: #777; font-size: 9px; letter-spacing: 2px; user-select: none; }
.w-grip::before{ content: "● ● ●"; }
.w-grip:hover{ background: #e0e0e0; }
.w-count{ text-align: right; color: var(--grey); font-size: 13px; padding: 6px 2px; }

.p-foot{ border-top: 1px solid var(--line); background: #fff; display: flex; align-items: flex-end;
  padding: 6px 14px; gap: 10px; flex-shrink: 0; min-height: 62px; }
.palette{ display: flex; align-items: flex-end; gap: 14px; flex: 1; overflow-x: auto; padding: 2px; }
.part-block{ display: flex; flex-direction: column; gap: 3px; }
.part-block .pname{ font-size: 11.5px; color: var(--grey); font-weight: 600; white-space: nowrap; }
.prog-strip{ display: flex; gap: 0; height: 5px; border-radius: 2px; overflow: hidden; background: #e2e2e2; }
.prog-strip span{ flex: 1; min-width: 8px; border-right: 1px solid #fff; }
.prog-strip span:last-child{ border-right: 0; }
.prog-strip span.done{ background: var(--green); }
.qbtns{ display: flex; gap: 3px; margin-top: 3px; }
.qbtn{ min-width: 27px; height: 27px; border: 1px solid #b5b5b5; background: #fff; font-size: 12.5px; border-radius: 2px; padding: 0 5px; color: var(--ink); }
.qbtn:hover{ border-color: #555; }
.qbtn.answered{ background: #fff; border-color: #b5b5b5; } 
.qbtn.current{ border: 2px solid #000; font-weight: 700; }
.part-collapsed{ border: 0; background: none; padding: 6px 10px;
  font-size: 13px; color: #333; cursor: pointer; white-space: nowrap; align-self: flex-end; }
.part-collapsed:hover{ text-decoration: underline; color: #000; }
.part-collapsed.task-done{ color: var(--green); font-weight: 600; }
.nav-arrows{ display: flex; gap: 6px; align-self: flex-end; }
.nav-arrows button{ width: 38px; height: 38px; border: 1px solid #999; background: #2b2b2b; color: #fff; font-size: 17px; border-radius: 4px; }
.nav-arrows button:disabled{ background: #e8e8e8; color: #aaa; border-color: #ccc; cursor: default; }
.nav-arrows .finish{ background: var(--ink); }

.overlay{ position: fixed; inset: 0; background: var(--overlay); /* dark: rgba(10,10,16,.6) via :root token */ backdrop-filter: blur(4px); z-index: 60;
  display: flex; align-items: center; justify-content: center; }
.overlay .panel{ background: #fff; color: #1c1c1c; border-radius: 12px; padding: 34px 40px; max-width: 480px;
  text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.overlay .panel h2{ margin-bottom: 12px; font-size: 20px; }
.overlay .panel p{ color: #444; font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.overlay .panel .field input,.overlay .panel .field select{ background: #fff; color: #1c1c1c; border: 1px solid #ccc; }

.overlay .panel input[type="date"]{ color-scheme: light; background: #fff; color: #1c1c1c; border: 1px solid #d0d6df; border-radius: 10px; padding: 9px 12px; font-family: inherit; font-size: 14px; max-width: 220px; }
.overlay .panel input[type="date"]:focus{ outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.12); }
.overlay .panel .field label{ color: #1c1c1c; }
.overlay .panel .note{ background: #fff8e6; border-color: #f0dfa6; color: #6b5400; }
.overlay .panel .field input[readonly]{ background: #eef3f9; color: #0369a1; font-weight: 700; letter-spacing: .6px; }
.overlay .panel .seg{ display: flex; gap: 8px; }
.overlay .panel .seg-b{ flex: 1; padding: 9px 6px; border: 1.5px solid #d0d6df; border-radius: 10px; background: #fff; color: #1c1c1c; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.overlay .panel .seg-b.active{ border-color: #0ea5e9; background: #e8f6fe; color: #0369a1; }
.overlay .panel .chiprow{ display: flex; gap: 8px; margin: 0 0 8px; }
.overlay .panel .qchip{ flex: 1; padding: 8px 0; border: 1px solid #d0d6df; border-radius: 8px; background: #fff; color: #1c1c1c; font-weight: 700; cursor: pointer; }
.overlay .panel .qchip.active{ border-color: #0ea5e9; background: #0ea5e9; color: #fff; }
.overlay .panel input[type=range]{ width: 100%; accent-color: #0ea5e9; }
.overlay .panel .tgl{ display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #1c1c1c; margin: 8px 0 18px; cursor: pointer; }
.overlay .panel .tgl input{ width: 18px; height: 18px; accent-color: #0ea5e9; flex: 0 0 auto; }
.overlay .panel .cred{ display: flex; gap: 12px; margin: 10px 0; }
.overlay .panel .cred > div{ flex: 1; background: #eef3f9; border: 1px solid #dbe3ee; border-radius: 10px; padding: 10px 14px; }
.overlay .panel .cred span{ display: block; font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.overlay .panel .cred b{ font-size: 19px; color: #0f172a; letter-spacing: .5px; }
.overlay .panel .cred-meta{ font-size: 13px; color: #475569; margin-bottom: 16px; }
.contact-cell{ display: flex; flex-direction: column; gap: 5px; }
.contact-cell .cinfo{ font-size: 12.5px; line-height: 1.25; }
.contact-cell .cinfo small{ display: block; color: var(--mut); font-size: 11px; }
.contact-cell .cacts{ display: flex; gap: 6px; flex-wrap: wrap; }
.ca{ font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; text-decoration: none; border: 1px solid var(--bord2); color: var(--mut); white-space: nowrap; }
.ca:hover{ color: var(--txt); border-color: var(--vio); }
.ca.wa{ color: #3ddc84; border-color: rgba(37,211,102,.4); }
.ca.em{ color: rgb(var(--accent)); border-color: rgba(var(--accent),.4); }
.del-x{ background: transparent; border: 1px solid var(--bord2); color: var(--mut); border-radius: 7px; padding: 3px 8px; font-size: 13px; cursor: pointer; line-height: 1; }
.del-x:hover{ color: #f87171; border-color: rgba(248,113,113,.55); background: rgba(248,113,113,.10); }
.overlay .panel .share-row{ display: flex; gap: 10px; margin: 6px 0 16px; }
.overlay .panel .share-row .btn{ flex: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.overlay .panel .share-row .share-email{ background: #e8f1fe; border-color: #b9d6f7; color: #1d4ed8; }
.overlay .panel .share-row .share-wa{ background: #25d366; border-color: #1ea952; color: #fff; }
.stu-link{ color: var(--vio); font-weight: 600; cursor: pointer; text-decoration: none; border-bottom: 1px dashed transparent; }
.stu-link:hover{ border-bottom-color: var(--vio); }
.overlay .panel .phone-row{ display: flex; gap: 8px; }
.overlay .panel .phone-row select{ flex: 0 0 auto; max-width: 210px; }
.overlay .panel .phone-row input{ flex: 1; min-width: 0; }
.overlay .panel .pp-zone{ border-top: 1px solid #e2e6ee; margin: 18px 0 14px; padding-top: 16px; }
.overlay .panel .pp-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overlay .panel .pp-title{ font-size: 14.5px; font-weight: 700; color: #1c1c1c; }
.overlay .panel .pp-sub{ font-size: 12px; color: #6b7280; margin-top: 1px; }
.overlay .panel .pp-toggle{ width: 46px; height: 26px; border-radius: 20px; border: 0; background: #cdd3dd; position: relative; cursor: pointer; flex: 0 0 auto; transition: .18s; }
.overlay .panel .pp-toggle.on{ background: #0ea5e9; }
.overlay .panel .pp-toggle .knob{ position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .18s; }
.overlay .panel .pp-toggle.on .knob{ left: 23px; }
.overlay .panel .pp-expiry{ margin-top: 14px; }
.overlay .panel .pp-exlabel{ font-size: 11px; color: #6b7280; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.overlay .panel .pp-dateline{ margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.overlay .panel .pp-dateline .qchip{ flex: 1; padding: 8px 0; }
.overlay .panel .pp-dateline input[type=date]{ flex: 1; background: #fff; color: #1c1c1c; border: 1px solid #ccc; border-radius: 8px; padding: 7px 10px; }
.overlay .panel .pp-dateline::after{ content: ""; flex: 1; }
.play-btn{ background: #111; color: #fff; border: 0; border-radius: 6px; padding: 13px 34px; font-size: 16px; font-weight: 700; }
.headphone{ font-size: 46px; margin-bottom: 10px; }
/* Sound check as a FULL exam step (authentic) — opaque exam-grey, no blurred questions behind,
   line-icon instead of an emoji, squarer card. Scoped so other overlays keep the modal look. */
.overlay.sc-screen{ background:#e9ebf0 !important; backdrop-filter:none; -webkit-backdrop-filter:none; }  /* !important beats the themed .overlay scrim so no questions show through */
html[data-theme="light"] .overlay.sc-screen{ background:#e9ebf0 !important; }
.overlay.sc-screen .panel{ background:#fff; color:#111; border-radius:6px; box-shadow:0 1px 2px rgba(16,24,40,.06); border:1px solid #d7dae2; max-width:600px; }
/* Sound check is ALWAYS the light CD-IELTS look, even in dark theme (owner pref 2026-07-22) — pin
   the card, text and buttons to the light palette so the dark-theme .overlay .panel rules can't
   darken it. Selectors carry an extra class (.sc-screen) so they outrank the themed overlay rules. */
.overlay.sc-screen .panel h2{ color:#111!important; }
.overlay.sc-screen .panel .sc-intro{ color:#1f2937!important; }
.overlay.sc-screen .panel .sc-note{ color:#374151!important; }
.overlay.sc-screen .panel .sc-note b{ color:#111!important; }
.overlay.sc-screen .panel .sc-status{ color:#4b5563!important; }
.overlay.sc-screen .panel .play-btn{ background:#111; color:#fff; border:0; }
.overlay.sc-screen .panel .play-btn.ghost{ background:#fff; color:#111; border:1.5px solid #111; }
.overlay.sc-screen .panel .play-btn.ghost:hover{ background:#f1f2f5; }
.overlay.sc-screen .panel .sc-vol input[type=range]{ accent-color:#111; }
.overlay.sc-screen .sc-ico{ color:#334155; margin-bottom:6px; display:flex; justify-content:center; }
.overlay.sc-screen h2{ font-family:Arial,sans-serif; }
.overlay.sc-screen .sc-intro, .overlay.sc-screen .sc-note, .overlay.sc-screen .sc-status{ font-family:Arial,sans-serif; }

.p-page{ position: absolute; inset: 56px 0 0 0; background: #fff; color: var(--ink); z-index: 55; overflow: auto; padding: 30px 40px; }
.p-page h2{ font-size: 21px; margin-bottom: 20px; }
.player.ex-mode .p-page{ top: 73px; }   /* v1.377 — under the 72px exam bar (audit 3 Oct: Options covered its lower edge) */
.p-page .close-x{ position: absolute; top: 18px; right: 26px; font-size: 22px; background: none; border: 0; color: #555; }
.submit-banner{ display: block; width: 100%; max-width: 560px; background: var(--red); color: #fff; border: 0;
  border-radius: 8px; padding: 15px; font-size: 16px; font-weight: 700; margin-bottom: 30px; text-align: left; }
.opt-group{ margin-bottom: 26px; max-width: 560px; }
.opt-group h3{ font-size: 15px; margin-bottom: 10px; }
.opt-group label{ display: flex; gap: 10px; align-items: center; padding: 7px 4px; font-size: 14.5px; cursor: pointer; }
.end-page{ display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; }
.end-page h2{ font-size: 22px; margin-bottom: 8px; }
.end-page p{ color: var(--grey); margin-bottom: 26px; }
.next-btn{ background: #111; color: #fff; border: 0; border-radius: 6px; padding: 14px 36px; font-size: 16px; font-weight: 700; }
.p-foot.disabled .qbtn,.p-foot.disabled .part-collapsed{ opacity: .55; }

.ctx-menu{ position: fixed; background: #fff; border: 1px solid #ccc; border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); z-index: 80; min-width: 150px; overflow: hidden; }
.ctx-menu button{ display: block; width: 100%; text-align: left; padding: 9px 14px; border: 0; background: #fff; font-size: 13.5px; color: #1c1c1c; }
.ctx-menu button:hover{ background: #f2f6fd; }
/* v1.377 T7/T8 — the select-to-highlight bar: white, thin border, icon + label buttons side by side above the words */
.ctx-menu.hl-bar{ display: flex; padding: 3px; gap: 2px; border-color: #b9bec7; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.16); z-index: 1000; }
.ctx-menu.hl-bar button{ display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 7px 12px; border-radius: 4px; font: 600 13.5px/1 Arial, Helvetica, sans-serif; white-space: nowrap; cursor: pointer; }
.ctx-menu.hl-bar button + button{ border-left: 1px solid #e1e4e8; border-radius: 0 4px 4px 0; }
.ctx-menu.hl-bar svg{ width: 16px; height: 16px; fill: none; stroke: #1c1c1c; stroke-width: 1.8; }
/* v1.377 H3 (ANik 3 Oct, approved): the right-hand notes panel as in the real exam, light blue (was yellow), with a Close × (Hexa: it could not be hidden);
   it starts under the 72px exam bar (it used to cover it) */
.notes-panel{ position: fixed; right: 0; top: 73px; bottom: 84px; width: 270px; background: #e8f3fc;
  border-left: 1px solid #b7d6f0; z-index: 56; padding: 16px; overflow: auto; color: #1c1c1c; }
.notes-panel h3{ font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.notes-panel .np-x{ font: 600 12.5px Arial, Helvetica, sans-serif; color: #1c1c1c; background: #fff; border: 1px solid #8fb5d6; border-radius: 4px; padding: 3px 9px; cursor: pointer; }
.notes-panel .n-item{ position: relative; background: #fff; border: 1px solid #c5ddf2; border-radius: 6px; padding: 8px 26px 8px 10px; font-size: 13px; margin-bottom: 8px; white-space: pre-wrap; }
.notes-panel .n-item .src{ color: #4a6f8f; font-size: 11.5px; margin-top: 4px; font-style: italic; }
.notes-panel .n-del{ position: absolute; top: 4px; right: 5px; width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: #5b88ad; font-size: 17px; line-height: 1; cursor: pointer; }
.notes-panel .n-del:hover{ background: #d6e8f7; color: #2f5a7e; }
/* A highlight that carries a note gets a dashed underline, so the student can see which
   highlights are annotated and click them to reopen the note. */
mark.hl.has-note{ border-bottom: 1.5px dashed #f0b8dc; cursor: pointer; }
/* Inline editable sticky note (replaces the old prompt()) */
.sticky-note{ position: fixed; z-index: 60; width: 228px; background: #e8f3fc; border: 1px solid #9cc8ec;   /* v1.377 H3 — light blue, as the panel */
  border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.28); padding: 22px 8px 8px; }
.sticky-note .sn-text{ width: 100%; min-height: 84px; resize: vertical; border: 0; background: transparent;
  font: inherit; font-size: 13.5px; line-height: 1.5; color: #1c1c1c; outline: none; }
.sticky-note .sn-text::placeholder{ color: #6f8ea8; }
.sticky-note .sn-del{ position: absolute; top: 3px; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 6px;
  background: transparent; color: #3b6f99; font-size: 18px; line-height: 1; cursor: pointer; }
.sticky-note .sn-del:hover{ background: #d6e8f7; color: #24506f; }

.player.theme-wb{ background: #000; }
.player.theme-wb .p-head,.player.theme-wb .p-foot,.player.theme-wb .p-content,.player.theme-wb .pane,.player.theme-wb .part-banner,.player.theme-wb .p-page{ background: #000; color: #fff; }
.player.theme-wb .passage p,.player.theme-wb .q-intro,.player.theme-wb .tfng-item .stmt,.player.theme-wb td,.player.theme-wb label,.player.theme-wb .gap-sentence{ color: #fff; }
.player.theme-wb .q-input,.player.theme-wb textarea,.player.theme-wb .form-table td,.player.theme-wb .form-table th{ background: #111; color: #fff; }
.player.theme-yb{ background: #000; }
.player.theme-yb .p-head,.player.theme-yb .p-foot,.player.theme-yb .p-content,.player.theme-yb .pane,.player.theme-yb .part-banner,.player.theme-yb .p-page{ background: #000; color: #ffe14d; }
.player.theme-yb .passage p,.player.theme-yb .q-intro,.player.theme-yb .tfng-item .stmt,.player.theme-yb td,.player.theme-yb label,.player.theme-yb .gap-sentence{ color: #ffe14d; }
.player.theme-yb .q-input,.player.theme-yb textarea,.player.theme-yb .form-table td,.player.theme-yb .form-table th{ background: #111; color: #ffe14d; }
/* The real player offers exactly three text sizes — Regular (default) 16px, Large 19px,
   Extra large 22px — applied to the whole test, not just the passage. */
.player.fs-large{ font-size: 19px; }
.player.fs-large .passage p,.player.fs-large .q-intro,.player.fs-large .tfng-item .stmt,.player.fs-large .gap-sentence,.player.fs-large td,.player.fs-large label{ font-size: 19px; line-height: 28px; }
.player.fs-small{ font-size: 22px; }   /* "Extra large" — the third step */
.player.fs-small .passage p,.player.fs-small .q-intro,.player.fs-small .tfng-item .stmt,.player.fs-small .gap-sentence,.player.fs-small td,.player.fs-small label{ font-size: 22px; line-height: 32px; }

.sub-pro b{ color: var(--amber); }
.carousel{ position: relative; }
.car-track{ display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 12px); gap: 16px;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.car-track::-webkit-scrollbar{ display: none; }
.car-btn{ position: absolute; top: 45%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--bord2); background: rgba(22,24,38,.92); color: var(--txt);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.car-btn:hover{ background: var(--grad); border: 0; }
.car-btn.prev{ left: -16px; } .car-btn.next{ right: -16px; }
@media (max-width: 1000px){ .car-track{ grid-auto-columns: calc(50% - 8px); } }
@media (max-width: 560px){ .car-track{ grid-auto-columns: 90%; } }

.skill-btn{ position: relative; }
.qt-pop{ display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--menu); border: 1px solid var(--bord2); border-radius: 14px; padding: 12px 14px;
  min-width: 250px; z-index: 25; box-shadow: 0 14px 36px rgba(0,0,0,.45); text-align: left; }
.skill-btn:hover .qt-pop{ display: flex; flex-direction: column; gap: 5px; }
.qt-pop span{ font-size: 12.5px; color: var(--txt); font-weight: 600; white-space: nowrap; }

.sp-topic{ margin: 12px 0 0; font-size: 14px; }
.sp-topic ul,.sp-p3{ margin: 6px 0 0 20px; color: var(--mut); line-height: 1.8; font-size: 13.5px; }
.cue-box{ background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.3); border-radius: 14px;
  padding: 16px 18px; font-size: 14px; line-height: 1.7; margin: 12px 0; }
.cue-box ul{ margin: 2px 0 6px 20px; }
.sp-timers{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-clock{ font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cyan); }
.card h3 .t-time{ float: right; font-size: 12px; }

.prof-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prof-grid small{ display: block; color: var(--mut); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 3px; }
.prof-display{ margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bord); }
.prof-display > label{ display:block; font-size:13.5px; font-weight:700; color:var(--txt); margin-bottom:8px; }
.prof-display > label span{ font-weight:500; color:var(--mut); }
.prof-display-row{ display:flex; gap:8px; max-width:440px; }
.prof-display-row input{ flex:1; min-width:0; padding:9px 13px; border:1px solid var(--bord2); border-radius:10px; background:var(--glass); color:var(--txt); font-size:14px; }
.prof-display-row input:focus{ outline:none; border-color:#0284c7; }
.prof-display-row .btn{ white-space:nowrap; }
.reg-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 14px 0 6px; }
@media (max-width: 700px){ .prof-grid,.reg-grid{ grid-template-columns: 1fr; } }

.dlg-x{ position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #1c1c1c; color: #fff; font-size: 15px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.dlg-x:hover{ background: var(--red); }

.admin-shell{ display: flex; min-height: calc(100vh - 120px); }
.admin-side{ width: 220px; flex-shrink: 0; padding: 22px 12px; border-right: 1px solid var(--bord);
  display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.02); }
.side-item{ display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 0; border-radius: 12px;
  background: none; color: var(--mut); font-weight: 700; font-size: 14px; text-align: left; transition: .15s; }
.side-item:hover{ background: var(--glass2); color: var(--txt); }
.side-item.side-crm{ color:var(--info-2); background:linear-gradient(135deg,rgba(14,165,233,.16),rgba(34,211,238,.08)); border:1px solid rgba(34,211,238,.4); margin:4px 0; }
.side-item.side-crm:hover{ border-color:#22d3ee; background:linear-gradient(135deg,rgba(14,165,233,.26),rgba(34,211,238,.16)); }
.crm-embed{ width:100%; height:80vh; border:1px solid var(--bord); border-radius:16px; margin-top:8px; background:#0a1020; }

.cx-earn{background:linear-gradient(120deg,rgba(34,197,94,.16),rgba(var(--accent),.12));border:1px solid rgba(34,197,94,.32);border-radius:14px;padding:14px 18px;font-size:14px;margin:0}
.cx-earn b{color:var(--txt)}.cx-earn .g{color:var(--ok)}
.cx-ph{font-size:11.5px;color:var(--mut);margin-top:2px}
.cx-mut{color:var(--mut)}
.cx-temp{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:800}
.cx-Hot{background:rgba(251,113,133,.16);color:var(--bad)}.cx-Warm{background:rgba(251,191,36,.16);color:var(--warn-2)}.cx-Cold{background:rgba(148,163,184,.16);color:var(--mut-5)}
.cx-pill{display:inline-block;padding:1px 9px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid var(--bord2)}
.cx-st-New{color:var(--info-2)}.cx-st-Contacted{color:#67e8f9}.cx-st-Trial{color:var(--warn-2)}.cx-st-Enrolled{color:var(--ok-2)}.cx-st-Lost{color:var(--mut-5)}

/* ── OWNER CHIP (sales-team feedback #3, BDM) ─────────────────────────────────────────────
   Each BDM gets a chip shaped like the Stage badge, in a colour that is unique to them and the
   same on every screen (list, pipeline, follow-ups, lead detail) — so in the "All leads" list
   you can find your own rows without reading a single name.

   The colour is held in a custom property --own, NOT in `currentColor`. The first version used
   `background:currentColor` on the initials disc while also setting `color:#0b1020` on that same
   element — so currentColor resolved to the disc's OWN dark colour and the disc rendered
   dark-on-dark, i.e. invisible. --own keeps the hue available to the child independently. */
.cx-own{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 2px;border-radius:999px;
  font-size:11.5px;font-weight:700;line-height:1.6;white-space:nowrap;
  color:var(--own);border:1px solid var(--own);
  background:color-mix(in srgb, var(--own) 14%, transparent)}
.cx-own .cx-own-i{display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;border-radius:50%;flex:none;font-size:9.5px;font-weight:800;font-style:normal;
  background:var(--own);color:#0b1020}
.cx-own-0 {--own:var(--info-2)}   /* sky      */
.cx-own-1 {--own:#f0abfc}   /* fuchsia  */
.cx-own-2 {--own:var(--warn-2)}   /* amber    */
.cx-own-3 {--own:var(--ok-2)}   /* emerald  */
.cx-own-4 {--own:var(--bad-3)}   /* rose     */
.cx-own-5 {--own:var(--viol-3)}   /* indigo   */
.cx-own-6 {--own:#67e8f9}   /* cyan     */
.cx-own-7 {--own:#fdba74}   /* orange   */
.cx-own-8 {--own:var(--viol-2)}   /* violet   */
.cx-own-9 {--own:#86efac}   /* green    */
.cx-own-10{--own:#f9a8d4}   /* pink     */
.cx-own-11{--own:var(--info-3)}   /* blue     */
.cx-own-12{--own:#5eead4}   /* teal     */
.cx-own-13{--own:#d8b4fe}   /* purple   */
.cx-own-x {--own:var(--mut-5);padding-left:10px}        /* unassigned / none */
.cx-own-x .cx-own-i{display:none}
.cx-kc-m .cx-own,.tr-mylead .cx-own{font-size:11px}
.cx-metab .cx-own{vertical-align:middle}
/* A1 (Arif 28 Oct 2026): the lead panel's owner chip is a button for whoever may reassign → a list of active BDMs */
.lc-ownwrap{position:relative}
.lc-ownbtn{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;cursor:pointer;font:inherit;color:inherit;vertical-align:middle}
.lc-ownbtn:hover .cx-own,.lc-ownbtn:focus-visible .cx-own{box-shadow:0 0 0 2px color-mix(in srgb, var(--own) 40%, transparent)}
.lc-own-car{font-size:10px;opacity:.75}
.lc-ownmenu{position:absolute;z-index:60;top:calc(100% + 6px);left:0;min-width:220px;max-height:300px;overflow:auto;padding:6px;border-radius:12px;
  background:var(--card,#fff);border:1px solid var(--bord2,#d0d7e2);box-shadow:0 12px 32px rgba(15,23,42,.18)}
.lc-ownmenu-h{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:.65;padding:4px 8px 6px}
.lc-ownopt{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:8px;background:none;cursor:pointer;font:inherit;color:inherit;text-align:left}
.lc-ownopt:hover,.lc-ownopt:focus-visible{background:rgba(99,102,241,.10);outline:none}
.lc-ownopt.on{opacity:.6;cursor:default}
.lc-own-now{font-size:10.5px;opacity:.7}
.lc-ownmenu-e{padding:8px;font-size:12px;opacity:.7}
/* A2 (Arif 28 Oct 2026): the invoice button on Overview, next to the potential-revenue card — prominent once the lead is Enrolled */
.lc-invcta{margin:8px 0 12px}
.lc-invcta-hot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:12px;
  border:1px solid color-mix(in srgb, var(--ok,#16a34a) 45%, transparent);background:color-mix(in srgb, var(--ok,#16a34a) 10%, transparent)}
.lc-invcta-t{display:flex;flex-direction:column;gap:2px;font-size:13px}
.lc-invcta-t span{font-size:11.5px;opacity:.75}
.cx-due{font-weight:700;font-size:12.5px}.cx-due.over{color:var(--bad)}.cx-due.today{color:var(--warn)}.cx-due.up{color:var(--mut)}
.cx-row:hover td{background:rgba(var(--accent),.06)}
.cx-grp{margin-bottom:20px}
.cx-gh{font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.5px;margin:0 0 10px;display:flex;gap:8px;align-items:center}
.cx-gh span{background:rgba(127,127,127,.12);border:1px solid var(--bord);border-radius:20px;padding:0 8px;font-size:11.5px;color:var(--mut)}
.cx-fu{display:flex;align-items:center;gap:12px;border:1px solid var(--bord);border-radius:12px;padding:10px 14px;margin-bottom:8px;cursor:pointer;background:rgba(127,127,127,.05)}
.cx-fu:hover{border-color:rgb(var(--accent))}
.cx-fu-main{flex:1;min-width:0}
.cx-fu-acts{display:flex;gap:6px}
.cx-mini{width:34px;height:34px;border-radius:10px;border:1px solid var(--bord);display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;font-size:15px;background:rgba(127,127,127,.06);color:var(--txt)}
.cx-mini.call{background:#0ea5e9;border-color:#0ea5e9}.cx-mini.wa{background:#25d366;border-color:#25d366}
.cx-kan{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;align-items:start}
.cx-kcol{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:14px;padding:12px;min-height:120px}
.cx-kh{font-weight:800;font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;display:flex;justify-content:space-between;margin-bottom:11px}
.cx-kc{background:rgba(127,127,127,.08);border:1px solid var(--bord);border-radius:12px;padding:9px 11px;margin-bottom:8px;cursor:pointer}
.cx-kc:hover{border-color:rgb(var(--accent))}
.cx-subnav{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.cx-subtab{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:12px;padding:9px 15px;color:var(--mut);font-weight:700;font-size:13px;cursor:pointer;font-family:inherit}
.cx-subtab.on{background:var(--grad);color:#fff;border:0}
.cx-card{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:16px;padding:16px 18px;margin-top:14px}
.cx-ch{font-weight:800;margin:0 0 12px}
.cx-slab{display:flex;align-items:center;gap:9px;padding:9px 2px;border-bottom:1px solid var(--bord);font-size:13px}
.cx-slab:last-child{border-bottom:0}.cx-slab span{flex:1;color:var(--mut)}.cx-slab.on span{color:var(--txt);font-weight:700}.cx-slab b{font-weight:800}
.cx-here{flex:0 0 auto;font-size:10px;font-weight:800;background:rgba(52,211,153,.18);color:var(--ok-2);border-radius:20px;padding:1px 8px}
.cx-nudge{margin-top:12px;background:rgba(251,191,36,.1);border:1px solid rgba(251,191,36,.32);border-radius:12px;padding:11px 14px;font-size:13px;color:var(--warn)}
.cx-nudge.ok{background:rgba(52,211,153,.1);border-color:rgba(52,211,153,.3);color:var(--ok-2)}
.cx-dn{font-family:Sora,sans-serif;font-size:19px;font-weight:800}
.cx-acts{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}
.cx-act{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border-radius:12px;text-decoration:none;font-weight:700;font-size:13px;border:1px solid var(--bord);color:var(--txt)}
.cx-act.call{background:#0ea5e9;color:#04121f;border:0}.cx-act.wa{background:#25d366;color:#04210f;border:0}.cx-act.email{background:rgba(var(--accent),.16);color:var(--info-2)}
.cx-deal{background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.28);border-radius:12px;padding:10px 14px;font-size:13px;color:#86efac;margin-bottom:6px}
.cx-deal b{color:var(--txt)}.cx-deal .g{color:var(--ok)}
.cx-deal-r{line-height:1.45}.cx-deal-r+.cx-deal-r{margin-top:3px}
.cx-sec{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:rgb(var(--accent));margin:16px 0 9px}
.cx-flow{display:flex;gap:5px}
.cx-sp{flex:1;text-align:center;font-size:10.5px;font-weight:700;padding:6px 2px;border-radius:8px;background:rgba(127,127,127,.06);border:1px solid var(--bord);color:var(--mut);cursor:pointer}
.cx-sp.on{background:var(--grad);color:#fff;border:0}
.cx-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cx-f{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:12px;padding:9px 12px}
.cx-f small{display:block;color:var(--mut);font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;margin-bottom:2px}
.cx-log{display:flex;gap:8px}
.cx-log select,.cx-log input{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:9px 11px;color:var(--txt);font-family:inherit;font-size:13px}
.cx-log input{flex:1;min-width:0}
.cx-tl .cx-ti{border-left:2px solid var(--bord);padding:0 0 12px 14px;font-size:12.5px;color:var(--mut)}
.cx-tl .cx-ti b{font-weight:700;color:var(--txt)}
@media(max-width:900px){.cx-kan{grid-template-columns:repeat(2,1fr)}.cx-acts{grid-template-columns:1fr 1fr}}

.sf-app{background:radial-gradient(1100px 820px at 10% 6%,rgba(var(--accent),.15),transparent 58%),radial-gradient(1000px 780px at 94% 10%,rgba(var(--accent2),.17),transparent 58%),radial-gradient(900px 720px at 55% 112%,rgba(var(--accent2),.10),transparent 60%),#080b16;color:var(--txt);min-height:100vh}

.sf-app-side{display:flex;align-items:stretch;min-height:100vh}
.sf-side{width:214px;flex:0 0 214px;display:flex;flex-direction:column;gap:4px;background:linear-gradient(180deg,#04203f,#07335c);border-right:1px solid rgba(255,255,255,.10);padding:18px 12px}
.sf-side-brand{color:#fff;font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px;padding:4px 10px 14px;white-space:nowrap}
.sf-side-brand b{font-weight:800}.sf-side-brand .sf-cloud{font-size:17px;color:var(--info-2)}
.sf-side-nav{display:flex;flex-direction:column;gap:3px}
.sf-side-item{display:flex;align-items:center;gap:11px;padding:11px 13px;border:0;border-radius:10px;background:transparent;color:#bcd4ee;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;text-align:left;width:100%;white-space:nowrap;transition:background .12s,color .12s,box-shadow .12s}
.sf-side-item:hover{background:var(--glass-08);color:#fff}
.sf-side-item.on{background:linear-gradient(90deg,rgba(var(--accent),.22),rgba(var(--accent),.06));color:#fff;box-shadow:inset 3px 0 0 #22d3ee}
.sf-side-ic{flex:0 0 auto;width:20px;text-align:center;font-size:15px}
.sf-side .sf-new{width:100%;margin-top:16px;padding:11px 14px;border-radius:10px;text-align:center}
.sf-app-side .sf-main{flex:1;min-width:0}
@media(max-width:820px){.sf-app-side{flex-direction:column;min-height:0}.sf-side{width:100%;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;align-items:center;border-right:0;border-bottom:1px solid var(--glass-10)}.sf-side-brand{width:100%;padding-bottom:8px}.sf-side-nav{flex-direction:row;flex-wrap:wrap;flex:1}.sf-side-item.on{box-shadow:inset 0 -3px 0 #22d3ee}.sf-side .sf-new{width:auto;margin:0 0 0 auto}}
.sf-appbar{display:flex;align-items:center;gap:18px;background:linear-gradient(90deg,#04203f,#0a4f86);padding:0 22px;height:50px;border-bottom:1px solid rgba(255,255,255,.10);box-shadow:0 2px 12px rgba(0,0,0,.4)}
.sf-applogo{color:#fff;font-size:15px;font-weight:600;display:flex;align-items:center;gap:7px;white-space:nowrap}.sf-applogo b{font-weight:800}.sf-cloud{font-size:17px;color:var(--info-2)}
.sf-tabs{display:flex;gap:2px;flex:1;height:100%;align-items:stretch;overflow-x:auto}
.sf-tab{background:transparent;border:0;border-bottom:3px solid transparent;color:#bcd4ee;font-size:13.5px;font-weight:600;padding:0 16px;cursor:pointer;font-family:inherit;white-space:nowrap;transition:.12s}
.sf-tab:hover{background:var(--glass-08);color:#fff}
.sf-tab.on{color:#fff;border-bottom-color:#22d3ee;background:var(--glass-06)}

.sf-tabs .sf-tab[data-aview="examslots"]{margin-left:13px;position:relative}
.sf-tabs .sf-tab[data-aview="examslots"]::before{content:"";position:absolute;left:-7px;top:50%;transform:translateY(-50%);height:20px;width:1px;background:var(--bord2)}
.sf-new{background:var(--grad);color:#04121f;border:0;border-radius:8px;font-weight:800;padding:7px 14px;cursor:pointer;font-family:inherit;white-space:nowrap}
.sf-new:hover{filter:brightness(1.07)}
.sf-main{padding:0}.sf-wrap{max-width:1320px;margin:0 auto;padding:30px 28px 72px;display:flex;flex-direction:column;gap:24px}
.sf-wrap.sf-fin{max-width:1600px}

.fin-shell{display:flex;align-items:flex-start;gap:0;min-height:calc(100vh - var(--topbar-h))}
.fin-side{width:232px;flex-shrink:0;background:var(--glass);border-right:1px solid var(--bord);padding:14px 12px 40px;position:sticky;top:var(--topbar-h);height:calc(100vh - var(--topbar-h));overflow-y:auto}
.fin-side-logo{font-size:15px;font-weight:800;color:var(--txt);padding:6px 10px 10px;letter-spacing:-.2px}
.fin-side-logo b{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.fin-sgroup{font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--mut);padding:15px 10px 5px}
.fin-sgroup.stu-collap{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:0;cursor:pointer;text-align:left;font-family:inherit}
.fin-sgroup.stu-collap:hover{color:var(--txt)}
.stu-caret{font-size:9px;opacity:.7;transition:transform .18s}
.fin-sgroup.stu-collap.open .stu-caret{transform:rotate(180deg)}
.fin-sitem{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 11px;margin:1px 0;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--mut);font-size:13px;font-weight:600;cursor:pointer;transition:background .14s,color .14s,border-color .14s}
.fin-sitem:hover{background:var(--glass2);color:var(--txt)}
.fin-sitem.on{background:linear-gradient(120deg,rgba(var(--accent),.18),rgba(var(--accent),.03));color:var(--txt);border-color:rgba(var(--accent),.42);box-shadow:0 0 0 1px rgba(var(--accent),.18) inset}
.fin-sitem.on .fin-sitem-ic{filter:drop-shadow(0 0 6px rgba(var(--accent),.75))}
.fin-sitem-ic{width:20px;text-align:center;flex-shrink:0;font-size:14px}
.fin-shell .sf-main{flex:1;min-width:0}
.fin-shell .sf-wrap.sf-fin{max-width:1500px;padding-top:26px}
@media(max-width:860px){.fin-shell{flex-direction:column}.fin-side{width:auto;position:static;height:auto;border-right:0;border-bottom:1px solid var(--bord);display:flex;flex-wrap:wrap;gap:4px;padding:10px}.fin-side-logo{width:100%}.fin-sgroup{width:100%;padding-top:6px}.fin-sitem{width:auto}}

/* Admin sidebar — collapsible accordion (v818) */
.adm-side{width:246px}
.adm-sec{margin:2px 0}
.adm-sechead{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;font-weight:800;font-size:12px;color:var(--mut);background:transparent;border:0;border-radius:10px;cursor:pointer;font-family:inherit;text-align:left;transition:background .14s,color .14s}
.adm-sechead:hover{background:var(--glass2);color:var(--txt)}
.adm-sechead.cur{background:linear-gradient(120deg,rgba(var(--accent),.18),rgba(var(--accent),.03));color:var(--txt);border:1px solid rgba(var(--accent),.42)}
.adm-caret{margin-left:auto;transition:transform .15s;font-size:11px}
.adm-sec.open .adm-caret{transform:rotate(180deg)}
.adm-secbody{display:none}
.adm-sec.open .adm-secbody{display:block}
.adm-secbody .fin-sitem{padding-left:26px;font-size:12.5px}
/* Flat destination tabs (Dashboard / Business Summary) — head is a link, no caret; hidden secbody keeps [data-aview] in the DOM */
.adm-flat .adm-sechead{color:var(--txt)}
.adm-flat .adm-sechead:not(.cur){font-weight:700}
.adm-flat .adm-secbody{display:none !important}
@media(max-width:860px){.adm-side{display:block}.adm-sec{width:100%}}
.sf-pageheader{background:var(--glass);border:1px solid var(--bord);border-radius:14px;padding:13px 18px;margin-bottom:16px;display:flex;align-items:center;gap:16px}
.sf-objtype{font-size:11px;color:var(--mut);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
.sf-objname{font-size:20px;font-weight:800;color:var(--txt);font-family:'Sora',sans-serif}
.sf-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.sf-kpi{background:var(--glass-05);border:1px solid var(--bord);border-left:3px solid rgb(var(--accent));border-radius:14px;padding:15px 18px}
.sf-kpi-v{font-size:23px;font-weight:800;color:var(--txt);font-family:'Sora',sans-serif}.sf-kpi-l{font-size:11.5px;color:var(--mut);margin-top:3px;text-transform:uppercase;letter-spacing:.3px}
.sf-grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:0}
.sf-card{background:var(--glass);border:1px solid var(--bord);border-radius:14px;overflow:hidden}
.sf-card-h{font-size:13px;font-weight:700;color:var(--txt);padding:16px 20px;border-bottom:1px solid var(--bord);background:var(--glass-03)}
.sf-card-b{padding:20px}
.sf-fn{display:flex;align-items:center;gap:12px;margin-bottom:10px}.sf-fn-l{flex:0 0 92px;font-size:12.5px;color:var(--mut);font-weight:600}
.sf-fn-tr{flex:1;height:24px;background:var(--glass-06);border-radius:5px;overflow:hidden}.sf-fn-fl{display:flex;align-items:center;justify-content:flex-end;height:100%;padding-right:8px;background:linear-gradient(90deg,#0ea5e9,#22d3ee);color:#04121f;font-size:11.5px;font-weight:800;border-radius:5px}
.sf-fn-amt{flex:0 0 auto;min-width:90px;text-align:right;font-size:12.5px;font-weight:800;color:var(--ink-hi10)}

.fin-qa{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0}
.fin-qa-b{display:flex;align-items:center;gap:12px;text-align:left;background:rgba(127,127,127,.08);border:1px solid var(--bord);border-radius:14px;padding:13px 15px;cursor:pointer;font-family:inherit;color:var(--txt);transition:border-color .12s,transform .08s}
.fin-qa-b:hover{border-color:#0ea5e9;transform:translateY(-1px)}
.fin-qa-ic{font-size:22px;flex:0 0 auto}
.fin-qa-t{display:flex;flex-direction:column;min-width:0}.fin-qa-t b{font-size:14px}.fin-qa-t small{color:var(--mut);font-size:12px}
.fin-sec{margin:20px 0 10px;font-weight:800;font-size:13px;color:var(--mut);border-top:1px solid var(--bord);padding-top:14px}
.fin-toggle{display:inline-flex;gap:4px;background:rgba(127,127,127,.14);border-radius:10px;padding:3px}
.fin-tg{background:transparent;border:0;color:var(--mut);border-radius:8px;padding:6px 12px;cursor:pointer;font-family:inherit;font-weight:700;font-size:12.5px}
.fin-tg.on{background:#0176d3;color:#fff}

.eval-prompt{background:rgba(1,118,211,.07);border:1px solid rgba(1,118,211,.28);border-left:4px solid #0176d3;border-radius:10px;padding:12px 14px;margin:10px 0 0;color:var(--txt);font-size:14.5px;line-height:1.55}
.eval-prompt-h{font-weight:800;color:#0176d3;font-size:12px;text-transform:uppercase;letter-spacing:.4px;margin-bottom:5px}
.eval-ans-h{font-weight:800;color:var(--mut);font-size:12px;text-transform:uppercase;letter-spacing:.4px}
.eval-prompt-b{line-height:1.55}
.eval-fig{margin-top:12px;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:12px 14px}
.eval-fig-cap{margin-top:6px;font-size:11.5px;color:var(--mut);text-align:center;font-style:italic}

.rv-card{background:linear-gradient(180deg,rgba(127,127,127,.07),rgba(127,127,127,.02));border:1px solid var(--bord);border-radius:16px;padding:18px 20px;margin-top:16px}
.rv-card-warn{border-color:rgba(251,113,133,.35);background:linear-gradient(180deg,rgba(251,113,133,.06),rgba(127,127,127,.02))}
.rv-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid var(--bord)}
.rv-h-l{min-width:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.rv-h-t{font-family:'Sora',sans-serif;font-weight:800;font-size:18px;color:var(--txt);letter-spacing:-.01em}
.rv-h-s{font-size:13px;color:var(--mut)}
.rv-src{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--txt);background:rgba(127,127,127,.12);border:1px solid var(--bord);border-radius:999px;padding:6px 12px;white-space:nowrap}
.rv-src-star{color:var(--warn)}
.rv-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:12px}
.rv-item{position:relative;display:flex;flex-direction:column;gap:9px;overflow:hidden;background:var(--card,rgba(255,255,255,.02));border:1px solid var(--bord);border-radius:14px;padding:14px 15px;transition:transform .14s ease,box-shadow .14s ease,border-color .14s}
.rv-item:hover{transform:translateY(-2px);border-color:rgba(125,211,252,.45)}
.rv-item::before{content:"\201C";position:absolute;bottom:2px;right:14px;font-family:Georgia,serif;font-size:42px;line-height:1;color:rgba(125,211,252,.10);pointer-events:none;z-index:0}
.rv-item>*{position:relative;z-index:1}
.rv-pos{border-left:3px solid var(--ok)}.rv-mid{border-left:3px solid var(--warn)}.rv-neg{border-left:3px solid var(--bad)}
.rv-stars{letter-spacing:1.5px;font-size:13px}.rv-st{color:var(--warn)}.rv-st-e{color:rgba(127,127,127,.4)}
.rv-txt{font-size:13.5px;line-height:1.55;color:var(--txt);position:relative;z-index:1}
.rv-foot{display:flex;align-items:center;gap:10px;margin-top:auto}
.rv-av{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:12.5px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.rv-who{display:flex;flex-direction:column;min-width:0}.rv-who b{font-size:13px;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-date{font-size:11px;color:var(--mut)}
.rv-act-row{margin-top:4px;padding-top:10px;border-top:1px dashed var(--bord)}
.rv-hint{font-size:12px;color:var(--bad);font-weight:700;margin-bottom:8px}
.rv-act-btn{width:100%;background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.4);color:var(--ok);border-radius:10px;padding:8px 12px;cursor:pointer;font-family:inherit;font-weight:800;font-size:12.5px;transition:background .12s}
.rv-act-btn:hover{background:rgba(52,211,153,.22)}
.rv-item-done{opacity:.92}.rv-item-done::before{color:rgba(52,211,153,.16)}
.rv-done{display:block;font-size:12px;font-weight:700;color:var(--ok)}
.rv-done-by{color:var(--mut);font-weight:500}
.rv-undo{background:none;border:0;color:var(--info-2);cursor:pointer;font-family:inherit;font-size:12px;text-decoration:underline;padding:0 0 0 4px}
.rv-nav{display:inline-flex;gap:6px}
.rv-navb{background:rgba(127,127,127,.12);border:1px solid var(--bord);color:var(--txt);border-radius:999px;padding:7px 14px;cursor:pointer;font-family:inherit;font-weight:700;font-size:12.5px;transition:border-color .12s,background .12s}
.rv-navb:hover{border-color:#0ea5e9;background:rgba(14,165,233,.12)}
.rv-carousel{display:flex;align-items:center;gap:10px}
.rv-carousel>.rv-list{flex:1;min-width:0;display:flex;flex-wrap:nowrap;gap:10px}
.rv-carousel .rv-item{flex:1 1 0;min-width:0;padding:12px 13px;gap:6px}
.rv-carousel .rv-item::before{font-size:32px;bottom:2px;top:auto}
.rv-carousel .rv-stars{font-size:11.5px}
.rv-carousel .rv-txt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;line-height:1.45;min-height:0}
.rv-carousel .rv-av{width:26px;height:26px;font-size:10.5px}
.rv-carousel .rv-who b{font-size:12px}
a.rv-item{text-decoration:none;color:inherit}
@media(max-width:900px){.rv-carousel .rv-item:nth-child(n+3){display:none}}

.rv-carousel{align-items:stretch}
.rv-carousel .rv-txt{display:block;-webkit-line-clamp:none;overflow:visible;font-size:13px;line-height:1.55}
.rv-carousel .rv-item{min-height:200px}
.th-sla-bar{margin-top:18px}
a.rv-src{text-decoration:none;cursor:pointer}a.rv-src:hover{border-color:var(--warn)}
/* The reviews PANEL shares the .rv-card name with an unrelated flex-row card defined later;
   that later rule forces display:flex and squashes the panel into a narrow column. Restore
   the panel (header on top, full-width responsive card grid) by targeting cards that hold a list. */
.rv-card:has(.rv-list){display:block;padding:18px 20px}
.rv-card-warn:has(.rv-list){border:1px solid rgba(251,113,133,.35)}

.cx-contact{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.cx-cr{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:9px 12px;font-size:13px}
.cx-cr-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-pri{font-size:10px;background:rgba(125,211,252,.18);color:#0369a1;border-radius:20px;padding:1px 7px;margin-left:6px;font-weight:700}
.cx-mini{background:rgba(127,127,127,.12);border:1px solid var(--bord);color:var(--txt);border-radius:8px;padding:5px 10px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:700;white-space:nowrap}
.cx-mini:hover{border-color:#0ea5e9}.cx-mini.cx-rm{color:var(--bad)}
.cx-addrow{display:flex;gap:8px;margin-top:2px}
.cx-del{color:var(--bad) !important;border-color:var(--bad) !important}
.cx-err{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(251,113,133,.12);border:1px solid rgba(251,113,133,.45);color:#b91c1c;font-size:13px;line-height:1.5}
.cx-err a{color:#0369a1;font-weight:700}
.overlay .panel .cx-cr,.overlay .panel .cx-contact{color:#16325c}
.overlay .panel .cx-mini{color:#16325c}
.imp-sum{margin:12px 0 8px;font-size:13px}
.imp-list{max-height:210px;overflow:auto;display:flex;flex-direction:column;gap:5px}
.imp-row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:7px 10px;border-radius:8px;border:1px solid var(--bord)}
.imp-ok{background:rgba(52,211,153,.10)}.imp-dup{background:rgba(148,163,184,.12)}.imp-bad{background:rgba(251,113,133,.12)}
/* ── BULK IMPORT RULES + row states (sales feedback #4) ───────────────────────────────────
   warn   = same name, different phone → imported, BDM decides
   review = broke a rule (no name / bad phone / foreign number) → imported, flagged, nothing lost
   dup    = same phone or email → the ONLY state we skip */
.imp-warn{background:rgba(251,191,36,.14)}
/* the "Excel ate the leading 0" confirmation prompt */
.imp-confirm{background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.42);border-radius:10px;padding:11px 14px;margin:10px 0}
.imp-confirm-h{font-size:12.5px;font-weight:800;color:var(--warn);margin-bottom:5px}
.imp-confirm-b{font-size:12px;line-height:1.6;color:var(--txt);opacity:.9}
.imp-confirm-l{margin:7px 0;font-family:ui-monospace,monospace;font-size:11.5px;line-height:1.75;color:var(--txt);opacity:.95}
.imp-confirm-l b{color:var(--warn)}
.imp-confirm-c{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12.5px;font-weight:700;color:var(--txt);cursor:pointer}
.overlay .panel .imp-confirm-b,.overlay .panel .imp-confirm-l,.overlay .panel .imp-confirm-c{color:var(--txt)!important}
.imp-review{background:rgba(232,121,249,.14)}
.imp-rules{background:rgba(56,189,248,.07);border:1px solid rgba(56,189,248,.30);border-radius:10px;padding:11px 14px;margin:8px 0 12px}
.imp-rules-h{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--info-2);margin-bottom:7px}
.imp-rules ul{margin:0;padding-left:17px}
.imp-rules li{font-size:12.2px;line-height:1.65;color:var(--txt);opacity:.9}
.imp-rules li b{color:var(--info-2);opacity:1}
.overlay .panel .imp-rules li,.overlay .panel .imp-rules-h{color:var(--txt)!important}
/* badges on the leads row */
.lz-rev,.lz-warn{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:800;vertical-align:middle;white-space:nowrap}
.lz-rev{background:rgba(232,121,249,.16);color:#e879f9;border:1px solid rgba(232,121,249,.45)}
.lz-warn{background:rgba(251,191,36,.16);color:var(--warn);border:1px solid rgba(251,191,36,.45)}
.imp-tag{flex:0 0 auto;font-weight:700}
.overlay .panel .imp-row,.overlay .panel .imp-sum{color:#16325c}
.rv-arrow{flex:0 0 auto;align-self:center;width:42px;height:42px;border-radius:50%;background:rgba(127,127,127,.12);border:1px solid var(--bord);color:var(--txt);font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s,border-color .12s,transform .1s}
.rv-arrow:hover{background:#0ea5e9;border-color:#0ea5e9;color:#04121f;transform:scale(1.08)}
@media(max-width:640px){.rv-arrow{width:34px;height:34px;font-size:18px}}

.we-wrap{max-width:1000px}
.we-head{margin:20px 0 24px}
.we-eyebrow{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;color:var(--info-2)}
.we-title{font-family:'Sora',sans-serif;font-size:27px;font-weight:800;color:var(--txt);margin:5px 0;letter-spacing:-.02em}
.we-meta{font-size:13px;color:var(--mut)}
.we-card{padding:28px 30px !important;border-radius:16px;margin-bottom:26px}
.we-card h3{font-family:'Sora',sans-serif;font-size:20px;margin:0 0 18px;color:var(--txt)}
.we-wrap .eval-prompt{padding:18px 20px;margin:0}
/* A task the student left BLANK (Arifur, 9 Aug 2026). It used to be dropped from this screen
   entirely, which also let it fall out of the published band. Amber, not red — the teacher is being
   told a fact, not warned of an error. */
.we-card.we-blank{border-color:rgba(217,119,6,.42)}
.we-na{font-family:'Sora',sans-serif;font-size:12px;font-weight:800;letter-spacing:.04em;
  padding:4px 11px;border-radius:999px;margin-left:10px;vertical-align:middle;
  color:var(--warn,#d97706);background:rgba(217,119,6,.13);border:1px solid rgba(217,119,6,.34)}
.we-na-box{margin-top:16px;padding:14px 16px;border-radius:12px;font-size:13.5px;line-height:1.65;
  color:var(--txt);background:rgba(217,119,6,.09);border:1px solid rgba(217,119,6,.28)}
.we-chip-na{font-weight:700;color:var(--warn,#d97706);white-space:nowrap}
.we-wrap .eval-ans-h{margin-top:24px;margin-bottom:8px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.we-wrap .answer-box{padding:20px 22px !important;line-height:1.75;border-radius:14px;font-size:14.5px}
.we-wrap .wa-panel{margin-top:22px}
.we-marks{margin-top:26px}
.we-sec-h{font-family:'Sora',sans-serif;font-weight:800;font-size:15px;color:var(--txt);margin:0 0 16px;padding-top:22px;border-top:1px solid var(--bord)}
.we-sec-s{font-weight:500;font-size:12.5px;color:var(--mut);margin-left:6px}
.we-crit{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;margin-bottom:12px;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:14px;transition:border-color .12s,background .12s}
.we-crit:hover{border-color:rgba(125,211,252,.45);background:rgba(125,211,252,.06)}
.we-crit-l{min-width:0}
.we-crit-n{font-weight:700;font-size:14.5px;color:var(--txt)}
.we-crit-h{font-size:12px;color:var(--mut);margin-top:4px;line-height:1.5}
.we-sel{flex:0 0 auto;min-width:128px;padding:11px 14px;border-radius:12px;border:1px solid var(--bord);background:rgba(127,127,127,.10);color:var(--txt);font-family:inherit;font-weight:700;font-size:14px;cursor:pointer}
.we-sel:focus{outline:none;border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.20)}
.we-remarks{margin-top:24px !important}
.we-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.we-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:20px 0 24px}
.we-head-l{min-width:0;flex:1}
/* v1.121 — re-evaluation banner. Amber, not red: correcting a paper is normal, careful work, not an
   error state. Only ever rendered when the paper already carries marks. */
.we-reeval{border:1px solid rgba(245,158,11,.42);background:rgba(245,158,11,.10);border-radius:12px;padding:13px 15px;margin:0 0 20px}
.we-reeval-h{font-weight:700;font-size:14.5px;margin-bottom:5px}
.we-reeval-b{font-size:13.3px;line-height:1.55;color:var(--mut)}
.we-reeval-fix{margin-top:9px;padding-top:9px;border-top:1px dashed rgba(245,158,11,.38);font-size:13.3px;line-height:1.55}
.we-mock-bands{display:flex;gap:10px;flex-wrap:wrap}
.we-bandcard{min-width:84px;text-align:center;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:12px;padding:12px 16px}
.we-bandcard.we-bc-empty{opacity:.55}
.we-bc-v{font-family:'Sora',sans-serif;font-size:22px;font-weight:800;color:#0ea5e9}
.we-bc-l{font-size:10.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.4px;margin-top:2px}
/* Teachers open the Listening/Reading answers from these cards (Arifur, 7 Aug) — they need to
   verify the questions and give the student feedback, which a band number alone cannot do. */
.we-bandcard.we-bc-link{cursor:pointer;transition:border-color .15s,background .15s,transform .1s}
.we-bandcard.we-bc-link:hover{border-color:#0ea5e9;background:rgba(14,165,233,.08);transform:translateY(-1px)}
.we-bandcard.we-bc-link:focus-visible{outline:2px solid #0ea5e9;outline-offset:2px}
.we-bc-go{font-size:9.5px;color:#0ea5e9;font-weight:700;margin-top:5px;letter-spacing:.3px}
/* v1.477 (ANik 18 Oct: "teachers need to see candidate's L&R score when they mark writing") — the Listening & Reading strip under
   the candidate's name on the marking screen (renderEvaluate · teachLR): band, raw score, "not taken" / "—". Layout only; the cards
   keep the .we-bandcard look and its colours. */
.we-lr{margin:-8px 0 22px}
.we-lr-t{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--mut);margin:0 0 8px}
.we-lr-row .we-lr-c{flex:1 1 150px;max-width:230px;text-align:left;padding:12px 16px}
.we-lr-c .we-bc-l{margin:0 0 2px}
.we-lr-c .we-bc-v{min-height:1.25em}
.we-lr-raw{font-size:12.5px;color:var(--mut);margin-top:2px}
@media(max-width:520px){.we-lr-row .we-lr-c{flex:1 1 0;min-width:0;max-width:none;padding:10px 12px}}
/* v1.477 (audit LOW) — the teacher Writing queue / waiting-for-Speaking tables scroll inside their card on a phone instead of
   widening the page; the L / R cell key (teachLRTd) is hidden unless Lumen stacks the rows (lumen.css 21.T-teach). */
.tw-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
/* …which needs the TeachCloud wrapper held to the screen: .sf-wrap centres itself with margin:0 auto, so as a flex item it is sized to its
   content and a wide table widened the whole page (Classic, 390 px: 1075 px before the L/R columns). Lumen pins it the same way
   (lumen.css §15 PHONE CONTAINMENT). */
@media(max-width:760px){.sf-wrap.th-wrap{width:100%;min-width:0}}
.tlr-k{display:none}
.we-split{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px;align-items:start}
.we-split .we-sec-h{margin-top:0;padding-top:0;border-top:none}
.we-split-r .we-crit{flex-direction:column;align-items:stretch;gap:9px}
.we-split-r .we-sel{width:100%}
@media(max-width:860px){.we-split{grid-template-columns:1fr;gap:16px}}

.overlay .panel .cx-contact{display:flex;flex-direction:column;gap:8px;margin:10px 0 0}
.overlay .panel .cx-cr{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f7fb;border:1px solid #dde5f0;border-radius:12px;padding:11px 14px;font-size:13.5px;color:#16325c}
.overlay .panel .cx-cr-v{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;display:flex;align-items:center;gap:8px}
.overlay .panel .cx-pri{font-size:10px;background:#dbeafe;color:#1d4ed8;border-radius:20px;padding:2px 9px;font-weight:800;letter-spacing:.3px}
.overlay .panel .cx-mini{flex:0 0 auto;background:#fff;border:1px solid #cbd5e1;color:#0369a1;border-radius:10px;padding:8px 14px;cursor:pointer;font-family:inherit;font-size:12.5px;font-weight:700;white-space:nowrap}
.overlay .panel .cx-mini:hover{border-color:#0ea5e9;background:#eff6ff}
.overlay .panel .cx-mini.cx-rm{color:#dc2626;border-color:#fecaca}
.overlay .panel .cx-mini.cx-rm:hover{background:#fef2f2;border-color:#dc2626}
.overlay .panel .cx-tag{font-size:11px;color:#64748b;font-weight:600}
.overlay .panel .cx-addrow{display:flex;gap:10px;margin:12px 0 4px}
.overlay .panel .cx-add{flex:1;text-align:center;background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.overlay .panel .cx-add:hover{background:#dbeafe}
.overlay .panel .cx-edit{background:#fff !important;border:1px solid #cbd5e1 !important;color:#16325c !important;border-radius:10px;padding:9px 11px;font-weight:600}
.overlay .panel .cx-fields .cx-f small{color:#64748b}

.overlay .panel .cx-flow{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.overlay .panel .cx-sp{background:#eef4fb;border:2px solid #64748b;color:#16325c;border-radius:10px;padding:8px 14px;cursor:pointer;font-family:inherit;font-weight:800;font-size:13px;clip-path:none}
.overlay .panel .cx-sp:hover{border-color:#0ea5e9;background:#e0f2fe}
.overlay .panel .cx-sp.on{background:#0176d3;border-color:#0176d3;color:#fff;box-shadow:0 2px 8px rgba(1,118,211,.35)}

.overlay .panel .cx-cr-v{flex:1}

.overlay .panel .cx-acts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:6px 0 4px}
.overlay .panel .cx-act{display:flex;flex-direction:column;align-items:center;gap:3px;border-radius:12px;padding:11px 10px;text-decoration:none;min-width:0;transition:background .15s ease}
.cx-act .cx-act-t{display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:800}
.cx-act .cx-act-s{font-size:11.5px;font-weight:600;opacity:.92;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.overlay .panel .cx-act.call{background:#0ea5e9;color:#fff}
.overlay .panel .cx-act.call:hover{background:#0284c7}
.overlay .panel .cx-act.wa{background:#25d366;color:#04210f}
.overlay .panel .cx-act.wa:hover{background:#1da856}
.overlay .panel .cx-act.email{background:#6366f1;color:#fff}
.overlay .panel .cx-act.email:hover{background:#4f46e5}
.overlay .panel .cx-act.email,.overlay .panel .cx-act.email:hover,.overlay .panel .cx-act.email:focus,.overlay .panel .cx-act.email .cx-act-t,.overlay .panel .cx-act.email .cx-act-s{color:#fff!important}

.overlay .panel .cx-cr{gap:14px}
.overlay .panel .cx-cr .cx-mini{flex:0 0 auto;width:max-content;min-width:max-content;white-space:nowrap;overflow:visible;text-align:center}

.overlay .panel input:not([type=checkbox]):not([type=radio]),.overlay .panel select,.overlay .panel textarea{background:#fff;border:1.5px solid #94a3b8;color:#0f172a;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600;box-sizing:border-box;color-scheme:light}
.overlay .panel select{font-weight:700;appearance:auto;cursor:pointer}
.overlay .panel select option{background:#fff;color:#0f172a;font-weight:600}
.overlay .panel input:hover,.overlay .panel select:hover,.overlay .panel textarea:hover{border-color:#64748b}
.overlay .panel input:focus,.overlay .panel select:focus,.overlay .panel textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.20)}
.overlay .panel input::placeholder,.overlay .panel textarea::placeholder{color:#94a3b8;font-weight:500}

.cx-dt{display:flex;gap:8px;align-items:stretch}
.cx-dt #cx-ndate{flex:1;min-width:0}
.overlay .panel .cx-dt{display:flex;gap:8px;align-items:stretch;color-scheme:light}
.overlay .panel .cx-dt #cx-ndate{flex:1;min-width:0;color-scheme:light}
.overlay .panel .cx-dt .cx-timebtn{flex:0 0 auto;display:inline-flex;align-items:center;background:#eff6ff;border:1.5px solid #2563eb;color:#1e40af;font-weight:800;border-radius:10px;padding:10px 14px;cursor:pointer;white-space:nowrap;font-size:13px}
.overlay .panel .cx-dt .cx-timebtn:hover{background:#2563eb;color:#fff}

.cx-pd{display:flex;gap:8px}
.cx-pd-box{flex:1;display:flex;flex-direction:column;gap:2px;padding:8px 11px;border-radius:10px;border:1.5px solid;text-align:left}
.cx-pd-l{font-size:11px;font-weight:800;letter-spacing:.02em;opacity:.9}
.cx-pd-v{font-size:16px;font-weight:800}
.cx-pd-paid{background:#ecfdf5;border-color:#10b981;color:#065f46}
.cx-pd-due{background:#fef2f2;border-color:#f43f5e;color:#9f1239}

.overlay .panel .cx-log{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.overlay .panel .cx-log textarea{order:-1;flex:1 1 100%;width:100%;min-height:84px;resize:vertical;font-family:inherit;line-height:1.45;background:#fff;border:1.5px solid #94a3b8;color:#0f172a;border-radius:10px;padding:10px 12px;box-sizing:border-box}
.overlay .panel .cx-log textarea::placeholder{color:#94a3b8;font-weight:500}
.overlay .panel .cx-log select{flex:0 0 auto;min-width:130px}
.overlay .panel .cx-log .btn{flex:0 0 auto;margin-left:auto;padding:10px 22px}

.tw-overlay{position:fixed;inset:0;z-index:10000;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center}
.tw-panel{background:#fff;border-radius:20px;padding:20px 22px;width:300px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.tw-title{font-weight:800;color:#16325c;text-align:center;margin-bottom:12px;font-size:16px}
.tw-wrap{position:relative;display:flex;justify-content:center;align-items:stretch;gap:2px;height:200px}
.tw-band{position:absolute;left:6px;right:6px;top:80px;height:40px;background:rgba(37,99,235,.10);border-top:2px solid #2563eb;border-bottom:2px solid #2563eb;border-radius:10px;pointer-events:none}
.tw-col{height:200px;overflow-y:scroll;scroll-snap-type:y mandatory;padding:80px 0;scrollbar-width:none;text-align:center;min-width:62px;-webkit-overflow-scrolling:touch}
.tw-col::-webkit-scrollbar{display:none}
.tw-opt{height:40px;line-height:40px;scroll-snap-align:center;font-size:22px;font-weight:800;color:#16325c}
.tw-colon{align-self:center;font-size:24px;font-weight:800;color:#16325c;padding-bottom:2px}
.tw-acts{display:flex;gap:10px;margin-top:14px}
.tw-acts .btn{flex:1}

.overlay .panel .cx-flow{display:flex;align-items:center;flex-wrap:nowrap;gap:4px}
.overlay .panel .cx-flow .cx-sp{flex:1 1 0;min-width:0;padding:8px 4px;font-size:12.5px;white-space:nowrap}
.overlay .panel .cx-flow .cx-arrow{padding:0;font-size:13px}
/* v1.356 (portal audit 30 Sep) — at phone width "Contacted" spilled out of its stage button over the » arrows; drop the arrows and tighten the type there */
@media(max-width:560px){.overlay .panel .cx-flow .cx-arrow{display:none}.overlay .panel .cx-flow{gap:4px}.overlay .panel .cx-flow .cx-sp{font-size:11.5px;padding:8px 2px}}
.overlay .panel .cx-arrow{flex:0 0 auto;display:inline-flex;align-items:center;align-self:center;color:#94a3b8;font-weight:800;font-size:16px;line-height:1;padding:0 1px;user-select:none}

.overlay .panel .cx-contact{display:flex;flex-direction:column;gap:10px}
.overlay .panel .cx-cr{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
.overlay .panel .cx-cr-v{flex:1;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden}
.overlay .panel .cx-cr-ic{flex:0 0 auto}
.overlay .panel .cx-cr-tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.overlay .panel .cx-cr-acts{flex:0 0 auto;display:flex;align-items:center;gap:8px;justify-content:flex-end}
.overlay .panel .cx-cr-acts .cx-mini{flex:0 0 auto}
.overlay .panel .cx-cr-acts .cx-add{background:#eff6ff;border:1.5px solid #bfdbfe;color:#1d4ed8;font-weight:700}
.overlay .panel .cx-cr-acts .cx-add:hover{background:#dbeafe}

.ask-panel{width:380px;text-align:left}
.ask-title{font-weight:800;color:#16325c;font-size:16px;margin-bottom:6px}
.ask-label{color:#5c6b80;font-size:12.5px;margin-bottom:10px;line-height:1.4}
.ask-panel .ask-input{width:100%;background:#fff;border:1.5px solid #94a3b8;color:#0f172a;border-radius:10px;padding:11px 13px;font-size:15px;font-weight:600;box-sizing:border-box;color-scheme:light}
.ask-panel .ask-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.ask-err{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:8px 10px;font-size:12.5px;font-weight:600;margin-top:10px}

.tw-panel .tw-acts .btn:not(.primary){background:#fff;border:1.5px solid #cbd5e1;color:#16325c;font-weight:700}
.tw-panel .tw-acts .btn:not(.primary):hover{background:#f1f5f9;border-color:#94a3b8;transform:none}

.ask-panel .ask-phone{display:flex;gap:8px}
.ask-panel .ask-phone .ask-cc{flex:0 0 auto;width:auto;min-width:106px;background:#fff;border:1.5px solid #94a3b8;border-radius:10px;color:#0f172a;font-size:14px;font-weight:700;padding:11px 8px;box-sizing:border-box;color-scheme:light;cursor:pointer}
.ask-panel .ask-phone .ask-cc:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.ask-panel .ask-phone .ask-input{flex:1;min-width:0}

:root{
  --ds-ctl-h:42px;          
  --ds-ctl-pad:10px 13px;
  --ds-radius:10px;
  --ds-bd:#94a3b8;          
  --ds-bd-focus:#2563eb;
  --ds-ring:0 0 0 3px rgba(37,99,235,.20);
  --ds-ink:#0f172a;         
  --ds-ink-soft:#64748b;    
  --ds-field-gap:14px;      
}

.overlay .panel .cx-fields{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-field-gap);align-items:stretch}
.overlay .panel .cx-f{display:flex;flex-direction:column;gap:6px;justify-content:flex-start;background:#f7f9fb;border:1px solid #e2e8f0;border-radius:12px;padding:11px 13px;min-width:0}
.overlay .panel .cx-f small{margin:0;color:var(--ds-ink-soft);font-size:10.5px;letter-spacing:.4px;text-transform:uppercase;font-weight:700}
.overlay .panel .cx-f>b{font-size:15px;font-weight:800;color:#16325c;display:flex;align-items:center;min-height:var(--ds-ctl-h)}

.overlay .panel{--ds-field-gap:16px}
.overlay .panel .cx-fields{align-items:stretch}
.overlay .panel .cx-fields .cx-f>*:last-child{margin-top:auto}
.overlay .panel .cx-fields .cx-f small{line-height:1.3;margin-bottom:0}
.overlay .panel .cx-fields .cx-f{background:#f8fafc;border:1px solid #e6ebf2}
.overlay .panel .cx-fields .cx-f:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}

.overlay .panel .cx-refac{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;background:#fff;border:1px solid #d4deeb;border-radius:12px;box-shadow:0 14px 36px rgba(15,40,80,.18);max-height:236px;overflow-y:auto;display:none;padding:5px}
.overlay .panel .cx-refac.on{display:block}
.overlay .panel .cx-refac-it{padding:9px 12px;border-radius:8px;font-size:14px;color:#1c2c44;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.overlay .panel .cx-refac-it:hover{background:#eef4fb}
.overlay .panel .cx-refac-it.on{background:#e6f0fd;color:#0b3d91}
.overlay .panel .cx-refac-it b{color:#0b63d6;font-weight:800}
.overlay .panel .cx-sec{color:#2563eb;font-weight:800;margin-top:20px}

.lc-log{background:#eef5ff;border:1.5px solid #bcd6f5;border-radius:14px;padding:14px 16px;margin-bottom:2px}
.lc-log-h{font-weight:800;color:#16325c;font-size:14px;margin-bottom:10px}
.lc-log-h .cx-mut{display:block;margin-top:3px;font-weight:600;color:#5c6b80;font-size:12.5px}
.overlay .panel .lc-log .lc-log-body{display:flex;flex-direction:column;gap:8px}
.overlay .panel .lc-log .lc-log-body select{width:auto;align-self:flex-start;min-width:150px}
.overlay .panel .lc-log .lc-log-body textarea{width:100%;min-height:62px;resize:vertical}
.lc-next{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:12px}
.lc-next-l{font-size:12px;color:#5c6b80;font-weight:700}
.lc-next-quick{display:flex;gap:8px}
.lc-next-quick button[data-lnext],.lc-next-quick button[data-newnext]{flex:1}
.lc-next button[data-lnext],.lc-next button[data-newnext]{background:#fff;border:1.5px solid #bcd6f5;color:#1d4ed8;border-radius:8px;padding:8px 10px;font-size:12.5px;font-weight:700;cursor:pointer}
.lc-next button[data-lnext].on,.lc-next button[data-lnext]:hover,.lc-next button[data-newnext].on,.lc-next button[data-newnext]:hover{background:#2563eb;color:#fff;border-color:#2563eb}
.overlay .panel .lc-next #cx-lnext-d,.overlay .panel .lc-next #cx-lnext-t{width:100%;min-width:0;max-width:none;flex:0 0 auto}
.lc-next .lc-logbtn{margin-left:0;width:100%;justify-content:center}

.lc-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;margin-top:16px;align-items:start}
.lc-left,.lc-right{min-width:0}
.lc-right .lc-log{margin-top:0}
.lc-del-row{margin-top:18px;text-align:right;border-top:1px solid #eef1f5;padding-top:14px}
.overlay .panel .lc-left .cx-fields{grid-template-columns:1fr 1fr}

.overlay .panel .lc-left .cx-cr{flex-wrap:nowrap;gap:12px}
.overlay .panel .lc-left .cx-cr .cx-cr-v{flex:0 1 auto;min-width:0;overflow:visible}
.overlay .panel .lc-left .cx-cr .cx-cr-tx{overflow:visible;text-overflow:clip;font-size:14px}
.overlay .panel .lc-left .cx-cr .cx-cr-acts{flex:0 0 auto;margin-left:auto;justify-content:flex-end;flex-wrap:nowrap}
@media(max-width:600px){.overlay .panel .lc-left .cx-cr{flex-wrap:wrap}.overlay .panel .lc-left .cx-cr .cx-cr-v{flex:1 1 100%}.overlay .panel .lc-left .cx-cr .cx-cr-acts{flex:1 1 100%;margin-left:0;justify-content:flex-start}}
.overlay .panel .cx-phone select{min-width:122px}
@media(max-width:860px){.lc-grid{grid-template-columns:1fr}}

.overlay .panel :is(input,select,textarea):not([type=checkbox]):not([type=radio]){
  width:100%;min-width:0;min-height:var(--ds-ctl-h);padding:var(--ds-ctl-pad);
  border:1.5px solid var(--ds-bd);border-radius:var(--ds-radius);
  background:#fff;color:var(--ds-ink);font:inherit;font-size:14px;font-weight:600;
  box-sizing:border-box;color-scheme:light}
.overlay .panel :is(input,select,textarea):not([type=checkbox]):not([type=radio]):hover{border-color:#64748b}
.overlay .panel :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus{outline:none;border-color:var(--ds-bd-focus);box-shadow:var(--ds-ring)}
.overlay .panel select{cursor:pointer;appearance:auto}
.overlay .panel textarea{min-height:84px;resize:vertical;line-height:1.45}
.overlay .panel ::placeholder{color:#94a3b8;font-weight:500}

.overlay .panel .cx-fields+div,.overlay .panel .tw-acts{align-items:center}

.sh-dtline{font-size:12.5px;font-weight:700;color:var(--info-2);letter-spacing:.02em;margin-bottom:10px;opacity:.95}
.dash-hero .th-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.dash-hero .th-hero-top .dash-hero-l{min-width:0}
.sh-dt-top{flex:0 0 auto;margin:0;text-align:right;white-space:nowrap}
.sh-dt-day{font-size:16px;font-weight:700;color:var(--info-2);margin-top:0}
.sh-dt-date{font-size:12.5px;font-weight:600;color:var(--mut-5);margin-top:2px}
.sh-dt-time{font-family:Sora,Inter,sans-serif;font-size:38px;font-weight:800;line-height:1;color:var(--ink-hi);letter-spacing:-.01em;margin-top:5px}
.sh-dt-ap{font-size:17px;font-weight:700;color:var(--info-2);margin-left:3px;letter-spacing:.02em}
.th-toprow{align-items:flex-start}
.dash-hero .sales-cards{align-items:stretch}
.dash-hero .sales-cards>*{align-self:stretch}
.sh-right{flex:0 0 43%;min-width:0;display:flex;flex-direction:column;gap:18px}
.sh-right .nm-card{flex:1;margin:0}
.sh-right .nm-count{white-space:nowrap}

.sh-wxbox{background:var(--glass);border:1px solid var(--bord);border-radius:16px;padding:18px 20px}
.sh-wx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;border-bottom:1px solid var(--bord);padding-bottom:14px}
.sh-wx-when{display:flex;flex-direction:column;align-items:flex-start}
.sh-wxbox .sh-dt-day,.sh-wxbox .sh-dt-date,.sh-wxbox .sh-dt-time{text-align:left}
.sh-wxbox .sh-dt-time{margin-top:4px}
.sh-wx-now{text-align:right;min-width:0}
.sh-wx-now .tw-w-top{justify-content:flex-end}
.sh-wx-fc{margin-top:12px}
.nm-card .nm-hd{margin-bottom:8px}

.dash-hero .sales-cards-1{grid-template-columns:1fr}
.dash-hero .sales-cards-1 .sh-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}

.sf-new{box-shadow:0 0 0 1px rgba(var(--accent),.5),0 0 16px rgba(var(--accent),.5),0 4px 14px rgba(2,132,199,.38);animation:sfNewGlow 2.4s ease-in-out infinite}
@keyframes sfNewGlow{0%,100%{box-shadow:0 0 0 1px rgba(var(--accent),.45),0 0 12px rgba(var(--accent),.4),0 4px 14px rgba(2,132,199,.3)}50%{box-shadow:0 0 0 1px rgba(var(--accent),.72),0 0 26px rgba(var(--accent),.72),0 4px 18px rgba(2,132,199,.5)}}

.ab-wrap{display:flex;flex-direction:column;gap:18px}
.ab-hi{font-family:Sora,Inter,sans-serif;font-size:30px;font-weight:800;color:var(--ink-hi);line-height:1.05;letter-spacing:-.01em}
.ab-quote{font-size:13.5px;color:#9fb6cc;margin-top:7px;max-width:640px;line-height:1.45}
.ab-sub{font-size:12.5px;color:#7891a8;margin-top:6px}
.ab-sub-jump{font:inherit;font-weight:700;color:var(--info-2);background:none;border:0;padding:0;cursor:pointer;border-bottom:1px dashed rgba(125,211,252,.5);transition:color .15s,border-color .15s}
.ab-sub-jump:hover,.ab-sub-jump:focus-visible{color:var(--info-4);border-bottom-color:var(--info-4);outline:none}
.ab-sub-arr{display:inline-block;font-weight:800;transition:transform .15s}
.ab-sub-jump:hover .ab-sub-arr{transform:translateY(2px)}
.ab-queue-flash{animation:abQueueFlash 1.3s ease}
@keyframes abQueueFlash{0%,100%{box-shadow:0 0 0 0 rgba(var(--accent),0)}25%{box-shadow:0 0 0 3px rgba(var(--accent),.55)}}
.ab-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ab-toprow{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:18px;align-items:stretch}

.ab-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:18px;align-items:start}
.ab-col-l,.ab-col-r{display:flex;flex-direction:column;gap:16px;min-width:0}
.ab-kpibox{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:12px}
.ab-kr{background:var(--glass-05);border:1px solid var(--bord);border-radius:14px;padding:15px 18px;display:flex;flex-direction:column;justify-content:center}
.ab-kr-blue{border-left:3px solid rgb(var(--accent))}
.ab-kr-amber{border-left:3px solid var(--warn)}
.ab-kr-green{border-left:3px solid var(--ok)}
.ab-kr-cyan{border-left:3px solid #22d3ee}

.srv{background:var(--glass);border:1px solid var(--bord);border-radius:16px;padding:18px 20px}
.srv-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap}
.srv-htitle{flex:1;min-width:0}
.srv-badge{display:flex;align-items:center;gap:11px;background:var(--glass-05);border:1px solid var(--bord);border-radius:12px;padding:8px 15px;text-decoration:none;flex:0 0 auto}
.srv-rate{font-family:Sora,Inter,sans-serif;font-size:28px;font-weight:800;color:var(--warn);line-height:1}
.srv-badge-r{display:flex;flex-direction:column;gap:1px}
.srv-bstars{color:var(--warn);font-size:13px;letter-spacing:1px}
.srv-count{font-size:11.5px;color:var(--mut-5)}
.srv-htitle .srv-t{font-size:15px;font-weight:800;color:var(--ink-hi)}
.srv-htitle .srv-s{font-size:12.5px;color:var(--mut-5);margin-top:2px}
.srv-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(244px,1fr));gap:12px}
.srv-card{background:var(--glass-03);border:1px solid var(--bord);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}
.srv-c-top{display:flex;align-items:center;gap:9px}
.srv-av{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff;flex:0 0 auto}
.srv-c-id{flex:1;min-width:0;display:flex;flex-direction:column}
.srv-c-id b{font-size:13px;color:var(--ink-hi2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srv-c-id span{font-size:11px;color:var(--mut-5)}
.srv-c-stars{color:var(--warn);font-size:12px;flex:0 0 auto;letter-spacing:.5px}
.srv-quote{font-size:13px;color:#cdd9e5;line-height:1.5;flex:1}
.srv-c-acts{display:flex;align-items:center;gap:8px}
.srv-copy{flex:1;background:rgba(var(--accent),.14);border:1px solid rgba(var(--accent),.32);color:var(--info-2);border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer}
.srv-copy:hover{background:rgba(var(--accent),.26)}
.srv-open{font-size:12px;color:var(--mut-5);text-decoration:none;padding:7px 8px;white-space:nowrap}
.srv-open:hover{color:var(--info-2)}
/* v1.327 live Google reviews (grevWidget): profile photo, "more", footer attribution, "Show more" */
img.srv-av{object-fit:cover;padding:0}
.srv-c-id b a.srv-who{color:inherit;text-decoration:none}
.srv-c-id b a.srv-who:hover{text-decoration:underline}
.srv-more{background:none;border:0;color:var(--info-2);font-size:12px;font-weight:700;cursor:pointer;padding:0 2px}
.srv-noq{color:var(--mut-5)}
.srv-copy-x{flex:1}
.srv-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap}
.srv-pby{font-size:11.5px;color:var(--mut-5)}
.srv-showmore{background:var(--glass-05);border:1px solid var(--bord);color:var(--ink-hi2);border-radius:8px;padding:7px 14px;font-size:12px;font-weight:700;cursor:pointer}
html[data-theme="light"] .srv-more{color:var(--info)}
.ab-kr-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ab-kr-l{font-size:16px;color:var(--ink-hi3);font-weight:700}
.ab-kr-v{font-family:Sora,Inter,sans-serif;font-size:24px;font-weight:800;color:var(--ink-hi);letter-spacing:-.01em;white-space:nowrap;margin-top:7px}
.ab-kr-v.g{color:var(--ok)}
.ab-kr-bar{height:6px;background:var(--glass-08);border-radius:999px;overflow:hidden;margin:9px 0 5px}
.ab-kr-bar i{display:block;height:100%;border-radius:999px;background:rgb(var(--accent));transition:width .5s ease}
.ab-kr-blue .ab-kr-bar i{background:rgb(var(--accent))}.ab-kr-amber .ab-kr-bar i{background:var(--warn)}.ab-kr-green .ab-kr-bar i{background:var(--ok)}.ab-kr-cyan .ab-kr-bar i{background:#22d3ee}
.ab-kr-s{font-size:11.5px;color:var(--mut-5);margin-top:5px;text-align:left}
.ab-kr-s + .ab-kr-s{margin-top:2px}

.ab-perf{padding:4px 18px 12px}
.ab-perf-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:12px 0 8px;border-bottom:1px solid var(--bord)}
.ab-perf-t{font-family:Sora,Inter,sans-serif;font-size:15.5px;font-weight:800;color:var(--ink-hi);letter-spacing:-.01em}
.ab-perf-mo{font-size:11px;font-weight:700;color:var(--info-2);text-transform:uppercase;letter-spacing:.05em}
.ab-pf-row{display:flex;align-items:center;gap:13px;padding:11px 0;border-bottom:1px solid rgba(127,127,127,.13)}
.ab-pf-row:last-child{border-bottom:0;padding-bottom:2px}
.ab-pf-ic{flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:var(--glass-06);display:flex;align-items:center;justify-content:center;font-size:17px}
.ab-pf-m{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.ab-pf-lab{font-size:13px;font-weight:700;color:var(--ink-hi3);display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ab-pf-pct{font-size:10.5px;font-weight:700;color:var(--mut-5)}
.ab-pf-sub{font-size:11px;color:var(--mut-5);margin-top:2px}
.ab-pf-bar{height:5px;background:var(--glass-08);border-radius:999px;overflow:hidden;margin:6px 0 1px;max-width:230px}
.ab-pf-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgb(var(--accent)),var(--ok))}
.ab-pf-val{flex:0 0 auto;font-family:Sora,Inter,sans-serif;font-size:18px;font-weight:800;color:var(--ink-hi);letter-spacing:-.01em;white-space:nowrap;text-align:right}
.ab-pf-val.g{color:var(--ok)}
.ab-pf-of{font-size:12px;font-weight:700;color:#8a97af}
@media(max-width:920px){.ab-toprow{grid-template-columns:1fr}.ab-cols{grid-template-columns:1fr}}
.ab-kpi{position:relative;background:var(--glass-045);border:1px solid var(--bord);border-radius:16px;padding:14px 16px 14px 18px;overflow:hidden}
.ab-kpi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}
.ab-kpi-blue::before{background:rgb(var(--accent))}.ab-kpi-amber::before{background:var(--warn)}.ab-kpi-green::before{background:var(--ok)}.ab-kpi-cyan::before{background:#22d3ee}
.ab-kpi-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.ab-kpi-ic{flex:0 0 auto;width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.ab-kpi-blue .ab-kpi-ic{background:rgba(var(--accent),.16)}.ab-kpi-amber .ab-kpi-ic{background:rgba(251,191,36,.16)}.ab-kpi-green .ab-kpi-ic{background:rgba(52,211,153,.16)}.ab-kpi-cyan .ab-kpi-ic{background:rgba(34,211,238,.16)}
.ab-kpi-l{font-size:11px;color:var(--mut-5);font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.ab-kpi-v{font-family:Sora,Inter,sans-serif;font-size:26px;font-weight:800;color:var(--ink-hi);letter-spacing:-.01em;line-height:1}
.ab-kpi-v.g{color:var(--ok)}
.ab-kpi-s{font-size:11.5px;color:var(--mut-5);margin-top:7px}
.ab-kpi-bar{display:block;height:6px;background:var(--glass-08);border-radius:999px;overflow:hidden;margin-top:10px}
.ab-kpi-bar i{display:block;height:100%;background:#22d3ee;border-radius:999px;transition:width .5s ease}
.ab-kpi-blue .ab-kpi-bar i{background:rgb(var(--accent))}
.ab-kpi-amber .ab-kpi-bar i{background:var(--warn)}
.ab-kpi-green .ab-kpi-bar i{background:var(--ok)}
.ab-kpi-cyan .ab-kpi-bar i{background:#22d3ee}
.ab-kpi-chip{display:inline-block;margin-top:11px;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;letter-spacing:.01em}
.ab-kpi-chip.ok{background:rgba(52,211,153,.16);color:var(--ok)}
.ab-kpi-chip.warn{background:rgba(251,191,36,.16);color:var(--warn)}
.ab-kpi-chip.neu{background:rgba(148,163,184,.16);color:var(--mut-7)}
.ab-kpi-chip.cyan{background:rgba(34,211,238,.16);color:rgb(var(--accent))}

.overlay .panel .cx-phone{display:flex;gap:8px;align-items:center}
.overlay .panel .cx-phone select{flex:0 0 auto;width:auto;min-width:88px;padding-left:8px;padding-right:6px}
.overlay .panel .cx-phone input{flex:1;min-width:0}
/* v829 — real inline-SVG country flag beside the dial-code select (emoji flags don't render on Windows) */
.flag-ico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:16px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.flag-ico svg{display:block;width:22px;height:15px}
.flag-ico .flag-iso{font-size:9px;font-weight:800;letter-spacing:.02em;color:#475467;line-height:1}
/* v829 — "contacts needing a correct number" review card (SalesCloud dash + Admin Reviews queue) */
.pb-card{background:#fff;border:1px solid #f0c9a0;border-radius:14px;padding:14px 16px;margin:14px 0;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.pb-card .pb-h{font-weight:800;font-size:14px;color:#a8620a;display:flex;align-items:center;gap:8px}
.pb-card .pb-n{background:#a8620a;color:#fff;font-size:11px;font-weight:800;border-radius:999px;padding:1px 8px}
.pb-card .pb-hint{font-size:12px;color:#8a6d3b;margin:4px 0 10px}
.pb-card .pb-b{display:flex;flex-direction:column;gap:8px}
.pb-card .pb-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #eef0f4;border-radius:10px;background:#fcfcfd}
.pb-card .pb-ic{font-size:18px;flex:0 0 auto}
.pb-card .pb-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.pb-card .pb-main b{font-size:13px;color:#101828}
.pb-card .pb-sub{font-size:11.5px;color:#667085}
.pb-card .pb-more{font-size:12px;color:#667085;padding:2px 4px}
.ab-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:18px;align-items:start}
.ab-queue{padding:18px 20px}
.ab-q-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}
.ab-q-t{font-size:15px;font-weight:800;color:var(--ink-hi)}
.ab-q-c{font-size:12px;color:var(--mut-5)}
.ab-grp{font-size:11px;font-weight:800;letter-spacing:.04em;margin:16px 0 4px;text-transform:uppercase}
.ab-grp.od{color:var(--bad)}.ab-grp.td{color:var(--warn)}.ab-grp.nw{color:var(--info-2)}
.ab-empty{padding:26px 0;color:var(--mut-5);font-size:13px;text-align:center;line-height:1.7}
.ab-rail{display:flex;flex-direction:column;gap:14px}
.ab-rcard{padding:14px 16px}
.ab-r-h{font-size:13px;font-weight:700;color:var(--txt);margin-bottom:10px}
.ab-r-h-row{display:flex;align-items:baseline;justify-content:space-between}
.ab-col-tot{color:var(--bad);font-size:15px}
.ab-bar{height:8px;background:var(--glass-08);border-radius:999px;overflow:hidden}
.ab-bar i{display:block;height:100%;background:rgb(var(--accent))}
.ab-bar-l{display:flex;justify-content:space-between;font-size:12px;color:var(--mut-5);margin-top:6px}
.ab-fn{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.ab-fn-l{font-size:12px;color:var(--mut-5);width:64px}
.ab-fn-tr{flex:1;height:8px;background:var(--glass-08);border-radius:999px;overflow:hidden}
.ab-fn-tr i{display:block;height:100%;background:rgb(var(--accent))}
.ab-fn-v{font-size:12px;font-weight:700;color:var(--ink-hi2);width:22px;text-align:right}
.ab-col{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--glass-06);cursor:pointer}
.ab-col:last-child{border-bottom:0}
.ab-col-n{font-size:13px;color:var(--ink-hi2);font-weight:600}
.ab-col-r{display:flex;align-items:center;gap:8px}
.ab-col-r b{color:var(--bad);font-size:13px}
.ab-col-inv{background:var(--glass-06);border:1px solid var(--bord);border-radius:8px;padding:3px 8px;cursor:pointer;font-size:13px;color:var(--txt)}
.ab-col-inv:hover{background:rgba(var(--accent),.22)}
.ab-eyebrow{font-size:13px;font-weight:700;color:var(--info-2);letter-spacing:.05em;text-transform:uppercase;margin-bottom:2px}
.ab-grp.cl{color:var(--ok)}
.ab-lb{display:flex;align-items:center;gap:8px;padding:5px 0}
.ab-lb-r{width:14px;color:var(--mut-5);font-weight:800;font-size:12px;text-align:center}
.ab-lb-n{flex:0 0 68px;font-size:12.5px;color:var(--ink-hi2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ab-lb-bar{flex:1;height:6px;background:var(--glass-08);border-radius:999px;overflow:hidden}
.ab-lb-bar i{display:block;height:100%;background:rgb(var(--accent))}
.ab-lb-v{font-size:11px;color:var(--mut-5);width:58px;text-align:right}
.ab-lb.me{background:rgba(var(--accent),.12);border-radius:8px;margin:0 -8px;padding:5px 8px}
.ab-lb.me .ab-lb-n{color:var(--info-2);font-weight:800}
.ab-lb.me .ab-lb-bar i{background:var(--info-2)}
.ab-lb-rank{color:var(--warn);font-size:13px;font-weight:800}
.ab-lb-team{color:var(--ok);font-weight:800}
.ab-tt-edit{border:0;background:transparent;color:var(--mut);cursor:pointer;font-size:13px;padding:0 2px;line-height:1}
.ab-tt-edit:hover{color:var(--txt)}

.ab-row{border-left:3px solid transparent;padding-left:13px}
.ab-row.ab-od{border-left-color:var(--bad)}
.ab-row.ab-cl{border-left-color:var(--ok)}
.ab-row.ab-td{border-left-color:var(--warn)}
.ab-row.ab-nw{border-left-color:rgb(var(--accent))}
.ab-row .nm-row-l{display:flex;align-items:center;gap:11px;min-width:0}
.ab-ava{flex:0 0 auto;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:800;letter-spacing:.02em}
.ab-ava-od{background:rgba(251,113,133,.18);color:var(--bad-3)}
.ab-ava-cl{background:rgba(52,211,153,.18);color:var(--ok-2)}
.ab-ava-td{background:rgba(251,191,36,.18);color:var(--warn-2)}
.ab-ava-nw{background:rgba(var(--accent),.18);color:var(--info-2)}
.ab-rmeta{min-width:0;display:flex;flex-direction:column;gap:1px}
.ab-rmeta b{font-size:14px;color:var(--ink-hi2);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ab-row .nm-row-why{font-size:12px;color:var(--mut-5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ab-row .nm-row-r{gap:9px}
.ab-chip{font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:999px;white-space:nowrap;letter-spacing:.02em}
.ab-chip-od{background:rgba(251,113,133,.16);color:var(--bad)}
.ab-chip-cl{background:rgba(52,211,153,.16);color:var(--ok)}
.ab-chip-td{background:rgba(251,191,36,.16);color:var(--warn)}
.ab-chip-nw{background:rgba(var(--accent),.16);color:var(--info-2)}
.ab-fn-cv{font-size:10.5px;color:var(--mut-6);margin:-2px 0 7px 72px}
@media(max-width:980px){.ab-kpis{grid-template-columns:repeat(2,1fr)}.ab-grid{grid-template-columns:1fr}}

.overlay .panel .cx-invrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}
.overlay .panel .cx-invrow .cx-inv{flex:0 0 auto}
.overlay .panel .cx-inv-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.overlay .panel .cx-inv-mut{color:#64748b;font-size:12px}
.overlay .panel .cx-inv-ok{color:#15803d;font-weight:700;font-size:12px}
.sh-weathercard .sc-h{text-align:right;justify-content:flex-end}
.sh-weathercard .tw-weather{margin-top:2px}
.sh-weathercard .tw-cal{margin-top:12px}
@media(max-width:1080px){.sh-right{flex:1 1 100%}}

.overlay .panel .cx-deal{background:linear-gradient(135deg,#dcfce7,#bbf7d0);border:1.5px solid #22c55e;color:#14532d;font-weight:700;box-shadow:0 0 0 3px rgba(34,197,94,.18),0 8px 22px rgba(34,197,94,.28);border-radius:12px;padding:13px 15px}
.overlay .panel .cx-deal b{color:#065f46}.overlay .panel .cx-deal .g{color:#047857}

.cx-kan-col.cx-drop{outline:2px dashed rgb(var(--accent));outline-offset:-4px;background:rgba(var(--accent),.08)}
.cx-pcard{cursor:grab}.cx-pcard.cx-dragging{opacity:.45}

.overlay .panel .cx-acts{display:grid !important;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:6px 0 4px}
.overlay .panel .cx-acts .cx-act{display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center;gap:4px;text-align:center;padding:12px 10px;border-radius:12px;min-width:0;line-height:1.3;text-decoration:none}
.overlay .panel .cx-acts .cx-act .cx-act-t{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:14px;white-space:nowrap}
.overlay .panel .cx-acts .cx-act .cx-act-s{font-size:11px;font-weight:600;opacity:.92;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.we-submit{padding:13px 28px;font-size:15px;font-weight:800;border-radius:12px}
@media(max-width:640px){.we-card{padding:18px 16px !important}.we-crit{flex-direction:column;align-items:flex-start;gap:12px}.we-sel{width:100%}}
.th-sort-hint{color:var(--mut);font-size:12px;font-style:italic;align-self:center}

.rv-card{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:14px;padding:14px 16px;margin-top:16px}
.rv-card-warn{border-color:rgba(251,113,133,.4);background:rgba(251,113,133,.05)}
.rv-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.rv-h-t{font-weight:800;font-size:15px;color:var(--txt)}
.rv-h-s{font-size:12.5px;color:var(--mut);margin-top:2px}
.rv-src{font-size:12px;color:var(--mut);background:rgba(127,127,127,.14);border-radius:20px;padding:4px 10px;white-space:nowrap}
.rv-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:10px}
.rv-item{background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:12px;padding:11px 13px}
.rv-top{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--txt)}
.rv-stars{margin-left:auto;white-space:nowrap}.rv-st{color:var(--warn);letter-spacing:1px}.rv-st-e{color:rgba(127,127,127,.45);letter-spacing:1px}
.rv-date{color:var(--mut);font-size:11.5px;flex:0 0 auto}
.rv-txt{margin-top:6px;font-size:13.5px;color:var(--txt);line-height:1.5;font-style:italic}
.rv-act{margin-top:8px;font-size:12.5px;font-weight:700;color:var(--bad)}
.rv-nav{display:inline-flex;gap:6px}
.rv-navb{background:rgba(127,127,127,.14);border:1px solid var(--bord);color:var(--txt);border-radius:8px;padding:5px 12px;cursor:pointer;font-family:inherit;font-weight:700;font-size:12.5px}
.rv-navb:hover{border-color:#0ea5e9}
.rv-act-btn{margin-top:8px;background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.4);color:var(--ok);border-radius:8px;padding:6px 12px;cursor:pointer;font-family:inherit;font-weight:700;font-size:12px}
.rv-act-btn:hover{background:rgba(52,211,153,.22)}
.rv-item-done{opacity:.9}
.rv-done{margin-top:8px;font-size:12px;font-weight:700;color:var(--ok)}
.rv-done-by{color:var(--mut);font-weight:500}
.rv-undo{background:none;border:0;color:var(--info-2);cursor:pointer;font-family:inherit;font-size:12px;text-decoration:underline;padding:0 0 0 4px}

.as-sub{color:#5c6b80;font-size:12.5px;margin-bottom:10px}
.as-wc{font-size:12.5px;color:#16325c;background:#eef4fb;border-radius:8px;padding:7px 10px;margin-bottom:10px}
.as-wc.as-under{color:#b91c1c;background:#fdecec}
.as-row{border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;margin-bottom:8px}
.as-row-h{display:flex;justify-content:space-between;align-items:center;font-weight:800;color:#16325c;font-size:14px}
.as-band{color:#0176d3;font-size:18px}
.as-fb{margin-top:4px;font-size:13px;color:#41506b;line-height:1.5}
.as-overall{display:flex;justify-content:space-between;align-items:center;background:#0176d3;color:#fff;border-radius:10px;padding:11px 14px;font-weight:800;margin-top:10px}
.as-overall b{font-size:20px}
.as-missing{color:#b91c1c;font-weight:600}
.sf-donut{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.sf-legend{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--txt)}.sf-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:7px}
.sf-gauge{height:14px;background:var(--glass-06);border-radius:8px;overflow:hidden;margin-bottom:6px}.sf-gauge-fl{height:100%;background:linear-gradient(90deg,#22c55e,#4ade80)}.sf-gauge-lab{display:flex;justify-content:space-between;font-size:11.5px;color:var(--mut);margin-bottom:10px}.sf-gauge-lab b{color:var(--txt)}
.sf-slabs{display:flex;flex-direction:column}.sf-slab{display:flex;justify-content:space-between;font-size:12.5px;padding:6px 0;border-bottom:1px solid var(--bord);color:var(--mut)}.sf-slab:last-child{border-bottom:0}.sf-slab.on{color:var(--txt);font-weight:700}.sf-slab b{font-weight:800}
.sf-nudge{margin-top:10px;background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.32);border-radius:10px;padding:9px 12px;font-size:12.5px;color:var(--warn)}.sf-nudge.ok{background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.3);color:var(--ok-2)}
.sf-erntiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.sf-ern{border:1px solid var(--bord);border-radius:12px;padding:10px 12px}
.sf-ern.earned{background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.3)}.sf-ern.proj{background:rgba(var(--accent),.10);border-color:rgba(var(--accent),.3)}
.sf-ern-v{font-size:19px;font-weight:800;color:var(--txt);font-family:'Sora',sans-serif}.sf-ern-l{font-size:11px;color:var(--mut);margin-top:2px}
.sf-lb{display:flex;align-items:center;gap:10px;margin-bottom:9px;font-size:12.5px}.sf-lb-n{flex:0 0 150px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--txt)}.sf-lb-bar{flex:1;height:9px;background:var(--glass-06);border-radius:5px;overflow:hidden}.sf-lb-bar i{display:block;height:100%;background:linear-gradient(90deg,#0ea5e9,#22d3ee)}.sf-lb b{font-weight:800;color:var(--txt)}

.sf-seats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.sf-seat{background:var(--glass);border:1px solid var(--bord);border-radius:12px;padding:14px 15px}
.sf-seat-n{font-size:13px;font-weight:700;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sf-seat-m{font-size:11px;color:var(--mut);margin:2px 0 8px}
.sf-seat-bar{height:7px;border-radius:5px;background:var(--glass-07);overflow:hidden}.sf-seat-bar i{display:block;height:100%;border-radius:5px}
.sf-seat-l{font-size:12px;font-weight:800;margin-top:6px}
.seat-open{color:var(--ok-2)}.seat-open i{background:var(--ok)}.seat-fill{color:var(--warn)}.seat-fill i{background:var(--warn)}.seat-full{color:var(--bad)}.seat-full i{background:var(--bad)}

.sf-hero{display:flex;align-items:center;gap:16px;flex:1;min-width:0}
.sf-hi{font-family:'Sora',sans-serif;font-size:21px;font-weight:800}
.sf-hi-sub{font-size:12.5px;color:var(--mut);margin-top:2px}
.sf-quick{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.sf-qbtn{background:var(--glass-05);border:1px solid var(--bord);border-radius:10px;padding:8px 13px;color:var(--txt);font-weight:700;font-size:12.5px;cursor:pointer;font-family:inherit;white-space:nowrap}
.sf-qbtn:hover{border-color:#22d3ee}.sf-qbtn.primary{background:var(--grad);color:#04121f;border:0}

.cx-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.cx-chip{background:var(--glass-05);border:1px solid var(--bord);border-radius:20px;padding:7px 14px;color:var(--mut);font-weight:700;font-size:12.5px;cursor:pointer;font-family:inherit}
.cx-chip:hover{color:var(--txt);border-color:#22d3ee}.cx-chip.on{background:var(--grad);color:#04121f;border:0}
.sf-fustat{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:0 0 16px}
.sf-fustat-i{background:var(--glass);border:1px solid var(--bord);border-radius:12px;padding:11px 14px}
.sf-fustat-i b{display:block;font-size:20px;font-weight:800;font-family:'Sora',sans-serif;color:var(--txt)}
.sf-fustat-i span{font-size:10.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.3px}
.sf-fustat-i.over b{color:var(--bad)}.sf-fustat-i.today b{color:var(--warn)}.sf-fustat-i.comm b{color:var(--ok-2)}
.sf-fucard{display:flex;align-items:center;gap:13px;background:var(--glass);border:1px solid var(--bord);border-radius:12px;padding:12px 15px;margin-bottom:9px;cursor:pointer;transition:.12s}
.sf-fucard:hover{border-color:#22d3ee;background:rgba(34,211,238,.05)}
.sf-fucard.is-over{border-left:3px solid var(--bad)}.sf-fucard.is-today{border-left:3px solid var(--warn)}
.sf-fu-av{width:38px;height:38px;border-radius:12px;background:var(--grad);display:flex;align-items:center;justify-content:center;font-weight:800;color:#04121f;flex:0 0 auto;font-size:13px}
.sf-fu-body{flex:1;min-width:0}
.sf-fu-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.sf-fu-top b{font-weight:700}
.sf-fu-meta{font-size:12px;color:var(--mut);margin-top:3px}
.sf-fu-nba{font-size:12.5px;color:var(--info-2);margin-top:5px;font-weight:600}
.sf-fu-acts{display:flex;gap:6px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;max-width:210px}
.cx-mini.done{background:rgba(52,211,153,.16);border-color:rgba(52,211,153,.4);color:var(--ok-2)}
@media(max-width:820px){.sf-fustat{grid-template-columns:repeat(2,1fr)}.sf-fu-acts{max-width:none}}

.sc-src{margin-top:13px;border-top:1px solid var(--bord);padding-top:12px}
.sc-srch{font-size:12px;font-weight:700;color:var(--mut);margin-bottom:9px}
.sc-srcrow{display:flex;align-items:center;gap:16px;flex-wrap:wrap}

.sh-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sh-kpi{background:var(--glass);border:1px solid var(--bord);border-top:2px solid #22d3ee;border-radius:12px;padding:13px 14px}
.sh-kpi .v{font-size:22px;font-weight:800;font-family:'Sora',sans-serif;color:var(--txt)}
.sh-kpi .l{font-size:10.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.3px;margin-top:3px}
.sh-rows{display:flex;flex-direction:column;gap:10px}
.sh-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--glass);border:1px solid var(--bord);border-left:2px solid #22d3ee;border-radius:12px;padding:12px 15px}
.sh-row .sh-cell{min-width:0}
.sh-row .sh-cell.r{text-align:right}
.sh-cell .v{font-size:18px;font-weight:800;font-family:'Sora',sans-serif;color:var(--txt)}
.sh-cell .l{font-size:10px;color:var(--mut);text-transform:uppercase;letter-spacing:.3px;margin-top:2px}
.sh-cell.r .v{font-size:16px;color:#9fd0f5}.sh-cell.r .l{color:#6b7689}
.pl-divider{font-size:12px;font-weight:700;color:var(--mut);margin:16px 0 10px;padding-top:13px;border-top:1px solid var(--bord)}

.hr-subnav{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.hr-subtab{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:12px;padding:9px 15px;color:var(--mut);font-weight:700;font-size:13px;cursor:pointer;font-family:inherit}
.hr-subtab.on{background:var(--grad);color:#fff;border:0}
.lv-pill{display:inline-block;padding:1px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.lv-status{display:inline-block;padding:1px 10px;border-radius:999px;font-size:11px;font-weight:800}
.hr-hol{display:flex;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--bord);font-size:13px}
.hr-hol:last-child{border-bottom:0}.hr-hol b{flex:0 0 auto;min-width:64px;white-space:nowrap;color:var(--info-2)}   /* v1.356 (portal audit 30 Sep): "24-OCT-2026" broke over two lines in a 64px column */
.hr-att{display:flex;align-items:center;gap:16px}.hr-att-ic{font-size:34px;flex:0 0 auto}
.hr-flags{margin-top:5px;display:flex;flex-direction:column;gap:3px}.hr-flag{font-size:11px;color:var(--warn)}
.hr-pb{font-size:11px;font-weight:800;color:var(--warn);background:rgba(251,191,36,.14);border-radius:20px;padding:2px 9px}
.hr-pm{font-size:11px;font-weight:700;color:var(--ok-2);background:rgba(52,211,153,.12);border-radius:20px;padding:2px 9px}
.hr-cal{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:10px}
.hr-cal-i{display:flex;gap:12px;align-items:baseline;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:12px;padding:11px 13px}
.hr-cal-d{flex:0 0 auto;font-weight:800;color:var(--info-2);font-size:13px;min-width:46px}.hr-cal-n{font-size:12.5px}
.hr-pol{padding:11px 0;border-bottom:1px solid var(--bord)}.hr-pol:last-child{border-bottom:0}
.hr-pol-h{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:4px}
.hr-pol-r{font-size:12.5px;color:var(--mut);line-height:1.5}
.hr-ul{margin:0;padding-left:20px;line-height:1.9;font-size:13.5px}.hr-ul li{margin-bottom:4px}
.lv-bals{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:8px 0 4px}
.lv-bal{background:rgba(127,127,127,.07);border:1px solid rgba(127,127,127,.2);border-radius:12px;padding:10px 8px;text-align:center}
.lv-bal-v{font-family:'Sora',sans-serif;font-size:20px;font-weight:800}.lv-bal-v small{font-size:12px;color:#94a3b8;font-weight:600}
.lv-bal-l{font-size:10.5px;color:#94a3b8;text-transform:uppercase;letter-spacing:.3px;margin-top:2px}
.lv-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lv-warn{margin-top:10px;background:rgba(251,191,36,.14);border:1px solid rgba(251,191,36,.4);border-radius:10px;padding:9px 12px;font-size:12.5px;line-height:1.5}
.lv-hist{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid rgba(127,127,127,.15);font-size:12.5px}.lv-hist:last-child{border-bottom:0}
.overlay .panel .lv-bal-v{color:#16325c}.overlay .panel .lv-warn{color:#fcd34d} /* a11y: was #92400e — 1.94:1 dark-on-dark inside the dark dialog panel (missed by the light-text sweeps); #fcd34d = 9.56:1 on the amber-tinted panel bg, matching the .note warning treatment */
.overlay .panel .lv-form input,.overlay .panel .lv-form select{width:100%;color:#16325c;background:#fff;border:1px solid #dddbda;border-radius:8px;padding:8px 10px;font-family:inherit;font-size:13px}
@media(max-width:820px){.lv-bals{grid-template-columns:repeat(3,1fr)}.lv-form{grid-template-columns:1fr}}

.rp-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.rp-kpi{background:#f3f8ff;border:1px solid #d6e6f7;border-radius:10px;padding:11px 12px}
.rp-kpi-v{font-family:'Sora',sans-serif;font-size:18px;font-weight:800;color:#16325c}
.rp-kpi-l{font-size:10.5px;color:#5c6b80;text-transform:uppercase;letter-spacing:.3px;margin-top:2px}
.rp-cmp{font-size:13px;color:#16325c;background:#f7f9fb;border:1px solid #e3e8ef;border-radius:10px;padding:9px 13px;font-weight:600}
.rp-tbl{width:100%;border-collapse:collapse;margin-top:10px;font-size:12.5px}
.rp-tbl th{text-align:left;color:var(--mut);font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;padding:6px 8px;border-bottom:1px solid var(--bord)}
.rp-tbl td{padding:7px 8px;border-bottom:1px solid var(--bord);color:var(--txt);font-size:13px}
@media(max-width:700px){.rp-kpis{grid-template-columns:repeat(2,1fr)}}
.lv-act{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(127,127,127,.2);border-radius:12px;padding:10px 13px;margin-bottom:8px;font-size:13px}
.lv-act-b{flex:0 0 auto;white-space:nowrap}
.overlay .panel .lv-act{background:#f7f9fb;color:#16325c}.overlay .panel .lv-act b{color:#16325c}

.fin-pl{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--bord);font-size:13.5px}
.fin-pl:last-child{border-bottom:0}.fin-pl.tot{border-top:2px solid var(--bord2);margin-top:4px;font-weight:700;font-size:15px;padding-top:11px}
.fin-pl.sub{padding:6px 0 6px 16px;font-size:12.5px;color:var(--mut);border-bottom:1px dotted rgba(127,127,127,.18)}.fin-pl.sub b{color:var(--txt);font-weight:600}
.fin-pl.pos{border-top:1px solid var(--bord);font-weight:700}
.fin-plsec{margin:12px 0 4px;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:rgb(var(--accent))}

.fin-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0 4px}
.fin-kpis .mba-kpi{animation:lz-rise .42s ease both;animation-delay:calc(var(--i,0)*40ms)}
.mba-kpi.is-good{border-color:rgba(52,211,153,.4);background:linear-gradient(180deg,rgba(52,211,153,.08),transparent)}
.mba-kpi.is-good .mba-kpi-ic{background:rgba(52,211,153,.18)}
.fin-cap{margin-bottom:12px}
.fin-cap-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12.5px;color:var(--mut);margin-bottom:5px}
.fin-cap-h b{color:var(--txt);font-weight:800}.fin-cap-h small{color:var(--mut);font-weight:500}
.fin-cap-h b.fin-over,.fin-over{color:var(--bad-3)}
.fin-cap-bar{height:8px;border-radius:5px;background:var(--glass-06);overflow:hidden}
.fin-cap-bar i{display:block;height:100%;border-radius:5px;background:var(--grad);animation:bbGrow .85s cubic-bezier(.2,.8,.2,1) both}
.fin-cap-bar i.over{background:linear-gradient(90deg,var(--bad),#f43f5e)}
.fin-bal{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--bord)}
.fin-bal-ic{font-size:20px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--glass2);border-radius:11px;flex:0 0 auto}
.fin-bal-t{flex:1}.fin-bal-t b{display:block;font-size:14px;color:var(--txt)}.fin-bal-t small{color:var(--mut);font-size:11.5px}
.fin-bal-v{font-size:18px;font-weight:800;color:var(--txt);font-family:'Sora',sans-serif}
.fin-book td{font-size:12.5px;vertical-align:top}.fin-book .fin-mr{color:var(--mut);font-size:11.5px}
.fin-rec{width:26px;height:26px;border-radius:8px;border:1px solid var(--bord);background:rgba(127,127,127,.1);color:var(--mut);cursor:pointer;font-weight:800;transition:all .12s}
.fin-rec:hover{border-color:rgb(var(--accent))}
.fin-rec.on{background:rgba(52,211,153,.18);border-color:rgba(52,211,153,.5);color:var(--ok-2)}
.fin-ok{color:var(--ok-2);font-weight:700;font-size:12.5px}
.fin-tag{font-size:10px;font-weight:800;letter-spacing:.03em;background:rgba(var(--accent),.14);color:rgb(var(--accent));border:1px solid rgba(var(--accent),.28);border-radius:5px;padding:0 5px;vertical-align:middle}
.fin-repbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.fin-jhead,.fin-jrow{display:grid;grid-template-columns:1fr 110px 110px;gap:8px;align-items:center}
.fin-jhead{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--mut);margin:10px 0 6px;padding:0 2px}
.fin-jrow{margin-bottom:7px}
.fin-jtot{font-size:13px;font-weight:800;margin-left:10px;color:var(--mut)}
.fin-jtot.ok{color:var(--ok-2)}.fin-jtot.bad{color:var(--bad-3)}
.fin-bank{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fin-inv-h{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:2px solid var(--bord);padding-bottom:12px;margin-bottom:4px}
.rp-tbl tr.rp-due td{border-top:1.5px solid var(--bord);border-bottom:none;font-size:14px;padding-top:9px}
.fin-xcheck{margin-top:14px;padding:12px 13px;border:1px solid var(--bord);border-radius:12px;background:var(--glass-03)}
.fin-xcheck-h{font-weight:700;font-size:12.5px;margin-bottom:9px;color:var(--txt);display:flex;align-items:center;gap:8px}
.fin-xcheck-badge{font-size:10.5px;padding:2px 8px;border-radius:20px;font-weight:700}
.fin-xcheck-badge.ok{color:var(--ok);background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.3)}
.fin-xcheck-badge.warn{color:var(--warn);background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.3)}
.fin-xcheck-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.fin-xcheck-grid>div{display:flex;flex-direction:column;gap:2px}
.fin-xcheck-grid small{color:var(--mut);font-size:10.5px}
.fin-xcheck-grid b{font-size:14px;color:var(--txt);font-variant-numeric:tabular-nums}

.fin-sc-row{padding:9px 2px;border-bottom:1px solid var(--bord)}
.fin-sc-row:last-child{border-bottom:none}
.fin-sc-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:5px;flex-wrap:wrap}
.fin-sc-name{font-size:12.5px;font-weight:600;color:var(--txt)}
.fin-sc-val{font-size:12.5px;font-weight:700;color:var(--txt);white-space:nowrap}
.fin-sc-val small{color:var(--mut);font-weight:500;font-size:10.5px}
.fin-sc-badge{font-size:9.5px;font-weight:700;padding:2px 7px;border-radius:20px;margin-left:4px;font-style:normal}
.fin-sc-good .fin-sc-badge{color:var(--ok);background:rgba(52,211,153,.13)}
.fin-sc-ok .fin-sc-badge{color:var(--warn);background:rgba(251,191,36,.13)}
.fin-sc-warn .fin-sc-badge{color:var(--bad);background:rgba(251,113,133,.14)}
.fin-cockpit-gauge{display:inline-flex;width:58px;flex-shrink:0}
.fin-cockpit-gauge svg{width:100%;height:auto}
@keyframes finBarGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes finRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.fin-bul-bar{transform-origin:left center;animation:finBarGrow .7s cubic-bezier(.22,1,.36,1) both}
.fin-wf-bar{animation:finRise .5s ease both}
.sf-card-b svg{animation:finRise .5s ease both}
@media(prefers-reduced-motion:reduce){.fin-bul-bar,.fin-wf-bar,.sf-card-b svg{animation:none}}

.fin-hero{display:grid;grid-template-columns:1.65fr 1fr;border:1px solid var(--bord);border-radius:22px;overflow:hidden;margin-top:16px;background:radial-gradient(130% 150% at 0% 0%,rgba(34,211,238,.07),transparent 52%),var(--glass);animation:finRise .5s ease both}
.fin-hero-main{padding:24px 26px 12px;min-width:0}
.fin-hero-eyebrow{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--mut);font-weight:700}
.fin-hero-figure{display:flex;align-items:baseline;gap:14px;margin:8px 0 4px;flex-wrap:wrap}
.fin-hero-num{font-family:'Sora',sans-serif;font-size:clamp(34px,4.4vw,50px);font-weight:800;letter-spacing:-1.5px;line-height:.95;color:var(--ink,#eef4ff)}
.fin-hero-delta{font-size:13px;font-weight:800;padding:3px 11px;border-radius:999px}
.fin-hero-delta.up{color:var(--ok);background:rgba(52,211,153,.13)}
.fin-hero-delta.down{color:var(--bad);background:rgba(251,113,133,.13)}
.fin-hero-sub{font-size:13px;color:var(--mut);font-weight:500}
.fin-hero-chart{margin:12px -8px 0}
.fin-hero-chart svg{width:100%;height:auto;display:block}
.fin-hero-side{padding:22px;border-left:1px solid var(--bord);background:rgba(255,255,255,.018);display:flex;flex-direction:column;gap:14px}
.fin-hero-verdict{display:flex;align-items:center;gap:12px;cursor:help}
.fin-hero-gauge{width:70px;flex-shrink:0;display:inline-flex}
.fin-hero-gauge svg{width:100%;height:auto}
.fin-hero-vtxt b{font-size:17px;display:block;line-height:1.1}
.fin-hero-vtxt small{font-size:11px;color:var(--mut)}
.fin-hero-checks{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:4px}
.fin-hero-checks .fin-hchk{width:100%;justify-content:flex-start;font-size:12px;padding:8px 12px;border-radius:10px}
.fin-hero-cta{margin-top:auto;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(34,211,238,.28);background:linear-gradient(135deg,rgba(34,211,238,.13),rgba(167,139,250,.13));color:var(--txt);cursor:pointer;text-align:left;transition:transform .14s,border-color .14s}
.fin-hero-cta:hover{transform:translateY(-1px);border-color:rgba(34,211,238,.6)}
.fin-hero-cta-ic{font-size:20px;flex-shrink:0}
.fin-hero-cta-t{flex:1;min-width:0}
.fin-hero-cta-t small{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:1.2px;color:var(--mut);font-weight:700}
.fin-hero-cta-t b{font-size:13px}
.fin-hero-cta-go{font-size:18px;color:var(--mut)}
.fin-hero-leg{display:inline-flex;align-items:center;gap:3px;margin-left:10px;font-size:10.5px;color:var(--mut);white-space:nowrap}
.fin-hero-leg i{width:9px;height:9px;border-radius:2px;display:inline-block;margin:0 3px 0 8px;vertical-align:middle}
.fin-hero-leg i.rc-r{background:var(--ok)}
.fin-hero-leg i.rc-c{background:var(--bad)}
.fin-hero-leg .rc-d{letter-spacing:-1.5px}
.fin-hero-sub{line-height:1.7}
.fin-revcost{width:100%;height:auto}

.fin-hero-meters{display:flex;flex-direction:column;gap:14px;margin-top:18px}
.fhm-row{display:flex;flex-direction:column;gap:6px}
.fhm-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.fhm-lbl{font-size:12px;color:var(--mut);font-weight:600}
.fhm-sub{font-size:10.5px;color:var(--mut);opacity:.8}
.fhm-meter{display:flex;align-items:center;gap:12px}
.fhm-bar{flex:1;height:9px;border-radius:6px;background:var(--glass-06);overflow:hidden;min-width:0}
.fhm-bar>i{display:block;height:100%;border-radius:6px;animation:finBarGrow .7s cubic-bezier(.22,1,.36,1) both;transform-origin:left}
.fhm-val{font-size:14.5px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:66px;text-align:right}
.fhm-result{margin-top:2px;padding-top:12px;border-top:1px solid var(--bord)}
.fhm-result .fhm-lbl{color:var(--txt);font-weight:700;font-size:12.5px}
.fhm-result .fhm-val{font-size:19px}

.fin-zone{font-size:11.5px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;color:var(--mut);margin:26px 2px 12px;display:flex;align-items:center;gap:12px}
.fin-zone::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--bord),transparent)}

.fin-bento{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:minmax(160px,auto);gap:14px;grid-auto-flow:row dense;margin-top:16px}
.fin-bento>*{min-width:0}
.fin-bento .sf-card,.fin-bento .bento{height:100%;margin:0}
.bento{border:1px solid var(--bord);border-radius:18px;background:var(--glass);padding:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.bento-h{font-size:10.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--mut);margin-bottom:10px;display:flex;align-items:center;gap:8px}
.bstat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bstat-ic{font-size:20px;line-height:1}
.bstat-v{font-family:'Sora',sans-serif;font-size:29px;font-weight:800;line-height:1;margin-top:8px;letter-spacing:-.5px;color:var(--txt)}
.bstat-l{font-size:11.5px;color:var(--mut);font-weight:600;margin-top:5px}
.c2{grid-column:span 2}.c3{grid-column:span 3}.c4{grid-column:span 4}.c5{grid-column:span 5}.c6{grid-column:span 6}.c7{grid-column:span 7}.c8{grid-column:span 8}.c12{grid-column:span 12}
.r2{grid-row:span 2}
@media(max-width:1080px){.fin-bento .c5,.fin-bento .c6,.fin-bento .c7,.fin-bento .c8{grid-column:span 12}.fin-bento .c3,.fin-bento .c4{grid-column:span 6}.fin-bento .r2{grid-row:span 1}}
@media(max-width:600px){.fin-bento{grid-template-columns:1fr}.fin-bento>*{grid-column:span 1!important}}
.fin-pay-tbl{width:100%;table-layout:auto}
.fin-pay-tbl th,.fin-pay-tbl td{padding:9px 16px;white-space:nowrap}
.fin-pay-tbl td:first-child,.fin-pay-tbl th:first-child{white-space:normal;width:34%}
@media(max-width:860px){.fin-hero{grid-template-columns:1fr}.fin-hero-side{border-left:none;border-top:1px solid var(--bord)}}

.fin-kpis.k5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1150px){.fin-kpis.k5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.fin-kpis.k5{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fin-kpis.k5 .mba-kpi{min-width:0}
.fin-kpis.k5 .mba-kpi-v{white-space:nowrap}
.fin-kpis.k5 .mba-kpi.is-good,.fin-kpis.k5 .mba-kpi.is-warn,.fin-kpis.k5 .mba-kpi.is-accent,.fin-kpis.k5 .mba-kpi.is-act{background:var(--glass);border-color:var(--bord)}
.fin-inv-no{font-family:'Sora',sans-serif;font-size:16px;font-weight:800;color:#0176d3}

.sf-main [data-tip]{position:relative}
.sf-main [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);background:#0b1424;color:#fff;font-size:11px;font-weight:700;padding:5px 9px;border-radius:7px;z-index:80;pointer-events:none;box-shadow:0 10px 26px rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.14);width:max-content;max-width:240px;white-space:normal;text-align:center;line-height:1.35}
.sf-main [data-tip]:hover::before{content:"";position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#0b1424;z-index:80;pointer-events:none}

.sf-main td[style*="text-align:right"] [data-tip]:hover::after,.sf-main .fin-book td:last-child [data-tip]:hover::after{left:auto;right:0;transform:none}
.sf-main td[style*="text-align:right"] [data-tip]:hover::before,.sf-main .fin-book td:last-child [data-tip]:hover::before{left:auto;right:8px;transform:none}

/* Ledger "Opening balance as at …" row — was a hardcoded #f8fafc inline style, which rendered as
   an unreadable white band on the dark theme. Theme tokens keep it legible in both modes. */
.fin-openrow{background:rgba(125,211,252,.08)}
.fin-openrow td{color:var(--txt)}
.fin-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px}
.fin-scroll>table{min-width:640px}
.fin-scroll .fin-book,.fin-scroll .fin-cm-tbl{min-width:760px}
.fin-scroll::-webkit-scrollbar{height:9px}
.fin-scroll::-webkit-scrollbar-thumb{background:rgba(var(--accent),.35);border-radius:6px}
.fin-scroll::-webkit-scrollbar-track{background:transparent}
/* Access Control: freeze the portal-name header row while the page scrolls.
   The wrapper owns the frame; the table drops its own overflow:hidden/border so no
   ancestor clips the sticky header, which then pins to the viewport under the topbar. */
.acc-wrap{border:1px solid var(--bord);border-radius:14px}
/* border-collapse:separate is required — collapse mode fails to paint sticky-th backgrounds (bleed-through). */
table.acc-table{overflow:visible;border:0;border-radius:13px;border-collapse:separate;border-spacing:0}
table.acc-table thead th{position:sticky;top:var(--topbar-h);z-index:6;background:#12172b !important;border-bottom:1px solid var(--bord)}
table.acc-table thead th:first-child{text-align:left}
.acc-name:hover{text-decoration:underline}
.acc-fd{display:inline-block;font-size:10.5px;font-weight:700;color:var(--warn);background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.3);border-radius:999px;padding:1px 7px;margin-left:6px;vertical-align:middle}
/* 15 Oct 2026 — Access Control: an account paused on the server (cannot sign in) */
.acc-paused{display:inline-block;white-space:nowrap;font-size:10.5px;font-weight:700;color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,transparent);border:1px solid color-mix(in srgb,var(--bad) 35%,transparent);border-radius:999px;padding:1px 7px;margin-left:6px;vertical-align:middle}
.acc-paused-note{margin:12px 0 0;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.45;background:color-mix(in srgb,var(--bad) 8%,transparent);border:1px solid color-mix(in srgb,var(--bad) 30%,transparent)}

.list td[style*="text-align:right"],.fin-book td[style*="text-align:right"],.fin-cm-tbl td.num,.fin-cm-tbl th.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}

.fin-cm-mon{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:12px 0}
.fin-cm-mon .fin-tg{border:1px solid var(--bord)}
.fin-cm-mon .fin-tg.on{border-color:transparent}
.fin-cm-tbl{width:100%}
.fin-cm-tbl th.num,.fin-cm-tbl td.num{text-align:right;white-space:nowrap}
.fin-cm-tbl tr.fin-cm-tot td{border-top:2px solid var(--bord2);font-weight:800;color:var(--txt);background:rgba(var(--accent),.06)}
.fin-cm-due{color:var(--bad-3);font-weight:700}
.fin-cm-due0{color:var(--mut)}

.fs-tbl td,.fs-tbl th{white-space:nowrap}
.fs-tbl .fs-dept td{background:rgba(var(--accent),.09);font-weight:800;font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:rgb(var(--accent));padding-top:10px}
.fs-tbl .fs-sub td{border-top:1px solid var(--bord);font-weight:800;color:var(--txt);background:rgba(255,255,255,.02)}
.fs-tbl .fs-grand td{border-top:2px solid var(--bord2);font-weight:900;color:var(--txt);background:rgba(var(--accent),.08);font-size:14px}
.fs-tbl .fs-fcrow td{color:var(--viol-2);font-weight:700;background:rgba(167,139,250,.08)}
.fs-tbl .fs-fc{color:var(--viol-2);font-weight:700}
.fs-tbl .fs-due{color:var(--bad-3);font-weight:700}
.fin-cm-cap{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--bad-3);background:rgba(251,113,133,.12);border:1px solid rgba(251,113,133,.3);border-radius:6px;padding:1px 7px;vertical-align:middle}

.fin-in{background:var(--glass2,var(--glass));border:1px solid var(--bord);color:var(--txt);border-radius:9px;padding:8px 11px;font:inherit;font-size:13px;outline:none;transition:border-color .15s,box-shadow .15s}
.fin-in:focus{border-color:rgba(var(--accent),.6);box-shadow:0 0 0 3px rgba(var(--accent),.14)}
.fin-in::placeholder{color:var(--mut)}
.fin-range{display:inline-flex;align-items:center;gap:8px}
.fin-range-sep{color:var(--mut);font-weight:700}
.fin-range .fin-in{padding:7px 10px;color-scheme:dark}
.fin-bank-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:16px}
.fin-bank-card{text-align:left;cursor:pointer;background:var(--glass);border:1px solid var(--bord);border-radius:16px;padding:15px 16px 13px;color:var(--txt);position:relative;overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.fin-bank-card:hover{transform:translateY(-3px);border-color:rgba(var(--accent),.5);box-shadow:0 14px 34px -18px rgba(var(--accent),.6)}
.fin-bank-card.on{border-color:transparent;background:linear-gradient(160deg,rgba(var(--accent),.16),rgba(var(--accent),.03));box-shadow:0 0 0 1.5px rgba(var(--accent),.55),0 16px 40px -20px rgba(var(--accent),.7)}
.fin-bank-card.on::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--grad)}
.fbk-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.fbk-nm{font-weight:800;font-size:14px}
.fbk-ac{font-size:11px;color:var(--mut);font-variant-numeric:tabular-nums}
.fbk-bal{font-size:24px;font-weight:800;margin-top:8px;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.fbk-sub{font-size:11px;color:var(--mut);margin-top:1px}
.fbk-spark{margin:8px 0 6px;opacity:.9}
.fbk-io{display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:700;flex-wrap:wrap}
.fbk-in{color:var(--ok)}.fbk-out{color:var(--bad)}.fbk-mut{color:var(--mut);font-weight:600;margin-left:auto}
.fb-cat{display:inline-block;font-size:10.5px;font-weight:700;color:var(--c,var(--mut-5));background:color-mix(in srgb,var(--c,var(--mut-5)) 15%,transparent);border:1px solid color-mix(in srgb,var(--c,var(--mut-5)) 38%,transparent);border-radius:999px;padding:2px 9px;white-space:nowrap}
.fb-recbar{height:4px;background:var(--glass-06);position:relative;overflow:hidden}
.fb-recbar>span{position:absolute;left:0;top:0;bottom:0;background:var(--grad);border-radius:0 3px 3px 0;transition:width .5s cubic-bezier(.4,0,.2,1)}
.fin-bank-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
@media(max-width:900px){.fin-bank-grid{grid-template-columns:1fr}}
.fb-x2{border-top:1px dashed var(--bord);margin-top:6px;padding-top:2px}
.fb-src{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.04)}
.fb-src:last-child{border-bottom:0}
.fb-src-nm{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;min-width:150px;flex-shrink:0}
.fb-src-nm i{width:9px;height:9px;border-radius:3px;flex-shrink:0}
.fb-src-bar{flex:1;height:8px;background:var(--glass-05);border-radius:5px;overflow:hidden;min-width:40px}
.fb-src-bar>span{display:block;height:100%;border-radius:5px}
.fb-src-amt{font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;min-width:96px}
.fb-src-amt em{font-style:normal;color:var(--mut);font-weight:600;font-size:11px}

.fin-dash-hd{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.fin-kpi-spark{margin-top:6px;height:24px;opacity:.85}
.fin-kpi-chip{display:inline-block;margin-top:5px;font-size:10.5px;font-weight:800;padding:1px 8px;border-radius:999px}
.fin-kpi-chip.up{color:var(--ok);background:rgba(52,211,153,.14)}
.fin-kpi-chip.down{color:var(--bad);background:rgba(251,113,133,.14)}
.mba-kpi.is-accent{border-color:rgba(var(--accent),.5)!important;background:linear-gradient(120deg,rgba(var(--accent),.15),rgba(var(--accent),.02))}
.fin-fc-key{float:right;font-size:10.5px;font-weight:600;color:var(--mut);display:inline-flex;gap:9px;align-items:center}
.fin-fc-key i{display:inline-block;width:12px;height:3px;border-radius:2px;vertical-align:middle;margin-right:3px}
.fin-fc-key i.s{background:#22d3ee}.fin-fc-key i.f{background:var(--viol)}.fin-fc-key i.c{background:#22d3ee}
.fin-13-row{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:var(--mut)}
.fin-13-row b{color:var(--txt)}
.fin-donut-wrap{display:flex;gap:18px;align-items:center;flex-wrap:wrap;justify-content:center}
.fin-donut-leg{flex:1;min-width:150px;display:flex;flex-direction:column;gap:7px}
.fin-leg{display:flex;align-items:center;gap:8px;font-size:12.5px}
.fin-leg i{width:10px;height:10px;border-radius:3px;flex-shrink:0}
.fin-leg span{flex:1;color:var(--mut)}
.fin-leg b{font-variant-numeric:tabular-nums}
.fin-hbars{display:flex;flex-direction:column;gap:10px}
.fin-hbar{display:flex;align-items:center;gap:10px}
.fin-hbar-l{width:112px;flex-shrink:0;font-size:12.5px;font-weight:600}
.fin-hbar-t{flex:1;height:13px;background:var(--glass-05);border-radius:7px;overflow:hidden}
.fin-hbar-t i{display:block;height:100%;border-radius:7px;transition:width .6s cubic-bezier(.4,0,.2,1)}
.fin-hbar-v{width:66px;text-align:right;font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums}
.fin-alerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:9px}
.fin-alert{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:11px 13px;border-radius:12px;border:1px solid var(--bord);background:var(--glass2);color:var(--txt);cursor:pointer;transition:transform .14s,border-color .14s}
.fin-alert:hover{transform:translateY(-2px);border-color:rgba(var(--accent),.55)}
/* v671 — QuickBooks-style finance dashboard (tokens only → both themes) */
.fdb-grid{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start;margin-top:14px}
.fdb-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:1000px){.fdb-grid{grid-template-columns:1fr}.fdb-cards{grid-template-columns:1fr}}
.fdb-new{position:relative;align-self:stretch;display:flex}
.fdb-newbtn{background:var(--grad);color:#fff;border:0;border-radius:11px;padding:9px 16px;height:100%;font-size:13.5px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:7px;box-shadow:0 8px 22px rgba(var(--accent),.22);font-family:inherit}
.fdb-newlist{position:absolute;top:calc(100% + 8px);right:0;width:290px;background:var(--menu);border:1px solid var(--bord2);border-radius:14px;padding:7px;z-index:40;box-shadow:0 12px 30px rgba(2,8,23,.16);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s ease,transform .16s ease,visibility .16s}
.fdb-new:hover .fdb-newlist,.fdb-new:focus-within .fdb-newlist{opacity:1;visibility:visible;transform:translateY(0)}
.fdb-newitem{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;border-radius:10px;padding:9px 10px;cursor:pointer;font-family:inherit;text-align:left;color:var(--txt)}
.fdb-newitem:hover{background:rgba(var(--accent),.12)}
.fdb-newitem .ic{width:30px;height:30px;border-radius:8px;background:rgba(var(--accent),.14);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.fdb-newitem .t{font-size:13.5px;font-weight:700}
.fdb-newitem .s{font-size:11.5px;color:var(--mut)}
.fdb-newitem .nb{margin-left:auto;font-size:11px;font-weight:800;color:#fff;background:var(--bad);border-radius:999px;padding:1px 8px}
.fdb-newsep{height:1px;background:var(--bord);margin:5px 8px}
.fdb-linkcard{cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.fdb-linkcard:hover{transform:translateY(-2px);border-color:rgba(var(--accent),.55)}
.fdb-open{margin-top:12px;font-size:12.5px;font-weight:700;color:var(--info-2)}
.fdb-acct{display:flex;align-items:center;gap:6px}
.fdb-acct + .fdb-acct{border-top:1px solid var(--bord)}
.fdb-acct-main{flex:1;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--txt);font-family:inherit;cursor:pointer;padding:10px 6px;border-radius:9px;text-align:left}
.fdb-acct-main:hover{background:rgba(var(--accent),.08)}
.fdb-acct-main .an{font-size:13px;font-weight:600}
.fdb-brand{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;color:#fff;font-size:11px;font-weight:800;letter-spacing:-.3px;flex-shrink:0;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.fdb-acct-main .av{margin-left:auto;font-weight:800;font-size:15px}
.fdb-acct-edit{border:1px solid var(--bord2);background:transparent;color:var(--info-2);border-radius:8px;padding:5px 10px;font-size:13px;cursor:pointer;font-family:inherit}
.fdb-acct-edit:hover{background:rgba(var(--accent),.12)}
.fdb-lg{display:flex;align-items:center;gap:7px;margin:4px 0;font-size:12px;color:var(--mut)}
.fdb-lg b{margin-left:auto;color:var(--txt);font-weight:700}
.fdb-dot{width:9px;height:9px;border-radius:3px;flex-shrink:0}
@media(prefers-reduced-motion:reduce){.fdb-newlist,.fdb-linkcard{transition:none}.fdb-linkcard:hover{transform:none}}
.fin-al-ic{font-size:17px;flex-shrink:0}
.fin-al-t{flex:1;min-width:0}
.fin-al-t b{display:block;font-size:13px}
.fin-al-t small{color:var(--mut);font-size:11.5px}
.fin-al-go{color:var(--mut);font-size:18px}
.fin-al-bad{border-color:rgba(251,113,133,.45);background:rgba(251,113,133,.09)}
.fin-al-warn{border-color:rgba(251,191,36,.34)}
.fin-al-good{border-color:rgba(52,211,153,.32)}

.fb-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.fb-step{display:inline-flex;align-items:center;gap:8px}
.fb-step-l{font-weight:800;font-size:13.5px;min-width:100px;text-align:center;color:var(--txt)}
.fb-step-b{min-width:34px;font-size:16px;line-height:1}
.fb-step-b:disabled{opacity:.35;cursor:not-allowed}
.fb-mrow{cursor:pointer}
.fb-mrow:hover{background:rgba(var(--accent),.06)}
.fb-mrow.on{background:rgba(var(--accent),.12)}
.fb-mrow.on td:first-child{box-shadow:inset 3px 0 0 rgb(var(--accent))}
.ar-badge{display:inline-block;font-size:10.5px;font-weight:700;color:var(--c,var(--mut-5));background:color-mix(in srgb,var(--c,var(--mut-5)) 15%,transparent);border:1px solid color-mix(in srgb,var(--c,var(--mut-5)) 40%,transparent);border-radius:999px;padding:2px 9px;white-space:nowrap}
.scen-lever{margin:12px 0}
.scen-lever label{display:flex;justify-content:space-between;font-size:12.5px;color:var(--mut);margin-bottom:6px}
.scen-lever label b{color:var(--txt);font-variant-numeric:tabular-nums}
.scen-lever input[type=range]{width:100%;accent-color:rgb(var(--accent));cursor:pointer}

.ch-print{background:#fbfcfe;color:#0f172a;border-radius:10px;padding:18px 20px;border:1px solid #dbe3ee}
.ch-tbl{width:100%;border-collapse:collapse;margin-top:6px}
.ch-tbl td{padding:6px 9px;border-bottom:1px solid #e5eaf1;font-size:12.5px;color:#334155;vertical-align:top}
.ch-tbl td.r{text-align:right;color:#0f172a;font-weight:600}
.ch-tbl td small{color:#64748b;font-weight:400}
.ch-tbl tr.ch-amt td{background:#eef4ff;font-size:15px;border-top:2px solid #c9d6ea}
.ch-sign{display:flex;justify-content:space-between;gap:22px;margin-top:30px;font-size:11px;color:#64748b;text-align:center}

.fin-insight{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 2px;padding:13px 16px;border-radius:14px;border:1px solid color-mix(in srgb,var(--vc,var(--mut-5)) 45%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--vc,var(--mut-5)) 14%,transparent),transparent)}
.fin-insight-badge{display:flex;align-items:center;gap:8px;font-weight:800;font-size:14px;color:var(--vc,var(--mut-5));white-space:nowrap}
.fin-insight-dot{font-size:15px}
.fin-insight-txt{flex:1;min-width:220px;font-size:13px;line-height:1.55;color:var(--txt)}
.fin-insight-txt b{color:var(--txt)}
.fin-insight-do{color:var(--vc,var(--mut-5));font-weight:700}
.fin-ins-row{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--glass-05);font-size:12.5px;line-height:1.5;color:var(--mut)}
.fin-ins-row:last-child{border-bottom:0}
.fin-ins-row span:first-child{flex-shrink:0}
.fin-ins-row b{color:var(--txt)}
.fin-rgrp{margin-bottom:14px}
.fin-rgrp:last-child{margin-bottom:0}
.fin-rgrp-h{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--mut);margin-bottom:8px}
.fin-rgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px}
.fin-ratio{background:var(--glass2);border:1px solid var(--bord);border-left:3px solid var(--rc,var(--mut-5));border-radius:10px;padding:9px 12px;min-width:0}
.fin-ratio-v{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-ratio-l{font-size:12px;font-weight:600;margin-top:1px}
.fin-ratio-b{font-size:10.5px;color:var(--mut);margin-top:3px}
.fin-r-good{--rc:var(--ok)}.fin-r-ok{--rc:var(--warn)}.fin-r-warn{--rc:var(--bad)}
.fin-r-good .fin-ratio-v{color:var(--ok-2)}.fin-r-ok .fin-ratio-v{color:var(--warn-2)}.fin-r-warn .fin-ratio-v{color:var(--bad-2)}
.fin-ratio-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.fin-ratio-top .fin-ratio-v{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fin-ratio-badge{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:var(--rc,var(--mut-5));background:color-mix(in srgb,var(--rc,var(--mut-5)) 16%,transparent);border-radius:5px;padding:1px 6px;white-space:nowrap;flex-shrink:0}
.fin-ratio-mtr{height:5px;border-radius:3px;background:var(--glass-08);overflow:hidden;margin:7px 0 5px}
.fin-ratio-mtr>i{display:block;height:100%;border-radius:3px;background:var(--rc,var(--mut-5));transition:width .7s cubic-bezier(.4,0,.2,1)}
.fin-ib-q{font-size:11px;opacity:.55;cursor:help}
.fin-jump{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:10px}
.fin-jump-b{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px 14px;border-radius:13px;border:1px solid var(--bord);background:var(--glass2);color:var(--txt);cursor:pointer;transition:transform .14s,border-color .14s}
.fin-jump-b:hover{transform:translateY(-2px);border-color:rgba(var(--accent),.5)}
.fin-jump-ic{font-size:22px;flex-shrink:0}
.fin-jump-t{flex:1;min-width:0}
.fin-jump-t b{display:block;font-size:13.5px}
.fin-jump-t small{color:var(--mut);font-size:11.5px}
.fin-jump-go{color:var(--mut);font-size:18px}

.fin-cockpit{border:1px solid var(--bord);border-left:3px solid var(--vc,var(--mut-5));border-radius:16px;background:var(--glass);padding:14px 14px 4px;margin-top:14px}
.fin-cockpit-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.fin-cockpit-verdict{display:flex;align-items:center;gap:9px;padding:6px 12px;border-radius:12px;background:var(--glass-045);border:1px solid var(--bord);cursor:help;flex-shrink:0}
.fin-cockpit-dot{font-size:15px;line-height:1}
.fin-cockpit-vtxt{display:flex;flex-direction:column;line-height:1.2}
.fin-cockpit-vtxt b{font-size:14px;color:var(--vc,var(--mut-5))}
.fin-cockpit-vtxt small{font-size:10px;color:var(--mut)}
.fin-cockpit-checks{display:flex;gap:6px;flex-wrap:wrap;flex:1;min-width:0}
.fin-hchk{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:4px 9px;border-radius:20px;border:1px solid var(--bord);cursor:help;white-space:nowrap}
.fin-hchk.ok{color:var(--ok);background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.30)}
.fin-hchk.no{color:var(--bad);background:rgba(251,113,133,.12);border-color:rgba(251,113,133,.38)}
.fin-cockpit-cta{margin-left:auto;background:linear-gradient(135deg,#22d3ee,var(--viol));color:#04121f;font-weight:700;border:none;border-radius:11px;padding:8px 15px;cursor:pointer;font-size:12.5px;white-space:nowrap;flex-shrink:0}
.fin-cockpit-cta:hover{filter:brightness(1.08)}
.fin-cockpit .fin-kpis{margin-top:0;margin-bottom:10px}
.mba-kpi-l{text-wrap:balance}

.fin-dash-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.fin-timew{display:flex;align-items:center;gap:14px;padding:9px 16px;border-radius:14px;background:linear-gradient(135deg,rgba(34,211,238,.10),rgba(167,139,250,.12));border:1px solid var(--bord);flex-shrink:0}
.fin-timew-date{text-align:right;line-height:1.25}
.fin-timew-full{font-size:13.5px;font-weight:700;color:var(--txt)}
.fin-timew-day{font-size:11px;color:var(--mut)}
.fin-timew-clock{display:flex;flex-direction:column;align-items:center;padding-left:14px;border-left:1px solid var(--bord)}
.fin-timew-t{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1;color:var(--ink,#e8eefc);font-family:'Sora',sans-serif}
.fin-timew-s{font-size:10px;color:var(--mut);font-variant-numeric:tabular-nums;margin-top:3px;letter-spacing:.3px}
@media(max-width:860px){.fin-timew{display:none}}
.fin-kpis.k6{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1250px){.fin-kpis.k6{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.fin-kpis.k6{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fin-kpis.k6 .mba-kpi{min-width:0}
.fin-kpis.k6 .mba-kpi-v{white-space:nowrap}

.fin-insight-txt{display:flex;flex-wrap:wrap;gap:6px 4px}
.fin-ib{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:9px;background:var(--glass-05);white-space:nowrap}
.fin-icgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.fin-ic{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:14px;background:var(--glass2);border:1px solid var(--bord);transition:transform .14s,border-color .14s}
.fin-ic:hover{transform:translateY(-2px);border-color:rgba(var(--accent),.4)}
.fin-ic-ic{font-size:23px;flex-shrink:0;line-height:1}
.fin-ic-body{min-width:0}
.fin-ic-big{font-size:21px;font-weight:800;letter-spacing:-.4px;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap}
.fin-ic-lab{font-size:12px;font-weight:600;color:var(--txt);margin-top:4px}
.fin-ic-sub{font-size:11px;color:var(--mut);margin-top:2px}
.fin-ic.up .fin-ic-big{color:var(--ok-2)}
.fin-ic.down .fin-ic-big{color:var(--bad-2)}

.fin-invbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 10px}
.fin-chkl{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--txt);cursor:pointer}
.fin-chkl input,.inv-chk{accent-color:rgb(var(--accent));width:16px;height:16px;cursor:pointer}
.fin-chkl input:disabled{cursor:not-allowed;opacity:.4}
.inv-row{cursor:pointer;transition:background .12s}
.inv-row:hover{background:rgba(var(--accent),.07)}
svg .hvb{cursor:crosshair}
svg .hvb:hover .hvl{opacity:.5!important}
.fin-book td:first-child,.fin-book th:first-child{white-space:nowrap}

.ap-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.ap-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#f7f9fb;border:1px solid #e3e8ef;border-radius:12px;padding:12px 14px;cursor:pointer;font-family:inherit}
.ap-row:hover{border-color:#0176d3;background:#eef5ff}
.ap-emo{font-size:20px;flex:0 0 auto}
.ap-main{flex:1;min-width:0}.ap-main b{display:block;font-size:14px;color:#16325c;font-weight:700}.ap-main span{font-size:12px;color:#5c6b80}
.ap-money{font-weight:800;color:#1c6b34;font-size:13px;white-space:nowrap}
.ap-go{color:#9aa7bd;font-size:18px;flex:0 0 auto}

.nm-card{display:flex;align-items:center;gap:16px;background:linear-gradient(120deg,rgba(14,165,233,.18),rgba(34,211,238,.06));border:1px solid rgba(34,211,238,.38);border-radius:16px;padding:16px 20px;margin-bottom:16px}
.nm-card.nm-done{background:rgba(52,211,153,.08);border-color:rgba(52,211,153,.3)}
.nm-l{flex:1;min-width:0}
.nm-eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--info-2)}
.nm-name{font-family:'Sora',sans-serif;font-size:20px;font-weight:800;color:var(--txt);margin:3px 0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.nm-why{font-size:13px;color:var(--mut)}.nm-why b{color:var(--txt)}
.nm-acts{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.nm-call{background:#0ea5e9;color:#04121f;font-weight:800;border-radius:12px;padding:11px 18px;text-decoration:none;font-size:14px}
.nm-call:hover{filter:brightness(1.08)}
.nm-wa{background:#25d366;color:#04210f;border-radius:12px;padding:11px 16px;display:inline-flex;align-items:center;gap:7px;justify-content:center;text-decoration:none;font-size:14px;font-weight:800;white-space:nowrap}
.nm-open{background:var(--glass-06);border:1px solid var(--bord);color:var(--txt);border-radius:12px;padding:11px 14px;cursor:pointer;font-weight:700;font-family:inherit}

.nm-card{flex-direction:column;align-items:stretch}
.nm-top{display:flex;align-items:center;gap:16px}
.nm-count{margin-left:8px;font-size:10px;background:rgba(125,211,252,.18);color:var(--info-2);border-radius:20px;padding:2px 8px;vertical-align:middle}
.nm-list{margin-top:14px;border-top:1px solid var(--glass-10);padding-top:10px;display:flex;flex-direction:column;gap:7px}
.nm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border-radius:10px;background:var(--glass);cursor:pointer;transition:background .12s}
.nm-row:hover{background:var(--glass3)}
.nm-row-l{min-width:0;display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--txt);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nm-row-why{color:var(--mut);font-weight:500}
.nm-row-r{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.nm-row-worth{font-weight:800;color:var(--ok-2);font-size:13px}
.nm-row-ic{text-decoration:none;font-size:15px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--glass-07)}
.nm-row-ic:hover{background:var(--glass4)}

.sgq-card{margin-top:14px;padding:0;overflow:hidden}
.sgq-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--bord);background:rgba(127,127,127,.06)}
.sgq-h-l{font-weight:800;color:var(--txt);font-size:14px}
.sgq-setname{color:var(--mut);font-weight:600;font-size:12.5px}
.sgq-tabs{display:flex;gap:6px;margin-left:auto}
.sgq-tab{background:rgba(127,127,127,.10);border:1px solid var(--bord);color:var(--mut);border-radius:10px;padding:7px 14px;cursor:pointer;font-weight:700;font-family:inherit;font-size:13px}
.sgq-tab.on{background:#0176d3;border-color:#0176d3;color:#fff}
.sgq-body{padding:14px 18px}
.sgq-topic{font-weight:800;color:#0176d3;font-size:13.5px;margin:8px 0 4px}
.sgq-qs{margin:0 0 10px;padding-left:20px}.sgq-qs li{margin:5px 0;color:var(--txt);font-size:14px;line-height:1.55}
.sgq-cue{background:rgba(1,118,211,.07);border:1px solid rgba(1,118,211,.28);border-radius:12px;padding:14px 16px}
.sgq-cue-t{font-weight:800;font-size:15px;color:var(--txt);margin-bottom:8px}
.sgq-cue-sub{color:var(--mut);font-weight:700;font-size:12.5px}
.sgq-cue-note{margin-top:8px;color:var(--mut);font-size:12.5px;font-style:italic}
.sgq-recent{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 16px 14px}
.sgq-recent-l{color:var(--mut);font-size:12px;font-weight:700}
.sgq-rchip{background:rgba(127,127,127,.10);border:1px solid var(--bord);color:var(--txt);border-radius:20px;padding:5px 12px;cursor:pointer;font-size:12px;font-family:inherit}
.sgq-rchip:hover{border-color:#0176d3}
.nm-open:hover{border-color:#22d3ee}

.ern-ringwrap{display:flex;align-items:center;gap:18px;justify-content:center;margin-bottom:16px;flex-wrap:wrap}
.ern-rs-v{font-family:'Sora',sans-serif;font-size:23px;font-weight:800;color:var(--txt)}
.ern-rs-l{font-size:12px;color:var(--mut)}
.ern-rs-n{font-size:12.5px;color:var(--info-2);font-weight:700;margin-top:6px}.ern-rs-n b{color:var(--ok)}

.sh-streak{display:flex;align-items:center;gap:12px;margin:0 0 14px;font-size:12.5px}
.sh-flame{font-weight:800;color:var(--warn);white-space:nowrap}
.sh-streak-bar{flex:1;height:8px;background:var(--glass-07);border-radius:5px;overflow:hidden}.sh-streak-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--warn),var(--bad))}
.sh-streak-n{color:var(--mut);white-space:nowrap}

.confetti-wrap{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}
.confetti-wrap i{position:absolute;top:-14px;width:9px;height:14px;border-radius:2px;animation:confetti-fall linear forwards}
@keyframes confetti-fall{to{transform:translateY(106vh) rotate(560deg);opacity:.85}}
@media(max-width:820px){.sf-kpis{grid-template-columns:repeat(2,1fr)}.sf-grid2{grid-template-columns:1fr}.sf-pageheader{flex-wrap:wrap}.sf-quick{margin-left:0;width:100%}}

.sf-app .cx-row b,.sf-app .cx-kc b,.sf-app .cx-fu b{color:var(--info-2)}
.sf-app .h1{font-size:21px}

.cx-flow{gap:0}
.cx-sp{border-radius:0;margin-right:3px;padding:7px 4px 7px 16px;clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%,11px 50%)}
.cx-sp:first-child{padding-left:10px;clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%)}
.cx-sp.on{background:linear-gradient(90deg,#0176d3,#1b96ff);color:#fff}

.overlay .panel .cx-ph,.overlay .panel .cx-mut,.overlay .panel .cx-f small,.overlay .panel .cx-sp{color:#5c6b80}
.overlay .panel .cx-dn,.overlay .panel .cx-f b,.overlay .panel .cx-tl .cx-ti b{color:#16325c}
.overlay .panel .cx-f,.overlay .panel .cx-log select,.overlay .panel .cx-log input,.overlay .panel .cx-sp{background:#f7f9fb;border-color:#dddbda}
.overlay .panel .cx-sec{color:#0176d3}.overlay .panel .cx-tl .cx-ti{color:#5c6b80;border-color:#e5e5e5}
.overlay .panel .cx-deal{background:#e7f7ee;border-color:#a7dcba;color:#15803d}
.overlay .panel .cx-deal b{color:#16325c}.overlay .panel .cx-deal .g{color:#0e7a36}
.overlay .panel .cx-act.email{background:#6366f1;color:#fff;border-color:#6366f1}
.overlay .panel .cx-log select,.overlay .panel .cx-log input{color:#16325c}
.overlay .panel .cx-log input::placeholder{color:#94a3b8}
.overlay .panel .cx-tl .cx-ti div{color:#475569}

.overlay .panel input,.overlay .panel select,.overlay .panel textarea{box-sizing:border-box;max-width:100%}
.overlay .panel .cx-fields{grid-template-columns:1fr 1fr;gap:12px}
.overlay .panel .cx-fields .cx-f{min-width:0}
.overlay .panel .cx-fields .cx-f input,.overlay .panel .cx-fields .cx-f select{width:100%}

.btn,.side-item,.seg-b,.stat-link,.note-link,.mt-cat,.skill-btn,.tr-name,.lw-batch,.sf-row,.sg-tchip,.bprog{ transition: transform .14s ease, border-color .16s ease, background .16s ease, box-shadow .2s ease, color .14s ease; }
.btn:hover:not([disabled]):not(.disabled){ transform: translateY(-1px); }
.btn:active:not([disabled]){ transform: translateY(0); }
.card{ transition: border-color .18s ease, box-shadow .22s ease; }
.list tr td{ transition: background .12s ease; }
.h1,.dash-name,.login-card .ielts-logo{ letter-spacing: -.6px; }
::selection{ background: rgba(34,211,238,.32); color: #fff; }

.player ::selection{ background: #b4d5ff; color: #111; }
.player ::-moz-selection{ background: #b4d5ff; color: #111; }
input:focus,select:focus,textarea:focus{ outline: none; }
.stu-search:focus,.search:focus{ border-color: var(--cyan, #22d3ee); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.admin-side .side-item.active{ box-shadow: inset 0 0 0 1px rgba(34,211,238,.22); }
.stat-link:hover{ box-shadow: 0 8px 22px rgba(2,132,199,.16); }
.skill-btn:hover{ transform: translateY(-1px); }
.mt-cat:hover{ transform: translateY(-1px); }
.dash-cta,.btn.primary{ box-shadow: 0 6px 18px rgba(2,132,199,.22); }
.list tr:hover td{ background: rgba(255,255,255,.025); }
.side-item.active{ background: linear-gradient(100deg, rgba(37,99,235,.22), rgba(6,182,212,.14));
  color: var(--txt); box-shadow: inset 2px 0 0 var(--vio); }
.admin-main{ flex: 1; min-width: 0; }
@media (max-width: 820px){ .admin-shell{ flex-direction: column; } .admin-side{ width: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--bord); } .side-item span{ display: none; } }

@media (max-width: 760px) {
  .p-content.split{ flex-direction: column; }
  .divider{ display: none; }
  .pane.left,.pane.right{ flex: none; max-height: 50vh; }
  .review-q{ grid-template-columns: 36px 1fr 1fr 40px; }
}
.w-diff{ text-align: left; font-size: 11px; color: var(--mut); margin-top: 0; }

.overlay .panel .btn{ color: #1c1c1c; background: #f1f2f5; border-color: #c9ccd4; }
.overlay .panel .btn:hover{ background: #e4e6ea; }
.overlay .panel .btn.primary{ color: #fff; background: var(--grad); border: 0; }
.overlay .panel .btn.danger-line{ color: #b91c1c; background: rgba(185,28,28,.06); border-color: rgba(185,28,28,.35); }
.tgt-row{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.tgt-row .tgt-sel{ width: 100%; padding: 9px 10px; border: 1.5px solid var(--bord2); border-radius: 10px; background: var(--glass-05); color: var(--txt); font: inherit; font-weight: 700; cursor: pointer; }
html[data-theme="light"] .tgt-row .tgt-sel{ background: #fff; border-color: var(--bord); color: #0f172a; }
.tgt-overall{ font-size: 24px; font-weight: 850; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 2px; }
@media (max-width: 700px){ .tgt-row{ grid-template-columns: repeat(2, 1fr); } }
.photo-actions{ display: flex; gap: 8px; flex-wrap: wrap; }
img.avatar{ object-fit: cover; border: 0; }

.w-city.w-home{ background: linear-gradient(100deg, rgba(var(--accent),.20), rgba(14,165,233,.12));
  border: 1px solid rgba(var(--accent),.6); box-shadow: 0 4px 16px rgba(var(--accent),.18); }
.w-city.w-home .w-head b{ background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.under-bar{ position: fixed; right: 20px; bottom: 20px; z-index: 40; padding: 8px 12px;
  background: rgba(22,24,38,.85); border: 1px solid var(--bord2); border-radius: 30px;
  backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }

.top-left{ position: relative; }
.top-left .user-menu{ right: 0; left: auto; }
.top-left .user-menu button{ text-align: right; }
.brand-block{ display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  cursor: pointer; line-height: 1.18; transition: .15s; }
.brand-block:hover{ filter: brightness(1.2); }
.brand-ielts{ font-size: 36px; font-weight: 900; letter-spacing: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-line{ font-size: 12.5px; font-weight: 800; }
.brand-block small{ font-size: 10.5px; color: var(--mut); }
.exp-row{ padding: 4px 14px 10px 58px; font-size: 12.5px; color: var(--mut); border-bottom: 1px solid var(--glass-05); line-height: 1.5; }

.ctx-rubric{ font-style: italic; font-size: 13.5px; color: #333; margin-bottom: 16px; max-width: 720px; }
.player .radio-row label:hover{ background: #eef4fd; }
.player .radio-row label{ border-radius: 3px; padding: 3px 6px; }

.player .radio-row input[type=radio]{
  appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin: 0;
  border: 1.5px solid #767676; border-radius: 50%; background: #fff; flex-shrink: 0;
  display: inline-grid; place-content: center; cursor: pointer; }
.player .radio-row input[type=radio]:hover{ border-color: #1c1c1c; }
.player .radio-row input[type=radio]:checked{ border-color: #1c1c1c; }
.player .radio-row input[type=radio]:checked::before{
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: #1c1c1c; }
.player .radio-row input[type=checkbox]{
  appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin: 0;
  border: 1.5px solid #767676; border-radius: 3px; background: #fff; flex-shrink: 0;
  display: inline-grid; place-content: center; cursor: pointer; }
.player .radio-row input[type=checkbox]:hover{ border-color: #1c1c1c; }
.player .radio-row input[type=checkbox]:checked{ background: #1c1c1c; border-color: #1c1c1c; }
.player .radio-row input[type=checkbox]:checked::before{
  content: "✓"; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.player .radio-row label{ gap: 11px; padding: 6px 8px; font-size: 14.5px; cursor: pointer; }
/* v1.037 — TRUE/FALSE/NOT GIVEN (and YES/NO/NOT GIVEN) options INDENT UNDER THE STATEMENT, as the
   printed book sets them. Owner-reported 2026-07-30.
   The three words were already one-per-line and aligned to each other (measured: all at the same x);
   what was wrong is that the radio sat under the question NUMBER, so the options hung to the LEFT of
   the sentence they belong to.
   MEASURED, not eyeballed: the statement text begins 21.8px into the item (`.qnum` 17.8px + its 4px
   margin) while the radio sat 8px in (the label's own padding-left), so the indent needed is 13.8px.
   ⚠ BOTH RULES ARE REQUIRED. `.qnum` is `display:inline; width:auto`, so a ONE-digit number is ~9px
   narrower than a two-digit one — Q7's statement text starts further left than Q35's. Indenting the
   options by a fixed amount alone would therefore align them under the text on Q35 and past it on
   Q7. Making `.qnum` a fixed-width inline-block inside the statement pins every statement's text to
   the same x, so one indent is correct for all 40. Deliberately scoped to `.tfng-item .stmt` —
   `.qnum` is shared with gap-sentences, head-rows and other flowing content that must not shift. */
/* v1.077: 18px → 1.125em (identical at the 16px base, so the v1.037 measurement is preserved).
   This rule is MORE SPECIFIC than the .player .stmt .qnum pin below, so leaving it in px silently
   beat the em pin at fs-large / fs-small and pushed line 1 out of line with the hanging indent —
   measured, not reasoned: q11 sat at 48.1px against a line-2 of 49.4px until this changed. */
.player .tfng-item .stmt .qnum{ display: inline-block; min-width: 1.125em; }

/* v1.077 — HANGING INDENT, so a wrapped question aligns under its own first line instead of falling
   back under the NUMBER. Reported on C21 R1 Q9 and Q12, whose stems run to two lines: line 2 started
   at the container's left edge, level with "9", which reads as a new question.
   v1.037 pinned `.qnum` to 18px so the first line always starts at the same x — this is the other
   half of that job, for line 2 onward. The indent is the qnum pin + its 4px margin-right, so it
   lands exactly on the text, not near it.
   Applied to `.ag-item` too (the lettered answer-grid used by matching-information), which never got
   the v1.037 pin at all and shifts between one- and two-digit numbers.
   ⚠ `.head-row` is deliberately EXCLUDED: those are short drag/matching labels that do not wrap, and
   v1.037 records that `.qnum` there is shared with flowing content that must not shift.
   ⚠ MEASURED, and the first attempt at a flat 22px was WRONG at the other two text sizes: `.qnum`
   is content-sized, so at fs-large "10" renders 21.1px and at fs-small 24.5px — a fixed 22px indent
   left line 2 up to 7px short of line 1. The indent is therefore PROPORTIONAL: 1.125em is the
   v1.037 18px pin expressed against the 16px base, and +4px is `.qnum`'s own (fixed) margin-right,
   so indent == qnum box + margin EXACTLY at 16 / 19 / 22px. The min-width moves to the same em so
   the pin still wins over the digits at every size and one- vs two-digit numbers stay aligned. */
.player .stmt,
.player .ag-item{ padding-left: calc(1.125em + 4px); text-indent: calc(-1.125em - 4px); }
.player .stmt .qnum,
.player .ag-item .qnum{ display: inline-block; min-width: 1.125em; }
/* Children re-establish normal flow — without this the negative indent is inherited by nested
   inline-blocks (the radio rows, option text) and drags their first line left. */
.player .stmt > *,
.player .ag-item > *{ text-indent: 0; }
.player .tfng-item .radio-row{ padding-left: 14px; }

.player.theme-wb .radio-row input,.player.theme-yb .radio-row input{ background: #111; border-color: #bbb; }
.player.theme-wb .radio-row input[type=radio]:checked::before{ background: #fff; }
.player.theme-yb .radio-row input[type=radio]:checked::before{ background: #ffe14d; }
.player.theme-wb .radio-row input[type=checkbox]:checked{ background: #fff; }
.player.theme-wb .radio-row input[type=checkbox]:checked::before{ color: #000; }
.player.theme-yb .radio-row input[type=checkbox]:checked{ background: #ffe14d; }
.player.theme-yb .radio-row input[type=checkbox]:checked::before{ color: #000; }

.rep-head{ display:flex; gap:18px; align-items:center; background:var(--glass); border:1px solid var(--bord);
  border-radius:16px; padding:18px; margin:18px 0 16px; position:relative; }
.rep-photo{ width:84px; height:104px; border-radius:12px; object-fit:cover; border:1px solid var(--bord2); flex:none; }
.rep-photo-ph{ display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:800;
  color:#fff; background:var(--grad); }
.rep-id{ flex:1; min-width:0; }
.rep-name{ font-size:22px; font-weight:800; }
.rep-meta{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 24px; margin-top:10px; font-size:13px; }
.rep-meta span{ display:block; color:var(--mut); font-size:11.5px; }
.rep-tag{ position:absolute; top:14px; right:16px; font-size:11px; color:var(--mut);
  border:1px solid var(--bord); border-radius:20px; padding:4px 12px; }
.rep-scores{ display:grid; grid-template-columns:repeat(4,1fr) 1.15fr 0.85fr; gap:10px; margin:6px 0 14px; }
.sc{ background:var(--glass); border:1px solid var(--bord); border-radius:16px; padding:12px 8px; text-align:center; }
.sc .scl{ font-size:10.5px; color:var(--mut); text-transform:uppercase; letter-spacing:.6px; }
.sc .scv{ font-size:28px; font-weight:850; margin-top:4px; }
.sc-overall{ border-color:rgba(34,211,238,.4); background:rgba(34,211,238,.07); }
.sc-overall .scl{ color:var(--cyan); }
.rep-fb-h{ font-size:12.5px; font-weight:800; color:var(--mut); letter-spacing:.5px; margin:22px 0 10px; }
.rep-fbs{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.rep-fb{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:16px 6px; background:var(--glass);
  border:1px solid var(--bord); border-radius:14px; color:var(--txt); cursor:pointer; transition:.15s; text-align:center; font-family:inherit; }
.rep-fb:hover:not([disabled]){ background:rgba(37,99,235,.14); border-color:rgba(34,211,238,.45); transform:translateY(-1px); }
.rep-fb[disabled]{ opacity:.4; cursor:default; }
.rep-fb i{ font-size:24px; color:var(--cyan); }
.rep-fb .nm{ font-size:15px; font-weight:700; }
.rep-fb small{ font-size:11px; color:var(--mut); }

.sd-head{ display:flex; align-items:center; gap:16px; margin:16px 0 18px; }
.sd-ic{ width:60px; height:60px; border-radius:14px; background:rgba(34,211,238,.12); border:1px solid rgba(34,211,238,.3);
  display:flex; align-items:center; justify-content:center; flex:none; }
.sd-ic i{ font-size:30px; color:var(--cyan); }
.sd-pt{ font-size:12px; font-weight:700; color:var(--mut); letter-spacing:.5px; margin:14px 0 7px; }
.sd-grid{ display:grid; grid-template-columns:repeat(10,1fr); gap:6px; }
.sd-q{ aspect-ratio:1; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:12px;
  font-weight:600; cursor:pointer; border:1px solid; transition:.12s; font-family:inherit; }
.sd-q:hover{ transform:translateY(-1px); }
.sd-q.ok{ background:rgba(52,211,153,.13); color:#5eead4; border-color:rgba(52,211,153,.4); }
.sd-q.no{ background:rgba(251,113,133,.13); color:var(--bad); border-color:rgba(251,113,133,.45); }
.sd-detail{ margin-top:14px; background:rgba(37,99,235,.07); border:1px solid rgba(34,211,238,.22);
  border-radius:14px; padding:14px 16px; font-size:13px; color:var(--txt); min-height:48px; }
.sd-recs{ margin:0; padding-left:18px; font-size:13.5px; line-height:1.7; color:var(--txt); }
.sd-allbtn-row{ margin:12px 0 0; }
.sd-rev{ display:flex; flex-direction:column; gap:8px; text-align:left; }
.sd-rev-row{ padding:9px 12px; border-radius:10px; border:1px solid rgba(148,163,184,.22); background:rgba(255,255,255,.02); font-size:13px; }
.sd-rev-row.ok{ border-color:rgba(46,158,91,.4); }
.sd-rev-row.no{ border-color:rgba(251,113,133,.4); }
.sd-rev-q{ font-weight:800; }
.sd-rev-mark{ margin:0 5px; }
.sd-rev-ex{ margin-top:5px; color:var(--cyan); font-size:12.5px; line-height:1.55; }

.player .dragsum{ line-height:2.7; font-size:15px; }
/* v1.143 - the gap GROWS to its answer instead of hiding it. It was a fixed 140px with
   overflow:hidden, so a dropped phrase was cut off at BOTH ends (centred): "powerful
   individuals and businesses" rendered as "ful individuals and busin". The real exam never
   shows a truncated answer. Measured across all 36 dragfill groups (338 options): p50 10
   chars, p90 18, max 35 - so 150px is the FLOOR, matching the min-width an empty gap already
   resolved to before this build (.player .drop-gap, styles.css) - so the change is PURELY
   ADDITIVE: nothing shrinks, an empty or short gap is byte-identical to v1.142 and the summary
   prose does not reflow. Only a long phrase grows the gap. The longest real phrase needs
   about 260px, comfortably inside the question pane. max-width keeps it inside its column.
   dropify is the only caller of inline-gap (player.js), so this touches dragfill and nothing
   else in the portal. */
.player .drop-gap.inline-gap{ display:inline-flex; align-items:center; justify-content:center; min-width:150px; width:auto; max-width:100%; height:28px; padding:0 8px; vertical-align:middle; margin:0 4px; box-sizing:border-box; }

.player .dragsum .chip.in-gap{ border:0; background:transparent; box-shadow:none; padding:0; font-size:14px; line-height:1.2; height:auto; white-space:nowrap; }

.rv-hero{ display:flex; gap:22px; align-items:center; flex-wrap:wrap; background:rgba(34,211,238,.06); border:1px solid rgba(34,211,238,.22); border-radius:16px; padding:18px 22px; margin:14px 0 18px; }
.rv-ring-svg{ width:104px; height:104px; }
.rv-ring-bg{ fill:none; stroke:rgba(148,163,184,.18); stroke-width:9; }
.rv-ring-fg{ fill:none; stroke:var(--cyan); stroke-width:9; stroke-linecap:round; }
.rv-ring-pct{ fill:var(--txt); font-size:25px; font-weight:800; text-anchor:middle; }
.rv-ring-sub{ fill:var(--mut); font-size:10.5px; letter-spacing:1px; text-anchor:middle; }
.rv-hero-main{ flex:1; min-width:240px; }
.rv-hero-score{ font-size:17px; color:var(--mut); }
.rv-hero-score b{ font-size:30px; color:var(--txt); margin-left:2px; }
.rv-of{ font-size:16px; }
.rv-band{ float:right; background:rgba(34,211,238,.14); color:var(--cyan); font-size:13px; font-weight:700; padding:4px 12px; border-radius:999px; }
.rv-hero-msg{ color:var(--txt); margin:9px 0 13px; font-size:15px; line-height:1.5; }
.rv-bar{ height:10px; border-radius:6px; background:rgba(251,113,133,.22); overflow:hidden; }
.rv-bar-ok{ display:block; height:100%; background:linear-gradient(90deg,#22c55e,#10b981); border-radius:6px; }
.rv-bar-key{ display:flex; gap:18px; margin-top:7px; font-size:12.5px; }
.rv-bar-key .ok{ color:var(--ok); } .rv-bar-key .no{ color:var(--bad); }
.rv-filters{ display:flex; gap:10px; margin:0 0 16px; flex-wrap:wrap; }
.rv-chip{ padding:8px 15px; border-radius:999px; border:1px solid rgba(148,163,184,.3); background:transparent; color:var(--mut); cursor:pointer; font-size:13px; font-weight:600; }
.rv-chip span{ margin-left:5px; opacity:.85; }
.rv-chip.active{ color:var(--txt); background:rgba(34,211,238,.14); border-color:rgba(34,211,238,.55); }
.rv-chip-no.active{ background:rgba(251,113,133,.14); border-color:rgba(251,113,133,.55); color:var(--txt); }
.rv-chip-ok.active{ background:rgba(34,197,94,.14); border-color:rgba(34,197,94,.55); color:var(--txt); }
.rv-part{ margin-bottom:18px; }
.rv-part-h{ display:flex; justify-content:space-between; align-items:baseline; margin:0 2px 10px; font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--mut); }
.rv-part-sc{ color:var(--cyan); letter-spacing:0; }
.rv-card{ display:flex; gap:13px; padding:13px 15px; border-radius:14px; margin-bottom:9px; border:1px solid rgba(148,163,184,.16); border-left:3px solid; background:rgba(255,255,255,.02); }
.rv-card.ok{ border-left-color:#22c55e; }
.rv-card.no{ border-left-color:var(--bad); }
.rv-num{ flex:0 0 auto; width:30px; height:30px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; }
.rv-num.ok{ background:rgba(34,197,94,.16); color:var(--ok); }
.rv-num.no{ background:rgba(251,113,133,.16); color:var(--bad); }
.rv-card-r{ flex:1; min-width:0; }
.rv-q{ font-size:14.5px; color:var(--txt); line-height:1.55; margin-bottom:9px; }
.rv-blank{ color:var(--cyan); font-weight:700; letter-spacing:1px; }
.rv-ans{ display:flex; flex-wrap:wrap; gap:8px; }
.rv-pill{ font-size:12.5px; padding:4px 11px; border-radius:8px; }
.rv-pill.ok{ background:rgba(34,197,94,.13); color:var(--ok); }
.rv-pill.no{ background:rgba(251,113,133,.13); color:var(--bad); }
.rv-pill.cor{ background:rgba(34,211,238,.13); color:var(--cyan); }
.rv-ex{ font-size:13px; color:var(--mut); line-height:1.6; background:var(--glass-03); border:1px solid rgba(148,163,184,.12); border-radius:10px; padding:9px 12px; margin-top:9px; }
.rv-tip{ margin:6px 0 12px; padding:12px 15px; border-radius:12px; background:rgba(37,99,235,.08); border:1px solid rgba(37,99,235,.2); color:var(--txt); font-size:13.5px; line-height:1.55; }
@media (max-width:640px){ .rv-hero{ gap:14px; } .rv-ring-svg{ width:84px; height:84px; } }

.spk-quota{ background:#f3f7ff; border:1px solid #d8e6ff; border-radius:10px; padding:9px 14px; margin:6px 0 8px; }
.spk-quota .sq-row{ display:flex; justify-content:space-between; font-size:13.5px; color:#3a475c; padding:3px 0; }
.spk-quota .sq-row b{ color:#0b2447; }
.spk-quota .sq-row.sq-left{ border-top:1px solid #d8e6ff; margin-top:4px; padding-top:7px; font-weight:600; }
.spk-quota .sq-row.sq-left b{ color:#1d6fd6; font-size:16px; }
.spk-quota-note{ font-size:12.5px; color:#5a6b85; margin:0 0 12px; line-height:1.5; }
.spk-note{ font-size:13.5px; color:#444; line-height:1.55; margin:4px 0 14px; }
.spk-step{ margin:14px 0; }
.spk-step-h{ font-weight:700; color:#16263f; font-size:14px; display:flex; align-items:center; gap:8px; margin-bottom:7px; }
.spk-step-n{ display:inline-flex; width:22px; height:22px; border-radius:50%; background:#1d6fd6; color:#fff; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.spk-step-n.alt{ background:#8492a8; }
.spk-opt{ font-size:11px; font-weight:600; color:#1d6fd6; background:#e7f0ff; padding:2px 9px; border-radius:999px; }
.spk-substep{ font-size:12.5px; color:#5a6b85; margin:0 0 9px; line-height:1.5; }
.spk-pick-sum{ font-size:13px; color:#16263f; background:#f6f8fb; border:1px solid #e6eaf1; border-radius:10px; padding:9px 12px; margin:12px 0; }
.slot.sel{ background:#1d6fd6; color:#fff; border-color:#1d6fd6; font-weight:700; }
.slot.slot-dim{ opacity:.4; }
.spk-quota-line{ font-size:12.5px; color:var(--mut); margin-top:7px; }
.spk-quota-line b{ color:var(--cyan); }
.spk-quota-hint{ opacity:.7; }
.spk-alt{ color:var(--mut); font-size:11px; background:rgba(148,163,184,.14); padding:1px 7px; border-radius:6px; margin-left:4px; }

.dash-hero{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap;
  background: linear-gradient(120deg, rgba(2,132,199,.16), rgba(var(--accent),.07) 58%, transparent);
  border:1px solid rgba(var(--accent),.2); border-radius:20px; padding:22px 26px; box-shadow:var(--shadow); }
.dash-eyebrow{ font-size:12px; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; color:var(--cyan); }
.dash-name{ font-family:var(--font-display); font-weight:800; font-size:34px; letter-spacing:-.6px; line-height:1.05; margin:3px 0 0; }
.dash-tagline{ color:var(--mut); font-size:14.5px; margin-top:6px; max-width:760px; }
.dash-progress{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:15px; }
.dh-chip{ font-size:13px; padding:6px 13px; border-radius:999px; border:1px solid var(--bord2); background:var(--glass2); }
.dh-chip b{ font-family:var(--font-display); font-weight:800; margin-left:3px; }
.dh-chip.band b{ color:var(--cyan); }
.dh-chip.target{ border-color:rgba(var(--accent),.38); }
.dh-chip.start{ color:var(--mut); }
.dh-sep{ color:var(--mut); }
.dh-gap{ font-size:12.5px; font-weight:700; color:var(--grn); background:rgba(52,211,153,.12); border:1px solid rgba(52,211,153,.3); padding:6px 12px; border-radius:999px; }
.dash-hero-l{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
/* push the band tiles to the bottom of the hero-left so they line up with the cockpit's bottom edge */
.stu-glass .dash-hero{ align-items:stretch; }
.dash-hero-gauges{ margin-top:auto; padding-top:18px; }
.dash-hero-r{ display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
/* v0.900 — premium hero cockpit card */
.dash-cockpit{ width:346px; max-width:100%; display:flex; flex-direction:column; gap:13px;
  background:var(--glass2); border:1px solid var(--bord); border-radius:18px; padding:15px 17px;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:0 10px 34px rgba(2,32,64,.07); }
.dcp-clock{ display:flex; justify-content:space-between; align-items:flex-end; gap:10px; }
.dcp-date{ display:flex; flex-direction:column; line-height:1.22; }
.dcp-date-full{ font-size:13.5px; font-weight:700; color:var(--txt); }
.dcp-day{ font-size:11px; color:var(--mut); }
.dcp-time{ display:flex; align-items:baseline; gap:6px; }
.dcp-time b{ font-family:'Sora',sans-serif; font-size:27px; font-weight:800; color:var(--txt); font-variant-numeric:tabular-nums; line-height:1; }
.dcp-ap{ font-size:11px; color:var(--mut); }
.dcp-sec{ font-variant-numeric:tabular-nums; }
.dcp-mid{ display:flex; align-items:center; gap:14px; border-top:1px solid var(--bord); padding-top:12px; }
.dcp-mid .stk-ring{ flex:none; }
.dcp-mid .stk-ring svg{ width:64px; height:64px; }
.dcp-mid-txt{ min-width:0; flex:1; }
.dcp-streak-h{ font-size:14.5px; font-weight:600; color:var(--txt); line-height:1.25; }
.dcp-streak-h b{ color:#ea7317; }
.dcp-nudge{ font-size:12px; color:var(--mut); margin-top:3px; }
.dcp-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.dcp-stat{ text-align:center; background:var(--glass2); border:1px solid var(--bord); border-radius:12px; padding:9px 5px; }
.dcp-stat b{ display:block; font-family:'Sora',sans-serif; font-size:20px; font-weight:800; color:var(--txt); line-height:1; }
.dcp-stat span{ display:block; font-size:10.5px; color:var(--mut); margin-top:4px; }
.dcp-stat-hot b{ color:var(--bad-3,#e11d48); }
.dcp-stat-warn b{ color:var(--warn-2,#b45309); }
.dcp-stat-cta{ cursor:pointer; border-style:dashed; transition:border-color .15s,background .15s; }
.dcp-stat-cta:hover{ border-color:rgba(var(--accent),.55); background:rgba(var(--accent),.06); }
.dcp-band-l{ display:flex; justify-content:space-between; align-items:baseline; font-size:11.5px; color:var(--mut); margin-bottom:5px; }
.dcp-band-l b{ color:var(--txt); font-size:12px; }
.dcp-band-bar{ height:8px; border-radius:99px; background:var(--glass-08,rgba(15,30,60,.08)); overflow:hidden; }
.dcp-band-bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,rgb(var(--accent)),var(--ok,#10b981)); animation:fxBar 1.1s .2s cubic-bezier(.22,1,.36,1) both; }
@media(max-width:760px){ .dash-cockpit{ width:100%; } }
.dash-cta{ font-size:15px; padding:12px 22px; border-radius:14px; }
.dash-status{ display:flex; flex-direction:column; align-items:flex-end; gap:5px; font-size:12.5px; color:var(--mut); text-align:right; }
@media (max-width:760px){ .dash-hero{ padding:18px; } .dash-name{ font-size:27px; } .dash-hero-r{ align-items:flex-start; width:100%; } .dash-status{ align-items:flex-start; text-align:left; } }

.th-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:16px 0 6px; }
.th-stat{ background:var(--glass); border:1px solid var(--bord); border-radius:14px; padding:16px 18px; box-shadow:var(--shadow); }
.th-stat-n{ font-family:var(--font-display); font-weight:800; font-size:28px; line-height:1; }
.th-stat.amber .th-stat-n{ color:var(--amber); }
.th-stat.cyan .th-stat-n{ color:var(--cyan); }
.th-stat.green .th-stat-n{ color:var(--grn); }
.th-stat-l{ font-size:12px; color:var(--mut); margin-top:7px; letter-spacing:.3px; }
.th-card{ padding:0; margin:16px 0; overflow:hidden; }
.th-card-h{ display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; padding:15px 20px; border-bottom:1px solid var(--bord); }
.th-card-t{ font-family:var(--font-display); font-weight:700; font-size:16.5px; }
.th-card-tools{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.th-card-tools .tq-toggle{ margin:0; }
.th-card-tools .asg-sel{ height:38px; }
.th-card-tools .tq-toggle .seg-b{ padding:7px 13px; }
.th-card .list{ margin:0; }
.th-card .list td:first-child,.th-card .list th:first-child{ padding-left:20px; }
.th-card .list td:last-child,.th-card .list th:last-child{ padding-right:20px; }
.th-empty{ padding:34px 20px; text-align:center; color:var(--mut); font-size:14px; }
@media (max-width:760px){ .th-stats{ grid-template-columns:repeat(2,1fr); } }
.login-brand{ display:flex; justify-content:center; margin-bottom:12px; }
.login-mark{ width:54px; height:54px; border-radius:16px; background:var(--grad); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:27px;
  box-shadow:0 10px 26px rgba(var(--accent),.35); }
.rep-fb-ic{ display:inline-flex; color:var(--cyan); }
.rep-fb-ic svg{ width:24px; height:24px; }
.sd-ic svg{ width:30px; height:30px; color:var(--cyan); }
.sc-overall{ background: linear-gradient(135deg, rgba(2,132,199,.2), rgba(var(--accent),.1)); border-color:rgba(var(--accent),.4); }
.sc-overall .scv{ font-family:var(--font-display); background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

.brand-ielts{ font-size:28px; font-weight:800; letter-spacing:.5px; }
.tr-name{ display:flex; align-items:center; gap:11px; cursor:pointer; padding:6px 8px; border-radius:14px; border:1px solid transparent; transition:background .15s, border-color .15s; }
.tr-name:hover{ background:var(--glass2); border-color:var(--bord); }
.tr-name .avatar{ width:42px; height:42px; font-size:16px; border-radius:12px; box-shadow:none; }
.tr-name .who-col{ align-items:flex-start; gap:5px; line-height:1.1; }
.tr-uname{ font-family:var(--font-display); font-weight:700; font-size:15px; }
.tr-badges{ display:flex; gap:6px; }
.tr-badge{ font-size:9.5px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; padding:2px 8px; border-radius:999px; background:var(--glass2); border:1px solid var(--bord2); color:var(--mut); }
.tr-badge.pro{ background:linear-gradient(120deg, rgba(2,132,199,.32), rgba(var(--accent),.2)); border-color:rgba(var(--accent),.5); color:var(--cyan); }
.top-left .caret{ color:var(--mut); font-size:11px; }
.user-menu{ position:absolute; top:calc(100% + 8px); right:0; width:282px; background:rgba(15,19,32,.985);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border:1px solid var(--bord2); border-radius:16px; padding:8px;
  z-index:30; box-shadow:0 20px 52px rgba(0,0,0,.55);
  /* the admin menu (8 portals + account + self-service + logout) can be taller than the viewport —
     cap it and let it scroll so Logout at the bottom is always reachable */
  max-height:calc(100vh - 84px); overflow-y:auto; overscroll-behavior:contain; }
.user-menu::-webkit-scrollbar{ width:8px; }
.user-menu::-webkit-scrollbar-thumb{ background:var(--bord2); border-radius:8px; }
/* Backdrop for the account menu — dims the page so the open menu reads as a deliberate overlay
   (not a collision with the content it floats over) and gives a full-page click target to close. */
.um-scrim{ position:fixed; inset:0; z-index:29; background:rgba(3,6,15,.38);
  backdrop-filter:blur(1.5px); -webkit-backdrop-filter:blur(1.5px); animation:umFade .12s ease; }
@keyframes umFade{ from{opacity:0} to{opacity:1} }
/* Live "who's online now" pill — top-left of the admin dashboard. */
.presence-pill{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  color:var(--txt); background:rgba(16,185,129,.10); border:1px solid rgba(16,185,129,.35);
  border-radius:999px; padding:6px 14px; margin-bottom:12px; cursor:pointer; }
.presence-pill b{ color:#10b981; }
.presence-pill .pl-dot{ width:8px; height:8px; border-radius:50%; background:#10b981; flex:none;
  box-shadow:0 0 0 0 rgba(16,185,129,.6); animation:plPulse 2s infinite; }
@keyframes plPulse{ 0%{box-shadow:0 0 0 0 rgba(16,185,129,.55)} 70%{box-shadow:0 0 0 7px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }
.um-head{ display:flex; align-items:center; gap:10px; padding:6px 10px 9px; }
.um-ava{ width:36px; height:36px; border-radius:11px; background:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:14px; object-fit:cover; flex-shrink:0; }
.um-id{ min-width:0; }
.um-name{ font-family:var(--font-display); font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.um-plan{ font-size:11px; color:var(--mut); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.um-progress{ background:var(--glass2); border:1px solid var(--bord); border-radius:12px; padding:9px 11px; margin:0 4px 8px; }
.ump-top{ display:flex; justify-content:space-between; font-size:12px; color:var(--mut); margin-bottom:7px; }
.ump-top b{ color:var(--txt); font-family:var(--font-display); margin-left:3px; }
.ump-bar{ height:6px; border-radius:6px; background:var(--glass-08); overflow:hidden; }
.ump-bar span{ display:block; height:100%; background:var(--grad); border-radius:6px; }
.um-group{ padding-top:4px; margin-top:4px; border-top:1px solid var(--bord); }
.um-group:first-of-type,.um-progress + .um-group{ border-top:0; margin-top:0; padding-top:0; }
.um-sec{ padding:4px 11px 2px; font-size:9.5px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:var(--mut); opacity:.85; user-select:none; }
.um-emoji{ width:18px; display:inline-flex; justify-content:center; font-size:14px; flex-shrink:0; }
.user-menu .um-item{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:6px 11px; border:0; background:none; color:var(--txt); border-radius:9px; font-size:13px; font-weight:500; line-height:1.35; transition:background .12s; }
.user-menu .um-item svg{ width:17px; height:17px; color:var(--mut); flex-shrink:0; }
.user-menu .um-item:hover:not([disabled]){ background:var(--glass2); }
.user-menu .um-item:hover:not([disabled]) svg{ color:var(--cyan); }
.user-menu .um-item.um-soon{ color:var(--mut); cursor:default; }
.user-menu .um-item.um-soon em{ margin-left:auto; font-size:9px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--mut); background:var(--glass2); border:1px solid var(--bord); padding:2px 7px; border-radius:999px; }
.user-menu .um-logout{ color:var(--bad); margin-top:4px; padding-top:8px; border-top:1px solid var(--bord); border-top-left-radius:0; border-top-right-radius:0; }
.user-menu .um-logout svg{ color:var(--bad); }
.user-menu .um-logout:hover{ background:rgba(251,113,133,.1); }
.sd-bars{ margin-top:6px; }
.sd-bar-row{ display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.sd-bar-lab{ width:150px; font-size:12.5px; color:var(--mut); flex:none; }
.sd-bar-track{ flex:1; height:8px; background:var(--bord); border-radius:5px; }
.sd-bar-fill{ display:block; height:8px; background:var(--grad); border-radius:5px; }
.sd-bar-val{ width:28px; text-align:right; font-size:12.5px; font-weight:700; flex:none; }
@media (max-width:640px){ .rep-scores{grid-template-columns:repeat(3,1fr)} .rep-fbs{grid-template-columns:repeat(2,1fr)} .sd-grid{grid-template-columns:repeat(5,1fr)} .rep-meta{grid-template-columns:1fr} }

.passage .rd-table{ border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.passage .rd-table th{ text-align: left; background: rgba(37,99,235,.10); border: 1px solid var(--bord2);
  padding: 7px 10px; font-weight: 800; }
.passage .rd-table td{ border: 1px solid var(--bord2); padding: 7px 10px; vertical-align: top; }
.passage .rd-table td.rd-tier{ font-weight: 800; background: rgba(34,211,238,.10); }
.passage ul{ margin: 8px 0 8px 22px; }
.passage ul li{ margin-bottom: 4px; font-size: 14.5px; line-height: 1.55; }

.passage .rd-tier-h{ font-weight: 800; margin: 12px 0 2px; }
.passage .rd-item{ line-height: 1.85; margin: 0 0 6px; padding-left: 6px; }
.passage .rd-contents{ line-height: 1.95; margin: 4px 0 0; padding-left: 6px; }

.passage .rd-box{ border: 1px solid var(--bord2); border-radius: 2px; padding: 14px 18px; margin: 10px 0; }
.passage .rd-box p{ margin: 4px 0; }
.passage .rd-broc{ border-collapse: collapse; width: 100%; margin: 2px 0 6px; }
.passage .rd-broc td{ vertical-align: top; padding: 1px 0; line-height: 1.5; }
.passage .rd-broc td:first-child{ width: 38%; padding-right: 14px; white-space: nowrap; }

.card.soon{ opacity: .68; }
.rate-chip.soon-chip{ color: var(--amber); font-weight: 800; letter-spacing: .6px; }
.btn.coming{ background: var(--glass2); color: var(--mut); border: 1px solid var(--bord2); box-shadow: none; cursor: default; }

.overlay .panel{ max-height: 92vh; overflow: auto; }

.stu-stats{ display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 16px; }
.stat-tile{ flex:1; min-width:118px; background:var(--glass); border:1px solid var(--bord); border-radius:14px; padding:12px 16px; }
.stat-tile.warn{ border-color:rgba(251,191,36,.5); background:rgba(251,191,36,.08); }
/* v1.182 — a stat tile that drills through to the student list must READ as clickable, and answer
   the keyboard, because it carries role="button". Tiles without data-stufilter are untouched. */
.stat-tile[data-stufilter]{ cursor:pointer; transition:border-color .15s ease, background .15s ease, transform .15s ease; }
.stat-tile[data-stufilter]:hover{ border-color:var(--info); background:rgba(56,189,248,.10); transform:translateY(-1px); }
.stat-tile[data-stufilter]:focus-visible{ outline:2px solid var(--info); outline-offset:2px; }
.stat-tile[data-stufilter].on{ border-color:var(--info); background:rgba(56,189,248,.13); }
.stat-tile .st-n{ font-size:22px; font-weight:800; color:var(--txt); }
.stat-tile .st-l{ font-size:12px; color:var(--mut); margin-top:2px; }
.stu-toolbar{ display:flex; gap:10px; align-items:center; margin:0 0 14px; flex-wrap:wrap; }
.stu-search{ flex:1; min-width:220px; padding:10px 14px; border:1px solid var(--bord2); border-radius:12px; background:var(--glass2); color:var(--txt); font-size:14px; outline:none; }
.stu-search:focus{ border-color:var(--vio); }
.stu-sel{ padding:9px 12px; border:1px solid var(--bord2); border-radius:12px; background:var(--glass2); color:var(--txt); font-size:13.5px; cursor:pointer; }

.mb-note{font-size:12px;color:var(--mut);background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:9px 11px;margin:0 0 12px;line-height:1.45}

.overlay .panel select.stu-sel option{background:#0e1526;color:#e8eefc}
.tb-grow{ flex:1; }
.stu-table td{ vertical-align:middle; }
.row-sub{ font-size:11.5px; color:var(--mut); margin-top:3px; }
.meter{ display:flex; align-items:center; gap:8px; }
.meter-bar{ width:64px; height:7px; border-radius:6px; background:var(--glass2); overflow:hidden; }
.meter-bar span{ display:block; height:100%; background:var(--grad); border-radius:6px; }
.meter small{ color:var(--mut); font-size:12px; font-variant-numeric:tabular-nums; }
.row-acts{ display:flex; gap:6px; justify-content:flex-end; align-items:center; }
.btn.ghost-b{ padding:6px 10px; }

.mt-cats{ display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.mt-cat{ display:flex; align-items:center; gap:18px; text-align:left; width:100%; background:var(--glass); border:1px solid var(--bord); border-radius:16px; padding:20px 22px; cursor:pointer; color:var(--txt); transition:.15s; }
.mt-cat:hover{ border-color:var(--vio); background:var(--glass2); transform:translateY(-1px); }
.mt-emo{ font-size:34px; }
.mt-ct{ flex:1; }
.mt-title{ font-size:17px; font-weight:800; }
.mt-desc{ font-size:13px; color:var(--mut); margin-top:3px; }
.mt-count{ font-size:12px; color:var(--vio); margin-top:6px; font-weight:700; }
.mt-arrow{ font-size:22px; color:var(--mut); }
/* Manage Tests — the test id and the module are the two things staff read this table FOR: the code
   is what /t/<code> opens and what every stored attempt references, and a legacy AC and GT mock can
   otherwise share a display name ("Full Mock Test 1") with nothing on the row to tell them apart. */
.mt-code{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12.5px;
  letter-spacing:.2px; padding:2px 7px; border-radius:6px; background:var(--glass2);
  border:1px solid var(--bord); color:var(--mut); white-space:nowrap; }
.mt-mod{ display:inline-block; font-size:11.5px; font-weight:800; letter-spacing:.4px;
  padding:3px 9px; border-radius:999px; border:1px solid var(--bord); white-space:nowrap; }
.mt-mod-ac{ background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.35); color:#1d4ed8; }
.mt-mod-gt{ background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.35); color:#047857; }
.mt-mod-both{ background:var(--glass2); color:var(--mut); }
html[data-theme="light"] .mt-mod-ac{ color:#1d4ed8; }
html:not([data-theme="light"]) .mt-mod-ac{ color:#93c5fd; }
html:not([data-theme="light"]) .mt-mod-gt{ color:#6ee7b7; }
.mt-back{ color:var(--vio); cursor:pointer; font-weight:700; }
.mt-back:hover{ text-decoration:underline; }

.th-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.tq-toggle{ display:inline-flex; gap:6px; margin:0 0 14px; background:var(--glass); border:1px solid var(--bord); border-radius:12px; padding:4px; }
.tq-toggle .seg-b{ border:0; background:none; color:var(--mut); font-weight:700; font-size:13px; padding:7px 14px; border-radius:10px; cursor:pointer; }
.tq-toggle .seg-b.active{ background:var(--grad); color:#fff; }
.asg-sel{ padding:7px 10px; border:1px solid var(--bord2); border-radius:10px; background:var(--glass2); color:var(--txt); font-size:13px; cursor:pointer; max-width:200px; }
.asg-other{ color:var(--amber); font-weight:700; font-size:12.5px; }
.asg-none{ color:var(--mut); font-size:12.5px; }

.spk-card{ display:flex; align-items:flex-start; gap:16px; background:var(--glass); border:1px solid var(--bord); border-radius:16px; padding:16px 20px; margin:18px 0 6px; }
.spk-ic{ display:flex; align-items:center; justify-content:center; color:rgb(var(--accent)); flex:none; height:62px; }
.spk-ic .skill-ico{ width:48px; height:48px; }
.spk-ic svg{ stroke-width:1.7; }
.spk-body{ flex:1; }
.spk-title{ font-size:16px; font-weight:800; }
.spk-sub{ font-size:13px; color:var(--mut); margin-top:2px; }
.spk-list{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.spk-bk{ display:inline-flex; align-items:center; gap:8px; background:var(--glass2); border:1px solid var(--bord); border-radius:10px; padding:5px 10px; font-size:12.5px; }
.spk-when{ color:var(--txt); }

.overlay .panel .slot-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:6px 0 12px; max-height:280px; overflow:auto; }
.overlay .panel .slot{ padding:9px 0; border:1.5px solid #d0d6df; border-radius:10px; background:#fff; color:#1c1c1c; font-weight:700; font-size:13.5px; cursor:pointer; font-variant-numeric:tabular-nums; }
.overlay .panel .slot:hover{ border-color:#0ea5e9; }
.overlay .panel .slot.on{ border-color:#0ea5e9; background:#0ea5e9; color:#fff; }
.overlay .panel .slot.booked{ background:#eef0f3; color:#9aa3b2; cursor:not-allowed; border-style:dashed; }
.overlay .panel .slot.soon{ background:#f7f4ec; color:#b08a3a; cursor:not-allowed; border-style:dotted; opacity:.7; }
.overlay .panel .slot-empty{ grid-column:1/-1; text-align:center; color:#6b7280; padding:18px; font-size:13.5px; }
.overlay .panel .slot-legend{ font-size:12px; color:#6b7280; margin-bottom:14px; display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.overlay .panel .slot-legend .lg{ display:inline-block; width:12px; height:12px; border-radius:3px; border:1.5px solid #d0d6df; background:#fff; }
.overlay .panel .slot-legend .lg.on{ background:#0ea5e9; border-color:#0ea5e9; }
.overlay .panel .slot-legend .lg.booked{ background:#eef0f3; border-style:dashed; }

.overlay .panel .prof-actions{ display:flex; gap:8px; margin:0 0 14px; }
.overlay .panel .prof-actions .btn{ flex:1; }
.overlay .panel .perf-btn{ background:#0ea5e9; color:#fff; border-color:#0ea5e9; }
.overlay .panel .field2{ display:flex; gap:12px; }
.overlay .panel .field2 .field{ flex:1; }
.overlay .panel .notes-area,.overlay .panel .imp-area{ width:100%; border:1px solid #d0d6df; border-radius:10px; padding:9px 11px; font-size:13.5px; font-family:inherit; resize:vertical; color:#1c1c1c; }
.overlay .panel .notes-area{ min-height:64px; }
.overlay .panel .imp-area{ min-height:120px; font-family:ui-monospace,Menlo,monospace; font-size:13px; }
.overlay .panel .imp-opt{ margin:12px 0; }
.overlay .panel .imp-opt label{ font-size:13px; color:#444; display:block; margin-bottom:6px; }
/* v1.389 — Import students, redesigned (ANik 4 Oct: "improve UI of this feature"): numbered sections, a live count, one row per access */
.overlay .panel p.imp-lead{ margin:0 0 14px; font-size:13.5px; color:var(--mut); }
.overlay .panel .imp-sec{ border:1px solid var(--bord,#e3e6ec); border-radius:12px; padding:14px 14px 12px; margin:0 0 12px; }
.overlay .panel .imp-sec-h{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; margin:0 0 8px; }
.overlay .panel .imp-step{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--acc,#2563eb); color:#fff; font-size:12px; font-weight:700; flex:none; }
.overlay .panel .imp-fmt{ font-size:12.5px; color:var(--mut); margin:0 0 10px; line-height:1.6; }
.overlay .panel .imp-fmt code{ font:12px ui-monospace,Menlo,monospace; background:var(--glass2,#f1f3f6); border-radius:4px; padding:1px 5px; }
.overlay .panel .imp-file{ display:flex; align-items:center; gap:10px; margin:0 0 8px; cursor:pointer; }
.overlay .panel .imp-file input[type=file]{ display:none; }
.overlay .panel .imp-file-b{ border:1px dashed var(--bord2,#b9c0cc); border-radius:8px; padding:7px 12px; font-size:13px; font-weight:600; }
.overlay .panel .imp-file:hover .imp-file-b{ border-color:var(--acc,#2563eb); }
.overlay .panel .imp-file-or{ font-size:12.5px; color:var(--mut); }
.overlay .panel .imp-count{ font-size:12.5px; color:var(--mut); margin-top:6px; }
.overlay .panel .imp-count.on{ color:var(--ok,#15803d); font-weight:600; }
/* v1.389 — access rows, one line each: switch · name (end date once on) · For 1/3/6 months · Until a calendar day (popover) */
.overlay .panel .imp-row2{ position:relative; display:grid; grid-template-columns:minmax(0,1fr) 52px 170px 22px 220px; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--bord,#eef0f3); }
.overlay .panel .imp-sec-h + .imp-row2, .overlay .panel .imp-sec-h + * + .imp-row2{ border-top:0; }
.overlay .panel .imp-row2 .imp-acc-t{ display:flex; flex-direction:column; gap:1px; margin:0; cursor:pointer; min-width:0; }
.overlay .panel .imp-mockrow .imp-acc-t{ cursor:default; }
/* 17 Nov 2026 — AI Speaking "tests opened" picker: spans the switch + duration columns so "All 10 tests" fits (it was squeezed into the switch column) */
.overlay .panel .acc-ais-n #acc-ais-n{ grid-column:2 / 4; width:100%; min-width:0; }
@media (max-width:720px){ .overlay .panel .acc-ais-n #acc-ais-n{ grid-column:1 / -1; } }
.overlay .panel .imp-row2 .imp-acc-t b{ font-size:13.5px; }
.overlay .panel .imp-row2 .imp-acc-t small{ font-size:12px; color:var(--mut); }
.overlay .panel .imp-row2.on .imp-acc-t small{ color:var(--txt); }
.overlay .panel .imp-row2 .imp-acc-t small b{ display:inline; font-size:inherit; }
.overlay .panel .imp-mockc{ grid-column:3 / 6; display:flex; align-items:center; gap:10px; }
.overlay .panel .imp-mockc input[type=range]{ flex:1; }
.overlay .panel .imp-sw{ position:relative; display:inline-flex; cursor:pointer; margin:0; justify-self:center; }
.overlay .panel .imp-sw input:disabled + .imp-sw-k{ opacity:.45; cursor:not-allowed; }
.overlay .panel .imp-soon{ display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:700; vertical-align:1px; background:rgba(245,158,11,.14); color:var(--warn,#b45309); }
.overlay .panel .imp-or{ font-size:12.5px; color:var(--mut); text-align:center; }
.overlay .panel .imp-sw input{ position:absolute; opacity:0; width:1px; height:1px; }
.overlay .panel .imp-sw-k{ width:42px; height:24px; border-radius:12px; background:#cbd2dc; position:relative; transition:background .15s; }
.overlay .panel .imp-sw-k::after{ content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .15s; }
.overlay .panel .imp-sw input:checked + .imp-sw-k{ background:var(--ok,#16a34a); }
.overlay .panel .imp-sw input:checked + .imp-sw-k::after{ transform:translateX(18px); }
.overlay .panel .imp-sw input:focus-visible + .imp-sw-k{ outline:2px solid var(--info,#2563eb); outline-offset:2px; }
.overlay .panel .imp-vo{ height:40px; box-sizing:border-box; border:1.5px solid var(--bord,#dfe3ea); border-radius:10px; min-width:0; }
.overlay .panel select.imp-vo{ padding:0 10px; font-size:13px; font-weight:600; }
.overlay .panel .imp-vo.act{ border-color:var(--acc,#2563eb); background:rgba(37,99,235,.06); }
.overlay .panel .imp-row2:not(.on) .imp-vo, .overlay .panel .imp-row2:not(.on) .imp-or{ opacity:.45; }
.overlay .panel .imp-cd{ display:flex; align-items:center; gap:6px; padding:0 10px; background:none; text-align:left; font:inherit; font-size:13px; color:var(--txt); cursor:pointer; white-space:nowrap; overflow:hidden; }
.overlay .panel .imp-cd:disabled{ cursor:default; }
.overlay .panel .imp-cd-t{ font-weight:700; color:var(--mut); flex:none; }
.overlay .panel .imp-cd-d{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.overlay .panel .imp-cd svg{ flex:none; color:var(--mut); }
.overlay .panel .imp-ends-w{ color:var(--warn,#b45309); font-weight:600; }
.overlay .panel .imp-cal{ position:absolute; right:0; top:calc(100% - 4px); z-index:5; width:290px; background:#fff; backdrop-filter:blur(22px); border:1px solid var(--bord,#dfe3ea); border-radius:12px; padding:10px; box-shadow:0 12px 32px rgba(16,24,40,.18); }
.overlay .panel .imp-cal.up{ top:auto; bottom:calc(100% - 4px); }
.overlay .panel .imp-cal[hidden]{ display:none; }
.overlay .panel .imp-cal-h{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.overlay .panel .imp-cal-h b{ font-size:13.5px; }
.overlay .panel .imp-cal button{ border:0; background:none; font:inherit; color:var(--txt); cursor:pointer; border-radius:8px; }
.overlay .panel .imp-cal-h button{ width:30px; height:30px; font-size:18px; line-height:1; }
.overlay .panel .imp-cal-h button:hover:not(:disabled){ background:var(--glass2,#f1f3f6); }
.overlay .panel .imp-cal-q{ display:flex; gap:5px; margin-bottom:6px; }
.overlay .panel .imp-cal-q button{ flex:1; font-size:11.5px; font-weight:700; padding:4px 0; border:1px solid var(--bord,#dfe3ea); border-radius:999px; }
.overlay .panel .imp-cal-q button:hover{ border-color:var(--acc,#2563eb); color:var(--acc,#2563eb); }
.overlay .panel .imp-cal-w, .overlay .panel .imp-cal-g{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.overlay .panel .imp-cal-w span{ font-size:11px; font-weight:700; color:var(--mut); padding:2px 0; }
.overlay .panel .imp-cal-g button{ height:34px; font-size:13px; }
.overlay .panel .imp-cal-g span{ height:34px; }
.overlay .panel .imp-cal-h b{ flex:1; text-align:center; }
.overlay .panel .imp-cal-g button:hover:not(:disabled){ background:rgba(37,99,235,.10); }
.overlay .panel .imp-cal-g button.tdy{ box-shadow:inset 0 0 0 1.5px var(--acc,#2563eb); }
.overlay .panel .imp-cal-g button.sel{ background:var(--acc,#2563eb); color:#fff; font-weight:700; }
.overlay .panel .imp-cal button:disabled{ opacity:.3; cursor:default; }
@media (max-width:720px){ .overlay .panel .imp-row2{ grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr); row-gap:8px; } .overlay .panel .imp-row2 .imp-acc-t{ grid-column:1 / 3; } .overlay .panel .imp-sw{ grid-column:3; justify-self:end; } .overlay .panel .imp-mockc{ grid-column:1 / 4; } .overlay .panel .imp-cal{ left:0; right:0; width:auto; max-width:320px; margin:0 auto; } }
@media (max-width:560px){ .overlay .panel .imp-row2{ grid-template-columns:minmax(0,1fr) 52px; row-gap:6px; } .overlay .panel .imp-row2 .imp-acc-t{ grid-column:1; } .overlay .panel .imp-sw{ grid-column:2; } .overlay .panel .imp-row2 .imp-vo, .overlay .panel .imp-or, .overlay .panel .imp-mockc{ grid-column:1 / 3; } .overlay .panel .imp-or{ line-height:1; } }
.overlay .panel .imp-mn{ min-width:38px; text-align:center; font-size:14px; }
.overlay .panel .imp-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:4px; flex-wrap:wrap-reverse; }
@media (max-width:560px){ .overlay .panel .imp-actions .btn{ flex:1 1 100%; } }

.overlay .panel .pf-head{ display:flex; justify-content:flex-start; align-items:center; gap:14px; border-bottom:1px solid #eceff3; padding-bottom:14px; margin-bottom:14px; }
.overlay .panel .pf-name{ font-size:19px; font-weight:800; color:#111; }
.overlay .panel .pf-id{ font-size:12.5px; color:#6b7280; margin-top:3px; }
.overlay .panel .pf-band{ text-align:center; }
.overlay .panel .pf-band-n{ font-size:30px; font-weight:800; color:#0ea5e9; line-height:1; }
.overlay .panel .pf-band-l{ font-size:10.5px; color:#6b7280; text-transform:uppercase; letter-spacing:.5px; margin-top:3px; }
.overlay .panel .pf-skills{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:12px; }
.overlay .panel .pf-skill{ background:#f5f7fa; border:1px solid #e6e9ee; border-radius:12px; padding:10px 6px; text-align:center; }
.overlay .panel .pf-skill.goal{ background:#e8f6fe; border-color:#bae6fd; }
.overlay .panel .pf-emo{ font-size:18px; }
.overlay .panel .pf-sv{ font-size:18px; font-weight:800; color:#111; margin-top:2px; }
.overlay .panel .pf-sl{ font-size:10.5px; color:#334155; font-weight:600; margin-top:2px; }
.overlay .panel .pf-tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.overlay .panel .pf-tile{ background:#fff; border:1px solid #e6e9ee; border-radius:12px; padding:10px; text-align:center; }
.overlay .panel .pf-n{ font-size:15px; font-weight:800; color:#111; }
.overlay .panel .pf-l{ font-size:11px; color:#334155; font-weight:600; margin-top:3px; }
.overlay .panel .pf-rec{ border-radius:14px; padding:14px 16px; margin-bottom:14px; border:1px solid #e6e9ee; }
.overlay .panel .pf-rec-top{ display:flex; align-items:center; gap:12px; }
.overlay .panel .pf-rec-ic{ font-size:26px; }
.overlay .panel .pf-rec-tag{ font-size:10.5px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; opacity:.75; }
.overlay .panel .pf-rec-act{ font-size:16px; font-weight:800; color:#111; margin-top:1px; }
.overlay .panel .pf-rec-why{ font-size:13px; color:#374151; margin-top:8px; line-height:1.5; }
.overlay .panel .pf-rec.exam{ background:#ecfdf5; border-color:#a7f3d0; }
.overlay .panel .pf-rec.mocks{ background:#fff7ed; border-color:#fed7aa; }
.overlay .panel .pf-rec.course{ background:#eff6ff; border-color:#bfdbfe; }
.overlay .panel .pf-rec.renew{ background:#fefce8; border-color:#fde68a; }
.overlay .panel .pf-rec.practice{ background:#f5f3ff; border-color:#ddd6fe; }
.overlay .panel .pf-rec.start{ background:#f0f9ff; border-color:#bae6fd; }
.overlay .panel .pf-msg-label{ font-size:12px; color:#6b7280; margin-bottom:6px; font-weight:700; }
.overlay .panel .pf-msg{ background:#f5f7fa; border:1px solid #e6e9ee; border-radius:10px; padding:11px 13px; font-size:12.5px; color:#374151; white-space:pre-wrap; line-height:1.5; max-height:150px; overflow:auto; margin-bottom:14px; }
.overlay .panel .pf-actions .pf-call{ background:#0ea5e9; color:#fff; border-color:#0ea5e9; }
.overlay .panel .pf-actions .pf-call.disabled{ background:#e5e7eb; color:#9ca3af; border-color:#e5e7eb; cursor:default; }

.headphone.big{ font-size:64px; margin-bottom:14px; }
.overlay .panel p.pg-intro{ max-width:470px; margin:0 auto 10px; color:#333; font-size:15px; line-height:1.55; }
.overlay .panel p.pg-cont{ max-width:470px; margin:0 auto 18px; color:#111; font-weight:700; font-size:15px; }
.play-btn.pg-play{ display:inline-flex; align-items:center; gap:6px; }
.pg-tri{ font-size:12px; }

.name-cell{ display:flex; align-items:center; justify-content:flex-start; gap:10px; }
.name-col{ min-width:0; }
.stu-ava{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:10px; background:var(--grad); color:#fff; font-size:11px; font-weight:800; flex:0 0 auto; }
img.stu-ava{ object-fit:cover; }
.stu-ava.lg{ width:48px; height:48px; border-radius:14px; font-size:16px; }
.overlay .panel .pf-head{ display:flex; justify-content:flex-start; align-items:center; gap:14px; border-bottom:1px solid #eceff3; padding-bottom:14px; margin-bottom:14px; }
.overlay .panel .pf-id-wrap{ min-width:0; }
.overlay .panel .pf-band2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
.overlay .panel .pf-b2{ border:1px solid #e6e9ee; border-radius:12px; padding:12px; text-align:center; background:#fff; }
.overlay .panel .pf-b2.now{ background:#e8f6fe; border-color:#bae6fd; }
.overlay .panel .pf-b2n{ font-size:26px; font-weight:800; color:#0ea5e9; line-height:1; }
.overlay .panel .pf-b2.goal .pf-b2n{ color:#111; }
.overlay .panel .pf-b2l{ font-size:11.5px; color:#334155; font-weight:600; margin-top:4px; }
.overlay .panel .pf-ap-h{ font-size:15px; font-weight:800; color:#111; margin:6px 0 10px; }
.overlay .panel .pf-msg-edit{ width:100%; min-height:150px; border:1px solid #d0d6df; border-radius:10px; padding:11px 13px; font-size:13px; font-family:inherit; line-height:1.55; color:#374151; resize:vertical; background:#fff; margin-bottom:14px; }
.overlay .panel .pf-msg-edit:focus{ border-color:#0ea5e9; outline:none; }
.overlay .panel .pf-actions-top{ margin:0 0 16px; }
.overlay .panel .pf-actions-top .btn{ flex:1; }
.overlay .panel .pf-edit-top{ flex:0 0 auto !important; background:#eef3f9; color:#0369a1; border-color:#cfe0f3; padding-left:18px; padding-right:18px; }
.overlay .panel .pf-cols{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.overlay .panel .pf-cols .pf-ap-h{ margin-top:0; }
.overlay .panel .pf-cols .pf-skills,.overlay .panel .pf-cols .pf-band2,.overlay .panel .pf-cols .pf-tiles{ margin-bottom:12px; }
.overlay .panel .pf-cols .pf-msg-edit{ min-height:160px; margin-bottom:0; overflow:hidden; }
@media (max-width:700px){ .overlay .panel .pf-cols{ grid-template-columns:1fr; gap:0; } }

.note-link{ cursor:pointer; transition:filter .12s, border-color .12s, transform .05s; }
.note-link:hover{ filter:brightness(1.13); }
.note-link:active{ transform:translateY(1px); }
.note-arrow{ float:right; font-weight:800; opacity:.65; }

.overlay .panel .pf-actbar{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:0 0 16px; }
.overlay .panel .pf-ab{ display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:12px; border:1px solid transparent; text-decoration:none; cursor:pointer; text-align:left; font-family:inherit; min-width:0; transition:filter .12s, transform .05s; }
.overlay .panel .pf-ab:hover{ filter:brightness(1.06); }
.overlay .panel .pf-ab:active{ transform:translateY(1px); }
.overlay .panel .pf-ab .pf-ab-ic{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; font-size:18px; width:20px; }
.overlay .panel .pf-ab .pf-ab-ic svg{ width:19px; height:19px; }
.overlay .panel .pf-ab .pf-ab-tx{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.overlay .panel .pf-ab .pf-ab-tx b{ font-size:13.5px; font-weight:800; }
.overlay .panel .pf-ab .pf-ab-tx small{ font-size:11px; font-weight:600; opacity:.9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.overlay .panel .pf-ab-call{ background:#0ea5e9; color:#fff; }
.overlay .panel .pf-ab-email{ background:#e8f1fe; color:#1d4ed8; border-color:#cddffb; }
.overlay .panel .pf-ab-wa{ background:#25d366; color:#fff; }
.overlay .panel .pf-ab-edit{ background:#f1f3f6; color:#1f2937; border-color:#dfe3ea; }
.overlay .panel .pf-ab.off{ opacity:.55; cursor:default; pointer-events:none; }
@media (max-width:760px){ .overlay .panel .pf-actbar{ grid-template-columns:repeat(2,1fr); } }

.player .part-banner{ background:#f1f2ec; border:1px solid #e2e2e0; border-radius:6px; margin:14px 22px 2px; padding:12px 16px; font-size:16px; line-height:24px; color:#1c1c1c; }
.player .pb-name{ font-weight:700; }
.player .pb-instr{ margin-top:2px; }

/* ⚠⚠ MAP / PLAN LABELLING IS STACKED, NOT SIDE-BY-SIDE — OWNER RULING, 2026-08-14 (v1.126).
   The plan goes ON TOP at the full width of the question column; the answers go BELOW it.

   WHAT WAS HERE BEFORE, AND WHY IT WAS WRONG. The old comment on this block claimed the
   side-by-side layout (plan left, radio grid right) was "authentic CD-IELTS". THAT CLAIM WAS
   NEVER VERIFIED against anything — it is the v1.084 `.gt-rowhead` class of unchecked comment,
   where a rule sat for months asserting it "matched the paper" and nobody had ever looked at a
   printed page. It is recorded here rather than deleted so the next person does not re-derive it.
   The measured cost was real: `.map-box{flex:0 1 400px;max-width:400px}` capped every plan at
   400px AND `width:100%!important` discarded the author's own inline size, so the FMG3 plans
   (1448x1086 native, authored at max-width:660/680px) rendered at ~28% of native — ANik could
   not read the lettered rooms. Portal-wide, not FMG3-only: ANik amended the scope mid-plan
   ("ok, change all maps accross the portal"), which is what makes this a CSS-ONLY change — no
   data flag, no renderer change, no per-paper switch that can drift out of step.

   ⚠ A COLUMN FLEX CHANGES WHAT flex-basis MEANS — this is the trap in the change. In a ROW the
   `flex:0 1 400px` / `flex:1 1 320px` bases below were WIDTHS; in a COLUMN they become HEIGHTS,
   so leaving them would pin the map box to a 400px-tall box and give the grid a 320px height
   floor. Both children are therefore reset to `flex:0 0 auto` with an explicit `width:100%`, and
   `align-items` moves from flex-start to stretch (in a column, flex-start shrink-wraps the
   CROSS axis, i.e. the width — the children would collapse to their content). `flex-wrap` is
   pinned to nowrap for the same reason: a wrapping column is a multi-column layout.
   ⚠ THE DELIVERED WIDTH IS 638px, NOT THE 720px THE PLAN PREDICTED — measured, and the reason is
   a rule the plan did not account for: ALL 31 of these plans are wrapped in `.map-wrap`, whose
   `max-width:640px` (styles.css ~753) is the binding cap, so the image resolves to 640 minus the
   wrapper's 1px borders. That is still 398px -> 638px, i.e. 1.60x the width and 2.57x the AREA,
   and it lands within a couple of px of the size the FMG3 papers were authored at (max-width:660
   / 680px inline). `.map-wrap` is deliberately NOT lifted here: it is a shared generic rule that
   also governs the legacy demo maps, and 638px already delivers the fix. Raising it to
   `max-width:100%` is the one-line change if ANik wants the last 13%.
   ⚠ 3 of the 31 plans are narrower than 638px natively (c15-l-2 504px, c15-l-4 483px,
   c16-l-4 604px) so they now upscale 1.27x / 1.32x / 1.06x and will look slightly soft. Flagged
   rather than special-cased — the fix is to re-source those three, not to add a per-image rule.
   ⚠ THE 6 LEGACY chips-on-map GROUPS ARE STACKED TOO, AND THAT WAS CHECKED BEFORE IT WAS DONE.
   Their numbered gaps are ABSOLUTELY POSITIONED over the map (`.map-gap{position:absolute}`), so
   scaling the map without scaling the gaps would put every gap in the wrong place — worse than a
   small map. Measured first: all 5 gaps on all 6 groups are PERCENTAGE-positioned against
   `.map-wrap`, and after the change every one resolves to the same authored percentage to within
   0.005% (top 78/18/12/55/38%, left 18/50/80/81/33%) while the map grows 446 -> 640px. The gap
   boxes are a constant 150x38px, so they now cover LESS of the map, not more. */
.player .dnd-wrap{ display:flex; flex-direction:column; flex-wrap:nowrap; gap:18px; align-items:stretch; margin:8px 0 18px; }
.player .map-box{ flex:0 0 auto; width:100%; max-width:100%; }
.player .map-box svg,.player .map-box img{ max-width:100%; height:auto; }
.player .map-grid-wrap{ display:flex; flex-direction:column; flex-wrap:nowrap; gap:18px; align-items:stretch; margin:8px 0 18px; }
.player .map-grid-wrap .map-box{ flex:0 0 auto; width:100%; max-width:100%; min-width:0; }
.player .map-grid-wrap .map-box img,.player .map-grid-wrap .map-box svg{ width:100%!important; height:auto; }
.player .map-grid-scroll{ flex:0 0 auto; width:100%; min-width:0; overflow-x:auto; }
.player table.map-grid{ border-collapse:collapse; width:100%; font-size:13.5px; table-layout:fixed; }
.player table.map-grid th,.player table.map-grid td{ border:1px solid #cfcfcf; padding:6px 2px; text-align:center; }
.player table.map-grid thead th{ background:#f3f4f6; font-weight:700; width:26px; }
.player table.map-grid td.mg-lbl,.player table.map-grid th.mg-lbl{ text-align:left; white-space:normal; line-height:1.25; font-weight:500; background:#fff; padding:6px 8px; width:auto; }
.player table.map-grid td.mg-lbl .qnum{ font-weight:700; color:#111; margin-right:5px; }
.player table.map-grid tbody tr:hover td{ background:#f6f9fd; }
.player table.map-grid td.mg-cell label{ display:flex; align-items:center; justify-content:center; margin:0; cursor:pointer; }
/* Authentic IELTS look: hollow WHITE radios that fill with a dark dot when chosen (same custom
   control as the MCQ rows) — not the native dark dots the app's dark color-scheme would draw. */
.player table.map-grid td.mg-cell input[type=radio]{
  appearance:none; -webkit-appearance:none; width:17px; height:17px; margin:0;
  border:1.5px solid #767676; border-radius:50%; background:#fff; flex-shrink:0;
  display:inline-grid; place-content:center; cursor:pointer; }
.player table.map-grid td.mg-cell input[type=radio]:hover{ border-color:#1c1c1c; }
.player table.map-grid td.mg-cell input[type=radio]:checked{ border-color:#1c1c1c; }
.player table.map-grid td.mg-cell input[type=radio]:checked::before{
  content:""; width:9px; height:9px; border-radius:50%; background:#1c1c1c; }
/* The `@media (max-width:760px){ .map-grid-wrap .map-box{max-width:100%;flex-basis:100%} }` rule
   that used to sit here is DELETED, not kept "just in case" (v1.126). It existed to unwrap the
   side-by-side row on a narrow screen; the layout is a stacked column at every width now, so it
   was a no-op — and worse, `flex-basis:100%` in a column is a HEIGHT, so a future reader would
   have had a rule that both claimed to do something and, if it ever applied, did the wrong thing.
   A stale rule that describes a layout the file no longer has is the v1.033 trap. */
.player .match-lefts{ display:flex; flex-direction:column; gap:13px; flex:0 0 auto; min-width:300px; }
.player .match-row{ display:flex; align-items:center; gap:14px; }
.player .match-label{ font-size:14.5px; min-width:130px; }
.player .chips-list{ display:flex; flex-flow:row wrap; gap:8px; align-items:flex-start; margin:0 0 4px; }
.player .chip{ display:inline-block; background:#fff; border:1px solid #6f6f6f; border-radius:3px; padding:7px 13px; font-size:14px; cursor:grab; margin:0; box-shadow:0 1px 0 rgba(0,0,0,.05); white-space:nowrap; }
.player .chip:hover{ border-color:#1c1c1c; background:#f6f9fd; }
.player .chip:active{ cursor:grabbing; }
.player .chip.in-gap{ border:0; background:transparent; box-shadow:none; }
/* The paragraph letter sits on the same row as its heading drop zone, so the gap is visibly
   attached to the paragraph BELOW it rather than floating between two paragraphs (v1.084). */
.player .gap-row{ display:flex; align-items:center; gap:10px; margin:14px 0 6px; }
.player .gap-row .gap-letter{ font-weight:700; font-size:16px; line-height:1; min-width:14px; }
.player .gap-row .drop-gap{ margin:0; }
.player .drop-gap{ display:inline-flex; align-items:center; min-width:150px; min-height:38px; border:1.5px dashed #9a9a9a; border-radius:4px; padding:4px; background:#fff; }
.player .drop-gap.over{ border-color:#3d70b8; background:#eef4fd; }
.player .drop-gap .gnum{ color:#9a9a9a; font-weight:700; font-size:13px; padding:0 8px; }
.player .drop-gap:has(.chip){ border-style:solid; border-color:#c4c4c4; padding:2px; }
.player .drop-gap:has(.chip) .gnum{ display:none; }
/* List of Headings: the bank is a VERTICAL list of full-text heading chips (they don't fit on
   one line like short word chips), and each paragraph row's drop-gap is wide enough to hold a
   wrapped heading. */
.player .chips-list.headings-bank{ flex-direction:column; align-items:stretch; gap:6px;
  border:1px solid #d9d9d9; border-radius:8px; padding:10px; background:#fafafa; max-width:560px; margin:6px 0 14px; }
.player .chips-list.headings-bank .chip{ display:block; white-space:normal; line-height:1.4; }
.player .head-row.drag-head{ align-items:flex-start; gap:12px; padding:6px 0; }
.player .head-row.drag-head .head-sec{ min-width:120px; font-weight:700; padding-top:8px; }
.player .drop-gap.head-gap{ flex:1; min-width:220px; }
.player .drop-gap.head-gap .chip.in-gap{ white-space:normal; line-height:1.4; }
/* Sentence endings (28 Oct 2026) — as in the computer-delivered test: each stem, then a full-width
   dashed gap carrying its number, then ONE shared list of endings below the stems. */
.player .end-rows{ margin:4px 0 12px; }
.player .end-row{ padding:6px 0; }
.player .end-row .end-stem{ line-height:1.5; margin-bottom:6px; }
.player .drop-gap.end-gap{ display:flex; justify-content:center; width:100%; max-width:560px; box-sizing:border-box; }
.player .drop-gap.end-gap:has(.chip){ justify-content:flex-start; }
.player .drop-gap.end-gap .chip.in-gap{ white-space:normal; line-height:1.4; }
/* Matching Features — copy-model drag. Persistent option bank + a gap beside each statement.
   Options are reusable, so the bank chips never leave; each gap holds a clone. */
/* The option box is a SINGLE-COLUMN list inside a ruled box (the Cambridge paper prints A–H one per
   line, often under a heading like "Opinions"), not a wrapping multi-column flow. */
.player .match-bank{ display:flex; flex-direction:column; align-items:flex-start; gap:7px;
  border:1px solid #9a9a9a; border-radius:6px; padding:12px 16px; background:#fff; margin:6px 0 16px;
  max-width:600px; }
.player .match-bank-title{ align-self:center; font-weight:700; font-size:15px; margin-bottom:4px; }
/* Bold list heading the paper prints BETWEEN the bank and the statements (e.g. "Duties"). Left-aligned
   bold, sits directly above the first match-row. */
.player .match-list-title{ font-weight:700; font-size:15px; margin:2px 0 8px; }
.player .mchip{ display:inline-block; background:#fff; border:1px solid #6f6f6f; border-radius:3px;
  padding:7px 13px; font-size:14px; cursor:grab; box-shadow:0 1px 0 rgba(0,0,0,.05); }
.player .mchip:hover{ border-color:#1c1c1c; background:#f6f9fd; }
.player .mchip:active{ cursor:grabbing; }
.player .mchip.in-gap{ border:0; background:transparent; box-shadow:none; padding:0; cursor:default; }
/* Matching features: qnum + a genuinely FIXED-width statement column + the drop box, as a grid, so
   every letter box lines up in one column regardless of how long each statement is (real CD-IELTS).
   A flex min/max range sized to content and let short labels pull their box left — this pins it. */
.player .match-row{ display:grid; grid-template-columns:26px 340px max-content; align-items:start;
  column-gap:12px; padding:6px 0; }
.player .match-row .match-stmt{ white-space:normal; line-height:1.45; }
.player .mgap{ display:inline-flex; align-items:center; justify-content:center; min-width:58px; min-height:34px;
  border:1.5px dashed #9a9a9a; border-radius:4px; padding:2px 8px; background:#fff; }
.player .mgap .mchip.in-gap{ font-weight:700; }
.player .mgap.over{ border-color:#3d70b8; background:#eef4fd; }
.player .mgap.filled{ border-style:solid; border-color:#c4c4c4; cursor:pointer; }
/* Flow-chart: stacked stage boxes joined by down-arrows (drag a letter into each box). */
.player .flow-chart{ display:flex; flex-direction:column; align-items:center; margin:12px 0; }
.player .flow-box{ border:1px solid #9a9a9a; border-radius:6px; background:#fff; padding:12px 20px; min-width:300px; max-width:460px; text-align:center; }
.player .flow-label{ font-weight:600; margin-bottom:7px; }
.player .flow-gap{ display:flex; align-items:center; justify-content:center; gap:8px; }
.player .flow-arrow{ font-size:22px; line-height:1; color:#666; margin:5px 0; }

.player .kbd-help{ text-align:right; margin:2px 0 10px; font-size:13px; }
.player .kbd-help summary{ cursor:pointer; color:#2a6ebb; display:inline-block; list-style:none; }
.player .kbd-help summary::-webkit-details-marker{ display:none; }
.player .kbd-help summary:hover{ text-decoration:underline; }
.player .kbd-help .help-pop{ text-align:left; background:#f6f8fb; border:1px solid #dce4ef; border-radius:6px; padding:10px 12px; margin:6px 0 0 auto; line-height:1.55; max-width:430px; color:#333; }

.player .divider{ width:9px; background:#9b9b9b; }
.player .divider:hover,.player .divider.active{ background:#7f7f7f; }
.player .divider::after{ content:"⟷"; width:22px; height:32px; line-height:30px; background:#fff; border:1px solid #b0b0b0; border-radius:3px; color:#555; font-size:13px; box-shadow:0 1px 3px rgba(0,0,0,.18); }

.player .nav-arrows{ position:absolute; right:22px; bottom:66px; display:flex; gap:8px; z-index:6; }
.player .nav-arrows button{ width:48px; height:42px; border:0; border-radius:4px; font-size:18px; cursor:pointer; }
.player #nav-prev{ background:#d8d8d8; color:#333; }
.player #nav-next{ background:#1c1c1c; color:#fff; }
.player .nav-arrows button:disabled{ background:#ededed; color:#bbb; cursor:default; }
/* v1.356 (portal audit 30 Sep) — the two id rules above (#nav-prev / #nav-next) out-rank the class-based :disabled rule, so the arrow that cannot move
   (← on the first question, → on the last) still painted as an active button. The ids need their own disabled state, with the colours the line above already names. */
.player #nav-prev:disabled, .player #nav-next:disabled{ background:#ededed; color:#bbb; }
.player .p-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.player .palette{ display:flex; align-items:flex-end; gap:26px; flex:1; overflow-x:auto; }
.player .prog-strip{ display:none; }
.player .p-foot .qbtn.answered{ background:#fff; border-color:#b5b5b5; text-decoration:underline; text-underline-offset:2px; text-decoration-thickness:2px; }  /* answered = underlined number (authentic CD-IELTS) */
/* v1.377 (ANik 3 Oct) — a flagged number keeps its square box, filled red with the number in white (it was a circle) */
.player .p-foot .qbtn.review, .player .p-foot .qbtn.review.current{ background:#e11d2e; border-color:#e11d2e; color:#fff; font-weight:700; text-decoration-color:#fff; }   /* bold white number (ANik: better UX) */
.player .p-foot .qbtn.review.current{ outline:2px solid #000; outline-offset:1px; }   /* flagged AND current: keep the "you are here" mark (audit 3 Oct) */
/* the flag beside a question: shown while the mouse is over it, at the far right of the question area on its line; outlined, red once clicked
   (teachers 30 Sep; official Quick Guide). The area keeps a right margin for it so it never sits on text. */
.player .has-flags{ padding-right:48px; }
.player .q-flag{ position:absolute; right:10px; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; z-index:3;
  border:0; background:transparent; cursor:pointer; }
/* v1.383 — the live test's flag shape: a bookmark, outlined until clicked, then filled (same red as before) with a dark outline (ANik's photo); no box, no pole */
.player .q-flag svg{ width:17px; height:21px; fill:#fff; stroke:#1c1c1c; stroke-width:1.5; stroke-linejoin:round; }
.player .q-flag.on svg{ fill:#e11d2e; stroke:#1c1c1c; }   /* the fill stays the flag red it has been (ANik: "do not change current flag fill color") */
.player .q-flag:focus-visible{ outline:2px solid #1c1c1c; outline-offset:2px; border-radius:3px; }
.player .p-head .who .status.p-playing::after{ content:" . . ."; white-space:pre; }   /* v1.383 (ANik) — "Audio is Playing . . ." */
.player .p-foot .p-review{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:#333; white-space:nowrap; cursor:pointer; flex:0 0 auto; align-self:center; user-select:none; }
.player .p-foot .p-review input{ width:15px; height:15px; cursor:pointer; }
.player.theme-wb .p-foot .p-review,.player.theme-yb .p-foot .p-review{ color:inherit; }
.player .p-foot .finish{ width:48px; height:42px; background:#e7e7e7; color:#444; border:1px solid #c7c7c7; border-radius:4px; font-size:18px; flex:0 0 auto; }
.player .p-foot .finish:hover{ background:#dadada; }
.player .part-collapsed{ align-self:flex-end; color:#555; font-size:13px; white-space:nowrap; }
/* v1.377 — the header icons (volume in Listening, wifi, bell, help, options) and the ✓ sit on their own row at the bottom right; the arrows lift above it */
.player .p-foot{ flex-wrap:wrap; row-gap:6px; }
.player .p-tools .p-volico{ width:22px; height:22px; fill:currentColor; flex:none; }   /* ANik chose "option B" (Material volume_up, Apache-2.0) over the 🔉 emoji, 3 Oct */
.player .p-tools{ flex:1 1 100%; display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.player .nav-arrows{ bottom:118px; }
/* v1.377 T10 (teachers; approved 3 Oct): wider Back / Next (64 × 52) with drawn arrows — a shaft and a bold head (the round-1 sheet's arrows) */
.player .nav-arrows button{ width:64px; height:52px; display:grid; place-items:center; }
.player .nav-arrows button svg{ width:30px; height:22px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
/* v1.377 T16 — Writing: Part 1 and Part 2 a little further apart in the bar ("just a bit more than the previous one": 12 → 56 px) */
.player .palette.w-pal{ column-gap:56px; }
/* v1.377 H4 — Options: a black "Return to test" first; the corner ✕ is a labelled "Close ×" */
.p-page .opt-return{ display:inline-block; background:#111; color:#fff; border:0; border-radius:4px; padding:12px 26px; font:700 16px Arial, Helvetica, sans-serif; cursor:pointer; margin:0 0 14px; }
.p-page .opt-return:hover{ background:#000; }
.p-page .close-x.opt-close{ width:auto; height:auto; padding:7px 14px; border:1px solid #6b7280; border-radius:4px; background:#fff; color:#111; font:700 14px Arial, Helvetica, sans-serif; }
/* …and the ✓ is now a black "Exit" button, last on that row (Arif's screens); it still opens the end-of-test page */
.player .p-foot .finish.p-exit{ width:auto; height:34px; padding:0 24px; background:#1c1c1c; color:#fff; border:0; border-radius:4px; font:700 15px/34px Arial, Helvetica, sans-serif; margin-left:6px; }
.player .p-foot .finish.p-exit:hover{ background:#000; }
.player.theme-wb .p-foot .finish.p-exit, .player.theme-yb .p-foot .finish.p-exit{ border:1px solid #bbb; }   /* black bar in the high-contrast themes: keep Exit visible (audit 3 Oct) */

.player .palette{ gap:6px 12px; overflow-x:visible; flex-wrap:wrap; align-items:flex-start; }
.player .part-block{ flex-direction:row; align-items:center; gap:6px; padding-right:9px; border-right:1px solid #e2e2e2; }
.player .part-block:last-child{ border-right:0; padding-right:0; }
.player .part-block .pname{ color:#666; font-size:12px; white-space:nowrap; }   /* v1.300 V-24 (#888 = 3.54:1) */
.player .part-block.cur .pname{ color:#111; font-weight:700; }
.player .part-block .qbtns{ flex-wrap:wrap; gap:2px; margin-top:0; }
.player .part-block .qbtn{ min-width:24px; height:26px; font-size:12px; padding:0 3px; }
.player .part-block:not(.cur) .qbtn{ color:#444; }   /* v1.300 V-24 */

@media (max-width:1240px){
  .player .palette{ gap:7px; }
  .player .part-block{ gap:5px; padding-right:7px; }
  .player .part-block .pname{ font-size:11px; }
  .player .part-block .qbtn{ min-width:22px; height:24px; font-size:11.5px; padding:0 2px; }
}

.stu-table .meter{ flex-wrap: nowrap; white-space: nowrap; }
.stu-table .meter small{ white-space: nowrap; }
.stu-table .meter-bar{ width: 50px; flex: 0 0 50px; }
.contact-cell{ min-width: 170px; }
.contact-cell .cinfo,.contact-cell .cinfo small{ white-space: nowrap; }
.contact-cell .cacts{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }

.overlay .panel .spk-weekday{ font-size:13px; color:#0ea5e9; font-weight:700; margin:-4px 0 12px; }
.overlay .panel .spk-weekday:empty{ display:none; }

.tq-row{ display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.tq-row .tq-toggle{ margin-bottom:0; }
.age-flag{ color:#f59e0b; font-weight:700; font-size:12px; margin-left:6px; white-space:nowrap; }
.remark-bank{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.remark-chip{ background:var(--glass2); border:1px solid var(--bord2); color:var(--mut); font-size:11.5px; padding:4px 9px; border-radius:20px; cursor:pointer; }
.remark-chip:hover{ color:var(--txt); border-color:var(--vio); }

.th-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.overlay .panel .spk-meta{ font-size:12.5px; color:#555; margin:0 0 12px; line-height:1.5; }
.overlay .panel .spk-grid-wrap{ overflow-x:auto; margin-bottom:14px; }
.overlay .panel .spk-grid{ width:100%; border-collapse:collapse; font-size:12px; }
.overlay .panel .spk-grid th,.overlay .panel .spk-grid td{ border:1px solid #d7dbe2; padding:6px; text-align:center; vertical-align:middle; }
.overlay .panel .spk-grid th{ background:#f4f6f9; color:#333; font-weight:700; font-size:10.5px; line-height:1.3; }
.overlay .panel .spk-grid .spk-pn{ font-weight:700; color:#1c1c1c; background:#f4f6f9; white-space:nowrap; }
.overlay .panel .spk-sel{ width:62px; padding:5px 4px; border:1px solid #cfd5de; border-radius:6px; background:#fff; color:#1c1c1c; font-size:12.5px; }
.overlay .panel .spk-cmt{ width:100%; min-width:84px; padding:5px 7px; border:1px solid #cfd5de; border-radius:6px; font-size:12px; }
.overlay .panel .spk-score{ text-align:left; font-size:12.5px; color:#444; }
.overlay .panel .spk-score b{ font-size:18px; color:#0ea5e9; }
.overlay .panel .spk-score-note{ color:#888; font-size:11px; }
.overlay .panel .spk-demo-tag{ background:#fde68a; color:#7a4f00; font-size:11px; font-weight:800; padding:2px 8px; border-radius:20px; vertical-align:middle; letter-spacing:.5px; }
.overlay .panel .spk-demo-note{ background:#fef9e7; border:1px solid #f6e6a8; color:#7a5b00; font-size:12.5px; padding:8px 11px; border-radius:8px; margin:0 0 12px; }

.tp-photo-row{ display:flex; align-items:center; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.tp-photo{ width:88px; height:88px; border-radius:16px; overflow:hidden; background:var(--grad); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.tp-photo img{ width:100%; height:100%; object-fit:cover; }
.tp-photo span{ color:#fff; font-size:30px; font-weight:800; }
.tp-tenure{ margin:6px 0 14px; font-size:14.5px; color:var(--txt); }
.tp-tenure b{ color:var(--vio); }
.field2{ display:flex; gap:12px; flex-wrap:wrap; }
.field2 .field{ flex:1; min-width:180px; }
.notes-area{ width:100%; min-height:64px; border:1px solid var(--bord2); border-radius:10px; padding:9px 11px; font-size:14px; font-family:inherit; resize:vertical; background:var(--glass2); color:var(--txt); }
.overlay .panel .notes-area{ background:#fff; color:#1c1c1c; border-color:#d0d6df; }

.sg-lookup{ display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-top:14px; }
.sg-meta{ font-size:14px; color:var(--mut); flex:1; min-width:240px; padding-bottom:8px; }
.sg-meta b{ color:var(--txt); }

.sg-script{ margin-top:14px; padding:12px 16px; border:1px solid #d7dbe2; border-left:4px solid #2f6df6; border-radius:10px; background:#f7faff; color:#1a2433; }
.sg-script > summary{ cursor:pointer; font-weight:700; color:#0b2447; list-style:none; display:flex; align-items:center; gap:8px; font-size:14px; }
.sg-script > summary::-webkit-details-marker{ display:none; }
.sg-script > summary::after{ content:"▾"; margin-left:auto; opacity:.6; transition:transform .2s; }
.sg-script:not([open]) > summary::after{ transform:rotate(-90deg); }
.sg-script #sg-script-body{ margin-top:10px; }
.sg-say{ margin:0 0 8px; padding:8px 12px; background:#fff; border:1px solid #e3e8f0; border-radius:7px; line-height:1.55; font-size:14.5px; color:#1a2433; }
.sg-say:last-child{ margin-bottom:0; }
.sg-say-go{ border-color:#bfe6c8; background:#f3fbf5; font-weight:600; }
.sg-ph{ color:#9aa3af; font-style:italic; }
.sg-cue{ color:#6b7480; font-size:12.5px; font-style:italic; }

.sg-booking{ display:flex; align-items:center; gap:14px; margin-top:14px; padding:13px 16px; border:1px solid #cfe0f7; border-left:4px solid #2f6df6; border-radius:10px; background:#eef5ff; }
.sg-bk-ico{ font-size:22px; line-height:1; }
.sg-bk-main{ flex:1; min-width:0; }
.sg-bk-top{ font-size:13px; color:#3a4a63; }
.sg-bk-top b{ color:#16263f; }
.sg-bk-status{ display:none; color:#157a3e; font-weight:600; }
.sg-bk-stu{ font-size:15px; color:#16263f; margin-top:3px; }
.sg-bk-stu b{ color:#0b2447; }
.sg-booking .btn.primary{ white-space:nowrap; flex:0 0 auto; }
.sg-booking .btn.sg-loaded{ background:#1f9d55; border-color:#1f9d55; color:#fff; }
.sg-altlookup{ margin:8px 2px 0; }
.sg-altlookup a{ font-size:12.5px; color:#2f6df6; cursor:pointer; text-decoration:none; }
.sg-altlookup a:hover{ text-decoration:underline; }

.sg-today{ margin:14px 0 0; padding:12px 14px; border:1px dashed var(--bord); border-radius:14px; background:var(--glass); display:flex; flex-direction:column; gap:9px; }
.sg-today-h{ font-size:12px; font-weight:800; color:var(--mut); text-transform:uppercase; letter-spacing:.03em; display:flex; align-items:center; gap:8px; }
.sg-today-n{ display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:var(--grad); color:#fff; font-size:11.5px; font-weight:800; }
.sg-today-hint{ text-transform:none; letter-spacing:0; font-weight:600; color:var(--mut); opacity:.8; }
.sg-today-list{ display:flex; flex-wrap:wrap; gap:8px; }
.sg-today-empty{ font-size:13px; color:var(--mut); }
.sg-tchip{ display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--bord); border-radius:12px; background:var(--card, var(--glass-03)); cursor:pointer; font-size:13.5px; color:var(--txt); transition:border-color .15s, background .15s, transform .05s; }
.sg-tchip:hover{ border-color:#0284c7; background:rgba(2,132,199,.10); }
.sg-tchip:active{ transform:translateY(1px); }
.sg-tchip.on{ border-color:#0284c7; background:rgba(2,132,199,.16); box-shadow:0 0 0 1px #0284c7 inset; }
.sg-tchip-time{ font-weight:800; color:#0284c7; white-space:nowrap; }
.sg-tchip-name{ font-weight:600; white-space:nowrap; }
.sg-tchip-mod{ font-size:11px; font-weight:800; color:var(--mut); border:1px solid var(--bord); border-radius:6px; padding:1px 5px; }
.sg-tchip-ok{ color:#1f9d55; font-weight:800; }
.sg-tchip-req{ color:#e0a106; font-weight:800; font-size:16px; line-height:1; }
/* ===== TeachCloud speaking examiner page (DECISIONS 260, spk-examiner) — one page, no tabs. A light "script sheet" in both themes,
   like the old .sg-script: spoken lines big (.spx-say), stage directions muted (.spx-do). The student-facing cue card lives in its
   own window (app.js SPKX_CUE_CSS); .spx-cue here is the teacher's copy in the same layout. ===== */
.spx{ margin-top:14px; color:#16202e; }
.spx-bar{ position:sticky; top:calc(var(--topbar-h, 0px) + 6px); z-index:6; display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 14px; background:#0b2447; color:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.18); }
.spx-seg{ display:inline-flex; border:1px solid rgba(255,255,255,.35); border-radius:10px; overflow:hidden; }
.spx-seg button{ background:#0b2447; color:#dfe8f7; border:0; padding:7px 14px; font-weight:700; font-size:13px; cursor:pointer; }
.spx-seg button.on{ background:#fff; color:#0b2447; }
.spx-clocks{ display:flex; gap:10px; margin-left:auto; }
.spx-clk{ font-size:13px; font-weight:700; color:#c9d6ea; background:#1c355e; border-radius:8px; padding:5px 10px; font-variant-numeric:tabular-nums; }
.spx-clk b{ color:inherit; font-size:16px; margin-left:2px; }
.spx-clk.amber{ background:#b45309; } .spx-clk.red{ background:#b91c1c; animation:spxPulse 1s ease-in-out infinite; }
.spx-parts{ display:flex; gap:6px; flex-wrap:wrap; }
.spx-pb{ background:#1f3a66; color:#fff; border:1px solid rgba(255,255,255,.3); border-radius:8px; padding:6px 11px; font-size:12.5px; font-weight:700; cursor:pointer; }
.spx-pb.on{ background:#fff; color:#0b2447; }
.spx-sec{ margin-top:12px; padding:14px 18px 16px; background:#f7faff; border:1px solid #d7dbe2; border-left:4px solid #2f6df6; border-radius:12px; }
.spx-sec0{ border-left-color:#94a3b8; }
.spx-sh{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.spx-sn{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#fff; background:#2f6df6; border-radius:6px; padding:2px 8px; }
.spx-sec0 .spx-sn{ background:#64748b; }
.spx-st{ margin:0; font-size:17px; font-weight:800; line-height:1.3; color:#0b2447; }
.spx-ssub{ font-size:12.5px; color:#64748b; }
.spx-stools{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.spx-sub{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:#475569; margin:12px 0 6px; }
.spx-say{ margin:0 0 8px; padding:9px 14px; background:#fff; border:1px solid #e1e6ee; border-radius:8px; font-size:18px; line-height:1.55; color:#111827; }
.spx-say b{ color:#0b2447; }
.spx-say.spx-q{ border-left:3px solid #93c5fd; }
.spx-say.spx-go{ border-color:#bfe6c8; background:#f3fbf5; font-weight:600; }
.spx-say.spx-opener{ border-color:#2f6df6; font-weight:700; }
.spx-say.spx-mode{ border-color:#c4b5fd; background:#faf8ff; }
.spx-say.spx-round{ border-left-color:#f59e0b; background:#fffbeb; }
.spx-say.spx-opt{ opacity:.85; font-size:16px; }
.spx-pre{ font-size:16.5px; }
.spx-do{ margin:0 0 8px 2px; font-size:13px; line-height:1.5; color:#6b7480; font-style:italic; }
.spx-rule{ margin-top:6px; }
.spx-wait{ margin:0 0 8px; font-size:13px; color:#92400e; }
.spx-tag{ font-size:11px; font-weight:700; color:#64748b; border:1px solid #cbd5e1; border-radius:6px; padding:1px 6px; font-style:normal; vertical-align:middle; }
.spx-why{ font-size:13px; font-weight:800; color:#b45309; white-space:nowrap; }
.spx-brs{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.spx-br{ background:#fff; border:1px solid #9fb5d8; color:#0b2447; border-radius:10px; padding:8px 18px; font-size:14px; font-weight:700; cursor:pointer; }
.spx-br.small{ padding:5px 12px; font-size:12.5px; }
.spx-br.on{ background:#2f6df6; border-color:#2f6df6; color:#fff; }
.spx-topic{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:14px 0 6px; }
.spx-tn{ font-size:13.5px; font-weight:800; color:#1d4ed8; }
.spx-tid{ font-size:11.5px; color:#94a3b8; font-weight:600; }
.spx-rules{ margin-top:10px; font-size:13px; color:#475569; }
.spx-rules summary{ cursor:pointer; font-weight:700; color:#334155; }
.spx-rules ol{ margin:6px 0 0; padding-left:20px; } .spx-rules li{ margin:3px 0; line-height:1.45; }
.spx-cuebox{ margin:10px 0 12px; padding:12px; border:1px dashed #94a3b8; border-radius:12px; background:#eef1f5; }
.spx-cue-l{ font-size:12px; font-weight:800; color:#475569; text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
.spx-cue{ display:flex; flex-direction:column; align-items:center; }
.spx-cue .cc-card{ box-sizing:border-box; width:100%; max-width:640px; background:#fff; color:#111; border:2px solid #1f1f1f; padding:22px 26px; font-family:Arial,Helvetica,sans-serif; text-align:left; }
.spx-cue .cc-t{ font-size:20px; font-weight:700; line-height:1.35; margin-bottom:12px; }
.spx-cue .cc-say,.spx-cue .cc-pt,.spx-cue .cc-ex{ font-size:17px; line-height:1.5; }
.spx-cue .cc-pt{ padding-left:2em; }
.spx-cue .cc-rub{ box-sizing:border-box; width:100%; max-width:640px; margin-top:8px; color:#555; font:14px/1.45 Arial,Helvetica,sans-serif; }
.spx-cue-tools{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:center; margin-top:10px; }
.spx-chk{ font-size:12.5px; color:#475569; display:inline-flex; gap:6px; align-items:center; }
.spx-timer{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 10px; padding:10px 14px; border-radius:10px; background:#0f172a; color:#fff; }
.spx-tl{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#94a3b8; min-width:92px; }
.spx-tv{ font-size:30px; font-weight:800; font-variant-numeric:tabular-nums; color:inherit; min-width:74px; }
.spx-tm{ font-size:12.5px; font-weight:700; color:#94a3b8; }
.spx-tm.hit{ color:#bbf7d0; background:#14532d; border-radius:6px; padding:1px 7px; }
.spx-timer .btn{ margin-left:auto; }
.spx-timer.run{ background:#1e3a8a; }
.spx-timer.done{ background:#b91c1c; animation:spxPulse 1s ease-in-out 3; }
.spx-timer.done .spx-tm{ color:#fff; }
@keyframes spxPulse{ 0%,100%{ filter:none; } 50%{ filter:brightness(1.35); } }
@media (prefers-reduced-motion: reduce){ .spx-clk.red,.spx-timer.done{ animation:none; } }
.spx-asked{ margin-top:14px; padding:10px 14px; border:1px solid var(--bord); border-radius:10px; font-size:13px; line-height:1.5; color:var(--txt); background:var(--glass); }
.spx-asked:empty{ display:none; }
/* ===== spk-examiner-ux (DECISIONS 260 addendum 4, ANik 26 Oct 15:02) — B the marking panel pinned on the right (a bottom bar under 1200 px),
   C the search list as bookings, D "time up" + the pulsing next part, A the blocked-pop-up hint, E the End test choice. Light + dark tokens. */
.spm{ --spm-bg:#101a2f; --spm-bd:rgba(255,255,255,.16); --spm-tx:#e8eef7; --spm-mut:#aab7cc; --spm-in:#0a1222; --spm-inbd:rgba(255,255,255,.26); --spm-acc:#7cb0ff; --spm-on:#2f6df6; --spm-onx:#ffffff; --spm-sum:#16223b; }
html[data-theme="light"] .spm{ --spm-bg:#ffffff; --spm-bd:#cfd6e0; --spm-tx:#16213a; --spm-mut:#4a5568; --spm-in:#ffffff; --spm-inbd:#a9b3c2; --spm-acc:#1d4ed8; --spm-on:#1d4ed8; --spm-onx:#ffffff; --spm-sum:#f1f4f9; }
.spx-layout{ display:grid; grid-template-columns:minmax(0,1fr) 384px; gap:18px; align-items:start; margin-top:14px; }
.spx-main{ min-width:0; }
.spm{ position:sticky; top:calc(var(--topbar-h, 0px) + 6px); align-self:start; z-index:5; display:flex; flex-direction:column; max-height:calc(100vh - var(--topbar-h, 0px) - 18px); background:var(--spm-bg); color:var(--spm-tx); border:1px solid var(--spm-bd); border-radius:14px; box-shadow:0 8px 28px rgba(2,8,23,.28); overflow:hidden; }
.spm-head{ display:flex; align-items:center; gap:10px; width:100%; padding:11px 14px; background:transparent; color:var(--spm-tx); border:0; border-bottom:1px solid var(--spm-bd); font:inherit; text-align:left; cursor:pointer; }
.spm-ttl{ font-size:15px; font-weight:800; }
.spm-mini{ margin-left:auto; font-size:12.5px; color:var(--spm-mut); }
.spm-mini b{ color:var(--spm-tx); font-size:14px; }
.spm-chev{ color:var(--spm-mut); transition:transform .15s; }
.spm[data-open="0"] .spm-chev{ transform:rotate(180deg); }
.spm[data-open="0"] .spm-body{ display:none; }
.spm-head:focus-visible,.spm-tab:focus-visible,.spm .spk-sel:focus-visible,.spm textarea:focus-visible,.spm select:focus-visible{ outline:2px solid var(--spm-acc); outline-offset:2px; }
.spm-body{ display:flex; flex-direction:column; min-height:0; flex:1 1 auto; }
.spm-scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:10px 14px 4px; }
.spm-foot{ flex:0 0 auto; padding:8px 14px 12px; border-top:1px solid var(--spm-bd); background:var(--spm-bg); }
.spm-tabs{ display:flex; gap:4px; margin-bottom:10px; flex-wrap:wrap; }
.spm-tab{ flex:1 1 auto; padding:7px 8px; border-radius:8px; border:1px solid var(--spm-bd); background:transparent; color:var(--spm-tx); font:inherit; font-size:13px; font-weight:700; cursor:pointer; white-space:nowrap; }
.spm-tab.on{ background:var(--spm-on); border-color:var(--spm-on); color:var(--spm-onx); }
.spm-tk{ font-weight:800; }
.spm-crit{ margin:0 0 10px; }
.spm-cl{ display:flex; align-items:center; gap:8px; margin-bottom:5px; font-size:13px; font-weight:700; color:var(--spm-tx); }
.spm-cl label,.spm-cl span{ flex:1; }
.spm .spk-sel{ width:84px; height:34px; padding:5px 8px; border:1px solid var(--spm-inbd); border-radius:7px; background:var(--spm-in); color:var(--spm-tx); font-size:14px; font-weight:700; cursor:pointer; }
.spm .spk-cmt,.spm .spk-cfb{ display:block; width:100%; box-sizing:border-box; min-height:40px; padding:7px 9px; border:1px solid var(--spm-inbd); border-radius:7px; background:var(--spm-in); color:var(--spm-tx); font:inherit; font-size:13px; line-height:1.4; resize:vertical; }
.spm .spk-cmt::placeholder,.spm .spk-cfb::placeholder{ color:var(--spm-mut); opacity:1; }
.spm .spk-fbsel{ width:100%; margin-bottom:5px; padding:6px; border:1px solid var(--spm-inbd); border-radius:7px; background:var(--spm-in); color:var(--spm-tx); font-size:12.5px; }
.spm-hint{ margin:0 0 8px; font-size:12px; color:var(--spm-mut); }
.spm-pb{ display:flex; justify-content:space-between; align-items:center; padding:6px 2px 0; font-size:12.5px; color:var(--spm-mut); }
.spm-pb b{ font-size:17px; color:var(--spm-tx); }
.spm-sum{ margin-top:0; padding:8px 10px; border-radius:10px; background:var(--spm-sum); border:1px solid var(--spm-bd); }
.spm-cbs{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:8px; }
.spm-cb{ display:flex; flex-direction:column; align-items:center; font-size:11.5px; color:var(--spm-mut); }
.spm-cb i{ font-style:normal; font-weight:800; letter-spacing:.03em; }
.spm-cb b{ font-size:16px; color:var(--spm-tx); }
/* teachcloud-fb (30 Oct): the strip is the quick band picker — tap a criterion, pick its band (during or after the test) */
.spm-cb{ min-height:44px; padding:3px 2px; border:1px dashed var(--spm-inbd); border-radius:8px; background:transparent; font:inherit; font-size:11.5px; cursor:pointer; }
.spm-cb.set{ border-style:solid; }
.spm-cb.on{ border:1px solid var(--spm-acc); box-shadow:0 0 0 1px var(--spm-acc) inset; }
.spm-cb:focus-visible,.spm-bpb:focus-visible{ outline:2px solid var(--spm-acc); outline-offset:2px; }
.spm-bp{ margin:0 0 8px; padding:8px; border:1px solid var(--spm-bd); border-radius:10px; background:var(--spm-bg); }
.spm-bp[hidden]{ display:none; }
.spm-bp-h{ margin:0 0 6px; font-size:12.5px; font-weight:800; color:var(--spm-tx); }
.spm-bp-g{ display:grid; grid-template-columns:repeat(5,1fr); gap:5px; }
.spm-bpb{ height:32px; padding:0 4px; border:1px solid var(--spm-inbd); border-radius:7px; background:var(--spm-in); color:var(--spm-tx); font:inherit; font-size:13.5px; font-weight:700; cursor:pointer; }
.spm-bpb.on{ background:var(--spm-on); border-color:var(--spm-on); color:var(--spm-onx); }
.spm-bpx{ font-size:12px; font-weight:600; color:var(--spm-mut); }
@media (max-width:700px){ .spm-bpb{ height:40px; } .spm-bp-g{ grid-template-columns:repeat(4,1fr); } }
.sg-tchip-id{ font-size:11.5px; color:var(--mut); white-space:nowrap; font-variant-numeric:tabular-nums; }
.sg-tchip{ flex-wrap:wrap; max-width:100%; box-sizing:border-box; }   /* with the ID a chip can outgrow a phone: it wraps inside itself */
.we-sid{ font-family:inherit; font-size:14px; font-weight:700; color:var(--mut); letter-spacing:0; margin-left:8px; vertical-align:middle; }
.spm-ov{ display:flex; align-items:center; gap:8px; justify-content:space-between; font-size:13px; font-weight:700; color:var(--spm-tx); }
.spm-ov small{ display:block; font-weight:500; font-size:11px; color:var(--spm-mut); }
.spm-ov b{ font-size:26px; color:var(--spm-acc); }
.spm-acts{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.spm-acts .btn{ flex:1 1 auto; }
.spm-st{ margin-top:6px; font-size:12.5px; font-weight:700; color:var(--spm-mut); min-height:1em; }
.spm-st:empty{ display:none; }
.spm-drnote{ margin:12px 0 0; padding:10px 14px; border:1px solid rgba(217,119,6,.45); border-left:4px solid #d97706; border-radius:10px; background:rgba(217,119,6,.10); color:var(--txt); font-size:13.5px; }
@media (max-width:1199px){
  .spx-layout{ display:block; }
  .spm{ position:sticky; top:auto; bottom:0; margin-top:14px; max-height:none; z-index:30; border-radius:14px 14px 0 0; box-shadow:0 -8px 26px rgba(2,8,23,.32); }
  .spm-body{ max-height:62vh; }
  .spm-foot{ padding-bottom:14px; }
}
.spx-cue-hint{ margin:8px 0 0; text-align:center; font-size:13px; font-weight:700; color:#92400e; }
/* ===== AI Marking Assistant (BETA) — the "AI" rail tab + pane, the < 1200 px mini, the admin card (specs/erp-speaking-ai-mark-plan.md §4.3, §8.3).
   The recording box itself is the TOP TILE below (ANik 3 Nov 11:44), designed with Hallmark (ANik 12:01 "work the UI using hallmark"). */
html[data-theme="light"] .spkai-card{ --spkai-vi:#6d28d9; --spkai-vit:rgba(109,40,217,.08); --spkai-red:#b42318; --spkai-ok:#067647; }
.spkai-card{ --spkai-vi:#c4b5fd; --spkai-vit:rgba(167,139,250,.18); }
.spkai-beta{ display:inline-block; padding:2px 5px; border-radius:4px; background:var(--spkai-vit, rgba(167,139,250,.18)); color:var(--spkai-vi, #a78bfa); font-size:9.5px; font-weight:700; letter-spacing:.05em; line-height:1.2; vertical-align:middle; }
.spkai-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--spkai-red, #ef4444); box-shadow:0 0 0 3px rgba(239,68,68,.18); }
.spkai-mini[hidden]{ display:none !important; }
.spkai-mini{ white-space:nowrap; color:var(--spm-tx); }
.spkai-mini b{ font-size:12.5px; font-variant-numeric:tabular-nums; }
@media (min-width:1200px){ .spkai-mini{ display:none; } }
.spkai-tab .spkai-beta{ margin-left:3px; }
.spkai-pane .spkai-hint{ margin:0 0 8px; font-size:12.5px; color:var(--spm-mut); }
.spkai-lock{ padding:8px; border-radius:7px; background:var(--spm-sum); color:var(--spm-mut); font-size:12px; text-align:center; }
/* Hallmark · component: AI Marking Assistant top tile (#spkai-box) · genre: modern-minimal · theme: the page's own Lumen system (redesign: polish) · states: 8 · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H5 E4 S4 R5 V3 · weakest: V, a tool tile inside an existing page; it borrows .spx-sec's card (radius 12, 4 px left rule) on purpose so the page reads as one, and spends its one accent on the filled Start */
/* Hallmark · waive 39b · 32 px controls in the app shell, the Lumen control height (28/32/36/44) and inside the app range 32 to 40 · an examiner's tool tile on a work screen, not a marketing call to action */
/* Hallmark · dismissed 3 · the 4 px left rule is the page's own section card (.spx-sec, every script section has one); the tile matches it in the AI violet */
/* Hallmark · dismissed 69 · "00:11" repeats only in the four-state lint snapshot (one tile per state); the page has one tile and one timer */
/* Hallmark · answered F15 · the tile's filled primary (Start recording / Stop & mark) is the only filled control in its region; Upload file and the AI band link are quiet (ANik kept audit item 6 out) */
/* Where: #spkai-box sits in #spx-root right under the clock strip (#spx-bar), above "Before the candidate speaks"; spxPaint keeps the same node across
   repaints. One line at >= 900 px (title + timer, the state, the level chips, the buttons), two below; the warning / Continue rows span under it when shown.
   Tokens: --spkai-* only, declared per theme here (values copied from Lumen's --lx-* and .spx-sec, so the tile matches the page); the rail's --spm-*
   names the shared .spkai-chip / .spkai-lv rules read are pointed at them inside the tile. No shadows, blur, fonts, images, timers or requests. */
html:not([data-theme="light"]){ --spkai-paper:#161a20; --spkai-line:rgba(255,255,255,.13); --spkai-ink:#eceef2; --spkai-mut:#a4abb8; --spkai-acc:#7cb0ff;
  --spkai-vi:#c4b5fd; --spkai-vit:rgba(167,139,250,.18); --spkai-red:#f87171; --spkai-ok:#4ade80; --spkai-warn:#fbbf24; --spkai-warnt:rgba(251,191,36,.12);
  --spkai-stop:#b42318; --spkai-stop-hi:#912018; --spkai-on:#fff7f5; --spkai-hover:rgba(255,255,255,.06); }
html[data-theme="light"]{ --spkai-paper:#f7faff; --spkai-line:#d7dbe2; --spkai-ink:#16213a; --spkai-mut:#4a5568; --spkai-acc:#1d4ed8;
  --spkai-vi:#6d28d9; --spkai-vit:rgba(109,40,217,.08); --spkai-red:#b42318; --spkai-ok:#067647; --spkai-warn:#9a5b00; --spkai-warnt:#fff7e6;
  --spkai-stop:#b42318; --spkai-stop-hi:#912018; --spkai-on:#fff7f5; --spkai-hover:rgba(15,23,42,.05); }
.spkai{ --spm-bd:var(--spkai-line); --spm-tx:var(--spkai-ink); --spm-mut:var(--spkai-mut); --spm-acc:var(--spkai-acc); --spm-sum:var(--spkai-paper);
  margin:12px 0 0; padding:8px 16px; border:1px solid var(--spkai-line); border-left:4px solid var(--spkai-vi); border-radius:12px; background:var(--spkai-paper); color:var(--spkai-ink);
  display:grid; grid-template-columns:minmax(0,1fr) auto auto; column-gap:8px; row-gap:4px; align-items:center; font-size:13px; }
.spkai > *{ grid-column:1 / -1; }
.spkai [hidden],body.lumen #app #spx-root .spkai [hidden]{ display:none !important; }   /* Lumen's #app .btn sets display !important: two ids win */
.spkai-hd{ grid-column:1 / -1; grid-row:1; display:flex; align-items:center; gap:8px; min-height:20px; min-width:0; }
.spkai-ic{ width:20px; height:20px; border-radius:4px; display:grid; place-items:center; flex:0 0 auto; background:var(--spkai-vit); color:var(--spkai-vi); }
.spkai-ttl{ font-size:14px; font-weight:700; color:var(--spkai-ink); white-space:nowrap; }
.spkai .spkai-beta{ padding:0 4px; border-radius:4px; background:var(--spkai-vit); color:var(--spkai-vi); font-size:12px; font-weight:600; letter-spacing:normal; line-height:20px; }
.spkai-r{ margin-left:auto; display:flex; align-items:center; gap:8px; min-width:0; }
.spkai-rec{ display:inline-flex; align-items:center; gap:4px; color:var(--spkai-red); font-weight:700; font-variant-numeric:tabular-nums; }
.spkai .spkai-dot{ width:8px; height:8px; background:var(--spkai-red); box-shadow:none; }
.spkai[data-spkai-state="recording"] .spkai-dot{ animation:spkai-live 1.6s ease-in-out infinite; }
@keyframes spkai-live{ 50%{ opacity:.35; } }
@media (prefers-reduced-motion: reduce){ .spkai[data-spkai-state="recording"] .spkai-dot{ animation:none; } }
.spkai-row{ display:contents; }
.spkai-st{ grid-column:1; grid-row:2; min-width:0; color:var(--spkai-mut); font-size:13px; line-height:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.spkai-src{ grid-column:2; grid-row:2; display:flex; gap:4px; }
.spkai-chip{ display:inline-flex; align-items:center; gap:4px; padding:0 8px; border:1px solid var(--spkai-line); border-radius:999px; color:var(--spkai-mut); font-size:12px; line-height:20px; white-space:nowrap; }
.spkai-chip.ok{ color:var(--spkai-ok); border-color:var(--spkai-ok); }
/* the level meter: transform + opacity only (no height animation), set by the page's ticker */
.spkai-lv{ display:inline-block; width:4px; height:12px; border-radius:1px; background:currentColor; opacity:.35; transform-origin:bottom; transform:scaleY(.25); }
.spkai-lv[data-l="1"]{ transform:scaleY(.4); opacity:.6; } .spkai-lv[data-l="2"]{ transform:scaleY(.55); opacity:.75; } .spkai-lv[data-l="3"]{ transform:scaleY(.7); opacity:.85; }
.spkai-lv[data-l="4"]{ transform:scaleY(.85); opacity:1; } .spkai-lv[data-l="5"]{ transform:scaleY(1); opacity:1; }
.spkai-btns{ grid-column:3; grid-row:2; display:flex; gap:8px; align-items:center; }
.spkai .btn.small{ height:32px; padding:0 12px; white-space:nowrap; }   /* app UI: 32 px controls (Lumen 32; Hallmark 39b app range 32 to 40) */
.spkai .btn.spkai-stop,body.lumen #app #spx-root .spkai .btn.spkai-stop{ background:var(--spkai-stop) !important; border-color:var(--spkai-stop) !important; color:var(--spkai-on) !important; }
.spkai .btn.spkai-stop:hover,body.lumen #app #spx-root .spkai .btn.spkai-stop:hover{ background:var(--spkai-stop-hi) !important; border-color:var(--spkai-stop-hi) !important; }
/* quiet secondaries: Upload file and the AI band link are text-weight controls, never a second filled button */
.spkai .btn.spkai-ghost,body.lumen #app #spx-root .spkai .btn.spkai-ghost{ background:transparent !important; border-color:var(--spkai-line) !important; color:var(--spkai-ink) !important; }
.spkai .btn.spkai-ghost:hover,body.lumen #app #spx-root .spkai .btn.spkai-ghost:hover{ background:var(--spkai-hover) !important; }
.spkai-band{ height:32px; padding:0 8px; border:1px solid var(--spkai-line); border-radius:8px; background:transparent; color:var(--spkai-acc); font:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.spkai-band b{ font-size:14px; font-variant-numeric:tabular-nums; }
.spkai-band .spkai-open{ margin-left:4px; text-decoration:underline; text-underline-offset:2px; }
.spkai-band:hover{ background:var(--spkai-hover); }
.spkai-band:active,.spkai .btn:active{ transform:translateY(1px); }
.spkai .btn:disabled,.spkai-band:disabled{ opacity:.5; cursor:not-allowed; transform:none; }
.spkai .btn:focus-visible,.spkai-band:focus-visible,.spkai-pane .btn:focus-visible{ outline:2px solid var(--spkai-acc); outline-offset:2px; }
.spkai-warn{ padding:4px 8px; border-radius:8px; border:1px solid var(--spkai-warn); background:var(--spkai-warnt); color:var(--spkai-ink); font-size:13px; font-weight:600; }
.spkai-choice{ display:flex; gap:8px; flex-wrap:wrap; }
.spkai-zintro{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.spkai-zintro[hidden]{ display:none; }
.spkai-zintro .spkai-zt{ flex:1 1 100%; margin:0; font-size:13px; line-height:1.45; }
@media (min-width:900px){ .spkai{ grid-template-columns:auto minmax(0,1fr) auto auto; column-gap:16px; }
  .spkai .spkai-hd{ grid-column:1; grid-row:1; } .spkai .spkai-st{ grid-column:2; grid-row:1; }
  .spkai .spkai-src{ grid-column:3; grid-row:1; } .spkai .spkai-btns{ grid-column:4; grid-row:1; } }
.spkai-savep{ margin:8px 0 0; }
.spkai-lock .lu{ margin-right:4px; }
.spkai-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin:0 0 10px; }
.spkai-c{ padding:6px 4px; border-radius:7px; background:var(--spm-sum); text-align:center; }
.spkai-c small{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.03em; color:var(--spm-mut); }
.spkai-c b{ font-size:16px; color:var(--spm-tx); font-variant-numeric:tabular-nums; }
.spkai-c.spkai-ov b{ color:var(--spm-acc); }
.spkai-ev{ display:flex; flex-direction:column; gap:4px; margin:0 0 8px; font-size:12px; color:var(--spm-mut); }
.spkai-ev em{ font-style:normal; font-weight:700; color:var(--spm-tx); }
.spkai-sec{ margin:0 0 8px; font-size:12.5px; color:var(--spm-tx); }
.spkai-sec summary{ cursor:pointer; font-weight:700; }
.spkai-pts{ margin:8px 0 0; padding-left:20px; }
.spkai-runs{ display:flex; flex-direction:column; gap:4px; margin-top:8px; font-size:12px; color:var(--spm-mut); }
.spkai-rt{ border-collapse:collapse; font-size:12px; }
.spkai-rt th,.spkai-rt td{ padding:2px 8px 2px 0; text-align:left; color:var(--spm-tx); }
.spkai-again{ margin:12px 0 0; font-size:12px; color:var(--spm-mut); }
.spkai-foot{ display:flex; justify-content:space-between; gap:8px; font-size:11px; color:var(--spm-mut); }
.spkai-cs{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 10px; }
.spkai-cs > div{ padding:8px; border:1px solid var(--bord); border-radius:8px; }
.spkai-cs small{ display:block; font-size:11px; color:var(--mut); }
.spkai-cs b{ font-size:18px; }
.spkai-spark{ display:block; width:100%; max-width:240px; height:28px; margin:8px 0; fill:var(--spkai-vi); }
@media (max-width:700px){ .spkai-cs{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* ===== Speaking examiner page — Hallmark audit picks (2 Nov 2026; ANik picked 1–5, 7–12; not 6) ===== */
/* 2 · dark mode reaches the script (Lumen tokens; light unchanged; the cue card .cc-card stays white paper — DECISIONS 260 rule 10) */
html:not([data-theme="light"]) body.lumen .spx-sec{ background:var(--lx-surface-2, #161a20); border-color:var(--lx-line-2, rgba(255,255,255,.13)); }
html:not([data-theme="light"]) body.lumen .spx-say{ background:var(--lx-surface, #111419); color:var(--lx-text, #eceef2); border-color:var(--lx-line-2, rgba(255,255,255,.13)); }
html:not([data-theme="light"]) body.lumen .spx-say b,html:not([data-theme="light"]) body.lumen .spx-st,html:not([data-theme="light"]) body.lumen .spx-sec h3,html:not([data-theme="light"]) body.lumen .spx-sec .spx-h{ color:var(--lx-text, #eceef2); }
html:not([data-theme="light"]) body.lumen .spx-say.spx-go{ background:var(--lx-ok-tint, rgba(52,211,153,.12)); }
html:not([data-theme="light"]) body.lumen .spx-say.spx-mode{ background:rgba(143,111,230,.10); }
html:not([data-theme="light"]) body.lumen .spx-say.spx-round{ background:var(--lx-warn-tint, rgba(251,191,36,.12)); }
html:not([data-theme="light"]) body.lumen .spx-do,html:not([data-theme="light"]) body.lumen .spx-sub,html:not([data-theme="light"]) body.lumen .spx-ssub{ color:var(--lx-text-2, #a4abb8); }
html:not([data-theme="light"]) body.lumen .spx-cuebox,html:not([data-theme="light"]) body.lumen .spx-pn{ background:var(--lx-surface-3, #1d222a); border-color:var(--lx-line-2, rgba(255,255,255,.13)); }
html:not([data-theme="light"]) body.lumen .spx-cue-l,html:not([data-theme="light"]) body.lumen .spx-tgo-h{ color:var(--lx-text-2, #a4abb8); }
/* 10 · the strip glyphs draw as text, not colour emoji (⚠︎ in the markup, ⏸︎ from the tick; S18-3 / B16-4 pin "⏸ Pause" / "▶ Resume", so this rule covers those) */
.spx-pb{ font-variant-emoji:text; }
/* 3 · contrast: Beta on the AI tab (light), Beta on the selected tab, the card ids */
html[data-theme="light"] .spkai-tab{ --spkai-vi:#6d28d9; --spkai-vit:rgba(109,40,217,.08); }
.spm-tab.on .spkai-beta{ color:inherit; background:rgba(255,255,255,.2); }
/* ANik 8 Nov: the error list is ready — a count on the AI tab and a slim bar under the sheet's tabs (no pop-up, never takes focus).
   Tokens only (--spkai-*, --spm-*); the bar's See errors is the page's .btn primary, Dismiss its .spm-link (both have :focus-visible). */
.spkai-tn:empty{ display:none; }
.spkai-tn{ display:inline-block; min-width:18px; margin-left:4px; padding:0 5px; border-radius:9px; background:var(--spkai-vit); color:var(--spkai-vi); font-size:12px; font-weight:700; line-height:18px; text-align:center; font-variant-numeric:tabular-nums; }
.spm-tab.on .spkai-tn{ color:inherit; background:rgba(255,255,255,.2); }
.spkai-elbar[hidden]{ display:none !important; }
.spkai-elbar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 10px; padding:8px 10px; border:1px solid var(--spkai-line); border-left:3px solid var(--spkai-vi); border-radius:8px; background:var(--spkai-vit); color:var(--spm-tx); font-size:13px; }
.spkai-elt{ flex:1 1 160px; min-width:0; font-weight:600; }
.spkai-elb{ display:flex; align-items:center; gap:12px; }
.spx-tid{ color:var(--lx-text-3, #64748b); }
/* 4 · short screens: the rail foot gives the scroll area ~50 px (DECISIONS 315·2: the strip stays at the foot) */
@media (min-width:1200px) and (max-height:820px){
  .spm-cb{ min-height:34px; flex-direction:row; justify-content:center; gap:6px; }
  .spm-ov small{ display:none; }
  .spm-ov b{ font-size:22px; }
  .spm-sum{ padding-top:6px; padding-bottom:6px; }
}
/* 5 · the AI's bands read as advice: violet tiles, "Overall" (not tracked BAND) */
.spkai-pane{ --spkai-vi:#c4b5fd; --spkai-vit:rgba(167,139,250,.16); }
html[data-theme="light"] .spkai-pane{ --spkai-vi:#6d28d9; --spkai-vit:rgba(109,40,217,.08); }
.spkai-c{ background:var(--spkai-vit); }
.spkai-c b{ color:var(--spkai-vi); }
.spkai-c small{ letter-spacing:0; }
/* Hallmark · checked: 2026-11-07 · genre: modern-minimal (inferred) · scope: app · shape: app screen (the examiner page's AI tab: the error list before the save, the bands beside the examiner's after)
 * floor: 0 FAIL · fixed: 9 (48 two new tokens lifted to :root / the light theme block, 63 three middle-dot meta lines, 19 the pane footer dash, 26a fold and link focus rings, 26b :active / :disabled, 24b seven off-scale spacings) · structural: 1 printed (the page's --spm-* tokens live on .spm, not :root)
 * finish-review: subagent · 5 findings · 4 resolved (echoed footer line, kind repeating its group, unquoted evidence, the doubled blind line) 1 answered (Details shows the model name: staff-only, folded) · built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 39b · "Record again" is an inline text link inside a sentence (pre-existing .spm-link), not a control row */
/* Hallmark · waive 7b · the light rail's white surface is the page's own --spm-bg token (pre-existing); a polish does not re-pick the system */
/* Hallmark · dismissed F1 · the straight quotes are candidate speech (data) and the contract-pinned COPY.BLIND string */
/* 13 · the error list and the bands beside the examiner's (7 Nov 2026, the Flash switch; Hallmark sweep, app scope, inside the page's own
   --spm tokens; specs/spk-flash-build-notes.md). Two tokens of its own, light and dark, for the struck and the corrected words. */
:root{ --spkai-del:#fca5a5; --spkai-ins:#86efac; }
html[data-theme="light"]{ --spkai-del:#b42318; --spkai-ins:#067647; }
.spkai-vs{ width:100%; border-collapse:collapse; margin:0 0 8px; font-size:13px; font-variant-numeric:tabular-nums; }
.spkai-vs caption{ text-align:left; padding:0 0 4px; font-size:12.5px; font-weight:700; color:var(--spm-tx); }
.spkai-vs th,.spkai-vs td{ padding:4px 8px; border-bottom:1px solid var(--spm-bd); text-align:left; color:var(--spm-tx); font-weight:400; }
.spkai-vs thead th{ font-size:12px; color:var(--spm-mut); }
.spkai-vs td:last-child{ color:var(--spkai-vi); font-weight:700; }
.spkai-vs .spkai-ov th,.spkai-vs .spkai-ov td{ font-weight:700; border-bottom:0; }
.spkai-fd{ margin:12px 0 8px; padding-top:12px; border-top:1px solid var(--spm-bd); }
.spkai-fh{ margin:0 0 8px; font-size:14px; font-weight:700; color:var(--spm-tx); }
.spkai-fg{ margin:12px 0 4px; font-size:13px; font-weight:700; color:var(--spm-tx); }
.spkai-n{ margin-left:4px; font-weight:400; color:var(--spm-mut); font-variant-numeric:tabular-nums; }
.spkai-fl,.spkai-tr,.spkai-tips{ margin:0; padding-left:20px; font-size:13px; line-height:1.45; color:var(--spm-tx); }
.spkai-fl li,.spkai-tr li,.spkai-tips li{ margin:0 0 8px; }
.spkai-fm{ font-size:12px; color:var(--spm-mut); font-variant-numeric:tabular-nums; }
.spkai-fx,.spkai-why,.spkai-q,.spkai-tr p{ margin:2px 0 0; overflow-wrap:break-word; min-width:0; }
.spkai-fx del{ color:var(--spkai-del); text-decoration-thickness:1px; }
.spkai-fx ins{ color:var(--spkai-ins); text-decoration:none; font-weight:600; }
.spkai-why{ color:var(--spm-mut); }
.spkai-q{ font-weight:600; }
.spkai-fd .spkai-sec summary{ min-height:32px; display:flex; align-items:center; }
.spkai-sec summary:focus-visible{ outline:2px solid var(--spm-acc); outline-offset:2px; }   /* every fold in the AI tab (Feedback points, Details, Transcript, Band 8 answers) */
.spkai-pane .btn.small{ height:32px; padding:0 12px; }   /* Save my bands: the tile's 32 px app control (Lumen 32) */
.spkai-fd .spkai-sec summary:hover{ color:var(--spm-acc); }
.spkai-fd .spkai-sec summary:active{ opacity:.8; }
.spkai-pane .btn:disabled{ opacity:.5; cursor:not-allowed; }
.spkai-fd-err .spkai-hint{ color:var(--spkai-del); }
.spkai-fnote{ margin-top:8px; }
.spkai-skel{ display:flex; flex-direction:column; gap:8px; }
.spkai-skel i{ display:block; height:12px; border-radius:4px; background:var(--spm-sum); }
.spkai-skel i:nth-child(2){ width:80%; } .spkai-skel i:nth-child(3){ width:60%; }
/* 7 · the error view reads as one */
.spkai[data-spkai-view="error"]{ border-color:var(--spkai-red); }
.spkai[data-spkai-view="error"] .spkai-st{ color:var(--spkai-red); font-weight:600; }
/* Hallmark · checked: 2026-11-07 · genre: modern-minimal (inferred) · shape: app screen
 * floor: 0 FAIL · fixed: 48 (tokens to :root), 26a (focus on the time buttons and the folds)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · answered F-review 1 · the outline is the fallback outside Lumen; inside Lumen body.lumen :focus-visible (lumen.css:101) draws the system ring */
/* Hallmark · waive 26b · no disabled attribute or aria-disabled on any control in the list · the error list time buttons are always playable, never disabled */
/* 14 · AI-found errors (transcript-based) — the teacher's error list (7 Nov 2026; server/spkcl.js; app.js spkclHTML). Shown in the examiner page's
   AI tab (times are buttons that play the recording) and in the student profile's "AI examiner sittings" panel. Hallmark sweep, app scope,
   Lumen look: its own tokens (light and dark), one accent (the time buttons), struck / corrected words in red / green, long quotes wrap. */
:root{ --spkcl-tx:#e8eef7; --spkcl-mut:#aab7cc; --spkcl-bd:rgba(255,255,255,.16); --spkcl-acc:#7cb0ff; --spkcl-sum:#16223b; --spkcl-bg:#101a2f; --spkcl-del:#fca5a5; --spkcl-ins:#86efac; }
html[data-theme="light"]{ --spkcl-tx:#16213a; --spkcl-mut:#4a5568; --spkcl-bd:#cfd6e0; --spkcl-acc:#1d4ed8; --spkcl-sum:#f1f4f9; --spkcl-bg:#ffffff; --spkcl-del:#b42318; --spkcl-ins:#067647; }
.spkcl{ margin:12px 0 8px; padding-top:12px; border-top:1px solid var(--spkcl-bd); color:var(--spkcl-tx); min-width:0; max-width:72ch; }
.spkcl [hidden]{ display:none !important; }
.spkcl-h{ margin:0 0 4px; font-size:14px; font-weight:700; line-height:1.35; color:var(--spkcl-tx); }
.spkcl-n{ margin-left:4px; font-weight:400; color:var(--spkcl-mut); font-variant-numeric:tabular-nums; }
.spkcl p.spkcl-note,.spkcl p.spkcl-say{ margin:0 0 8px; font-size:12.5px; line-height:1.45; color:var(--spkcl-mut); }
.spkcl p.spkcl-say.spkcl-err{ color:var(--spkcl-del); }
/* spkcl-live (8 Nov 2026): during the test, one quiet line of per-part states; finished parts in the text colour, the part in progress muted */
.spkcl p.spkcl-parts{ display:flex; flex-wrap:wrap; gap:4px 16px; margin:2px 0 8px; font-size:12px; }
.spkcl p.spkcl-parts span{ color:var(--spkcl-tx); font-weight:500; }
.spkcl p.spkcl-parts span.spkcl-now{ color:var(--spkcl-mut); font-weight:400; }
.spkcl-g{ margin:16px 0 8px; padding-top:8px; border-top:1px solid var(--spkcl-bd); font-size:14px; font-weight:700; color:var(--spkcl-tx); }
.spkcl-l{ margin:0; padding:0; list-style:none; font-size:13px; line-height:1.45; }
.spkcl-l li{ margin:0 0 12px; }
.spkcl-m{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:12px; color:var(--spkcl-mut); font-variant-numeric:tabular-nums; }
.spkcl-t{ height:32px; min-width:48px; padding:0 8px; border:1px solid transparent; border-radius:6px; background:var(--spkcl-sum); color:var(--spkcl-acc); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.spkcl-t:hover{ border-color:var(--spkcl-bd); }
.spkcl-t:active{ opacity:.8; }
.spkcl-t:focus-visible,.exs-errs summary:focus-visible{ outline:2px solid var(--spkcl-acc); outline-offset:2px; }
.spkcl p.spkcl-q,.spkcl p.spkcl-x,.spkcl p.spkcl-why{ margin:4px 0 0; font-size:13px; line-height:1.45; overflow-wrap:anywhere; min-width:0; }
.spkcl p.spkcl-q{ font-size:12.5px; color:var(--spkcl-mut); }
.spkcl-x del{ color:var(--spkcl-del); text-decoration-thickness:1px; }
.spkcl-x ins{ display:block; margin-top:2px; color:var(--spkcl-ins); text-decoration:none; font-weight:600; }
.spkcl p.spkcl-why{ color:var(--spkcl-mut); }
/* inside a dialog (the student profile) the old .overlay .panel p rules (styles.css ~965, ~5504 colour !important) would restyle the list */
.overlay .panel .spkcl p.spkcl-q,.overlay .panel .spkcl p.spkcl-why,.overlay .panel .spkcl p.spkcl-note,.overlay .panel .spkcl p.spkcl-say{ color:var(--spkcl-mut) !important; }
.overlay .panel .spkcl p.spkcl-x{ color:var(--spkcl-tx) !important; }
.overlay .panel .spkcl p.spkcl-say.spkcl-err{ color:var(--spkcl-del) !important; }
.spkcl-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.spkcl-skel{ display:flex; flex-direction:column; gap:8px; }
.spkcl-skel i{ display:block; height:12px; border-radius:4px; background:var(--spkcl-sum); }
.spkcl-skel i:nth-child(2){ width:80%; } .spkcl-skel i:nth-child(3){ width:60%; }
.spkcl-play{ position:sticky; bottom:0; padding:8px 0; background:var(--spkcl-bg); }
.spkcl-au{ display:block; width:100%; height:40px; }
.exs-errs{ flex:1 0 100%; min-width:0; }
.exs-errs summary{ min-height:32px; display:flex; align-items:center; cursor:pointer; font-weight:600; }
@media (max-width:640px){ .spkcl-t{ height:40px; } .exs-errs summary{ min-height:40px; } }
/* 8 · "Student loaded" is a done state, not a button to press (stays clickable for a reload) */
body.lumen #app .sg-booking .btn.sg-loaded{ background:transparent !important; border-color:transparent !important; color:var(--lx-ok, #1f9d55) !important; box-shadow:none !important; cursor:default; }
/* 9 · the Total label from 1340 px (strip stays one line, B18-6/6b) */
@media (min-width:1340px){ .spx-strip .spx-tot .spx-tl{ display:inline; } }   /* one class more than the 1200–1439 hide below */
/* 11 · Beta at 11 px, no tracking */
.spkai-beta{ font-size:11px; letter-spacing:0; padding:1px 5px; }
/* 12 · no full-screen blur behind dialogs on this page (the dim stays) */
body.spx-on .overlay,body.lumen.spx-on .overlay{ backdrop-filter:none; -webkit-backdrop-filter:none; }   /* beats lumen.css body.lumen .overlay blur(2px) */
.spx-cue-hint[hidden]{ display:none; }
.spx-tup{ font-style:normal; margin-left:6px; font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.spx-tup[hidden]{ display:none; }
.spx-clk.tup{ background:#b45309; color:#fff; box-shadow:0 0 0 2px #fbbf24; }
.spx-pb.pulse{ background:#fbbf24; color:#1f2937; border-color:#fbbf24; animation:spxNext 1.1s ease-in-out infinite; }
@keyframes spxNext{ 0%,100%{ box-shadow:0 0 0 0 rgba(251,191,36,.75); } 50%{ box-shadow:0 0 0 7px rgba(251,191,36,0); } }
@media (prefers-reduced-motion: reduce){ .spx-pb.pulse{ animation:none; box-shadow:0 0 0 3px #fde68a; } }
.spx-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.sg-bkh{ flex-basis:100%; display:grid; grid-template-columns:1.4fr 1fr .9fr 1.1fr 1.3fr; gap:8px; padding:0 12px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--mut); }
.sg-pick.sg-bk{ flex-basis:100%; display:grid; grid-template-columns:1.4fr 1fr .9fr 1.1fr 1.3fr; gap:8px; align-items:center; text-align:left; padding:8px 12px; }
.sg-bk .sg-bk-n{ font-weight:800; }
.sg-bk .sg-bk-id,.sg-bk .sg-bk-m,.sg-bk .sg-bk-w{ color:var(--txt); font-size:12.5px; }
.sg-bk .sg-bk-s{ font-size:12px; font-weight:800; }
.sg-bk.today{ border-color:#0284c7; border-left:4px solid #0284c7; background:rgba(2,132,199,.10); }
.sg-bk.today .sg-bk-w{ font-weight:800; }
.sg-bk.sg-bk-graded{ opacity:.66; }
.sg-bk.sg-bk-draft .sg-bk-s{ color:var(--amber); }
.sg-bk.cur{ outline:2px solid #0284c7; outline-offset:-2px; }
.sg-bk-more{ flex-basis:100%; font-size:12px; color:var(--mut); padding:2px 12px; }
.sg-tchip-dr{ font-size:10.5px; font-weight:800; text-transform:uppercase; color:var(--amber); }
.spk-np{ white-space:nowrap; }
.spe-h{ margin:0 0 4px; }
.spe-sub{ margin:0 0 14px; }
.spe-opts{ display:flex; flex-direction:column; gap:8px; }
.spe-o{ width:100%; justify-content:center; padding:11px 14px; font-size:14.5px; }
.spe-o[disabled]{ opacity:.55; cursor:not-allowed; }
.spe-why{ margin:-2px 0 4px; font-size:12.5px; font-weight:700; color:var(--amber); }
@media (max-width:700px){ .sg-bkh{ display:none; } .sg-pick.sg-bk{ grid-template-columns:1fr 1fr; } }
/* spk-examiner-ux F–I + audit MEDIUM-1 (DECISIONS 260 addendum 5) — one big current-part clock + a small total, Pause / Technical issue,
   the part notes under each part, the slot length row, read-only search rows with Take over */
.spx-now{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-left:auto; padding:6px 14px; border-radius:10px; background:#1c355e; color:#fff; min-width:250px; }
.spx-now .spx-now-l{ font-size:13px; font-weight:800; color:#dbe6f7; }
.spx-now .spx-now-v{ font-size:30px; line-height:1.05; font-weight:800; font-variant-numeric:tabular-nums; color:#fff; }
.spx-now .spx-now-s{ font-size:12.5px; font-weight:600; color:#dbe6f7; }
.spx-now.run{ background:#1e40af; }
.spx-now.amber,.spx-now.tup{ background:#b45309; }
.spx-now.amber .spx-now-l,.spx-now.amber .spx-now-s{ color:#fff; }
.spx-now.tup{ box-shadow:0 0 0 2px #fbbf24; }
.spx-now.paused{ background:#475569; }
.spx-now .spx-tup{ color:#fff; }
.spx-tot{ font-size:12px; padding:4px 9px; }
.spx-tot b{ font-size:13px; }
.spx-p2b{ display:inline-flex; gap:6px; }
.spx-p2b[hidden]{ display:none; }
.spx-pb.spx-sb{ background:#1e40af; }
.spx-pb.spx-pause.on{ background:#fbbf24; color:#1f2937; border-color:#fbbf24; }
.spx-pb.spx-tech{ background:#0b2447; border-color:rgba(255,255,255,.45); color:#fde68a; }
.spx-tgo{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 10px; }
.spx-tgo-h{ font-size:12.5px; color:#475569; font-style:italic; }
.spx-pn{ margin-top:12px; padding:10px 12px; border:1px dashed #94a3b8; border-radius:10px; background:#fff; }
.spx-pn label{ display:block; font-size:13px; font-weight:800; color:#0b2447; margin-bottom:6px; }
.spx-pn .spx-pn-h{ font-weight:600; font-size:12px; color:#475569; margin-left:6px; }
.spx .spx-pn textarea{ display:block; width:100%; box-sizing:border-box; min-height:52px; padding:8px 10px; border:1px solid #a9b3c2 !important; border-radius:8px; background:#fff !important; color:#111827 !important; font:inherit; font-size:14px; line-height:1.45; resize:vertical; }
.spx .spx-pn textarea::placeholder{ color:#4a5568 !important; opacity:1; }
.spm-pnw .spm-pn-h{ font-size:11.5px; font-weight:600; color:var(--spm-mut); }
.spm .spk-pnote{ display:block; width:100%; box-sizing:border-box; min-height:40px; padding:7px 9px; border:1px solid var(--spm-inbd); border-radius:7px; background:var(--spm-in); color:var(--spm-tx); font:inherit; font-size:13px; line-height:1.4; resize:vertical; }
.spm .spk-pnote::placeholder{ color:var(--spm-mut); opacity:1; }
.spe-list{ margin:0 0 12px; padding-left:20px; font-size:13.5px; line-height:1.5; }
.spe-note{ display:block; margin:0 0 12px; }
.spe-note input{ width:100%; box-sizing:border-box; margin-top:4px; }
.spk-lenrow{ margin:0 0 8px; font-size:13.5px; }
.spk-lenrow select{ margin-left:6px; }
.sg-bk.sg-bk-ro{ cursor:default; }
.sg-bk .sg-bk-as{ display:block; font-weight:600; color:var(--mut); font-size:11.5px; }
.sg-bk-ro .sg-bk-take{ grid-column:5; justify-self:start; margin-top:2px; }
.sg-bk.sg-bk-technical{ opacity:.66; }
@media (prefers-reduced-motion: reduce){ .spx-now{ transition:none; } }
/* ===== speaking-examiner (ANik 28 Oct 02:09; specs/speaking-examiner-plan.md) =====
   brief 4 — the SLIM clock strip: one line (part + clock, total, small controls, Full screen, ☰ Menu); under 900 px the row scrolls sideways
   inside itself, never wrapping over the script. */
.spx-wrap,#spx-layout > .spx-main,#spx-root{ min-width:0; }   /* the one-line strip scrolls inside itself: its width must never become the column's minimum (390 px) */
.spx-bar.spx-strip{ width:0; min-width:100%; box-sizing:border-box; flex-wrap:nowrap; gap:6px !important;   /* width 0 + min-width 100%: fills the column but adds nothing to anyone's intrinsic width */ gap:8px; padding:5px 8px; border-radius:10px; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; min-height:0; }
.spx-strip .spx-now{ flex:0 0 auto; min-width:0; margin-left:0; padding:3px 10px; gap:8px; align-items:baseline; border-radius:8px; flex-wrap:nowrap; white-space:nowrap; }
.spx-strip .spx-now .spx-now-l{ font-size:12px; }
.spx-strip .spx-now .spx-now-v{ font-size:20px; line-height:1.1; }
.spx-strip .spx-now .spx-now-s{ font-size:11.5px; max-width:230px; overflow:hidden; text-overflow:ellipsis; }
.spx-strip .spx-tot{ flex:0 0 auto; white-space:nowrap; }
.spx-strip .spx-parts{ flex:0 0 auto; flex-wrap:nowrap; gap:4px; }
.spx-strip .spx-pb{ min-height:30px; padding:3px 8px; font-size:12px; white-space:nowrap; border-radius:7px; }
.spx-strip .spx-pl{ align-self:center; font-size:12px; font-weight:700; color:#c9d6ea; background:#0b2447; margin-right:1px; }   /* on the always-dark strip (10.5:1) */
.spx-strip .spx-pb.spx-pn1{ min-width:30px; padding:3px 0; text-align:center; }
.spx-strip .spx-p2b{ display:inline-flex; gap:4px; }
.spx-strip .spx-p2b[hidden]{ display:none; }
.spx-hdr{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.spx-tools{ display:inline-flex; gap:6px; margin-left:auto; }
@media (max-width:760px){ .spx-tools .spx-menub{ display:none; } }   /* the phone menu is already a drawer (lumen.css) — nothing to hide or show */
.spx-tools .btn[aria-pressed="true"]{ border-color:#1d4ed8; box-shadow:0 0 0 1px #1d4ed8 inset; }
/* the booking card on this page in the dark theme (its text kept light-theme colours on the dark card) and at phone width */
html:not([data-theme="light"]) .sg-bk-top{ color:var(--mut); }
html:not([data-theme="light"]) .sg-bk-top b,html:not([data-theme="light"]) .sg-bk-stu,html:not([data-theme="light"]) .sg-bk-stu b{ color:var(--txt); }
html:not([data-theme="light"]) .sg-bk-status{ color:#4ade80; }
@media (max-width:600px){ .sg-booking{ flex-wrap:wrap; } .sg-booking .sg-bk-main{ flex:1 1 calc(100% - 40px); } .sg-booking .btn.primary{ flex:1 1 100%; } }
.spx-strip .spx-pb:focus-visible{ outline:2px solid #fbbf24; outline-offset:1px; }
@media (pointer:coarse){ .spx-strip .spx-pb{ min-height:36px; } }
/* the clock's line beside it ("4–5 minutes", "Start Part 1 when …") is in the clock's title; only its time-up / done line shows (it tells the teacher what to say) */
.spx-strip .spx-now:not(.tup):not(.amber) .spx-now-s{ display:none; }
/* 1200–1439 px (a laptop, the panel beside the script): the words that only repeat a title go, the panel narrows — so the one line fits */
@media (min-width:1200px) and (max-width:1439px){ .spx-strip .spx-tl,.spx-strip .spx-tw{ display:none; } .spx-layout{ grid-template-columns:minmax(0,1fr) 340px; } }
@media (min-width:1200px) and (max-width:1279px){ .spx-layout{ grid-template-columns:minmax(0,1fr) 304px; } .spx-strip .spx-pl{ display:none; } }
/* brief 4 — Face-to-face / Zoom moved out of the strip, into the setup block above the script */
.spx-setup{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 0; font-size:13.5px; color:var(--txt); }
.spx-setup:empty{ display:none; }
.spx-setup-l{ font-weight:700; }
.spx-setup .spx-seg{ border:1px solid var(--bord); border-radius:10px; }
.spx-setup .spx-seg button{ background:transparent; color:var(--txt); padding:6px 14px; font-size:13px; }
.spx-setup .spx-seg button.on{ background:#1d4ed8; color:#fff; }
.spx-setup .spx-seg button:focus-visible{ outline:2px solid #60a5fa; outline-offset:-2px; }
/* brief 3 — the TeachCloud menu is hidden while the examiner page is up (≥ 761 px; below that it is already a drawer); ☰ Menu shows it */
@media (min-width:761px){
  body.lumen.lx-sh.spx-on:not(.spx-menu){ --lx-side-w:0px; }
  body.lumen.lx-sh.spx-on:not(.spx-menu) #app .fin-side,
  body.lumen.lx-sh.spx-on:not(.spx-menu) .lx-sidefoot,
  body.lumen.lx-sh.spx-on:not(.spx-menu) #app > .topbar .brand-block,
  body.lumen.lx-sh.spx-on:not(.spx-menu) #app > .topbar .tb-search,
  body.lumen.lx-sh.spx-on:not(.spx-menu) #app > .topbar .tr-name{ display:none !important; }
}
/* brief 5 / 6 / 7 — the panel: Notes (chips + the private note) · Bands & feedback */
.spm-chips{ display:flex; flex-wrap:wrap; gap:5px; }
.spm-chip{ padding:5px 9px; border:1px solid var(--spm-inbd); border-radius:999px; background:var(--spm-in); color:var(--spm-tx); font:inherit; font-size:12.5px; font-weight:600; line-height:1.3; text-align:left; cursor:pointer; min-height:30px; }
.spm-chip:hover{ border-color:var(--spm-acc); }
.spm-chip.on{ background:var(--spm-on); border-color:var(--spm-on); color:var(--spm-onx); }
.spm-chip.on::before{ content:"✓ "; }
.spm-chip:focus-visible,.spm-link:focus-visible{ outline:2px solid var(--spm-acc); outline-offset:2px; }
@media (pointer:coarse){ .spm-chip{ min-height:36px; } }
.spm-lbl{ display:block; margin:6px 0 4px; font-size:12.5px; font-weight:700; color:var(--spm-tx); }
.spm-lbl small{ font-weight:500; color:var(--spm-mut); }
.spm .spk-note{ display:block; width:100%; box-sizing:border-box; min-height:56px; padding:7px 9px; border:1px solid var(--spm-inbd); border-radius:7px; background:var(--spm-in); color:var(--spm-tx); font:inherit; font-size:13px; resize:vertical; }
.spm .spk-note::placeholder{ color:var(--spm-mut); opacity:1; }
.spm-wait{ padding:10px 12px; border:1px dashed var(--spm-bd); border-radius:9px; font-size:13px; color:var(--spm-tx); }
.spm-wait[hidden]{ display:none; }
#spm-marks[hidden]{ display:none; }
.spm-link{ background:none; border:0; padding:0; color:var(--spm-acc); font:inherit; font-weight:700; text-decoration:underline; cursor:pointer; }
.spm-st .spm-link{ margin-left:4px; }
.spm-legacy{ margin:0 0 10px; padding:8px 10px; border-radius:8px; background:var(--spm-sum); border:1px solid var(--spm-bd); font-size:12px; color:var(--spm-mut); }
.spm-lcnote{ border-color:rgba(2,132,199,.45); border-left-color:#0284c7; background:rgba(2,132,199,.10); }
.spx-pn .spx-pn-h{ font-weight:500; }
.sg-picks{ flex-basis:100%; display:flex; flex-wrap:wrap; gap:6px; }
.sg-picks[hidden]{ display:none; }
.sg-pick{ display:inline-flex; gap:8px; align-items:center; padding:6px 12px; border:1px solid var(--bord); border-radius:10px; background:var(--glass); color:var(--txt); cursor:pointer; font-size:13px; }
.sg-pick:hover{ border-color:#0284c7; }
.sg-pick small{ color:var(--mut); }
@media (max-width:700px){ .spx-say{ font-size:16px; } .spx-sec{ padding:12px; } .spx-clocks{ margin-left:0; } .spx-stools{ margin-left:0; } }
.sg-livenote{ margin:10px 0 0; padding:11px 15px; border:1px solid rgba(34,197,94,.35); border-left:4px solid #22c55e; border-radius:12px; background:rgba(34,197,94,.07); color:var(--txt); font-size:13.5px; line-height:1.5; }
.spk-grid-wrap{ overflow-x:auto; }
.spk-grid{ width:100%; border-collapse:collapse; font-size:13px; background:#fff; color:#1c1c1c; border-radius:8px; overflow:hidden; }
.spk-grid th,.spk-grid td{ border:1px solid #d7dbe2; padding:9px 8px; text-align:center; vertical-align:middle; }
.spk-grid th{ background:#f4f6f9; color:#333; font-weight:700; font-size:11.5px; line-height:1.3; }
.spk-grid .spk-pn{ font-weight:700; color:#1c1c1c; background:#f4f6f9; white-space:nowrap; }
.spk-grid .spk-sel{ width:72px; padding:6px 4px; border:1px solid #cfd5de; border-radius:6px; background:#fff; color:#1c1c1c; font-size:13.5px; }
.spk-grid .spk-cmt{ width:100%; min-width:90px; padding:6px 8px; border:1px solid #cfd5de; border-radius:6px; font-size:13px; color:#1c1c1c; background:#fff; }
.spk-grid .spk-score{ text-align:left; font-size:13px; color:#444; }
.spk-grid .spk-score b{ font-size:20px; color:#0ea5e9; }
.spk-grid .spk-score-note{ color:#888; font-size:11px; }
.spk-demo-tag{ background:#fde68a; color:#7a4f00; font-size:11px; font-weight:800; padding:2px 8px; border-radius:20px; vertical-align:middle; letter-spacing:.5px; }
.spk-demo-note{ background:rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.4); color:var(--amber); font-size:13.5px; padding:10px 13px; border-radius:10px; margin:10px 0 4px; max-width:560px; }

.wc-badge{ font-weight:600; font-size:12.5px; padding:3px 10px; border-radius:20px; display:inline-block; }
.wc-ok{ background:rgba(52,211,153,.16); color:var(--ok); }
.wc-under{ background:rgba(248,113,113,.16); color:#f87171; }

.wa-panel{ background:var(--glass2); border:1px solid var(--bord); border-radius:12px; padding:12px 14px; margin:0 0 14px; }
/* ---- v1.093 writingAssist: no-band state + the TEACHER-ONLY grammar analysis ---- */
.wa-noband .wa-overall.wa-none{background:rgba(190,18,60,.12);color:var(--bad);border:1px dashed rgba(190,18,60,.4);font-weight:800}
.wag{margin:12px 0 4px;border:1px solid var(--bord);border-radius:10px;background:var(--glass2);overflow:hidden}
.wag>summary{cursor:pointer;padding:9px 12px;font-size:12.5px;font-weight:700;list-style:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wag>summary::-webkit-details-marker{display:none}
.wag>summary::before{content:"\25B8";display:inline-block;transition:transform .15s}
.wag[open]>summary::before{transform:rotate(90deg)}
.wag-teach{margin-left:auto;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;padding:2px 7px;border-radius:999px;background:rgba(99,102,241,.14);color:var(--accent);border:1px solid rgba(99,102,241,.3)}
.wag-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px}
.wag-chip{font-size:11.5px;padding:3px 9px;border-radius:999px;background:var(--glass2);border:1px solid var(--bord)}
.wag-tbl{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
.wag-tbl th{text-align:left;font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--mut);padding:5px 8px;border-top:1px solid var(--bord);border-bottom:1px solid var(--bord)}
.wag-tbl td{padding:5px 8px;border-bottom:1px solid var(--bord);vertical-align:top;word-break:break-word}
.wag-tbl .wag-n{width:26px;color:var(--mut);text-align:right}
.wag-tbl .wag-c{width:150px;color:var(--mut);font-size:11px}
.wag-tbl .wag-e{width:170px;font-size:11px}
.wag-tbl tr.wag-bad .wag-e{color:var(--bad);font-weight:600}
.wag-tbl tr.wag-bad{background:rgba(190,18,60,.05)}
.wag-note{padding:9px 12px;font-size:11.5px;line-height:1.5;color:var(--mut);border-top:1px solid var(--bord);background:rgba(127,127,127,.04)}
@media(max-width:760px){.wag-tbl .wag-c,.wag-tbl .wag-e{width:auto;font-size:10.5px}}
.wa-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.wa-title{ font-weight:700; font-size:14px; }
.wa-beta{ font-size:10px; font-weight:800; letter-spacing:.5px; background:rgba(var(--accent),.18); color:var(--vio); padding:2px 7px; border-radius:20px; }
.wa-overall{ font-weight:800; color:var(--vio); font-size:14px; }
.wa-head .wa-apply{ margin-left:auto; background:var(--grad); color:#fff; border:0;
  font-weight:700; box-shadow:0 4px 16px rgba(var(--accent),.4); }
.wa-head .wa-apply:hover{ filter:brightness(1.1); box-shadow:0 6px 20px rgba(var(--accent),.55); }
.wa-bands{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.wa-chip{ background:var(--glass); border:1px solid var(--bord); border-radius:8px; padding:5px 10px; font-size:12.5px; color:var(--mut); }
.wa-chip b{ color:var(--txt); font-size:14px; margin-right:3px; }
.wa-flags{ display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.wa-flag{ font-size:12.5px; padding:6px 10px; border-radius:8px; line-height:1.45; }
.wa-penalty{ background:rgba(248,113,113,.14); color:var(--bad-2); border:1px solid rgba(248,113,113,.3); }
.wa-warn{ background:rgba(251,191,36,.14); color:var(--amber); border:1px solid rgba(251,191,36,.3); }
.wa-info{ background:var(--glass); color:var(--mut); }
.wa-note{ font-size:11.5px; color:var(--mut); line-height:1.5; }

.hero-art{ position: relative; }
.hero-photo{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.spk-grid td{ vertical-align: middle; }
.spk-grid .spk-cmt{ width:100%; min-width:150px; min-height:84px; padding:8px 9px; border:1px solid #cfd5de; border-radius:6px; font-size:13px; color:#1c1c1c; background:#fff; font-family:inherit; line-height:1.45; resize:vertical; vertical-align:top; }

.login-hero{ position: relative; }
.hero-photo{ z-index: 2; }

.login-hero{ background: #14223d; }
.hero-photo{ object-fit: contain; }
.login-hero.has-photo .hero-cap,.login-hero.has-photo .hero-art{ display: none; }
/* Hide the inline SVG art + caption by default so the OLD art never flashes before the hero photo
   loads. It reappears only as a fallback if the photo fails to load (.no-photo, set on img error). */
.login-hero .hero-art,.login-hero .hero-cap{ display: none; }
.login-hero.no-photo .hero-art,.login-hero.no-photo .hero-cap{ display: block; }

/* v625 login refinement. The hero photo (login-hero.png) has a flat #01010E ground, so the panel
   behind it must stay that exact flat color — depth is added as a ::after OVERLAY on top of the
   photo (uniform tint = no seam at the image edge): a faint cyan lift top-left, a soft Luminedge-
   yellow glow along the flight path, and a gentle bottom vignette. */
/* Seam fix: ONE continuous background across the whole split (matched to the hero photo's exact
   flat #01010E ground so the letterbox blends), NO divider line, and NO per-pane gradient/overlay
   that would make the two halves differ. Panes are transparent over it. */
.login-hero{ background: transparent; }
.login-hero .hero-photo{ padding: clamp(16px, 3.5vw, 48px); }
/* 2026-09-23 — THE HERO RECTANGLE (ANik: "the image and the background colour of luminedge.easymock.io
   don't match"). The seam fix above moved the page's two glows (cyan at 12% 6%, yellow at 90% 96%)
   onto .login-split's BACKGROUND, underneath the photo — and the photo is OPAQUE (z-index 2), so it
   paints its own flat ground over them. The cyan glow is centred almost exactly on the photo's
   top-left corner, which is where the rectangle showed: measured on the live page at 1440x900,
   outside (2,12,26) vs inside (1,1,12), a 27-point step along a hard edge; and the webp's ground
   itself drifts to #00000b/#01010c against the page's #01010e (Δ2–6) all round the frame.
   `lighten` keeps, per channel, the brighter of photo and page: the photo's near-black ground (always
   ≤ the page's #01010e) drops out and the page — glows included — shows through, while the artwork
   (white, yellow, all far above the ground) is untouched. No new asset, no colour guessed, nothing to
   keep in sync when the ground token moves. SCOPED to the full-bleed path (:not(.has-sub)): a tenant
   with heroSub (Rightsight) already ships a TRANSPARENT headline image and is left byte-identical.
   ⚠ A future tenant whose hero is a LIGHT photo must not take this path — give it heroSub-style
   transparent art or an opt-out class; lighten on a light photo would wash the page glows into it. */
.login-hero:not(.has-sub) .hero-photo{ mix-blend-mode: lighten; }
/* v1.237 — STACKED hero for a tenant whose brand token carries `heroSub` (Rightsight): the headline
   stays an image (its typeface, Gunterz, is licensed artwork with no web file — brand book p15) and
   the body line is LIVE text in Raleway (brand book p16, loaded from Google Fonts), so it is sharp
   at any DPI and editable in the brand file. __brandApply sets .has-sub from the token; Luminedge's
   token has no heroSub, so its full-bleed photo path is byte-unaffected. The image is a 949×900
   canvas (rendered 2× for Retina) whose text starts 8.85% in — the sub's padding-left matches it.
   ⚠ PERCENT PADDING RESOLVES AGAINST THE PANE, NOT THE ELEMENT (v1.240 — measured live: the body
   line sat 15px right of the headline). The image is min(560px, 100% of the pane), so the padding
   is written as the same min(): 49.6px = 8.85% of 560 once the image is capped, 8.85% of the pane
   while it is not. */
.login-hero.has-sub{ display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(16px, 3.5vw, 48px); }
.login-hero.has-sub .hero-photo{ position: static; inset: auto; width: 100%; height: auto; max-width: 560px; padding: 0; object-fit: contain; }
.login-hero .hero-sub{ display: none; }
.login-hero.has-sub.has-photo .hero-sub{ display: block; width: 100%; max-width: 560px; box-sizing: border-box; padding: 0 min(67px,12%) 0 min(49.6px,8.85%); margin-top: min(14px,2.5%); font-family: "Raleway", "Inter", sans-serif; font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; color: rgba(255,255,255,.92); }
/* 2026-09-23 — PHONE: the stacked hero must hide like the photo does. The ≤900px rule at the top of
   this file (`.login-hero{ display:none }`) loses to `.login-hero.has-sub{ display:flex }` above —
   later AND more specific — so on a phone Rightsight's login rendered its body line as a one-word-
   wide column at the left and pushed the card 32px off the right edge (live, 375px: scrollWidth 407,
   the card's right border and the Login button clipped). Same specificity, later, inside the query. */
@media (max-width: 900px){ .login-hero.has-sub{ display: none; } }
.login-hero::after{ display: none; }
.login-wrap.login-split{ background:
  radial-gradient(1200px 700px at 12% 6%, rgba(34,211,238,.06), transparent 60%),
  radial-gradient(1000px 700px at 90% 96%, rgba(247,206,43,.05), transparent 60%),
  #01010e; }
.login-cardwrap{ background: transparent; }
/* The login is a full-bleed DARK experience (the hero art is black) — keep both panes dark even in
   light theme so the page never splits black/white. The card itself stays themed. */
html[data-theme="light"] .login-wrap.login-split{ background:
  radial-gradient(1200px 700px at 12% 6%, rgba(34,211,238,.06), transparent 60%),
  radial-gradient(1000px 700px at 90% 96%, rgba(247,206,43,.05), transparent 60%),
  #01010e; }
html[data-theme="light"] .login-cardwrap{ background: transparent; }

.spk-grid td{ vertical-align: top; }
.spk-grid .spk-pn{ vertical-align: middle; }
.spk-grid .spk-cell{ display:flex; flex-direction:column; gap:7px; align-items:stretch; }
.spk-grid .spk-cell .spk-sel{ align-self:center; }
.spk-grid .spk-cell .spk-cmt{ min-height:50px; min-width:0; width:100%; }

.spk-grid .spk-partband{ text-align:center; vertical-align:middle; background:#f4f6f9; min-width:74px; }
.spk-grid .spk-partband b{ font-size:18px; color:#0ea5e9; }
.spk-grid .spk-overall b{ font-size:22px; }

.spk-grid .spk-cell{ gap:8px; }
.spk-grid .spk-cell .spk-sel{ width:100%; align-self:stretch; height:38px; padding:8px 10px; font-size:14px; box-sizing:border-box; cursor:pointer; }
.spk-grid .spk-cell .spk-cmt{ width:100%; min-height:58px; box-sizing:border-box; padding:8px 10px; line-height:1.4; }
.spk-grid td{ padding:9px; }
.spk-grid th{ padding:11px 9px; font-size:12px; }
.spk-grid .spk-partband{ min-width:80px; }

.spk-grid .spk-critrow td{ background:#eef1f6; }
.spk-grid .spk-cb{ text-align:center; vertical-align:middle; font-weight:700; }
.spk-grid .spk-cb b{ font-size:17px; color:#1c2c49; }

.teach-table td{ white-space: nowrap; vertical-align: middle; }
.teach-table td.t-desig{ white-space: normal; min-width: 150px; line-height: 1.35; }
.teach-table th{ white-space: nowrap; }
.teach-table .name-cell{ gap: 10px; }
.teach-table .row-acts{ display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.teach-table .row-acts .btn{ white-space: nowrap; }

.teach-table td:first-child{ white-space: normal; min-width: 210px; }
.teach-table .name-col{ white-space: normal; min-width: 0; }
.teach-table .row-sub{ white-space: normal; }

.model-reveal{ margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(var(--accent),.06), rgba(var(--accent),.02)); overflow: hidden; }
.model-reveal > summary{ cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 600;
  font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 9px; user-select: none; }
.model-reveal > summary::-webkit-details-marker{ display: none; }
.model-reveal > summary::after{ content: "▾"; margin-left: auto; color: var(--mut); transition: transform .2s; }
.model-reveal[open] > summary::after{ transform: rotate(180deg); }
.model-reveal > summary:hover{ background: rgba(var(--accent),.06); }
.model-reveal .mr-ic{ font-size: 15px; }
.model-sub{ font-family: var(--font-display, inherit); font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand, rgb(var(--accent))); margin: 4px 16px 6px; }
.model-reveal[open] .model-sub:first-of-type{ margin-top: 4px; }
.model-answer{ margin: 0 16px 14px; padding: 14px 16px; background: var(--card2, var(--glass-03));
  border: 1px solid var(--line); border-radius: var(--r2); font-size: 14px; line-height: 1.65; color: var(--ink); }
.model-analysis{ margin: 0 16px 16px; padding: 13px 16px; border-left: 3px solid var(--brand, rgb(var(--accent)));
  background: rgba(var(--accent),.05); border-radius: 0 var(--r2) var(--r2) 0; font-size: 13.5px; line-height: 1.6; color: var(--mut); }
.model-analysis b,.model-answer b{ color: var(--ink); }

.wr-fig{ margin: 16px 0; }
/* F-03 (v2 audit, 23 Sep 2026) — a Writing Task 1 figure always fits its pane. 16 of the 25 v2 stimuli carry an
   inline max-width of 640-760px and no width:100%, so at 1280 (585px pane) 5-20% of the chart sat off-pane behind a
   horizontal scroll (fm32's 2025 pie was cut) and at 375 every one clipped. The stylesheet caps the <img> at the
   pane; !important because the cap has to beat the paper's inline style. Never upscales (max-width, not width). */
#pane-l .w-stim img{ max-width: 100% !important; height: auto !important; }
.wr-cap{ font-weight: 700; font-size: 13px; margin-bottom: 9px; color: #111; }
.wr-table{ border-collapse: collapse; font-size: 13.5px; color: #111; }
.wr-table th,.wr-table td{ border: 1px solid #555; padding: 5px 13px; text-align: center; }
.wr-table th{ background: #eef2f7; }
.wr-table td:first-child,.wr-table th:first-child{ text-align: left; font-weight: 600; }
.wr-proc{ margin: 14px 0; font-size: 13.5px; color: #111; max-width: 520px; }
.wr-proc .wr-step{ padding: 8px 13px; border: 1px solid #555; border-radius: 6px; background: #f7f9fc; }
.wr-proc .wr-arrow{ text-align: center; color: #555; line-height: 1.3; font-size: 15px; }

.skill-ico{ display: inline-flex; align-items: center; justify-content: center; vertical-align: -0.18em; flex: none; }
.skill-ico svg{ width: 100%; height: 100%; display: block; }
.skill-btn .emo .skill-ico{ width: 18px; height: 18px; }
.stat .l .skill-ico,.tgt label .skill-ico{ vertical-align: -0.22em; }

.sla{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.sla-ok{ background:rgba(52,211,153,.14); color:var(--ok); }
.sla-soon{ background:rgba(251,191,36,.16); color:var(--warn); }
.sla-urgent{ background:rgba(251,146,60,.20); color:#fb923c; }
.sla-overdue{ background:rgba(248,113,113,.20); color:var(--bad); }
.sla-text-overdue{ color:var(--bad); }
.h1-flags{ font-size:15px; font-weight:600; color:var(--mut); margin-left:9px; white-space:nowrap; vertical-align:middle; }
.row-overdue > td{ background:rgba(248,113,113,.07); }
.note-danger{ border-color:rgba(248,113,113,.45) !important; background:rgba(248,113,113,.09) !important; color:#fecaca !important; }
.stat.stat-danger .v{ color:var(--bad); }
.th-sla-bar{ margin:0 0 14px; padding:11px 16px; border-radius:12px; font-size:13.5px; background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.3); color:var(--warn-2); }
.th-sla-bar.overdue{ background:rgba(248,113,113,.1); border-color:rgba(248,113,113,.4); color:#fecaca; }
.pub-toolbar{ display:flex; align-items:center; gap:12px; margin:6px 0 12px; }
.pub-all{ display:inline-flex; align-items:center; gap:7px; font-size:13.5px; color:var(--mut); cursor:pointer; }

.th-sort{ cursor:pointer; user-select:none; white-space:nowrap; transition:color .15s; }
.th-sort:hover{ color:var(--cyan); }
.th-sort .sort-i{ opacity:.35; font-size:11px; }
.th-sort .sort-on{ color:var(--cyan); font-size:10px; }

.th-toprow{ display:flex; gap:18px; align-items:stretch; }
/* Admin dash left column — 2×2 KPI grid + "Today at a glance" fill the widget's height */
.dash-kpi4{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.dash-kpi4 .stat{ min-width:0; padding:16px 20px; display:flex; flex-direction:column; justify-content:center; }
.dash-kpi4 .stat .v{ font-size:30px; }
.dash-glance{ margin-top:12px; background:var(--glass); border:1px solid var(--bord); border-radius:16px; padding:12px 14px; }
.dg-h{ font-weight:800; font-size:13px; display:flex; align-items:center; gap:8px; margin-bottom:4px; color:var(--txt); }
.dg-sub{ color:var(--mut); font-weight:600; font-size:11.5px; margin-left:auto; }
.dg-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; background:transparent; border:0; border-top:1px solid var(--bord); padding:8px 2px; color:var(--txt); font:inherit; font-size:12.5px; cursor:pointer; text-align:left; }
.dg-row:first-of-type{ border-top:0; }
.dg-row:hover .dg-l{ color:var(--txt); }
.dg-l{ color:var(--mut); transition:color .14s ease; }
.dg-v{ font-weight:800; white-space:nowrap; }
.dg-v.hot{ color:var(--warn); }
.dg-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px solid var(--bord); }
@media (max-width:560px){ .dash-kpi4{ grid-template-columns:1fr 1fr; } }
.th-toprow .th-hero{ flex:1; margin:0; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:18px; }
.th-hero-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.th-hero-top .dash-hero-l{ flex:1 1 auto; min-width:0; }
.th-hero-top .dash-hero-l .dash-tagline{ max-width:none; }
.th-actions{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.th-actions .btn{ width:100%; justify-content:center; text-align:center; white-space:nowrap; margin:0; }
.th-toprow .th-hero > *{ flex-shrink:0; }            
#th-perf-chart{ line-height:0; }
.th-hero .th-stats{ margin:6px 0 0; }
@media (max-width:680px){ .th-hero-top{ flex-direction:column; } .th-actions{ grid-template-columns:1fr; } }
.tw-widget{ width:330px; flex:none; display:flex; flex-direction:column; gap:12px; padding:16px 18px; border-radius:16px;
  background:linear-gradient(160deg, rgba(2,132,199,.20), rgba(var(--accent),.05)); border:1px solid var(--bord); box-shadow:var(--shadow, 0 10px 30px rgba(0,0,0,.25)); }
.tw-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.tw-datebox{ text-align:left; padding-top:4px; }
.tw-time{ font-family:var(--font-display, inherit); font-weight:800; font-size:44px; line-height:1; color:#fff; white-space:nowrap; }
.tw-time .tw-ap{ font-size:14px; font-weight:800; color:var(--cyan); margin-left:5px; vertical-align:6px; }
.tw-day{ font-weight:800; font-size:17px; color:#fff; }
.tw-fulldate{ font-size:12px; color:var(--mut); margin-top:1px; }
.tw-weather{ text-align:right; border-top:1px solid var(--line, var(--glass-10)); padding-top:11px; }
.tw-wload{ font-size:12.5px; color:var(--mut); }
.tw-w-top{ display:flex; justify-content:flex-end; align-items:center; gap:8px; font-size:12px; color:var(--mut); }
.tw-w-city{ font-weight:700; color:var(--ink, #e8edf6); }
.tw-w-now{ display:flex; justify-content:flex-end; align-items:center; gap:9px; margin-top:2px; }
.tw-w-emo{ font-size:30px; line-height:1; }
.tw-w-temp{ font-size:38px; font-weight:800; color:#fff; line-height:1; }
.tw-w-cond{ font-size:12px; color:var(--mut); margin-top:2px; }
.tw-forecast{ display:flex; justify-content:space-between; gap:6px; margin-top:12px; }
.tw-fc{ flex:1; text-align:center; background:var(--glass-05); border-radius:10px; padding:7px 2px; }
.tw-fc-d{ display:block; font-size:10.5px; color:var(--mut); }
.tw-fc-i{ display:block; font-size:16px; margin:2px 0; }
.tw-fc-t{ display:flex; flex-direction:column; align-items:center; line-height:1.2; }
.tw-fc-t b{ font-size:12px; font-weight:800; color:var(--ink, #e8edf6); }
.tw-fc-lo{ font-size:10.5px; color:var(--mut); }
.tw-cal{ border-top:1px solid var(--line, var(--glass-10)); padding-top:10px; }
.tw-cal-h{ display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }
.tw-cal-title{ font-size:12px; font-weight:800; color:var(--ink, #e8edf6); }
.tw-cal-nav{ width:22px; height:22px; flex:none; display:flex; align-items:center; justify-content:center; border:0; border-radius:6px;
  background:var(--glass-07); color:var(--ink, #e8edf6); font-size:15px; line-height:1; cursor:pointer; transition:background .15s, color .15s; }
.tw-cal-nav:hover{ background:var(--cyan); color:#06121f; }

.th-perf{ display:flex; flex-direction:column; gap:8px; }
.th-perf-h{ display:flex; align-items:center; justify-content:space-between; }
.th-perf-t{ font-weight:800; font-size:14px; color:#fff; }
.th-stat-go{ cursor:pointer; transition:transform .12s ease, border-color .15s; }
.th-stat-go:hover{ transform:translateY(-2px); border-color:var(--cyan); }

.lw-date{ color:#667085; font-size:13px; margin-bottom:6px; }
.lw-sec-h{ font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#0284c7; margin:15px 0 8px; }
.lw-batches{ display:grid; grid-template-columns:repeat(auto-fill, minmax(205px,1fr)); gap:8px; }
.lw-batch{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:9px 12px; border-radius:10px; border:1px solid #d6deea; background:#f5f8fc; cursor:pointer; color:#1f2937; font-weight:600; transition:border-color .12s, background .12s; }
.lw-batch:hover{ border-color:#0284c7; }
.lw-batch span{ font-size:11px; color:#6b7280; font-weight:500; }
.lw-batch.on{ border-color:#0284c7; background:#e0f2fe; padding-right:26px; }
.lw-batch.on::after{ content:"✓"; position:absolute; top:8px; right:10px; color:#0284c7; font-weight:800; font-size:14px; }
.lw-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 28px; margin:2px 0; }
.lw-grid-1{ grid-template-columns:1fr; }
.lw-grid-mock{ grid-template-columns:repeat(2,1fr); }
.lw-none{ color:#6b7280; font-size:13px; }
.lw-row{ display:flex; align-items:center; justify-content:space-between; padding:6px 0; }
.lw-lbl{ font-size:13.5px; color:#1f2937; }
.lw-sub{ color:#6b7280; margin-left:6px; }
.stp{ display:flex; align-items:center; gap:12px; }
.stp b{ min-width:22px; text-align:center; font-size:15px; color:#111827; }
.stp-b{ width:28px; height:28px; border-radius:8px; border:1px solid #d6deea; background:#fff; color:#1f2937; font-size:17px; line-height:1; cursor:pointer; }
.stp-b:hover{ background:#0284c7; color:#fff; border-color:#0284c7; }

.perf-toggle{ display:inline-flex; gap:3px; background:var(--glass-05); border:1px solid var(--bord); border-radius:12px; padding:4px; }
.perf-toggle .seg-b{ border:0; background:none; color:var(--mut); font-weight:700; font-size:13px; padding:7px 18px; border-radius:8px; cursor:pointer; transition:background .15s, color .15s; white-space:nowrap; }
.perf-toggle .seg-b:hover:not(.active){ background:rgba(128,128,128,.14); }
.perf-toggle .seg-b.active{ background:var(--grad); color:#fff; box-shadow:0 2px 8px rgba(2,132,199,.35); }
.batch-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--bord); border-radius:12px; background:var(--glass); margin-bottom:8px; }
.batch-card .bc-name{ font-weight:700; }
.batch-card .bc-meta{ font-size:12.5px; color:var(--mut); }
.batch-table td,.batch-table th{ vertical-align:middle; }
.bprog{ display:inline-block; padding:2px 10px; border-radius:999px; font-size:11.5px; font-weight:700; border:1px solid var(--bord); white-space:nowrap; }
.bprog-ielts{ background:rgba(var(--accent),.14); color:rgb(var(--accent)); border-color:rgba(var(--accent),.4); }
.bprog-pte{ background:rgba(167,139,250,.14); color:var(--viol); border-color:rgba(167,139,250,.4); }
.bprog-toefl{ background:rgba(52,211,153,.14); color:var(--ok); border-color:rgba(52,211,153,.4); }
.bprog-gre{ background:rgba(251,191,36,.14); color:var(--warn); border-color:rgba(251,191,36,.4); }
.bprog-sscenglish{ background:rgba(244,114,182,.14); color:#f472b6; border-color:rgba(244,114,182,.4); }
.bprog-spokenenglish{ background:rgba(251,113,133,.14); color:var(--bad); border-color:rgba(251,113,133,.4); }
.bd-days{ display:flex; flex-wrap:wrap; gap:10px; }
.bd-day{ display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#1f2937; }
.tw-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.tw-cal-grid > span{ text-align:center; font-size:11px; padding:3px 0; color:var(--ink, #e8edf6); border-radius:6px; }
.tw-cal-grid .tw-dow{ color:var(--mut); font-weight:800; font-size:9.5px; }
.tw-cal-grid .tw-today{ background:var(--grad); color:#fff; font-weight:800; box-shadow:0 2px 8px rgba(var(--accent),.4); }
@media (max-width: 1100px){ .th-toprow{ flex-direction:column; } .tw-widget{ width:auto; } }

.h2{font-family:Sora;font-size:18px;font-weight:800;color:var(--txt);margin:4px 0 10px}
.acad-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.acad-course{padding:16px 18px}
.acad-c-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.acad-c-t{font-family:Sora;font-size:17px;font-weight:800;color:var(--txt)}
.acad-c-tot{font-size:12px;color:var(--mut)}.acad-c-tot b{color:var(--info-2)}
.acad-mods{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.acad-mod{display:flex;align-items:center;gap:10px;background:var(--glass);border:1px solid var(--bord);border-radius:10px;padding:8px 12px}
.acad-mod-n{flex:1;font-weight:600;font-size:13.5px;color:var(--txt)}
.acad-mod-c{font-size:12px;color:var(--mut);white-space:nowrap}
.acad-mod-acts{display:flex;gap:4px;flex:0 0 auto}
.acad-addmod{width:100%}
.grp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.grp-card{padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.grp-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.grp-code{font-family:Sora;font-size:15.5px;font-weight:800;color:var(--txt)}
.grp-room{font-size:11.5px;color:var(--mut);white-space:nowrap}
.grp-meta{font-size:12px;color:var(--mut);line-height:1.5}
.grp-active{font-size:13px;color:var(--txt)}.grp-active b{color:var(--info-2)}
.grp-bar{height:7px;background:var(--glass-08);border-radius:999px;overflow:hidden}
.grp-bar i{display:block;height:100%;background:linear-gradient(90deg,#0ea5e9,#22d3ee)}
.grp-bar-l{font-size:11px;color:var(--mut)}
.grp-chips{display:flex;flex-wrap:wrap;gap:5px}
.grp-chip{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;border:1px solid var(--bord);color:var(--mut)}
.grp-chip.done{background:rgba(52,211,153,.16);border-color:rgba(52,211,153,.4);color:var(--ok-2)}
.grp-chip.now{background:rgba(var(--accent),.18);border-color:rgba(var(--accent),.45);color:var(--info-2)}
.grp-chip.up{opacity:.7}
.grp-acts{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}
.tt-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.tt-col{background:var(--glass-03);border:1px solid var(--bord);border-radius:12px;padding:8px;min-height:80px}
.tt-day{font-size:12px;font-weight:800;color:var(--txt);text-align:center;padding-bottom:6px;border-bottom:1px solid var(--bord);margin-bottom:6px}
.tt-slot{background:rgba(var(--accent),.08);border:1px solid rgba(var(--accent),.2);border-radius:8px;padding:6px 7px;margin-bottom:6px}
.tt-time{font-size:11px;font-weight:800;color:var(--info-2)}
.tt-code{font-size:11px;font-weight:700;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-mod{font-size:10.5px;color:var(--mut)}
.tt-empty{text-align:center;color:var(--mut);opacity:.5;font-size:12px;padding:10px 0}
.mp-table th,.mp-table td{font-size:13px;text-align:center}
.mp-table td:first-child,.mp-table th:first-child{text-align:left}
.mp-chip{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;font-size:13px;font-weight:800;border:1px solid var(--bord);background:transparent;cursor:default;padding:0}
button.mp-chip{cursor:pointer}
.mp-completed{background:rgba(52,211,153,.18);border-color:rgba(52,211,153,.45);color:var(--ok)}
.mp-inprogress{background:rgba(var(--accent),.18);border-color:rgba(var(--accent),.45);color:rgb(var(--accent))}
.mp-notstarted{color:var(--mut);opacity:.85}
.mp-bar{display:inline-block;width:64px;height:7px;background:var(--glass-08);border-radius:999px;overflow:hidden;vertical-align:middle}
.mp-bar i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#4ade80)}
.mp-pct{font-size:12px;color:var(--mut);margin-left:6px}

.att-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 12px;flex-wrap:wrap}
.att-date{font-size:12.5px;color:#5c6b80;font-weight:700;display:flex;align-items:center;gap:8px}
.att-lock{font-size:12.5px;font-weight:700;color:#b45309;background:#fef3c7;border:1px solid #fde68a;border-radius:8px;padding:6px 10px}
.att-list{display:flex;flex-direction:column;gap:7px;max-height:46vh;overflow-y:auto}
.att-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7f9fb;border:1px solid #e6ebf2;border-radius:10px;padding:8px 12px}
.att-name{font-weight:700;color:#16325c;font-size:14px;display:inline-flex;align-items:center;gap:8px}
.att-credit{font-size:10.5px;font-weight:800;color:#0369a1;background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;padding:2px 8px;white-space:nowrap}
.att-credit-low{color:#b45309;background:#fef3c7;border-color:#fde68a}
.att-marks{display:flex;gap:5px}
.att-m{border:1.5px solid #cbd5e1;background:#fff;color:#64748b;border-radius:8px;padding:5px 10px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.att-m:hover{border-color:#94a3b8}
.att-m.on.att-m-present{background:#10b981;border-color:#10b981;color:#fff}
.att-m.on.att-m-absent{background:#f43f5e;border-color:#f43f5e;color:#fff}
.att-m.on.att-m-makeup{background:#0ea5e9;border-color:#0ea5e9;color:#fff}
.att-m.on.att-m-repeat{background:#f59e0b;border-color:#f59e0b;color:#fff}
.att-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}
.att-sum{font-size:13px;color:#5c6b80}
.overlay .panel .mp-table th,.overlay .panel .mp-table td{color:#16325c;border-color:#e6ebf2}
.overlay .panel .mp-chip{border-color:#cbd5e1}
.overlay .panel .mp-notstarted{color:#94a3b8}
.overlay .panel .mp-bar{background:#e6ebf2}
@media(max-width:760px){.tt-grid{grid-template-columns:repeat(2,1fr)}}

.xs-kpis{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 4px}
.xs-kpi{font-size:12px;color:var(--mut);background:var(--glass);border:1px solid var(--bord);border-radius:999px;padding:5px 12px}.xs-kpi b{color:var(--info-2)}
.xs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.xs-card{padding:16px 18px;display:flex;flex-direction:column;gap:8px;border-left:3px solid rgb(var(--accent))}
.xs-card.xs-low{border-left-color:var(--warn)}
.xs-card.xs-full{border-left-color:var(--bad)}
.xs-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.xs-exam{font-size:12px;font-weight:800;padding:3px 10px;border-radius:8px;letter-spacing:.3px}
.xs-ielts{background:rgba(239,68,68,.18);color:var(--bad-2)}
.xs-pte{background:rgba(var(--accent),.18);color:var(--info-2)}
.xs-toefl{background:rgba(52,211,153,.18);color:var(--ok-2)}
.xs-gre{background:rgba(167,139,250,.2);color:var(--viol-2)}
.xs-status{font-size:12.5px;font-weight:700;color:var(--txt)}
.xs-date{font-family:Sora;font-size:16px;font-weight:800;color:var(--txt)}
.xs-note{font-size:12px;color:var(--mut)}
.xs-bar{height:7px;background:var(--glass-08);border-radius:999px;overflow:hidden}
.xs-bar i{display:block;height:100%;background:linear-gradient(90deg,#0ea5e9,#22d3ee)}
.xs-full .xs-bar i{background:linear-gradient(90deg,var(--bad),#f43f5e)}
.xs-low .xs-bar i{background:linear-gradient(90deg,var(--warn),#f59e0b)}
.xs-seats{font-size:11.5px;color:var(--mut)}
.xs-acts{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}
.xs-bk-list{display:flex;flex-direction:column;gap:7px;max-height:50vh;overflow-y:auto}
.xs-bk-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7f9fb;border:1px solid #e6ebf2;border-radius:10px;padding:9px 13px;font-weight:600;color:#16325c;font-size:14px}

.overlay .panel .mb-exams{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.overlay .panel .mb-exam{display:flex;flex-direction:column;align-items:flex-start;gap:3px;background:#f7f9fb;border:1.5px solid #e2e8f0;border-radius:12px;padding:14px 16px;cursor:pointer;font-family:inherit;text-align:left;transition:border-color .14s,background .14s}
.overlay .panel .mb-exam:hover{border-color:#2563eb;background:#eef4fb}
.mb-exam-k{font-family:Sora;font-size:17px;font-weight:800;color:#16325c}
.mb-exam-s{font-size:12px;color:#64748b}
.mb-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:2px 0 8px}
.mb-kpi{background:var(--glass);border:1px solid var(--bord);border-radius:12px;padding:9px 12px;text-align:center}
.mb-kpi-v{font-family:Sora;font-size:20px;font-weight:800;color:var(--txt)}
.mb-kpi-l{font-size:12px;color:var(--mut);margin-top:2px}
.mb-kpi-go{border-color:rgba(var(--accent),.4);background:rgba(var(--accent),.08)}
.mb-kpi-go .mb-kpi-v{color:var(--info-2)}
.mb-bar{display:flex;align-items:center;gap:14px;margin:6px 0 12px;flex-wrap:wrap}
.mb-exp{font-size:12.5px;color:var(--mut)}
.mb-pill{font-size:11.5px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap}
.mb-pill.mb-ok{background:rgba(52,211,153,.16);color:var(--ok-2)}
.mb-pill.mb-pend{background:rgba(251,191,36,.16);color:var(--warn-2)}
.mb-pill.mb-no{background:rgba(251,113,133,.16);color:var(--bad-3)}
@media(max-width:760px){.mb-kpis{grid-template-columns:repeat(2,1fr)}.overlay .panel .mb-exams{grid-template-columns:1fr}}

/* P6 (2026-09-03) — THE TEXT WORDMARK, for a tenant that has supplied no logo files.
   .lum-logo is a fixed box sized for the 70px-tall brand SVGs (they are cropped by overflow:hidden
   and a negative margin), so a name typed into it is simply not visible. .lum-text — set by
   __brandApply when the token names no logo — turns the same box into a text slot instead. Part C
   is where a tenant's own artwork arrives; until then this is what its students see, and it is its
   OWN name rather than a blank strip or somebody else's mark. */
.lum-logo.lum-text{width:auto!important;height:auto!important;overflow:visible;line-height:1.15}
.lum-logo.lum-text .lum-img{display:none!important}
.lum-logo.lum-text .lum-wordmark{display:inline-block;font-family:var(--font-display,inherit);font-weight:800;font-size:21px;letter-spacing:-.2px;color:var(--txt)}
.lum-wordmark{display:none}
.lum-logo{display:inline-block;overflow:hidden;vertical-align:middle;line-height:0}
.lum-logo .lum-img{display:block;width:auto;height:70px;-webkit-user-drag:none;user-select:none}
.lum-img-light{display:none}
.lum-logo.lum-on-dark .lum-img-dark{display:block}
.lum-logo.lum-on-dark .lum-img-light{display:none}
.lum-logo.lum-on-light .lum-img-dark{display:none}
.lum-logo.lum-on-light .lum-img-light{display:block}

.brand-block .lum-logo{width:156px;height:30px}
.brand-block .lum-logo .lum-img{height:70px;margin:-20px 0 0 -27px}
.login-logo{display:flex;justify-content:center;margin-bottom:8px}
.sf-side-portal{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#bcd4ee;background:var(--glass-12);border-radius:999px;padding:2px 8px;margin-left:9px}

.mb-anl{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 6px}
.mb-anl-c{font-size:12px;color:var(--mut);background:var(--glass);border:1px solid var(--bord);border-radius:999px;padding:4px 11px}.mb-anl-c b{color:var(--info-2)}
.mb-warn{background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.4);color:var(--warn-2);border-radius:12px;padding:10px 14px;font-size:13px;margin:6px 0 10px}
.overlay .panel .trf-grade{max-height:60vh;overflow-y:auto;padding-right:4px;display:flex;flex-direction:column;gap:8px}
.overlay .panel .trf-gsec{font-weight:800;color:#2563eb;font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;margin-top:8px}
.overlay .panel .trf-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.overlay .panel .trf-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.overlay .panel .trf-grade label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;font-weight:700;color:#64748b}
.overlay .panel .trf-grade .trf-sm label{font-size:10.5px}
.overlay .panel .trf-overall{background:#eef4fb;border:1px solid #d4deeb;border-radius:10px;padding:8px 12px;font-size:14px;color:#16325c}
.overlay .panel .trf-ta{min-height:44px}
.trf-overlay{position:fixed;inset:0;z-index:9000;background:rgba(8,12,20,.72);overflow-y:auto;padding:22px 16px;display:flex;flex-direction:column;align-items:center;gap:14px}
.trf-actions{display:flex;gap:10px;position:sticky;top:0;z-index:2}
.trf-doc{display:flex;flex-direction:column;gap:18px;width:100%;max-width:780px}
.trf-page{background:#fff;color:#1a2433;border-radius:8px;padding:30px 34px;font-family:Inter,system-ui,sans-serif;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.trf-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #1a2433;padding-bottom:8px}
.trf-ielts{font-family:Sora;font-size:30px;font-weight:800;letter-spacing:-1px}.trf-ielts span{font-size:12px;vertical-align:super}
.trf-sub2{font-weight:700;font-size:14px}
.trf-mod{border:1.5px solid #1a2433;border-radius:4px;padding:6px 16px;font-weight:800;font-size:13px}
.trf-note{font-size:11.5px;color:#3a4656;margin:10px 0;line-height:1.5}.trf-note b{color:#1a2433}
.trf-row2{display:flex;gap:30px;margin:6px 0;font-size:13px;flex-wrap:wrap}.trf-row2>span{flex:1}
.trf-row3{display:flex;gap:24px;margin:6px 0;font-size:13px;flex-wrap:wrap}.trf-row3>span{flex:1}
.trf-row2 b,.trf-row3 b{display:inline-block;border-bottom:1px solid #94a3b8;min-width:70px;padding:0 6px;margin-left:6px}
.trf-csec{font-weight:800;font-size:13px;margin:14px 0 6px;color:#1a2433}
.trf-results{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.trf-rb{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;color:#475569;align-items:center}
.trf-box{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:40px;border:1.5px solid #1a2433;border-radius:5px;font-size:18px;font-weight:800;color:#1a2433}
.trf-rb-o .trf-box{background:#fef3c7;border-color:#d97706}
.trf-cmtrow{display:flex;gap:18px;margin-top:14px;align-items:stretch}
.trf-cmt{flex:1}.trf-cmt-b{border:1px solid #cbd5e1;border-radius:6px;padding:10px;min-height:80px;font-size:12.5px}
.trf-stamp{width:150px;border:1px dashed #94a3b8;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px}
.trf-stamp-t{font-size:11px;color:#64748b;font-weight:700}
.trf-stamp-seal .lum-logo{width:178px;height:34px}
.trf-stamp-seal .lum-logo .lum-img{height:80px;margin:-23px 0 0 -31px}
.trf-sigs{display:flex;justify-content:space-between;gap:16px;margin-top:18px;font-size:11.5px;color:#475569}.trf-sigs b{color:#1a2433;font-size:13px}
.trf-logos{text-align:center;margin-top:18px;font-size:12px;color:#475569;border-top:1px solid #e2e8f0;padding-top:12px}
.trf-disc{text-align:center;font-size:10.5px;color:#94a3b8;margin-top:8px;line-height:1.5}
.trf-fbtitle{text-align:center;font-family:Sora;font-weight:800;font-size:17px;margin-bottom:14px}
.trf-fb2col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.trf-fbh{font-weight:800;font-size:12.5px;margin:10px 0 5px}
.trf-fbnote{border:1px solid #cbd5e1;border-radius:6px;padding:8px;min-height:42px;font-size:12px;color:#334155;white-space:pre-wrap}
.trf-crit{width:100%;border-collapse:collapse;font-size:12px}
.trf-crit th,.trf-crit td{border:1px solid #94a3b8;padding:5px;text-align:center}.trf-crit th{background:#f1f5f9;font-weight:800}
@media(max-width:640px){.trf-fb2col{grid-template-columns:1fr}.overlay .panel .trf-grid4{grid-template-columns:1fr 1fr}}
@media print{ body *{visibility:hidden !important} .trf-overlay,.trf-overlay *{visibility:visible !important} .trf-overlay{position:absolute;inset:0;background:#fff;padding:0;overflow:visible} .trf-actions{display:none !important} .trf-doc{max-width:none;gap:0} .trf-page{box-shadow:none;border-radius:0;page-break-after:always} }

.side-group{font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--mut);opacity:.65;padding:15px 14px 5px}
.admin-side .side-group:first-child{padding-top:2px}

.sf-appbar .sf-applogo{display:flex;align-items:center;gap:9px}
.sf-appbar .sf-applogo-name{font-family:'Sora',sans-serif;font-weight:500;font-size:15px;letter-spacing:-.2px;color:#bcd4ee;white-space:nowrap}
.sf-appbar .sf-applogo-name b{font-weight:800;color:#fff}
.sf-applogo-tag{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#bcd4ee;background:var(--glass-12);border-radius:999px;padding:2px 9px;white-space:nowrap}

.hero-bookcta{font-size:13.5px;padding:10px 18px;font-weight:800;white-space:nowrap}

.aw-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px;flex-wrap:wrap}
.aw-hint{font-size:12px;color:var(--mut)}
.aw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.awgt{position:relative;min-width:0}
.awgt-handle{position:absolute;top:8px;right:10px;z-index:6;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--mut);background:rgba(13,18,32,.85);border:1px solid var(--bord);border-radius:7px;padding:3px 8px;cursor:grab;opacity:0;transition:opacity .15s,border-color .15s,color .15s}
.awgt-handle span{font-size:10.5px;letter-spacing:.3px}
.awgt:hover .awgt-handle{opacity:.9}
.awgt-handle:hover{opacity:1 !important;border-color:rgb(var(--accent));color:var(--info-2)}
.awgt-handle:active{cursor:grabbing}
.awgt-dragging{opacity:.4}
.awgt-over{outline:2px dashed rgb(var(--accent));outline-offset:3px;border-radius:18px}
@media(max-width:920px){.aw-grid{grid-template-columns:1fr}.awgt{grid-column:span 1 !important}}

.cust-row{cursor:pointer}
.cust-row:hover{background:rgba(127,127,127,.06)}
.cust-nm{font-weight:700;color:var(--txt)}
.cust-sub{font-size:11px;color:var(--mut);margin-top:1px}
.cust-mut{color:var(--mut)}
.cust-contact{font-size:12.5px;color:var(--txt)}
/* v1.324 code review new-issue (layout) — a long e-mail set the Contact column's minimum width and pushed the Customers table's Action
   column past the clipped edge of the main panel on desktop; let the address break anywhere */
.cust-contact .cust-sub{overflow-wrap:anywhere}
.cust-ltv{font-weight:800;color:var(--txt);font-family:Sora,Inter,sans-serif}
.cust-due{color:#f59e0b;font-weight:700}
.cust-paid{color:var(--ok);font-weight:700}
.cust-pchip{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;margin:1px 3px 1px 0;white-space:nowrap}
.cust-pchip.c-course{background:rgba(var(--accent),.16);color:var(--info-2)}
.cust-pchip.c-mock{background:rgba(167,139,250,.18);color:var(--viol-2)}
.cust-pchip.c-exam{background:rgba(251,191,36,.16);color:var(--warn-2)}
.cust-dwrap{display:flex;flex-direction:column;gap:14px}
.cust-dhead{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.cust-dname{font-family:Sora,Inter,sans-serif;font-size:22px;font-weight:800;color:var(--txt)}
.cust-dstats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.cust-dstat{background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:12px;padding:12px 14px}
.cust-dstat .v{font-family:Sora,Inter,sans-serif;font-size:18px;font-weight:800;color:var(--txt)}
.cust-dstat .l{font-size:11px;color:var(--mut);margin-top:2px}
.cust-dstat.is-due .v{color:#f59e0b}
.cust-dsec{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--mut);margin-top:4px}
.cust-prodline{display:flex;flex-wrap:wrap;gap:6px}
.cust-ordlist{display:flex;flex-direction:column;gap:8px;max-height:280px;overflow-y:auto}
.cust-ord{display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:10px 13px}
.cust-ord-it{font-size:13px;font-weight:600;color:var(--txt)}
.cust-ord-r{text-align:right;flex:0 0 auto}
.cust-ord-amt{font-weight:800;color:var(--txt);font-family:Sora,Inter,sans-serif}
.cust-links{display:flex;flex-wrap:wrap;gap:8px}
.cust-link{font-size:12px;color:var(--txt);background:rgba(127,127,127,.08);border:1px solid var(--bord);border-radius:8px;padding:5px 10px}
.cust-dn{font-family:Sora,Inter,sans-serif;font-size:18px;font-weight:800;color:var(--txt);margin-bottom:10px}
.cust-sell-list{display:flex;flex-direction:column;gap:3px;max-height:46vh;overflow-y:auto}
.cust-sell-cat{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:var(--mut);margin:10px 0 3px}
.cust-sell-row{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid var(--bord);border-radius:9px}
.cust-sell-nm{flex:1;font-size:13px;color:var(--txt);font-weight:600}
.cust-sell-pr{font-size:12.5px;color:var(--mut);font-weight:700}
.cust-sell-q{width:54px;padding:5px;border-radius:7px;border:1px solid var(--bord);background:rgba(127,127,127,.1);color:var(--txt);text-align:center;font-weight:700;font-family:inherit}
.cust-sell-paid{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;color:var(--txt);font-weight:600}
.cust-sell-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;gap:12px}
.cust-sell-total{font-size:14px;color:var(--mut)}.cust-sell-total b{color:var(--txt);font-size:18px;font-family:Sora,Inter,sans-serif}
.cust-form{display:flex;flex-direction:column;gap:10px}
.cust-fl{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--mut)}
.cust-fi{padding:9px 11px;border-radius:9px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--txt);font-family:inherit;font-size:13.5px}
@media(max-width:640px){.cust-dstats{grid-template-columns:1fr 1fr}}

.overlay .panel .cx-head{display:flex;gap:13px;align-items:flex-start;padding-right:44px}
.overlay .panel .cx-ava{flex:0 0 auto;width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;display:flex;align-items:center;justify-content:center;font-family:Sora,sans-serif;font-weight:800;font-size:16px;letter-spacing:.5px}
.overlay .panel .cx-head-main{flex:1;min-width:0}
.overlay .panel .cx-name-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.overlay .panel .cx-head .cx-ph{margin-top:6px;display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:#16325c;line-height:1.4}
.overlay .panel .cx-pl{font-weight:600}
.overlay .panel .cx-pl-k{display:inline-block;min-width:66px;color:#94a3b8;font-weight:700}
.overlay .panel .cx-pl-k::after{content:":"}
.overlay .panel .cx-name-row .cx-temp{font-size:11px;padding:2px 9px}
.overlay .panel .cx-name-row .cx-temp.cx-Hot{background:#fee2e2;color:#b91c1c}
.overlay .panel .cx-name-row .cx-temp.cx-Warm{background:#fef3c7;color:#b45309}
.overlay .panel .cx-name-row .cx-temp.cx-Cold{background:#e2e8f0;color:#475569}
.overlay .panel .cx-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.overlay .panel .cx-fact{font-size:11.5px;font-weight:700;color:#334155;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:7px;padding:3px 9px;white-space:nowrap}
.overlay .panel .cx-fact.cx-fact-due{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.overlay .panel .cx-acts{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:13px 0 6px}
.overlay .panel .cx-act{flex-direction:row;align-items:center;justify-content:center;gap:7px;padding:9px 10px}
.overlay .panel .cx-act .cx-act-t{font-size:13px}

.overlay .panel .cx-head{margin-bottom:12px}
.overlay .panel .cx-head .cx-ph .cx-mlink{color:#2563eb;text-decoration:none;font-weight:700}
.overlay .panel .cx-head .cx-ph .cx-mlink:hover{text-decoration:underline}
.overlay .panel .cx-head .cx-ph .cx-mwa{display:inline-flex;align-items:center;vertical-align:-2px;margin:0 1px}

.overlay .panel .cx-cbar{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 4px}
.overlay .panel .cx-summary{margin:10px 0 0}
@media(max-width:620px){.overlay .panel .cx-cbar{grid-template-columns:1fr}}
.overlay .panel .cx-cbtn{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;text-decoration:none;min-width:0;transition:border-color .15s,box-shadow .15s,transform .1s}
.overlay .panel .cx-cbtn:hover{border-color:#cbd5e1;transform:translateY(-1px)}
.overlay .panel .cx-cbtn-ic{flex:0 0 auto;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px}
.overlay .panel .cx-cbtn-call .cx-cbtn-ic{background:#e0f2fe}
.overlay .panel .cx-cbtn-wa .cx-cbtn-ic{background:#dcfce7}
.overlay .panel .cx-cbtn-email .cx-cbtn-ic{background:#eef2ff}
.overlay .panel .cx-cbtn-tx{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.overlay .panel .cx-cbtn-tx b{font-size:13px;font-weight:800;color:#16325c}
.overlay .panel .cx-cbtn-tx small{font-size:11px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* v641 — the "Add contact number / Add WhatsApp number / Add email" row sits directly under the
   Call/WhatsApp/Email actions. Dashed + muted so it reads as a secondary "add" affordance, not a
   primary action. */
.overlay .panel .cx-addbar{margin:0 0 4px}
.overlay .panel .cx-cbtn.cx-addbtn{cursor:pointer;border:1px dashed #b9c4d6;background:#f7f9fc;justify-content:center;padding:8px 10px}
.overlay .panel .cx-cbtn.cx-addbtn:hover{border-color:#6d28d9;background:#f2eefc}
.overlay .panel .cx-cbtn.cx-addbtn .cx-cbtn-ic{width:24px;height:24px;font-size:15px;font-weight:800;background:transparent;color:#475569}
.overlay .panel .cx-cbtn.cx-addbtn .cx-cbtn-1l{font-size:12.5px;font-weight:700;color:#334155}
.overlay .panel .cx-contact-min{margin-top:2px}
.overlay .panel .lc-reqvideo{border:1px solid #b9c4d6;background:#fff;color:#334155;font-weight:700}
@media(max-width:560px){.overlay .panel .cx-cbar{grid-template-columns:1fr}}

.overlay .panel .cx-nba{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,#eef2ff,#faf5ff);border:1px solid #ddd6fe;border-radius:14px;padding:12px 15px;margin:10px 0 6px}
.overlay .panel .cx-nba-l{min-width:0}
.overlay .panel .cx-nba-h{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#7c3aed}
.overlay .panel .cx-nba-act{font-size:14.5px;font-weight:800;color:#1e1b4b;margin-top:3px;line-height:1.3}
.overlay .panel .cx-nba-why{font-size:11.5px;color:#6d6a8a;margin-top:3px}
.overlay .panel .cx-nba-btn{flex:0 0 auto;background:#7c3aed;color:#fff;border-radius:10px;padding:10px 16px;font-weight:800;font-size:13px;text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(124,58,237,.28)}
.overlay .panel .cx-nba-btn:hover{background:#6d28d9}
@media(max-width:560px){.overlay .panel .cx-nba{flex-direction:column;align-items:stretch}.overlay .panel .cx-nba-btn{text-align:center}}

.overlay .panel .cx-summary{border:1px solid #cfe8da;border-radius:14px;overflow:hidden;margin:10px 0 6px;background:#fff}
.overlay .panel .cx-sum-deal{background:linear-gradient(135deg,#dcfce7,#bbf7d0);padding:12px 15px;display:flex;flex-direction:column;gap:4px}
.overlay .panel .cx-sum-deal .cx-deal-r{font-size:14px;font-weight:700;color:#14532d;line-height:1.45}
.overlay .panel .cx-sum-deal .cx-deal-r b{color:#065f46}
.overlay .panel .cx-sum-deal .cx-deal-r b.g,.overlay .panel .cx-sum-deal .cx-deal-r .g{color:#047857}
.overlay .panel .cx-sum-act{padding:11px 15px;border-top:1px solid #ece9f6;background:#faf7ff}

.overlay .panel .cx-stagew{background:#f8fafc;border:1px solid #e6ebf2;border-radius:14px;padding:12px 14px;margin:10px 0 6px}
.overlay .panel .cx-stagew-h{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#16325c;margin-bottom:10px}
.overlay .panel .cx-stagew-h span{color:#94a3b8;font-weight:700;text-transform:none;letter-spacing:0}
.overlay .panel .cx-stagew .cx-flow{margin:0}

.overlay .panel .cx-invw{background:#f8fafc;border:1px solid #e6ebf2;border-radius:14px;padding:12px 14px;margin:10px 0 6px}
.overlay .panel .cx-invw-h{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#16325c;margin-bottom:10px}
.overlay .panel .cx-invw-h span{color:#94a3b8;font-weight:700;text-transform:none;letter-spacing:0;margin-left:4px}
.overlay .panel .cx-invw-gen{width:100%;justify-content:center}
.overlay .panel .cx-invw-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.overlay .panel .cx-invw-row{display:flex;align-items:center;gap:10px;width:100%;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:9px 12px;cursor:pointer;font-family:inherit;text-align:left;transition:border-color .15s,background .15s}
.overlay .panel .cx-invw-row:hover{border-color:#0ea5e9;background:#f0f9ff}
.overlay .panel .cx-invw-no{font-weight:800;color:#16325c;font-size:13px}
.overlay .panel .cx-invw-amt{font-weight:800;color:#16325c;font-size:13px;margin-left:auto}
.overlay .panel .cx-invw-st{flex:0 0 auto}
.overlay .panel .cx-invw-go{flex:0 0 auto;color:#0ea5e9;font-weight:800;font-size:12px}
.overlay .panel .cx-invw-empty{font-size:12px;color:#64748b;margin-top:9px}
/* v851 — invoice save-as-draft: per-lead drafts group + dashed draft rows + amber pill */
.overlay .panel .cx-invw-drafts{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.overlay .panel .cx-invw-dh{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#b45309;margin-bottom:1px}
.overlay .panel .cx-invw-draft{cursor:default;border-style:dashed;border-color:#f0c98a;background:#fffdf7}
.overlay .panel .cx-invw-draft:hover{border-color:#f0c98a;background:#fffdf7}
.overlay .panel .cx-draft-pill{background:#f59e0b22;color:#b45309;border-radius:999px;font-size:10px;font-weight:800;padding:2px 8px;flex:0 0 auto}

.overlay .panel .lc-hero{display:grid;grid-template-columns:1.45fr 1fr;gap:14px;align-items:start;margin:6px 0 14px}
.overlay .panel .lc-hero .cx-summary{margin:0}
.overlay .panel .lc-hero .cx-cbar{margin:0}
.overlay .panel .lc-bottom{margin-top:16px;padding-top:12px;border-top:0.5px solid #e6ebf2}
.overlay .panel .lc-bottom .cx-sec:first-child{margin-top:0}
@media(max-width:760px){.overlay .panel .lc-hero{grid-template-columns:1fr}}

.ab-pf-proj{display:block;font-size:10.5px;font-weight:600;color:#8a97af;margin-top:1px}

.overlay .panel .cust-dn{color:#16325c}
.overlay .panel .cust-sell-cat{color:#64748b}
.overlay .panel .cust-sell-list{margin-top:4px}
.overlay .panel .cust-sell-row{display:flex;align-items:center;gap:12px;border-color:#dde5f0}
.overlay .panel .cust-sell-nm{flex:1 1 auto;min-width:0;color:#16325c;font-weight:600}
.overlay .panel .cust-sell-pr{flex:0 0 auto;white-space:nowrap;color:#64748b;font-weight:700}
.overlay .panel .cust-sell-q{flex:0 0 70px;width:70px;text-align:center;padding:8px;background:#fff;border:1.5px solid #94a3b8;color:#0f172a}
.overlay .panel .cust-sell-paid{color:#16325c}
.overlay .panel .cust-sell-total{color:#64748b}
.overlay .panel .cust-sell-total b{color:#16325c}
.overlay .panel .cust-fl{color:#64748b}
.overlay .panel .cust-fi{background:#fff;border:1.5px solid #94a3b8;color:#0f172a}

.overlay .panel .inv-q{flex:0 0 70px;width:70px;text-align:center;padding:8px;background:#fff;border:1.5px solid #94a3b8;color:#0f172a}

.gsearch{position:relative;flex:0 1 440px;display:flex;align-items:center;gap:8px;background:var(--glass-07);border:1px solid var(--glass4);border-radius:10px;padding:0 12px;height:38px}
.gsearch-ic{opacity:.6;font-size:13px}
.gsearch-input{flex:1;min-width:0;background:none;border:0;outline:none;color:#fff;font-size:13.5px;font-family:inherit}
.gsearch-input::placeholder{color:rgba(255,255,255,.5)}
.gsearch-results{position:absolute;top:46px;left:0;right:0;background:#0e1730;border:1px solid rgba(255,255,255,.16);border-radius:12px;box-shadow:0 18px 44px rgba(0,0,0,.55);max-height:60vh;overflow-y:auto;z-index:500;display:none;padding-bottom:6px}
.gsearch-results.open{display:block}
.gsearch-grp{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#7891a8;padding:11px 14px 4px}
.gsearch-item{display:flex;align-items:center;gap:10px;padding:8px 14px;cursor:pointer;border:0;background:none;width:100%;text-align:left;font-family:inherit}
.gsearch-item:hover{background:var(--glass-07)}
.gsearch-av{width:30px;height:30px;border-radius:8px;background:var(--glass-10);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#cfe0f2;flex:0 0 auto}
.gsearch-it-main{flex:1;min-width:0;display:flex;flex-direction:column}
.gsearch-it-n{font-size:13px;font-weight:700;color:var(--ink-hi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gsearch-it-s{font-size:11px;color:var(--mut-5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gsearch-it-type{font-size:10px;font-weight:700;color:var(--info-2);background:rgba(125,211,252,.12);border-radius:6px;padding:2px 7px;flex:0 0 auto;white-space:nowrap}
.gsearch-empty{padding:16px;color:var(--mut-5);font-size:12.5px;text-align:center}
@media(max-width:820px){.gsearch{flex:0 1 220px}}

.ab-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:18px;align-items:center;margin-bottom:4px}
.ab-head-l{min-width:0}
.ab-head-r{min-width:0}
.ab-head-r .gsearch{width:100%;flex:none;max-width:none;box-sizing:border-box}
.ab-cols>.ab-col-r{flex-direction:column;align-items:stretch;gap:16px}
@media(max-width:920px){.ab-head{grid-template-columns:1fr}.ab-head-r{width:auto}}

.overlay .panel .lc-grid2{display:grid;grid-template-columns:minmax(0,0.82fr) minmax(0,1.18fr);gap:16px;align-items:start;margin-top:4px}
.overlay .panel .lc-rail{display:flex;flex-direction:column;gap:12px;min-width:0}
.overlay .panel .lc-work{display:flex;flex-direction:column;gap:12px;min-width:0}
.overlay .panel .lc-rail .cx-sec,.overlay .panel .lc-work .cx-sec{margin:2px 0 -4px}
.overlay .panel .cx-fields-rail{grid-template-columns:1fr}
.overlay .panel .lc-suggest{display:flex;gap:11px;align-items:flex-start;background:linear-gradient(135deg,#eef2ff,#faf5ff);border:1px solid #ddd6fe;border-radius:12px;padding:11px 15px;margin:12px 0}
.overlay .panel .lc-suggest-ic{font-size:18px;flex:0 0 auto}
.overlay .panel .lc-suggest-m{min-width:0}
.overlay .panel .lc-suggest-h{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#7c3aed}
.overlay .panel .lc-suggest-a{font-size:14.5px;font-weight:800;color:#1e1b4b;margin-top:2px;line-height:1.3}
.overlay .panel .lc-suggest-w{font-size:11.5px;color:#6d6a8a;margin-top:2px}
.overlay .panel .lc-dealcard{background:linear-gradient(135deg,#dcfce7,#bbf7d0);border:1px solid #a7dcba;border-radius:12px;padding:11px 14px;display:flex;flex-direction:column;gap:4px}
.overlay .panel .lc-dealcard .cx-deal-r{font-size:13.5px;font-weight:700;color:#14532d;line-height:1.5}
.overlay .panel .lc-dealcard .cx-deal-r b{color:#065f46}
.overlay .panel .lc-dealcard .cx-deal-r b.g,.overlay .panel .lc-dealcard .cx-deal-r .g{color:#047857}
@media(max-width:760px){.overlay .panel .lc-grid2{grid-template-columns:1fr}}
/* ── lead panel (DECISIONS NEW · 20 Oct 2026 "Lead panel"; app.js leadPanelBind / ctAddDialog): the tabs (Student 360's look), the chips
   line under the head, two columns on a wide panel; Lumen adds the width and the sticky top (lumen.css 18.9) ── */
.overlay .panel .lc-pane[hidden],.overlay .panel .lc-chipd[hidden],.overlay .panel .lc-sa-none[hidden]{display:none!important}
.overlay .panel .lc-tabs{margin:10px 0 0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.overlay .panel .lc-tabs::-webkit-scrollbar{display:none}
.overlay .panel .lc-tab{white-space:nowrap}
.overlay .panel .lc-tab:focus-visible{outline:2px solid var(--accent,#22d3ee);outline-offset:-2px}
.overlay .panel .lc-pane{padding-top:12px}
.overlay .panel .lc-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.overlay .panel .lc-chips:empty{display:none}
.overlay .panel .lc-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:28px;padding:3px 11px;border-radius:999px;border:1px solid rgba(127,127,127,.28);background:rgba(127,127,127,.08);color:inherit;font:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;white-space:nowrap;box-sizing:border-box}
.overlay .panel .lc-chip:hover{background:rgba(127,127,127,.16)}
.overlay .panel .lc-chip[aria-expanded="true"]{border-color:var(--accent,#22d3ee)}
.overlay .panel .lc-chip-nba{max-width:min(460px,100%)}
.overlay .panel .lc-chip-t{overflow:hidden;text-overflow:ellipsis;min-width:0}
.overlay .panel .lc-chip-sla{background:rgba(251,191,36,.14);border-color:rgba(251,191,36,.5)}
.overlay .panel .lc-chip-sla.br{background:rgba(244,63,94,.12);border-color:rgba(244,63,94,.45)}
.overlay .panel .lc-chip-em{background:rgba(59,130,246,.10);border-color:rgba(59,130,246,.4)}
.overlay .panel .lc-chip svg{width:13px;height:13px;flex:none}
.overlay .panel .lc-chipd > *{margin:8px 0 0!important}
.overlay .panel .lc-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.overlay .panel .lc-col > .lc-suggest,.overlay .panel .lc-col > .lc-runway,.overlay .panel .lc-col > .lc-cap,.overlay .panel .lc-col > .lc-dealcard,.overlay .panel .lc-col > .cx-invw,.overlay .panel .lc-col > .lc-log{margin-top:0;margin-bottom:0}
@media(min-width:1000px){.overlay .panel .lc-ov{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start}}
.overlay .panel .lc-suggest.lc-flash{animation:lc-flash 1.2s ease-out 1}
@keyframes lc-flash{0%{box-shadow:0 0 0 3px rgba(59,130,246,.55)}100%{box-shadow:0 0 0 0 rgba(59,130,246,0)}}
.overlay .panel .lc-panel > .lc-del-row{margin-top:14px}
.ctq-panel .ctq-l{font-size:12px;font-weight:600;display:block;margin-bottom:4px}
.ctq-panel .ctq-sw{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:13px;cursor:pointer}
.ctq-panel .ctq-sw input{width:18px;height:18px;margin:0}
.ctq-panel .ctq-rels input{margin:0}
.ctq-panel .ask-phone .ask-cc{max-width:150px}
/* the Call picker (lead panel follow-up, ANik 12:05 "BDMs decide") — inside the call row, under Call */
.overlay .panel .lc-top .cx-cbar{position:relative}
.overlay .panel .lc-callpick{position:absolute;z-index:30;min-width:260px;max-width:min(380px,100%);box-sizing:border-box;background:#fff;color:#0f172a;border:1px solid rgba(15,23,42,.14);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:6px;display:flex;flex-direction:column;gap:2px;text-align:left}
.overlay .panel .lc-callpick-h{font-size:11.5px;font-weight:700;color:#64748b;padding:4px 8px 6px;text-transform:uppercase;letter-spacing:.04em}
.overlay .panel .lc-callopt{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 10px;border-radius:8px;color:inherit;text-decoration:none;font-size:13.5px;min-height:40px;box-sizing:border-box}
.overlay .panel .lc-callopt:hover,.overlay .panel .lc-callopt.on{background:rgba(37,99,235,.10)}
.overlay .panel .lc-callopt:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.overlay .panel .lc-co-num{font-weight:700;font-variant-numeric:tabular-nums}
.overlay .panel .lc-co-who{color:#475569;font-size:12.5px}
.overlay .panel .lc-co-wa{margin-left:auto;font-size:11px;font-weight:700;color:#15803d;background:rgba(22,163,74,.12);border-radius:999px;padding:2px 8px}
html[data-theme="dark"] .overlay .panel .lc-callpick{background:#1b1f27;color:#e5e7eb;border-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .overlay .panel .lc-co-who,html[data-theme="dark"] .overlay .panel .lc-callpick-h{color:#9ca3af}
@media(max-width:620px){.overlay .panel .lc-callpick{left:0!important;right:0;max-width:none;min-width:0}}
.overlay .panel .ct-blk .ct-acts{gap:6px}.overlay .panel .ct-blk .ct-acts .cx-mini{width:auto;min-width:34px;padding:0 10px;box-sizing:border-box}   /* the number book's Call / WhatsApp / Edit / Remove are words: the 34px icon width (.cx-mini) made them overlap */
@media(max-width:560px){.overlay .panel .ct-blk .ct-row{flex-wrap:wrap}.overlay .panel .ct-blk .ct-acts{width:100%;justify-content:flex-start}}
.overlay .panel .lc-top .cx-cbar:not(.cx-addbar){grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(max-width:620px){.overlay .panel .lc-top .cx-cbar:not(.cx-addbar){grid-template-columns:1fr}}

.overlay .panel .cx-head .cx-ph.cx-ph-1l{margin-top:5px;display:block;font-size:12.5px;color:#5c6b80;line-height:1.5}
.overlay .panel .cx-cbtn{padding:8px 11px;gap:9px}
.overlay .panel .cx-cbtn-ic{width:28px;height:28px;font-size:15px}
.overlay .panel .cx-cbtn-1l{display:flex;align-items:baseline;gap:5px;min-width:0;font-size:13px;font-weight:800;color:#16325c;white-space:nowrap;overflow:hidden}
.overlay .panel .cx-cbtn-1l small{font-weight:600;color:#64748b;overflow:hidden;text-overflow:ellipsis;min-width:0}
.overlay .panel .cx-stagew-top{margin:12px 0 0}
.overlay .panel .lc-suggest-facts{display:flex;flex-wrap:wrap;gap:5px 8px;margin-top:7px}
.overlay .panel .lc-suggest-facts .lsf{font-size:11px;font-weight:700;color:#475569;background:#fff;border:1px solid #e4def5;border-radius:6px;padding:2px 7px;white-space:nowrap}
.overlay .panel .lc-suggest-facts .lsf-due{color:#c2410c;background:#fff7ed;border-color:#fed7aa}

.overlay .panel .lc-dt-row{display:flex;gap:8px}
.overlay .panel .lc-dt-row #cx-lnext-d,.overlay .panel .lc-dt-row #cx-lnext-t,.overlay .panel .lc-dt-row #cx-newnext-d,.overlay .panel .lc-dt-row #cx-newnext-t{flex:1 1 0;width:auto;min-width:0}

.disc-badge{display:inline-block;background:#dcfce7;color:#15803d;font-size:10px;font-weight:800;border-radius:6px;padding:1px 6px;margin-left:5px;vertical-align:middle;letter-spacing:.02em}
.cust-sell-pr .pr-old{color:#9aa7b8;font-size:11.5px;margin-right:3px;text-decoration:line-through}
.pr-quick{display:flex;align-items:center;gap:8px;margin:14px 0 4px;color:var(--mut);font-size:13px}
.pr-quick .btn.small{padding:4px 12px}
.pr-table{margin-top:12px}
.pr-table td,.pr-table th{vertical-align:middle}
.pr-table .pr-cat td{background:rgba(125,211,252,.08);font-weight:800;color:var(--info-2);font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;padding-top:9px;padding-bottom:9px}
.pr-disc{display:inline-flex;align-items:center;gap:4px;justify-content:center}
.pr-disc i{font-style:normal;color:var(--mut);font-size:12.5px}
.pr-in{width:64px;background:var(--glass-06);border:1px solid var(--bord);border-radius:8px;padding:6px 8px;color:var(--txt);font-family:inherit;font-size:13.5px;text-align:right}
.pr-in:focus{outline:none;border-color:rgb(var(--accent));background:rgba(var(--accent),.12)}
.pr-net{font-weight:800;color:var(--ok)}
.pr-de{background:var(--glass-06);border:1px solid var(--bord);border-radius:8px;padding:5px 8px;color:var(--txt);font-family:inherit;font-size:13px}
.pr-de:focus{outline:none;border-color:rgb(var(--accent));background:rgba(var(--accent),.12)}
.pr-endtag{color:var(--bad);font-size:11.5px;font-weight:700;margin-top:3px}
.pr-endtag:empty{display:none}
.pr-saverow{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:16px}
.pr-hint{color:var(--mut);font-size:12.5px}
.pr-lpw{display:inline-flex;align-items:center;gap:4px;justify-content:flex-end;color:var(--mut);font-size:12.5px}
.pr-lp{width:86px;background:var(--glass-06);border:1px solid var(--bord);border-radius:8px;padding:6px 8px;color:var(--txt);font-family:inherit;font-size:13.5px;text-align:right}
.pr-lp:focus{outline:none;border-color:rgb(var(--accent));background:rgba(var(--accent),.12)}
.pr-cat-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pr-add{text-transform:none;letter-spacing:0;font-size:11.5px;padding:3px 10px}
.pr-del{background:transparent;border:1px solid transparent;border-radius:8px;color:var(--mut);font-size:12px;cursor:pointer;padding:4px 8px;line-height:1}
.pr-del:hover{color:var(--bad);border-color:rgba(251,113,133,.45);background:rgba(251,113,133,.08)}

.overlay .panel .lc-rail .cx-contact{gap:10px;margin-top:10px}
.overlay .panel .lc-rail .cx-cr{flex-direction:column;align-items:stretch;gap:10px;padding:13px 14px}
.overlay .panel .lc-rail .cx-cr .cx-cr-v{flex:0 0 auto;width:100%;overflow:visible;align-items:center}
.overlay .panel .lc-rail .cx-cr .cx-cr-tx{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;font-size:14.5px;font-weight:700}
.overlay .panel .lc-rail .cx-cr .cx-cr-acts{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:8px}
.overlay .panel .lc-rail .cx-cr .cx-cr-acts .cx-mini{flex:0 0 auto}

.overlay .panel .cx-head .cx-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.overlay .panel .cx-metab{display:inline-flex;align-items:center;gap:5px;background:#f1f5fb;border:1px solid #dde5f0;border-radius:9px;padding:5px 11px;font-size:12px;color:#5c6b80;font-weight:600;line-height:1.3}
.overlay .panel .cx-metab b{color:#16325c;font-weight:800}

.lz-segs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px}
.lz-seg{display:inline-flex;align-items:center;gap:6px;background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:999px;padding:6px 13px;font-size:12.5px;font-weight:700;color:var(--txt);cursor:pointer;font-family:inherit}
.lz-seg b{background:rgba(127,127,127,.16);border-radius:999px;padding:0 7px;font-size:11px;color:var(--mut);font-weight:800}
.lz-seg:hover{border-color:rgb(var(--accent))}
.lz-seg.on{background:#2563eb;border-color:#2563eb;color:#fff}
.lz-seg.on b{background:rgba(255,255,255,.25);color:#fff}
.lz-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(var(--accent),.1);border:1px solid rgba(var(--accent),.35);border-radius:12px;padding:9px 13px;margin:10px 0}
.lz-bulk-n{font-weight:800;color:#0ea5e9;font-size:13px;margin-right:4px}
.lz-bulk .btn.small{padding:5px 11px;font-size:12px}
.lz-bulk-clr{margin-left:auto}
.lz-table th.lz-sort{cursor:pointer;user-select:none;white-space:nowrap}
.lz-table th.lz-sort:hover{color:rgb(var(--accent))}
.lz-table td.lz-ck,.lz-table th.lz-ck{width:34px;text-align:center;padding-left:6px;padding-right:6px}
.lz-cb,#crm-selall{width:16px;height:16px;cursor:pointer;accent-color:#2563eb}
.lz-prio{white-space:nowrap}
.lz-score{display:inline-block;margin-left:7px;font-size:11px;font-weight:800;color:var(--mut);background:rgba(127,127,127,.12);border-radius:6px;padding:1px 6px;vertical-align:middle}
.lz-star{background:none;border:none;cursor:pointer;font-size:17px;line-height:1;padding:0 4px 0 0;vertical-align:middle;color:var(--mut);font-family:inherit}
.lz-star:hover{color:#fcd34d}
.lz-star.on{color:#fbbf24;text-shadow:0 0 7px rgba(251,191,36,.45)}
.lz-star.ro{cursor:default}
.overlay .panel .lz-star.on{color:#fbbf24!important}
.lz-rsel{background:rgba(var(--accent),.08)}
.lz-acts{white-space:nowrap;text-align:right}
.lz-acts .cx-mini{width:30px;height:30px;padding:0;font-size:13px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:3px}

.mb-bar{display:flex;align-items:center;gap:12px;margin:6px 0 10px;flex-wrap:wrap}
.mb-viewtog{display:inline-flex;background:rgba(127,127,127,.1);border:1px solid var(--bord);border-radius:10px;padding:3px;margin-left:auto}
.mb-vt{background:none;border:0;color:var(--mut);font-weight:700;font-size:12.5px;padding:6px 13px;border-radius:8px;cursor:pointer;font-family:inherit}
.mb-vt.on{background:#2563eb;color:#fff}
.mc-wrap{margin-top:6px}
.mc-nav{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.mc-title{font-family:Sora,sans-serif;font-weight:800;font-size:17px;min-width:180px;text-align:center}
.mc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.mc-head{margin-bottom:6px}
.mc-dow{text-align:center;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--mut);padding:4px 0}
.mc-cell{min-height:94px;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:3px;overflow:hidden}
.mc-empty{background:none;border:0}
.mc-has{cursor:pointer}
.mc-has:hover{border-color:rgb(var(--accent));background:rgba(var(--accent),.07)}
.mc-today{border-color:rgb(var(--accent));box-shadow:inset 0 0 0 1px rgb(var(--accent))}
.mc-dnum{font-size:12px;font-weight:700;color:var(--txt);display:flex;align-items:center;justify-content:space-between}
.mc-pend{background:#f59e0b;color:#16325c;font-size:10px;font-weight:800;border-radius:999px;min-width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px}
.mc-ev{font-size:10.5px;font-weight:700;border-radius:5px;padding:2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-ev.mb-ok{background:rgba(52,211,153,.18);color:var(--ok-2)}
.mc-ev.mb-pend{background:rgba(251,191,36,.2);color:var(--warn-2)}
.mc-ev.mb-no{background:rgba(251,113,133,.18);color:var(--bad-3)}
.mc-more{font-size:10px;color:var(--mut);font-weight:700;padding-left:2px}
.mc-legend{display:flex;gap:16px;margin-top:12px;font-size:11.5px;color:var(--mut);flex-wrap:wrap}
.mc-legend i{width:11px;height:11px;border-radius:3px;display:inline-block;margin-right:5px;vertical-align:-1px}
.mc-legend .mb-ok{background:var(--ok)}.mc-legend .mb-pend{background:var(--warn)}.mc-legend .mb-no{background:var(--bad)}
.mcd-list{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow-y:auto}
.mcd-row{display:flex;align-items:center;gap:10px;background:#f4f7fb;border:1px solid #dde5f0;border-radius:10px;padding:10px 12px;flex-wrap:wrap}
.mcd-main{flex:1;min-width:140px;display:flex;flex-direction:column}
.mcd-main b{color:#16325c;font-size:14px}
.mcd-sub{color:#5c6b80;font-size:12px}
.mcd-st{flex:0 0 auto}
.mcd-acts{flex:0 0 auto;display:flex;gap:6px;flex-wrap:wrap}

.undobar{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:6000;display:flex;align-items:center;gap:16px;background:#16325c;color:#fff;border-radius:12px;padding:12px 18px;box-shadow:0 14px 40px rgba(0,0,0,.42);font-size:13.5px;font-weight:600;animation:undobar-in .25s ease}
.undobar-btn{background:none;border:0;color:var(--info-2);font-weight:800;font-size:13.5px;cursor:pointer;font-family:inherit;padding:2px 4px}
.undobar-btn:hover{color:#bae6fd;text-decoration:underline}
.undobar-out{opacity:0;transition:opacity .32s}
@keyframes undobar-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}

.lz-acts [data-tip]{position:relative}
.lz-acts [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#16325c;color:#fff;font-size:11px;font-weight:700;padding:4px 8px;border-radius:6px;white-space:nowrap;z-index:50;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.lz-acts [data-tip]:hover::before{content:"";position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#16325c;z-index:50;pointer-events:none}

.lc-ro-banner{display:flex;align-items:flex-start;gap:8px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:11px 14px;font-size:13px;font-weight:600;margin:6px 0 10px;line-height:1.45}
.lc-ro-banner b{color:#7c2d12;font-weight:800}
/* S6 (v1.018) — a batch with no capacity set says so instead of showing an invented number. */
.bb-capunset{font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:var(--mut);border:1px dashed var(--bord);border-radius:999px;padding:1px 7px;margin-left:6px;white-space:nowrap}
/* S8 (v1.018) — a read-only lead card must LOOK read-only. These write controls keep their handler
   guards (belt and braces); this makes the refusal visible BEFORE the click instead of silently
   discarding what was typed. The !important is required to beat the .overlay .panel resets above. */
.overlay .panel .lc-ro,.lc-ro{opacity:.5!important;cursor:not-allowed!important;pointer-events:none!important;filter:grayscale(.4)}
.overlay .panel .cap-q.lc-ro-text,.cap-q.lc-ro-text{opacity:.85;cursor:default;user-select:text;display:flex;align-items:center}
.overlay .panel.lc-ro .cx-stagew,.overlay .panel.lc-ro .cx-contact,.overlay .panel.lc-ro .lc-log,.overlay .panel.lc-ro .lc-del-row{opacity:.5;pointer-events:none;filter:grayscale(.35)}
.overlay .panel.lc-ro .cx-sec{opacity:.6}

.overlay .panel.lc-ro .cx-invw{opacity:1!important;pointer-events:auto!important;filter:none!important}
/* lead panel (20 Oct 2026): the bare `.lc-ro` above also matched the PANEL itself (openLeadCard puts .lc-ro on it), so a foreign lead's whole
   card was half-faded and inert — no scrolling the drawer, no Call / WhatsApp although the banner says "you can view and contact them",
   and with tabs it could not even change tab. The panel stays live; every write control keeps its own .lc-ro / disabled / guard. */
.overlay .panel.lc-ro{opacity:1!important;cursor:auto!important;pointer-events:auto!important;filter:none!important}

.sf-fustat-i.new b{color:rgb(var(--accent))}
.sf-touch{font-size:11px;font-weight:800;color:var(--mut-5);background:rgba(127,127,127,.14);border-radius:999px;padding:1px 8px}
.sf-sla{font-size:11px;font-weight:800;color:#0c4a6e;background:#bae6fd;border-radius:999px;padding:1px 9px}
.sf-fucard.is-new{border-left:3px solid rgb(var(--accent))}
.sf-fu-coach{font-size:11.5px;font-weight:600;margin-top:5px;display:flex;align-items:center;gap:5px}
.coach-new{color:rgb(var(--accent))}.coach-go{color:#d97706}.coach-ok{color:#059669}.coach-stop{color:#e11d48}
body .coach-go{color:var(--warn)}body .coach-ok{color:var(--ok)}body .coach-stop{color:var(--bad)}
.sf-fu-acts{flex-wrap:nowrap;justify-content:flex-end;gap:6px;max-width:none;align-items:center}
.sf-fu-acts .cx-mini{width:32px;height:32px;font-size:13px;flex:0 0 auto}
.sf-fu-acts .cx-step{padding:7px 10px;flex:0 0 auto}
/* v1.356 (portal audit 30 Sep) — at phone width the nowrap action row squeezed the card body to ~30px (one word per line); the actions drop to their own row under the name */
@media(max-width:640px){.sf-fucard{flex-wrap:wrap}.sf-fu-body{flex:1 1 calc(100% - 51px)}.sf-fu-acts{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start;padding-left:51px}}
.cx-step{display:inline-flex;align-items:center;gap:5px;background:#2563eb;color:#fff;border:0;border-radius:9px;padding:7px 11px;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit;white-space:nowrap}
.cx-step:hover{background:#1d4ed8}
.cx-step-sp{background:rgba(255,255,255,.25);border-radius:6px;padding:0 5px;font-size:11px}
.sf-goal{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:12px;padding:10px 14px;margin:12px 0}
.sf-goal-top{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--mut);font-weight:700;margin-bottom:7px}
.sf-goal-top b{color:var(--txt);font-size:13.5px}
.sf-goal-tr{height:8px;background:rgba(127,127,127,.16);border-radius:999px;overflow:hidden}
.sf-goal-tr i{display:block;height:100%;background:linear-gradient(90deg,rgb(var(--accent)),#2563eb);border-radius:999px;transition:width .4s}
.watpl-list{display:flex;flex-direction:column;gap:9px}
.watpl-item{text-align:left;background:#f4f7fb;border:1px solid #dde5f0;border-radius:11px;padding:11px 13px;cursor:pointer;font-family:inherit;width:100%}
.watpl-item:hover{border-color:#25d366;background:#f0fdf4}
.watpl-t{font-size:13px;font-weight:800;color:#16325c;margin-bottom:3px}
.watpl-x{font-size:12px;color:#5c6b80;line-height:1.45}
.sf-fu-acts [data-tip]{position:relative}
.sf-fu-acts [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#16325c;color:#fff;font-size:11px;font-weight:700;padding:4px 8px;border-radius:6px;white-space:nowrap;z-index:50;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.3)}

.cust-pchip[data-tip]{position:relative;cursor:default}
.cust-pchip[data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#16325c;color:#fff;font-size:11px;font-weight:700;padding:4px 8px;border-radius:6px;white-space:nowrap;z-index:60;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.cust-pchip[data-tip]:hover::before{content:"";position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#16325c;z-index:60;pointer-events:none}

.cust-tier{font-size:10px;font-weight:800;border-radius:6px;padding:1px 7px;margin-left:6px;vertical-align:middle}
.tier-vip{background:rgba(168,85,247,.2);color:var(--viol-2)}
.tier-repeat{background:rgba(var(--accent),.18);color:var(--info-2)}
.tier-new{background:rgba(148,163,184,.2);color:var(--mut-7)}
.cust-risk{margin-left:5px;cursor:default;font-size:13px}
.cust-xsell{background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.4);color:var(--ok);border-radius:8px;padding:4px 10px;font-size:11.5px;font-weight:800;cursor:pointer;font-family:inherit;white-space:nowrap}
.cust-xsell:hover{background:rgba(52,211,153,.24)}
.cust-acts{text-align:right;white-space:nowrap}
.cust-acts .cx-mini{width:30px;height:30px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:3px}
.cust-acts .btn.small{margin-left:6px;vertical-align:middle}
.cust-table [data-tip]{position:relative}
.cust-table [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);background:#16325c;color:#fff;font-size:11px;font-weight:600;padding:5px 9px;border-radius:7px;z-index:60;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.3);width:max-content;max-width:230px;white-space:normal;text-align:center;line-height:1.35}
.cust-table [data-tip]:hover::before{content:"";position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#16325c;z-index:60;pointer-events:none}

.overlay .panel .pf-acad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:2px 0 16px}
.overlay .panel .pf-acad-c{background:#f4f7fb;border:1px solid #e2e8f0;border-radius:12px;padding:13px 15px}
.overlay .panel .pf-acad-h{font-size:12px;font-weight:800;color:#475569;margin-bottom:8px}
.overlay .panel .pf-acad-big{font-size:24px;font-weight:800;color:#16325c;line-height:1}
.overlay .panel .pf-acad-sub{font-size:11.5px;color:#334155;margin-top:6px;line-height:1.4}
.overlay .panel .pf-acad-empty{font-size:12px;color:#94a3b8;padding:6px 0}
.overlay .panel .pf-acad .mp-bar{margin:8px 0 0;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.overlay .panel .pf-acad .mp-bar i{display:block;height:100%;background:linear-gradient(90deg,rgb(var(--accent)),#2563eb)}
.overlay .panel .pf-acad-mocks{display:flex;flex-wrap:wrap;gap:6px}
.overlay .panel .pf-mockchip{background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:3px 9px;font-size:12px;color:#334155;font-weight:600}
.overlay .panel .pf-mockchip b{color:#0369a1;font-weight:800}
@media(max-width:700px){.overlay .panel .pf-acad{grid-template-columns:1fr}}

.overlay .panel .pf-msg-full{margin:6px 0 2px}
.overlay .panel .pf-msg-full .pf-msg-edit{min-height:130px;margin-bottom:0;width:100%}

.overlay .panel .pf-col-l .pf-acad{grid-template-columns:1fr;gap:10px;margin:0 0 12px}
.overlay .panel .pf-col-l .pf-acad-c{padding:10px 13px}
.overlay .panel .pf-col-l .pf-acad-big{font-size:20px}

.stu-table .row-acts [data-tip],.stu-table .name-col [data-tip]{position:relative}
.stu-table [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);background:#0b1424;color:#fff;font-size:11px;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;z-index:80;pointer-events:none;box-shadow:0 10px 26px rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.14)}
.stu-table [data-tip]:hover::before{content:"";position:absolute;bottom:calc(100% + 3px);border:5px solid transparent;border-top-color:#0b1424;z-index:80;pointer-events:none}
.stu-table .name-col [data-tip]:hover::after{left:0}
.stu-table .name-col [data-tip]:hover::before{left:14px}
.stu-table .row-acts [data-tip]:hover::after{right:0}
.stu-table .row-acts [data-tip]:hover::before{right:8px}

.mb-fbar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.mb-fchip{display:inline-flex;align-items:center;gap:6px;background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:999px;padding:6px 13px;font-size:12.5px;font-weight:700;color:var(--txt);cursor:pointer;font-family:inherit}
.mb-fchip b{background:rgba(127,127,127,.16);border-radius:999px;padding:0 7px;font-size:11px;color:var(--mut);font-weight:800}
.mb-fchip:hover{border-color:rgb(var(--accent))}
.mb-fchip.on{background:#2563eb;border-color:#2563eb;color:#fff}
.mb-fchip.on b{background:rgba(255,255,255,.25);color:#fff}
.mb-fchip-act{border-color:rgba(251,191,36,.55)}
.mb-fchip-act b{background:rgba(251,191,36,.22);color:var(--warn)}
.mb-fchip-act.on b{background:rgba(255,255,255,.25);color:#fff}
.mb-bulkbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:rgba(var(--accent),.1);border:1px solid rgba(var(--accent),.35);border-radius:12px;padding:9px 13px;margin:10px 0}
.mb-bulk-hint{font-size:12px;color:var(--mut)}
.mb-hint{font-size:11px;color:#8aa0b6;margin-top:4px;font-weight:600}

.stu-table .row-acts{display:table-cell;text-align:right;vertical-align:middle;white-space:nowrap}
.stu-table .ra-in{display:inline-flex;gap:6px;align-items:center;justify-content:flex-end}

.xs-meta{font-size:12px;color:var(--mut);margin:2px 0 4px;font-weight:600}
.xs-seatmap{display:flex;flex-wrap:wrap;gap:3px;margin:8px 0 7px}
.xs-seat{width:9px;height:9px;border-radius:2px;background:rgba(127,127,127,.22)}
.xs-seat.on{background:rgb(var(--accent))}
.xs-low .xs-seat.on{background:var(--warn)}
.xs-full .xs-seat.on{background:var(--bad)}
.xs-seat-more{font-size:10px;color:var(--mut);font-weight:700;margin-left:3px;line-height:9px}

.cust-badges{display:flex;align-items:center;gap:6px;margin:4px 0 2px;flex-wrap:wrap}
.cust-badges .cust-tier{margin-left:0}

.overlay .panel .cust-dname{color:#16325c}
.overlay .panel .cust-sub{color:#5c6b80}
.overlay .panel .cust-dsec{color:#64748b}
.overlay .panel .cust-dstat{background:#f4f7fb;border-color:#e2e8f0}
.overlay .panel .cust-dstat .v{color:#16325c}
.overlay .panel .cust-dstat .l{color:#64748b}
.overlay .panel .cust-dstat.is-due .v{color:#d97706}
.overlay .panel .cust-ord{background:#f4f7fb;border-color:#e2e8f0}
.overlay .panel .cust-ord-it{color:#16325c}
.overlay .panel .cust-ord-amt{color:#16325c}
.overlay .panel .cust-mut{color:#64748b}
.overlay .panel .cust-link{background:#eef2f8;border-color:#dde5f0;color:#16325c}
.overlay .panel .cust-link:hover{background:#e0e8f2}
/* v851 — customer-drawer draft chips: dashed amber .cust-link variant + delete */
.overlay .panel .cust-draftw{display:inline-flex;align-items:stretch;gap:4px}
.overlay .panel .cust-draft{border-style:dashed;border-color:#f0c98a;background:#fffdf7;color:#b45309;font-weight:700;cursor:pointer}
.overlay .panel .cust-draft:hover{background:#fef6e7;border-color:#f0c98a}
.overlay .panel .cust-draftdel{cursor:pointer;color:#dc2626;background:#fff;border-color:#fecaca;font-weight:800}
.overlay .panel .cust-draftdel:hover{background:#fef2f2;border-color:#dc2626}

.xs-unassigned{opacity:.65;font-style:italic}
.overlay .panel .ci-head{font-size:12.5px;color:#5c6b80;font-weight:600;margin:2px 0 10px}
.overlay .panel .ci-sum{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;font-weight:700;margin-bottom:6px}
.overlay .panel .ci-s-p{color:#059669}.overlay .panel .ci-s-w{color:#d97706}.overlay .panel .ci-s-n{color:#e11d48}
.overlay .panel .ci-list{display:flex;flex-direction:column;gap:8px;max-height:56vh;overflow-y:auto}
.overlay .panel .ci-row{display:flex;align-items:center;gap:12px;background:#f4f7fb;border:1px solid #e2e8f0;border-radius:10px;padding:9px 12px;flex-wrap:wrap}
.overlay .panel .ci-main{flex:1;min-width:150px;display:flex;flex-direction:column}
.overlay .panel .ci-main b{color:#16325c;font-size:14px}
.overlay .panel .ci-sub{color:#5c6b80;font-size:12px}
.overlay .panel .ci-spk{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#5c6b80}
.overlay .panel .ci-spktime{border:1px solid #cbd5e1;border-radius:8px;padding:4px 7px;font-family:inherit;font-size:12.5px;color:#16325c;background:#fff}
.overlay .panel .ci-acts{display:flex;gap:6px;flex:0 0 auto}
.overlay .panel .ci-tg{border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:700;cursor:pointer;font-family:inherit}
.overlay .panel .ci-pres.on{background:#059669;border-color:#059669;color:#fff}
.overlay .panel .ci-abs.on{background:#e11d48;border-color:#e11d48;color:#fff}
.overlay .panel .ci-pres:hover{border-color:#059669}.overlay .panel .ci-abs:hover{border-color:#e11d48}
.overlay .panel .ci-locked{font-size:12px;font-weight:700;color:#059669}

.mb-sla{font-size:10.5px;font-weight:800;border-radius:6px;padding:1px 6px;margin-left:4px;white-space:nowrap}
.mb-sla-ok{background:rgba(127,127,127,.16);color:var(--mut)}
.mb-sla-due{background:rgba(251,191,36,.2);color:var(--warn)}
.mb-sla-overdue{background:rgba(251,113,133,.2);color:var(--bad)}
.trf-target{margin-top:8px;font-size:12.5px;color:#16325c;font-weight:600;text-align:center}

.mc2-wrap{margin-top:8px;width:100%} 
.mc2-nav{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.mc2-navbtn{width:34px;height:34px;border-radius:10px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--txt);font-size:18px;cursor:pointer;font-family:inherit;line-height:1}
.mc2-navbtn:hover{border-color:rgb(var(--accent));background:rgba(var(--accent),.1)}
.mc2-title{font-family:Sora,sans-serif;font-weight:800;font-size:19px;min-width:170px;text-align:center}
.mc2-hint{font-size:12px;color:var(--mut);margin-left:auto}
.mc2-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.mc2-head{margin-bottom:7px}
.mc2-dow{text-align:center;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);padding:4px 0}
.mc2-cell{min-height:98px;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:12px;padding:7px;cursor:pointer;transition:.12s;display:flex;flex-direction:column;gap:5px}
.mc2-cell:hover{border-color:rgb(var(--accent));background:rgba(var(--accent),.07);transform:translateY(-1px)}
.mc2-empty{background:none;border:0;cursor:default}.mc2-empty:hover{transform:none}
.mc2-past{opacity:.55}
.mc2-today{border-color:rgb(var(--accent));box-shadow:inset 0 0 0 1px rgb(var(--accent))}
.mc2-dnum{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:var(--txt)}
.mc2-tot{background:#2563eb;color:#fff;font-size:10px;font-weight:800;border-radius:999px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.mc2-slots{display:flex;flex-direction:column;gap:3px}
.mc2-slot{display:flex;align-items:center;justify-content:space-between;font-size:10.5px;font-weight:700;border-radius:5px;padding:2px 7px;color:var(--mut);background:rgba(127,127,127,.1)}
.mc2-slot b{font-weight:800;margin-left:6px}
.mc2-slot.mc2-some{background:rgba(var(--accent),.18);color:var(--info-2)}
.mc2-slot.mc2-full{background:rgba(251,113,133,.18);color:var(--bad-3)}
.mc2-legend{display:flex;gap:16px;margin-top:12px;font-size:11.5px;color:var(--mut)}
.mc2-legend i{width:11px;height:11px;border-radius:3px;display:inline-block;margin-right:5px;vertical-align:-1px}
.mc2-legend .mc2-zero{background:rgba(127,127,127,.3)}.mc2-legend .mc2-some{background:rgb(var(--accent))}.mc2-legend .mc2-full{background:var(--bad)}
.overlay .panel .md2-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.overlay .panel .md2-slot{background:#f4f7fb;border:1px solid #e2e8f0;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:9px}
.overlay .panel .md2-slot-h{display:flex;align-items:center;justify-content:space-between}
.overlay .panel .md2-slot-t b{color:#16325c;font-size:15px}
.overlay .panel .md2-time{color:#5c6b80;font-size:12px;font-weight:600}
.overlay .panel .md2-seats{font-size:12px;font-weight:800;color:#0369a1;background:#e0f2fe;border-radius:999px;padding:2px 9px}
.overlay .panel .md2-seats.md2-full{color:#e11d48;background:#fee2e2}
.overlay .panel .md2-list{display:flex;flex-direction:column;gap:6px;min-height:38px;max-height:200px;overflow-y:auto}
.overlay .panel .md2-stu{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px}
.overlay .panel .md2-stu-n{color:#16325c;font-weight:600}
.overlay .panel .md2-stu-n small{color:#5c6b80;font-weight:500}
.overlay .panel .md2-empty{color:#94a3b8;font-size:12px;padding:6px 0;text-align:center}
.overlay .panel .md2-add{width:100%}
@media(max-width:640px){.overlay .panel .md2-grid{grid-template-columns:1fr}}

.overlay .panel .md2-grid{align-items:stretch}
.overlay .panel .md2-slot{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:13px}
.overlay .panel .md2-bar{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:2px 0}
.overlay .panel .md2-bar i{display:block;height:100%;background:linear-gradient(90deg,rgb(var(--accent)),#2563eb);border-radius:999px}
.overlay .panel .md2-bar i.md2-bar-full{background:#fb7185}
.overlay .panel .md2-pendline{font-size:11px;font-weight:700;color:#b45309;background:#fef3c7;border-radius:7px;padding:3px 8px}
.overlay .panel .md2-list{flex:1 1 auto;min-height:48px}
.overlay .panel .md2-stu{background:#fff;border:1px solid #eef2f7;border-radius:9px;padding:6px 9px}
.overlay .panel .md2-stu-n{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.overlay .panel .md2-stu-n small{color:#64748b;font-weight:500;font-size:10.5px}
.overlay .panel .md2-add{width:100%;margin-top:auto}
.overlay .panel .md2-req{display:inline-flex;gap:5px;flex:0 0 auto}
.overlay .panel .md2-ok,.overlay .panel .md2-no{width:26px;height:26px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;cursor:pointer;font-size:13px;font-weight:800;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.overlay .panel .md2-ok{color:#059669;border-color:#a7f3d0}.overlay .panel .md2-ok:hover{background:#059669;color:#fff}
.overlay .panel .md2-no{color:#e11d48;border-color:#fecaca}.overlay .panel .md2-no:hover{background:#e11d48;color:#fff}
.overlay .panel .mb-pill.mb-ok{background:#dcfce7;color:#15803d}
.overlay .panel .mb-pill.mb-pend{background:#fef3c7;color:#b45309}
.overlay .panel .mb-pill.mb-no{background:#fee2e2;color:#b91c1c}

.mc2-badges{display:inline-flex;gap:4px;align-items:center}
.mc2-pend{background:#f59e0b;color:#16325c;font-size:10px;font-weight:800;border-radius:999px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}

.ma-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:6px}
.ma-card{padding:16px 18px}
.ma-h{font-family:Sora,sans-serif;font-weight:800;font-size:15px;margin-bottom:3px}
.ma-sub{font-size:12px;color:var(--mut);margin-bottom:10px}
.ma-bands{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 12px}
.ma-band{text-align:center}
.ma-band-n{font-family:Sora;font-size:22px;font-weight:800}
.ma-band-bar{height:6px;background:rgba(127,127,127,.18);border-radius:999px;overflow:hidden;margin:5px 0}
.ma-band-bar i{display:block;height:100%;background:linear-gradient(90deg,rgb(var(--accent)),#2563eb)}
.ma-band-l{font-size:11px;color:var(--mut);font-weight:600}
.ma-weak .ma-band-n{color:var(--bad)}.ma-weak .ma-band-bar i{background:var(--bad)}
.ma-focus{font-size:12.5px;color:var(--txt);background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:9px 12px}
.ma-kpis2{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ma-k{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:10px;text-align:center}
.ma-k b{font-family:Sora;font-size:19px;font-weight:800;display:block}
.ma-k span{font-size:11px;color:var(--mut)}
.ma-util{display:flex;flex-direction:column;gap:8px}
.ma-util-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 56px;align-items:center;gap:12px;font-size:12.5px}
.ma-util-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ma-ns{color:var(--bad);font-weight:700;font-size:11px;margin-left:4px}
.ma-util-bar{height:8px;background:rgba(127,127,127,.16);border-radius:999px;overflow:hidden}
.ma-util-bar i{display:block;height:100%;background:linear-gradient(90deg,rgb(var(--accent)),#2563eb);border-radius:999px}
.ma-util-bar i.ma-uh{background:var(--warn)}.ma-util-bar i.ma-uf{background:var(--bad)}
.ma-util-r{font-weight:700;white-space:nowrap;text-align:right}
.ma-empty{color:var(--mut);font-size:12.5px;padding:14px 0;text-align:center}
@media(max-width:760px){.ma-grid{grid-template-columns:1fr}}

.overlay .panel .md2-act{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:5px 11px;font-size:11.5px;font-weight:800;cursor:pointer;font-family:inherit;white-space:nowrap}
.overlay .panel .md2-act:hover{background:#1d4ed8}
.overlay .panel .md2-act-g{background:#fff;color:#0369a1;border:1px solid #bae6fd}
.overlay .panel .md2-act-g:hover{background:#e0f2fe}

.overlay .panel .md2-slot-r{display:flex;align-items:center;gap:7px}
.overlay .panel .md2-print{background:none;border:0;cursor:pointer;font-size:15px;opacity:.7;padding:0;line-height:1}
.overlay .panel .md2-print:hover{opacity:1}
.overlay .panel .md2-acts{display:inline-flex;gap:4px;align-items:center;flex:0 0 auto}
.overlay .panel .md2-mini{width:26px;height:26px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;cursor:pointer;font-size:12px;font-weight:800;line-height:1;display:inline-flex;align-items:center;justify-content:center;color:#334155}
.overlay .panel .md2-mini:hover{border-color:#2563eb;background:#eff6ff}
.overlay .panel .md2-mini.md2-ok{color:#059669;border-color:#a7f3d0}.overlay .panel .md2-mini.md2-ok:hover{background:#059669;color:#fff}
.overlay .panel .md2-mini.md2-x{color:#e11d48;border-color:#fecaca}.overlay .panel .md2-mini.md2-x:hover{background:#e11d48;color:#fff}
.overlay .panel .md2-wait{margin-top:8px;border-top:1px dashed #dbe3ee;padding-top:8px;display:flex;flex-direction:column;gap:6px}
.overlay .panel .md2-wait-h{font-size:11px;font-weight:800;color:#b45309;text-transform:uppercase;letter-spacing:.04em}
.overlay .panel .md2-stu-w{opacity:.85}

.overlay .panel .md2-labline{font-size:11px;color:#5c6b80;font-weight:600;margin:1px 0}
.overlay .panel .md2-taken{color:#b45309;font-weight:700}
.overlay .panel .md2-invrow{margin:1px 0}
.overlay .panel .md2-inv{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:5px 8px;font-family:inherit;font-size:12px;color:#16325c;background:#fff}
.overlay .panel .md2-slot-block{opacity:.75}
.overlay .panel .md2-slot-block .md2-seats{color:#b91c1c;background:#fee2e2}

.overlay .panel .re-list{display:flex;flex-direction:column;gap:8px;max-height:44vh;overflow-y:auto}
.overlay .panel .re-row{display:flex;align-items:center;gap:12px;background:#f4f7fb;border:1px solid #e2e8f0;border-radius:10px;padding:9px 12px}
.overlay .panel .re-main{flex:1;min-width:0;display:flex;flex-direction:column}
.overlay .panel .re-main b{color:#16325c;font-size:13.5px}
.overlay .panel .re-sub{color:#5c6b80;font-size:11.5px}
.overlay .panel .re-lab{font-size:12px;color:#0369a1;font-weight:700;text-align:right}
.overlay .panel .re-lab small{display:block;color:#64748b;font-weight:500;font-size:10.5px}

.lp-overlay{position:fixed;inset:0;z-index:5000;background:var(--bg,#0a0f1c);overflow-y:auto;color:var(--txt)}
.lp-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;padding:15px 28px;background:rgba(10,15,28,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--bord)}
.lp-back{width:38px;height:38px;border-radius:11px;border:1px solid var(--bord);background:rgba(127,127,127,.08);color:var(--txt);font-size:18px;cursor:pointer;font-family:inherit}
.lp-back:hover{border-color:rgb(var(--accent))}
.lp-bar-t{font-family:Sora,sans-serif;font-weight:800;font-size:19px}
.lp-bar-who{margin-left:auto;color:var(--mut);font-size:13px;font-weight:600}
.lp-body{max-width:1180px;margin:0 auto;padding:22px 28px 60px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:18px}
.lp-main,.lp-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.lp-card{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:16px;padding:16px 18px}
.lp-card-act{border-color:rgba(251,191,36,.4);background:rgba(251,191,36,.06)}
.lp-card-h{font-family:Sora,sans-serif;font-weight:800;font-size:14.5px;margin-bottom:12px}
.lp-prob{font-size:11px;font-weight:700;color:var(--warn);background:rgba(251,191,36,.15);border-radius:6px;padding:1px 7px;margin-left:6px}
.lp-bals{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.lp-bal{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:12px;padding:11px}
.lp-bal-n{font-family:Sora;font-size:21px;font-weight:800;line-height:1}
.lp-bal-n small{font-size:12px;color:var(--mut);font-weight:600}
.lp-bal-l{font-size:11px;color:var(--mut);font-weight:700;margin-top:2px;display:block}
.lp-bal-bar{height:5px;background:rgba(127,127,127,.18);border-radius:999px;overflow:hidden;margin:7px 0 4px}
.lp-bal-bar i{display:block;height:100%;border-radius:999px}
.lp-bal-sub{font-size:10.5px;color:var(--mut)}
.lp-summary{margin-top:12px;font-size:12.5px;color:var(--mut)}
.lp-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lp-form .cx-f{display:flex;flex-direction:column;gap:4px}
.lp-form .cx-f small{font-size:11px;color:var(--mut);font-weight:600}
.lp-form input,.lp-form select{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:9px;padding:8px 10px;color:var(--txt);font-family:inherit;font-size:13px}
.lp-flow{font-size:11.5px;color:var(--mut);margin-top:9px}
.lp-act{display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:9px 12px;margin-bottom:7px;flex-wrap:wrap}
.lp-sub{font-size:12px;font-weight:700;color:var(--mut);margin:6px 0}
.lp-req{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:11px;padding:10px 12px;margin-bottom:9px}
.lp-req-top{display:flex;align-items:center;gap:10px}
.lp-req-d{flex:1;min-width:0}
.lp-req-r{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.lp-tlrow{display:flex;align-items:center;gap:3px;margin-top:8px;flex-wrap:wrap}
.lp-step{font-size:10.5px;font-weight:700;color:var(--mut);background:rgba(127,127,127,.12);border-radius:6px;padding:2px 7px}
.lp-step.done{background:rgba(52,211,153,.18);color:var(--ok)}
.lp-step.active{background:rgba(var(--accent),.2);color:var(--info-2)}
.lp-arr{color:var(--mut);font-size:11px}
.lp-tl-no{font-size:11px;font-weight:700;color:var(--bad)}
.lp-who{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--bord);font-size:12.5px}
.lp-who:last-child{border-bottom:0}
.lp-who-n{font-weight:700;flex:1;min-width:0}
.lp-who-d{color:var(--mut);font-size:11px}
.lp-hol{display:flex;gap:10px;padding:5px 0;font-size:12.5px;border-bottom:1px solid var(--bord)}
.lp-hol:last-child{border-bottom:0}
.lp-hol-d{font-weight:800;color:var(--info-2);min-width:54px}
.lp-pol{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--mut)}
.lp-cancel{border-color:rgba(251,113,133,.4);color:var(--bad)}
@media(max-width:820px){.lp-body{grid-template-columns:1fr}.lp-bals{grid-template-columns:repeat(2,1fr)}.lp-form{grid-template-columns:1fr}}

.btn:active:not([disabled]):not(.disabled){transform:translateY(0) scale(.97)}
a,button,select,.cx-row,.cust-row,.lz-seg,.cx-chip,.mb-fchip,.side-item,.sf-tab,.cx-subtab,.mb-vt,.lz-seg{transition:background .15s ease,border-color .15s ease,transform .12s ease,box-shadow .15s ease,color .15s ease}
.sf-card{transition:border-color .15s ease,box-shadow .2s ease,transform .12s ease}
.stat-link:hover,.note-link:hover{transform:translateY(-1px)}
:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px}
.btn:focus-visible,.side-item:focus-visible,.mb-vt:focus-visible{outline-offset:3px;border-radius:10px}
@keyframes kpiPop{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:none}}
.stat,.sf-kpi,.lp-bal{animation:kpiPop .34s cubic-bezier(.22,1,.36,1) both}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{background:rgba(127,127,127,.28);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:rgba(127,127,127,.45);background-clip:padding-box}
*::-webkit-scrollbar-track{background:transparent}

.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:var(--mut);background:rgba(127,127,127,.04);border:1px dashed var(--bord);border-radius:14px;padding:30px 20px;font-size:13.5px;line-height:1.5}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:38px 20px;color:var(--mut)}
.empty-state .es-ic{font-size:34px;opacity:.9}
.empty-state .es-t{font-size:15px;font-weight:800;color:var(--txt)}
.empty-state .es-s{font-size:12.5px;max-width:360px;line-height:1.5}

.top-left{display:flex;align-items:center;gap:10px}
.tb-icon{width:38px;height:38px;border-radius:11px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--txt);font-size:15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative;font-family:inherit}
.tb-icon:hover{border-color:rgb(var(--accent));background:rgba(var(--accent),.1)}
.tb-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;border-radius:999px;background:var(--bad);color:#fff;font-size:9.5px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid #0a0f1c}
.cmdpal-ov{position:fixed;inset:0;z-index:7000;background:rgba(8,12,22,.55);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:flex-start;padding-top:11vh}
.cmdpal{width:min(640px,92vw);background:#0e1730;border:1px solid rgba(255,255,255,.14);border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.6);overflow:hidden}
.cmdpal-in{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--glass-10)}
.cmdpal-ic{font-size:16px;opacity:.7}
#cmdpal-q{flex:1;background:none;border:0;outline:none;color:var(--ink-hi);font-size:15px;font-family:inherit}
.cmdpal-esc{font-size:10px;font-weight:700;color:var(--mut);border:1px solid var(--bord);border-radius:6px;padding:2px 6px}
.cmdpal-list{max-height:52vh;overflow-y:auto;padding:6px}
.cmdpal-it{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:9px 12px;cursor:pointer;font-family:inherit;color:var(--ink-hi)}
.cmdpal-it.on{background:rgba(var(--accent),.16)}
.cmdpal-it-ic{font-size:15px;width:22px;text-align:center;flex:0 0 auto}
.cmdpal-it-m{flex:1;min-width:0;display:flex;flex-direction:column}
.cmdpal-it-l{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdpal-it-s{font-size:11px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdpal-it-k{font-size:10px;font-weight:700;color:var(--mut);background:rgba(127,127,127,.16);border-radius:6px;padding:2px 7px;flex:0 0 auto}
.cmdpal-empty{padding:22px;text-align:center;color:var(--mut);font-size:13px}
.notif-panel{position:absolute;top:48px;right:0;width:310px;background:#0e1730;border:1px solid rgba(255,255,255,.14);border-radius:14px;box-shadow:0 22px 60px rgba(0,0,0,.5);z-index:6500;overflow:hidden}
.notif-h{font-size:11px;font-weight:800;color:var(--mut);padding:12px 14px 6px;text-transform:uppercase;letter-spacing:.05em}
.notif-it{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;padding:10px 14px;cursor:pointer;font-family:inherit;color:var(--ink-hi);font-size:12.5px;border-top:1px solid var(--glass-05)}
.notif-it:hover{background:rgba(var(--accent),.1)}
.notif-it-ic{font-size:15px;flex:0 0 auto}
.notif-it>span:nth-child(2){flex:1;min-width:0}
.notif-it-go{color:var(--mut);font-weight:800}
/* QA D6 (routing polish, 24 Oct 2026): "Mark all read" in the header, each server row's time under its title */
.notif-h{display:flex;align-items:center;gap:8px}.notif-all{margin-left:auto;background:none;border:0;padding:4px 6px;font:inherit;font-size:11.5px;font-weight:700;text-transform:none;letter-spacing:0;color:var(--lx-accent-text,rgb(var(--accent)));cursor:pointer;min-height:28px;border-radius:6px}
.notif-all:focus-visible{outline:2px solid currentColor;outline-offset:1px}.notif-it-t{flex:1;min-width:0}.notif-it-at{display:block;font-size:11.5px;color:var(--mut);font-weight:500;margin-top:2px}
.notif-empty{padding:24px 16px;text-align:center;color:var(--mut);font-size:12.5px}

.cc-card{background:rgba(var(--accent),.06);border:1px solid rgba(var(--accent),.3);border-radius:16px;padding:16px 18px;margin:14px 0}
.cc-h{font-family:Sora,sans-serif;font-weight:800;font-size:15px;margin-bottom:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cc-sub{font-size:12px;font-weight:600;color:var(--mut)}
.cc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}
.cc-tile{display:flex;flex-direction:column;gap:3px;text-align:left;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:12px;padding:12px 14px;cursor:pointer;font-family:inherit;color:var(--txt);transition:.12s}
.cc-tile:hover{border-color:rgb(var(--accent));background:rgba(var(--accent),.1);transform:translateY(-1px)}
.cc-tile-n{font-family:Sora,sans-serif;font-size:24px;font-weight:800;color:var(--info-2)}
.cc-tile-l{font-size:12px;color:var(--mut);font-weight:600}
.cc-clear{color:var(--mut);font-size:13px;padding:8px 2px}
.cc-dues{margin-top:12px;font-size:12.5px;color:var(--mut)}

.ex-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:14px 0}
.ex-kpi{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:14px;padding:13px 15px;animation:kpiPop .34s cubic-bezier(.22,1,.36,1) both}
.ex-kpi-ic{font-size:17px;margin-bottom:4px}
.ex-kpi-v{font-family:Sora,sans-serif;font-size:21px;font-weight:800;color:var(--txt);line-height:1}
.ex-kpi-l{font-size:11px;color:var(--mut);margin-top:3px;font-weight:600}
.ex-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.ex-card{padding:16px 18px}
.ex-h{font-family:Sora,sans-serif;font-weight:800;font-size:14.5px;margin-bottom:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ex-hsub{font-size:11.5px;font-weight:600;color:var(--mut)}
.ex-pipe{display:flex;flex-direction:column;gap:8px}
.ex-pipe-row{display:grid;grid-template-columns:78px 1fr 34px;align-items:center;gap:10px;font-size:12.5px}
.ex-pipe-l{color:var(--mut);font-weight:600}
.ex-pipe-bar{height:8px;background:rgba(127,127,127,.16);border-radius:999px;overflow:hidden}
.ex-pipe-bar i{display:block;height:100%;border-radius:999px}
.ex-pipe-n{text-align:right;font-weight:800}
.ex-reps{display:flex;flex-direction:column;gap:8px}
.ex-rep{display:flex;align-items:center;gap:10px;font-size:13px}
.ex-rep-r{width:20px;height:20px;border-radius:6px;background:rgba(var(--accent),.16);color:var(--info-2);font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.ex-rep-n{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ex-rep-v{font-weight:800;color:var(--ok)}
.ex-sub2{font-size:11px;color:var(--mut);font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}
.ex-sessions{display:flex;gap:8px;margin-bottom:12px}
.ex-sess{flex:1;background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:9px;text-align:center}
.ex-sess b{display:block;font-size:13px}
.ex-sess small{display:block;font-size:10px;color:var(--mut)}
.ex-sess-n{display:block;font-family:Sora,sans-serif;font-size:18px;font-weight:800;color:var(--info-2);margin-top:3px}
.ex-today-row{font-size:12.5px;color:var(--mut);padding:4px 0}
.ex-today-row b{color:var(--txt)}
.ex-health{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ex-hm{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:10px;padding:11px;text-align:center}
.ex-hm span{font-family:Sora,sans-serif;font-size:19px;font-weight:800;display:block}
.ex-hm small{font-size:10.5px;color:var(--mut)}
.ex-hm.ex-warn span{color:var(--bad)}
@media(max-width:1000px){.ex-kpis{grid-template-columns:repeat(3,1fr)}.ex-grid{grid-template-columns:1fr}}
@media(max-width:620px){.ex-kpis{grid-template-columns:repeat(2,1fr)}.ex-health{grid-template-columns:repeat(2,1fr)}}

body.acc-violet{--accent:167,139,250;--accent2:236,72,153}
body.acc-emerald{--accent:16,185,129;--accent2:34,211,238}
body.acc-amber{--accent:245,158,11;--accent2:251,113,133}
body.acc-rose{--accent:244,63,94;--accent2:167,139,250}
body.acc-sky{--accent:56,189,248;--accent2:14,165,233}
.acc-lbl{font-size:11px;color:var(--mut);font-weight:700;margin-right:2px}
.acc-swatches{display:inline-flex;gap:6px;align-items:center;margin-right:12px}
.acc-sw{width:18px;height:18px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:transform .15s,border-color .15s;padding:0}
.acc-sw:hover{transform:translateY(-1px)}
.acc-sw.on{border-color:var(--txt)}
.acc-sw-cyan{background:linear-gradient(135deg,#22d3ee,var(--viol))}
.acc-sw-violet{background:linear-gradient(135deg,var(--viol),#ec4899)}
.acc-sw-emerald{background:linear-gradient(135deg,#10b981,#22d3ee)}
.acc-sw-amber{background:linear-gradient(135deg,#f59e0b,var(--bad))}
.acc-sw-rose{background:linear-gradient(135deg,#f43f5e,var(--viol))}
.acc-sw-sky{background:linear-gradient(135deg,var(--info),#0ea5e9)}

@keyframes rvdraw{from{stroke-dashoffset:330}to{stroke-dashoffset:0}}
.rv-ring-fg{animation:rvdraw 1.1s cubic-bezier(.2,.9,.3,1) both}
@keyframes lz-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.ex-pipe-bar i,.fn-bar i,.sd-bar i,.bar-fill{transform-origin:left;animation:lz-grow .85s cubic-bezier(.2,.9,.3,1)}
@keyframes lz-rise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.ex-kpi,.rv-hero,.ex-card{animation:lz-rise .42s ease both}
@media(prefers-reduced-motion:reduce){.rv-ring-fg,.ex-pipe-bar i,.fn-bar i,.sd-bar i,.bar-fill,.ex-kpi,.rv-hero,.ex-card,.stk-ring-fg,.stk-flame,.wk-bar,.wk-bar-today{animation:none!important}}

.mc2-heat{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--mut);margin-left:14px}
.mc2-heat i{width:13px;height:13px;border-radius:4px;display:inline-block}
.um-acc{display:flex;align-items:center;gap:10px}
.um-acc .acc-swatches{margin-left:auto;margin-right:0;display:inline-flex!important;gap:7px;align-items:center}
.um-acc .acc-sw{display:inline-block!important;width:18px!important;height:18px!important;border-radius:6px!important;padding:0!important;border:2px solid transparent;box-shadow:0 0 0 1px var(--glass4);flex:0 0 auto;cursor:pointer}
.um-acc .acc-sw.on{border-color:#fff!important;box-shadow:0 0 0 2px rgba(var(--accent),.6)!important}
.um-acc .acc-sw-cyan{background:linear-gradient(135deg,#22d3ee,var(--viol))!important}
.um-acc .acc-sw-violet{background:linear-gradient(135deg,var(--viol),#ec4899)!important}
.um-acc .acc-sw-emerald{background:linear-gradient(135deg,#10b981,#22d3ee)!important}
.um-acc .acc-sw-amber{background:linear-gradient(135deg,#f59e0b,var(--bad))!important}
.um-acc .acc-sw-rose{background:linear-gradient(135deg,#f43f5e,var(--viol))!important}
.um-acc .acc-sw-sky{background:linear-gradient(135deg,var(--info),#0ea5e9)!important}

.overlay{background:rgba(6,9,17,.66);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.overlay .panel{background:#0e1526;color:var(--txt);border:1px solid var(--bord2);box-shadow:0 40px 90px rgba(0,0,0,.6)}
.overlay .panel h2,.overlay .panel h3,.overlay .panel h4{color:var(--txt)}
.overlay .panel p,.overlay .panel .cred-meta,.overlay .panel p.sc-intro,.overlay .panel p.sc-note,.overlay .panel .sc-status{color:var(--mut)}
.overlay .panel .field label,.overlay .panel label,.overlay .panel .tgl{color:var(--txt)}
.overlay .panel .field input,.overlay .panel .field select,.overlay .panel input[type="text"],.overlay .panel input[type="number"],.overlay .panel input[type="email"],.overlay .panel input[type="tel"],.overlay .panel input[type="search"],.overlay .panel input[type="password"],.overlay .panel textarea,.overlay .panel select{background:rgba(255,255,255,.05);color:var(--txt);border:1px solid var(--bord2)}
.overlay .panel input::placeholder,.overlay .panel textarea::placeholder{color:var(--mut)}
.overlay .panel select option{background:#0e1526;color:var(--txt)}
.overlay .panel input[type="date"]{color-scheme:dark;background:rgba(255,255,255,.05);color:var(--txt);border:1px solid var(--bord2)}
.overlay .panel input[type="date"]:focus{border-color:rgb(var(--accent));box-shadow:0 0 0 3px rgba(var(--accent),.18)}
.overlay .panel .field input[readonly]{background:rgba(var(--accent),.1);color:rgb(var(--accent))}
.overlay .panel .seg-b,.overlay .panel .qchip{background:rgba(255,255,255,.05);color:var(--txt);border:1px solid var(--bord2)}
.overlay .panel .seg-b.active{border-color:rgb(var(--accent));background:rgba(var(--accent),.16);color:var(--txt)}
.overlay .panel .qchip.active{border-color:transparent;background:var(--grad);color:#04121f}
.overlay .panel .cred>div{background:rgba(255,255,255,.05);border:1px solid var(--bord)}
.overlay .panel .cred span{color:var(--mut)}.overlay .panel .cred b{color:var(--txt)}
.overlay .panel .note{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.3);color:#fcd34d}
.overlay .panel .play-btn.ghost{background:rgba(255,255,255,.06);border-color:var(--bord2);color:var(--txt)}
.overlay .panel .play-btn.ghost:hover{background:rgba(255,255,255,.12)}
.overlay .panel .share-row .share-email{background:rgba(var(--accent),.12);border-color:rgba(var(--accent),.4);color:rgb(var(--accent))}
.overlay .panel .btn{background:var(--glass2);color:var(--txt);border:1px solid var(--bord2)}
.overlay .panel .btn:hover{background:rgba(255,255,255,.12)}
.overlay .panel .btn.primary{background:var(--grad);color:#04121f;border:0}

.overlay .panel .md2-slot{background:rgba(255,255,255,.045)!important;border:1px solid var(--bord)!important}
.overlay .panel .md2-slot-t b,.overlay .panel .md2-slot-h b{color:var(--txt)!important}
.overlay .panel .md2-seats{color:var(--mut)!important;background:rgba(255,255,255,.06)!important}
.overlay .panel .md2-seats.md2-full{color:#fb7185!important;background:rgba(251,113,133,.14)!important}
.overlay .panel .md2-stu{background:rgba(255,255,255,.05)!important;border:1px solid var(--bord)!important;color:var(--txt)}
.overlay .panel .md2-ok,.overlay .panel .md2-no{background:rgba(255,255,255,.05)!important}
.overlay .panel .md2-ok{color:#34d399!important;border-color:rgba(52,211,153,.4)!important}
.overlay .panel .md2-ok:hover{background:#34d399!important;color:#04121f!important}
.overlay .panel .md2-no{color:#fb7185!important;border-color:rgba(251,113,133,.4)!important}
.overlay .panel .md2-no:hover{background:#fb7185!important;color:#04121f!important}
.overlay .panel .md2-pendline{color:#fcd34d!important;background:rgba(251,191,36,.14)!important}
.overlay .panel .md2-act{background:var(--grad)!important;color:#04121f!important}
.overlay .panel .md2-slot-block .md2-seats{color:#fb7185!important;background:rgba(251,113,133,.14)!important}

.btn.primary{color:#04121f}

.overlay .panel .cx-cr,.overlay .panel .cx-mini,.overlay .panel .cx-edit,.overlay .panel .cx-add,.overlay .panel .cx-cr-acts .cx-add,.overlay .panel .cx-sp,.overlay .panel .cx-f,.overlay .panel .cx-fields .cx-f,.overlay .panel .cx-refac,.overlay .panel .cx-stagew,.overlay .panel .cx-invw,.overlay .panel .cx-invw-row,.overlay .panel .cx-summary,.overlay .panel .cx-sum-act,.overlay .panel .cx-cbtn,.overlay .panel .cx-metab,.overlay .panel .cx-fact,.overlay .panel .cx-nba,.overlay .panel .lc-log,.overlay .panel .lc-suggest-facts .lsf,.overlay .panel .pf-acad-c,.overlay .panel .pf-skill,.overlay .panel .pf-tile,.overlay .panel .pf-b2,.overlay .panel .pf-msg,.overlay .panel .pf-mockchip,.overlay .panel .cust-dstat,.overlay .panel .cust-fi,.overlay .panel .cust-link,.overlay .panel .cust-ord,.overlay .panel .cust-sell-q,.overlay .panel .ci-row,.overlay .panel .ci-tg,.overlay .panel .ci-spktime,.overlay .panel .mb-exam,.overlay .panel .md2-inv,.overlay .panel .md2-mini,.overlay .panel .re-row,.overlay .panel .inv-q,.overlay .panel .lv-act,.overlay .panel .notes-area{
  background:rgba(255,255,255,.05)!important;border-color:var(--bord2)!important;color:var(--txt)!important}

.overlay .panel .cx-cr,.overlay .panel .cx-mini,.overlay .panel .cx-edit,.overlay .panel .cx-sp,.overlay .panel .cx-head .cx-ph,.overlay .panel .cx-stagew-h,.overlay .panel .cx-invw-h,.overlay .panel .cx-invw-no,.overlay .panel .cx-invw-amt,.overlay .panel .cx-cbtn-1l,.overlay .panel .lc-log-h,.overlay .panel .cx-metab,.overlay .panel .pf-acad-h,.overlay .panel .pf-acad-big,.overlay .panel .pf-acad-sub,.overlay .panel .pf-sl,.overlay .panel .pf-l,.overlay .panel .pf-b2l,.overlay .panel .pf-ap-h,.overlay .panel .pf-msg,.overlay .panel .pf-mockchip,.overlay .panel .pf-b2.goal .pf-b2n,.overlay .panel .cust-ord,.overlay .panel .cust-fi{color:var(--txt)!important}
.overlay .panel .cx-metab,.overlay .panel .cx-fact,.overlay .panel .pf-band-l,.overlay .panel .cx-cr .cx-mut{color:var(--mut)!important}

.overlay .panel .cx-log select,.overlay .panel .cx-log input,.overlay .panel .cx-log textarea,.overlay .panel .cx-f input,.overlay .panel .pf-msg-edit,.overlay .panel .lv-form input,.overlay .panel .lv-form select,.overlay .panel .pp-dateline input[type=date],.overlay .panel .notes-area{
  background:rgba(255,255,255,.05)!important;color:var(--txt)!important;border-color:var(--bord2)!important}
.overlay .panel .cx-dt .cx-timebtn{background:rgba(var(--accent),.12)!important;border-color:rgba(var(--accent),.4)!important;color:rgb(var(--accent))!important}

.overlay .panel .cx-cbtn-call .cx-cbtn-ic{background:rgba(var(--accent),.16)!important}
.overlay .panel .cx-cbtn-email .cx-cbtn-ic{background:rgba(var(--accent2),.16)!important}

.overlay .panel .cx-deal{background:rgba(52,211,153,.12)!important;border-color:rgba(52,211,153,.35)!important;color:#34d399!important}
.overlay .panel .cx-deal b,.overlay .panel .cx-deal .g{color:#34d399!important}
.overlay .panel .lc-suggest{background:rgba(var(--accent2),.10)!important;border:1px solid rgba(var(--accent2),.3)!important}
.overlay .panel .pf-b2.now{background:rgba(var(--accent),.14)!important;border-color:rgba(var(--accent),.4)!important}
.overlay .panel .pf-b2.now .pf-b2n{color:rgb(var(--accent))!important}
.overlay .panel .lc-ro-banner{background:rgba(251,146,60,.12)!important;border-color:rgba(251,146,60,.35)!important;color:#fdba74!important}
.overlay .panel .cx-fact-due,.overlay .panel .cx-pd-due,.overlay .panel .mb-pill.mb-no{background:rgba(251,113,133,.14)!important;border-color:rgba(251,113,133,.4)!important;color:#fb7185!important}
.overlay .panel .cx-pd-paid{background:rgba(52,211,153,.14)!important;border-color:rgba(52,211,153,.4)!important;color:#34d399!important}
.overlay .panel .mb-pill.mb-pend{background:rgba(251,191,36,.14)!important;border-color:rgba(251,191,36,.4)!important;color:#fcd34d!important}

.overlay .panel .pf-ab-email,.overlay .panel .pf-ab-edit,.overlay .panel .pf-edit-top{background:rgba(255,255,255,.06)!important;color:var(--txt)!important;border-color:var(--bord2)!important}

.overlay .panel .pf-rec.course,.overlay .panel .pf-rec.exam,.overlay .panel .pf-rec.mocks,.overlay .panel .pf-rec.practice,.overlay .panel .pf-rec.renew,.overlay .panel .pf-rec.start{background:rgba(255,255,255,.05)!important;border-color:var(--bord2)!important;color:var(--txt)!important}

.overlay .panel .cust-ord b,.overlay .panel .cust-ord span{color:inherit}

.overlay .panel .cust-dstat .v,.overlay .panel .cust-ord-it,.overlay .panel .cust-ord-amt,.overlay .panel .cust-dsec{color:var(--txt)!important}
.overlay .panel .cust-dstat .l,.overlay .panel .cust-sub,.overlay .panel .cust-mut{color:var(--mut)!important}

.overlay .panel .pf-rec,.overlay .panel .pf-ap-card,.overlay .panel .pf-nudge{background:rgba(255,255,255,.05)!important;border-color:var(--bord2)!important;color:var(--txt)!important}

.overlay .panel .pf-name{color:var(--txt)!important}
.overlay .panel .pf-id,.overlay .panel .pf-band-l,.overlay .panel .pf-sl,.overlay .panel .pf-l,.overlay .panel .pf-b2l,.overlay .panel .pf-acad-h,.overlay .panel .pf-acad-sub,.overlay .panel .pf-msg-label,.overlay .panel .pf-rec-tag,.overlay .panel .pf-rec-why{color:var(--mut)!important;opacity:1}
.overlay .panel .pf-sv,.overlay .panel .pf-n,.overlay .panel .pf-rec-act,.overlay .panel .pf-ap-h,.overlay .panel .pf-acad-big,.overlay .panel .pf-b2.goal .pf-b2n,.overlay .panel .pf-mockchip,.overlay .panel .pf-msg,.overlay .panel .pf-msg-edit{color:var(--txt)!important}
.overlay .panel .pf-band-n,.overlay .panel .pf-b2n,.overlay .panel .pf-mockchip b{color:rgb(var(--accent))!important}
.overlay .panel .pf-skill.goal{background:rgba(var(--accent),.14)!important;border-color:rgba(var(--accent),.4)!important}
.overlay .panel .pf-rec-ic{opacity:.9}

.overlay .panel .md2-slot-h{gap:8px;align-items:flex-start}
.overlay .panel .md2-slot-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.overlay .panel .md2-slot-t b{font-size:14px;line-height:1.2}
.overlay .panel .md2-time{color:var(--mut);font-size:11.5px;font-weight:600;white-space:nowrap}
.overlay .panel .md2-labs{color:var(--mut)}

.overlay .panel .field input,.overlay .panel .field select,.overlay .panel input[type="date"],.overlay .panel .note,.overlay .panel .field input[readonly],.overlay .panel .seg-b,.overlay .panel .seg-b.active,.overlay .panel .qchip,.overlay .panel .cred > div,.overlay .panel .share-row .share-email,.overlay .panel .pp-toggle .knob,.overlay .panel .pp-dateline input[type=date],.overlay .panel .cx-cr,.overlay .panel .cx-mini,.overlay .panel .cx-mini:hover,.overlay .panel .cx-mini.cx-rm:hover,.overlay .panel .cx-add,.overlay .panel .cx-edit,.overlay .panel .cx-sp,.overlay .panel .cx-sp:hover,.overlay .panel input:not([type=checkbox]):not([type=radio]),.overlay .panel select,.overlay .panel textarea,.overlay .panel select option,.overlay .panel .cx-dt .cx-timebtn,.overlay .panel .cx-pd-paid,.overlay .panel .cx-pd-due,.overlay .panel .cx-log textarea,.overlay .panel .cx-cr-acts .cx-add,.overlay .panel .cx-f,.overlay .panel .cx-fields .cx-f,.overlay .panel .cx-refac,.overlay .panel .cx-refac-it:hover,.overlay .panel .cx-refac-it.on,.overlay .panel .lc-log,.overlay .panel .lc-next button[data-lnext],.overlay .panel :is(input,.overlay .panel textarea):not([type=checkbox]):not([type=radio]),.overlay .panel .cx-deal,.overlay .panel .lv-form input,.overlay .panel .lv-form select,.overlay .panel .lv-act,.overlay .panel .cx-log select,.overlay .panel .cx-log input,.overlay .panel .btn,.overlay .panel .slot,.overlay .panel .slot.booked,.overlay .panel .slot-legend .lg,.overlay .panel .slot-legend .lg.booked,.overlay .panel .pf-skill,.overlay .panel .pf-skill.goal,.overlay .panel .pf-tile,.overlay .panel .pf-rec.exam,.overlay .panel .pf-rec.mocks,.overlay .panel .pf-rec.course,.overlay .panel .pf-rec.renew,.overlay .panel .pf-rec.practice,.overlay .panel .pf-rec.start,.overlay .panel .pf-msg,.overlay .panel .pf-b2,.overlay .panel .pf-b2.now,.overlay .panel .pf-msg-edit,.overlay .panel .pf-edit-top,.overlay .panel .pf-ab-email,.overlay .panel .pf-ab-edit,.overlay .panel .spk-grid th,.overlay .panel .spk-grid .spk-pn,.overlay .panel .spk-sel,.overlay .panel .spk-demo-tag,.overlay .panel .spk-demo-note,.overlay .panel .notes-area,.overlay .panel .mb-exam,.overlay .panel .mb-exam:hover,.overlay .panel .trf-overall,.overlay .panel .cx-name-row .cx-temp.cx-Hot,.overlay .panel .cx-name-row .cx-temp.cx-Warm,.overlay .panel .cx-fact,.overlay .panel .cx-fact.cx-fact-due,.overlay .panel .cx-cbtn,.overlay .panel .cx-cbtn-call .cx-cbtn-ic,.overlay .panel .cx-cbtn-wa .cx-cbtn-ic,.overlay .panel .cx-cbtn-email .cx-cbtn-ic,.overlay .panel .cx-nba,.overlay .panel .cx-summary,.overlay .panel .cx-sum-deal,.overlay .panel .cx-sum-act,.overlay .panel .cx-stagew,.overlay .panel .cx-invw,.overlay .panel .cx-invw-row,.overlay .panel .cx-invw-row:hover,.overlay .panel .cust-sell-q,.overlay .panel .cust-fi,.overlay .panel .inv-q,.overlay .panel .lc-suggest,.overlay .panel .lc-dealcard,.overlay .panel .lc-suggest-facts .lsf,.overlay .panel .lc-suggest-facts .lsf-due,.overlay .panel .cx-metab,.overlay .panel .mc-legend .mb-pend,.overlay .panel .mc-legend .mb-no,.overlay .panel .lc-ro-banner,.overlay .panel .pf-acad-c,.overlay .panel .pf-mockchip,.overlay .panel .cust-dstat,.overlay .panel .cust-ord,.overlay .panel .cust-link,.overlay .panel .ci-row,.overlay .panel .ci-spktime,.overlay .panel .ci-tg,.overlay .panel .mc2-legend .mc2-full,.overlay .panel .md2-slot,.overlay .panel .md2-seats,.overlay .panel .md2-seats.md2-full,.overlay .panel .md2-bar i.md2-bar-full,.overlay .panel .md2-pendline,.overlay .panel .md2-stu,.overlay .panel .md2-ok,.overlay .panel .md2-no,.overlay .panel .mb-pill.mb-ok,.overlay .panel .mb-pill.mb-pend,.overlay .panel .mb-pill.mb-no,.overlay .panel .mc2-pend,.overlay .panel .md2-act-g,.overlay .panel .md2-act-g:hover,.overlay .panel .md2-mini,.overlay .panel .md2-mini:hover,.overlay .panel .md2-inv,.overlay .panel .md2-slot-block .md2-seats,.overlay .panel .re-row,.overlay .panel .md2-no:hover{background:rgba(255,255,255,.05)!important;border-color:var(--bord2)!important}

.overlay .panel p.sc-intro,.overlay .panel p.sc-note,.overlay .panel p,.overlay .panel .field input,.overlay .panel .field select,.overlay .panel input[type="date"],.overlay .panel input[type="date"]:focus,.overlay .panel .field label,.overlay .panel .note,.overlay .panel .field input[readonly],.overlay .panel .seg-b,.overlay .panel .seg-b.active,.overlay .panel .qchip,.overlay .panel .qchip.active,.overlay .panel input[type=range],.overlay .panel .tgl,.overlay .panel .tgl input,.overlay .panel .cred span,.overlay .panel .cred b,.overlay .panel .cred-meta,.overlay .panel .share-row .share-email,.overlay .panel .share-row .share-wa,.overlay .panel .pp-title,.overlay .panel .pp-sub,.overlay .panel .pp-exlabel,.overlay .panel .pp-dateline input[type=date],.overlay .panel .cx-earn .g,.overlay .panel .cx-st-Contacted,.overlay .panel .cx-st-Enrolled,.overlay .panel .cx-mini.call,.overlay .panel .cx-mini.wa,.overlay .panel .cx-here,.overlay .panel .cx-nudge.ok,.overlay .panel .cx-act.call,.overlay .panel .cx-act.wa,.overlay .panel .cx-deal .g,.overlay .panel .cx-pri,.overlay .panel .cx-mini:hover,.overlay .panel .cx-err a,.overlay .panel .cx-cr,.overlay .panel .cx-contact,.overlay .panel .cx-mini,.overlay .panel .imp-row,.overlay .panel .imp-sum,.overlay .panel .cx-tag,.overlay .panel .cx-add,.overlay .panel .cx-edit,.overlay .panel .cx-fields .cx-f small,.overlay .panel .cx-sp,.overlay .panel .cx-sp:hover,.overlay .panel .cx-sp.on,.overlay .panel input:not([type=checkbox]):not([type=radio]),.overlay .panel select,.overlay .panel textarea,.overlay .panel select option,.overlay .panel input:hover,.overlay .panel select:hover,.overlay .panel textarea:hover,.overlay .panel input:focus,.overlay .panel select:focus,.overlay .panel textarea:focus,.overlay .panel .cx-dt .cx-timebtn,.overlay .panel .cx-pd-paid,.overlay .panel .cx-log textarea,.overlay .panel .cx-cr-acts .cx-add,.overlay .panel .cx-f>b,.overlay .panel .cx-fields .cx-f:focus-within,.overlay .panel .cx-refac-it,.overlay .panel .cx-refac-it.on,.overlay .panel .cx-refac-it b,.overlay .panel .cx-sec,.overlay .panel .lc-log-h,.overlay .panel .lc-log-h .cx-mut,.overlay .panel .lc-next-l,.overlay .panel .lc-next button[data-lnext],.overlay .panel .lc-next button[data-lnext].on,.overlay .panel .lc-next button[data-lnext]:hover,.overlay .panel :is(input,.overlay .panel textarea):not([type=checkbox]):not([type=radio]):hover,.overlay .panel .cx-inv-mut,.overlay .panel .cx-inv-ok,.overlay .panel .cx-deal,.overlay .panel .cx-deal b,.overlay .panel .cx-chip:hover,.overlay .panel .cx-chip.on,.overlay .panel .cx-mini.done,.overlay .panel .lv-bal-v,.overlay .panel .lv-form input,.overlay .panel .lv-form select,.overlay .panel .lv-act,.overlay .panel .lv-act b,.overlay .panel .cx-ph,.overlay .panel .cx-mut,.overlay .panel .cx-f small,.overlay .panel .cx-dn,.overlay .panel .cx-f b,.overlay .panel .cx-tl .cx-ti b,.overlay .panel .cx-tl .cx-ti,.overlay .panel .cx-act.email,.overlay .panel .cx-log select,.overlay .panel .cx-log input,.overlay .panel .cx-tl .cx-ti div,.overlay .panel .btn,.overlay .panel .slot,.overlay .panel .slot:hover,.overlay .panel .slot.on,.overlay .panel .slot-empty,.overlay .panel .slot-legend,.overlay .panel .slot-legend .lg.on,.overlay .panel .perf-btn,.overlay .panel .notes-area,.overlay .panel .imp-area,.overlay .panel .imp-opt label,.overlay .panel .pf-name,.overlay .panel .pf-id,.overlay .panel .pf-band-n,.overlay .panel .pf-band-l,.overlay .panel .pf-sv,.overlay .panel .pf-sl,.overlay .panel .pf-n,.overlay .panel .pf-l,.overlay .panel .pf-rec-act,.overlay .panel .pf-rec-why,.overlay .panel .pf-msg-label,.overlay .panel .pf-msg,.overlay .panel .pf-actions .pf-call,.overlay .panel p.pg-intro,.overlay .panel p.pg-cont,.overlay .panel .pf-b2n,.overlay .panel .pf-b2.goal .pf-b2n,.overlay .panel .pf-b2l,.overlay .panel .pf-ap-h,.overlay .panel .pf-msg-edit,.overlay .panel .pf-msg-edit:focus,.overlay .panel .pf-edit-top,.overlay .panel .pf-ab-email,.overlay .panel .pf-ab-edit,.overlay .panel .spk-weekday,.overlay .panel .spk-meta,.overlay .panel .spk-grid th,.overlay .panel .spk-grid .spk-pn,.overlay .panel .spk-sel,.overlay .panel .spk-score,.overlay .panel .spk-score b,.overlay .panel .mp-table th,.overlay .panel .mp-table td,.overlay .panel .mb-exam:hover,.overlay .panel .mb-exam-k,.overlay .panel .mb-exam-s,.overlay .panel .mb-pill.mb-ok,.overlay .panel .trf-gsec,.overlay .panel .trf-grade label,.overlay .panel .trf-overall,.overlay .panel .cust-paid,.overlay .panel .cx-head .cx-ph,.overlay .panel .cx-name-row .cx-temp.cx-Warm,.overlay .panel .cx-name-row .cx-temp.cx-Cold,.overlay .panel .cx-fact,.overlay .panel .cx-fact.cx-fact-due,.overlay .panel .cx-head .cx-ph .cx-mlink,.overlay .panel .cx-cbtn-tx b,.overlay .panel .cx-cbtn-tx small,.overlay .panel .cx-nba-act,.overlay .panel .cx-nba-why,.overlay .panel .cx-sum-deal .cx-deal-r,.overlay .panel .cx-sum-deal .cx-deal-r b,.overlay .panel .cx-sum-deal .cx-deal-r b.g,.overlay .panel .cx-sum-deal .cx-deal-r .g,.overlay .panel .cx-stagew-h,.overlay .panel .cx-invw-h,.overlay .panel .cx-invw-row:hover,.overlay .panel .cx-invw-no,.overlay .panel .cx-invw-amt,.overlay .panel .cx-invw-go,.overlay .panel .cx-invw-empty,.overlay .panel .cust-dn,.overlay .panel .cust-sell-cat,.overlay .panel .cust-sell-nm,.overlay .panel .cust-sell-pr,.overlay .panel .cust-sell-q,.overlay .panel .cust-sell-paid,.overlay .panel .cust-sell-total,.overlay .panel .cust-sell-total b,.overlay .panel .cust-fl,.overlay .panel .cust-fi,.overlay .panel .inv-q,.overlay .panel .lc-suggest-a,.overlay .panel .lc-suggest-w,.overlay .panel .lc-dealcard .cx-deal-r,.overlay .panel .lc-dealcard .cx-deal-r b,.overlay .panel .lc-dealcard .cx-deal-r b.g,.overlay .panel .lc-dealcard .cx-deal-r .g,.overlay .panel .cx-head .cx-ph.cx-ph-1l,.overlay .panel .cx-cbtn-1l,.overlay .panel .cx-cbtn-1l small,.overlay .panel .lc-suggest-facts .lsf,.overlay .panel .lc-suggest-facts .lsf-due,.overlay .panel .cx-metab,.overlay .panel .cx-metab b,.overlay .panel .mc-ev.mb-ok,.overlay .panel .lc-ro-banner,.overlay .panel .cust-pchip[data-tip]:hover::before,.overlay .panel .cust-xsell,.overlay .panel .cust-table [data-tip]:hover::before,.overlay .panel .pf-acad-h,.overlay .panel .pf-acad-big,.overlay .panel .pf-acad-sub,.overlay .panel .pf-mockchip,.overlay .panel .pf-mockchip b,.overlay .panel .mb-fchip.on,.overlay .panel .cust-dname,.overlay .panel .cust-sub,.overlay .panel .cust-dsec,.overlay .panel .cust-dstat .v,.overlay .panel .cust-dstat .l,.overlay .panel .cust-ord-it,.overlay .panel .cust-ord-amt,.overlay .panel .cust-mut,.overlay .panel .cust-link,.overlay .panel .ci-head,.overlay .panel .ci-s-p,.overlay .panel .ci-main b,.overlay .panel .ci-sub,.overlay .panel .ci-spk,.overlay .panel .ci-spktime,.overlay .panel .ci-tg,.overlay .panel .ci-pres.on,.overlay .panel .ci-pres:hover,.overlay .panel .ci-locked,.overlay .panel .md2-slot-t b,.overlay .panel .md2-time,.overlay .panel .md2-seats,.overlay .panel .md2-stu-n,.overlay .panel .md2-stu-n small,.overlay .panel .md2-pendline,.overlay .panel .md2-ok,.overlay .panel .mb-pill.mb-pend,.overlay .panel .mc2-pend,.overlay .panel .md2-act-g,.overlay .panel .md2-mini,.overlay .panel .md2-mini:hover,.overlay .panel .md2-mini.md2-ok,.overlay .panel .md2-wait-h,.overlay .panel .md2-labline,.overlay .panel .md2-taken,.overlay .panel .md2-inv,.overlay .panel .re-main b,.overlay .panel .re-sub,.overlay .panel .re-lab,.overlay .panel .re-lab small,.overlay .panel .btn.primary,.overlay .panel .md2-ok:hover,.overlay .panel .md2-no:hover,.overlay .panel .md2-act{color:var(--txt)!important}

.overlay .panel .cx-deal,.overlay .panel .lc-dealcard{background:rgba(52,211,153,.12)!important;border-color:rgba(52,211,153,.35)!important}
.overlay .panel .cx-deal,.overlay .panel .cx-deal .cx-deal-r,.overlay .panel .lc-dealcard .cx-deal-r{color:#a7f3d0!important}
.overlay .panel .cx-deal b,.overlay .panel .lc-dealcard b,.overlay .panel .cx-deal .g,.overlay .panel .lc-dealcard .g{color:#34d399!important}
.overlay .panel .lc-suggest{background:rgba(var(--accent2),.10)!important;border-color:rgba(var(--accent2),.3)!important}
.overlay .panel .lc-suggest-h{color:rgb(var(--accent2))!important}
.overlay .panel .lc-suggest-a{color:var(--txt)!important}
.overlay .panel .lc-suggest-w{color:var(--mut)!important}
.overlay .panel .lc-suggest-facts .lsf{background:rgba(255,255,255,.05)!important;border-color:var(--bord2)!important;color:var(--mut)!important}
.overlay .panel .lc-suggest-facts .lsf-due{color:#fdba74!important;background:rgba(251,146,60,.12)!important;border-color:rgba(251,146,60,.4)!important}
.overlay .panel .note{background:rgba(251,191,36,.1)!important;border-color:rgba(251,191,36,.3)!important;color:#fcd34d!important}
.overlay .panel .pf-b2.now,.overlay .panel .pf-skill.goal{background:rgba(var(--accent),.14)!important;border-color:rgba(var(--accent),.4)!important}
.overlay .panel .cx-pd-paid,.overlay .panel .cust-paid{color:#34d399!important;background:rgba(52,211,153,.14)!important;border-color:rgba(52,211,153,.4)!important}
.overlay .panel .cx-pd-due,.overlay .panel .cust-due,.overlay .panel .cx-fact-due,.overlay .panel .mb-pill.mb-no,.overlay .panel .md2-seats.md2-full{color:#fb7185!important;background:rgba(251,113,133,.14)!important;border-color:rgba(251,113,133,.4)!important}
.overlay .panel .mb-pill.mb-pend,.overlay .panel .md2-pendline{color:#fcd34d!important;background:rgba(251,191,36,.14)!important;border-color:rgba(251,191,36,.4)!important}
.overlay .panel .lc-ro-banner{color:#fdba74!important;background:rgba(251,146,60,.12)!important;border-color:rgba(251,146,60,.35)!important}

.overlay .panel .seg-b.active{background:rgba(var(--accent),.16)!important;border-color:rgb(var(--accent))!important;color:var(--txt)!important}
.overlay .panel .qchip.active{background:var(--grad)!important;color:#04121f!important;border-color:transparent!important}

.overlay .panel .pf-ab-call,.overlay .panel .pf-actions .pf-call,.overlay .panel .pf-ab-wa,.overlay .panel .cx-cbtn-call{color:#fff!important}

.overlay .panel input,.overlay .panel select,.overlay .panel textarea{background:rgba(255,255,255,.06)!important;color:var(--txt)!important;border:1px solid var(--bord2)!important}
.overlay .panel input::placeholder,.overlay .panel textarea::placeholder{color:var(--mut)!important}
.overlay .panel input:focus,.overlay .panel select:focus,.overlay .panel textarea:focus{border-color:rgb(var(--accent))!important;box-shadow:0 0 0 3px rgba(var(--accent),.22)!important;outline:none!important}
.overlay .panel input[type="date"]{color-scheme:dark!important}
.overlay .panel select option{background:#0e1526;color:var(--txt)}
.overlay .panel .lc-next button[data-lnext],.overlay .panel .lc-next button[data-newnext]{background:rgba(255,255,255,.06)!important;color:var(--txt)!important;border:1px solid var(--bord2)!important}
.overlay .panel .lc-next button[data-lnext].on,.overlay .panel .lc-next button[data-lnext]:hover,.overlay .panel .lc-next button[data-newnext].on,.overlay .panel .lc-next button[data-newnext]:hover{background:var(--grad)!important;color:#04121f!important;border-color:transparent!important}
/* Add-Lead "Next follow-up" quick chips — permanently blue with white text (legible in the light dialog) */
.lc-next button[data-newnext],.overlay .panel .lc-next button[data-newnext]{background:#2563eb!important;color:#fff!important;border:1.5px solid #2563eb!important}
.lc-next button[data-newnext]:hover,.lc-next button[data-newnext].on,.overlay .panel .lc-next button[data-newnext]:hover,.overlay .panel .lc-next button[data-newnext].on{background:#1e3a8a!important;color:#fff!important;border-color:#1e3a8a!important}

.overlay .panel .pf-l,.overlay .panel .pf-sl,.overlay .panel .pf-b2l,.overlay .panel .pf-acad-sub,.overlay .panel .pf-acad-h,.overlay .panel .cust-dstat .l,.overlay .panel .cust-sub,.overlay .panel .lc-next-l,.overlay .panel .pf-id,.overlay .panel .pf-band-l,.overlay .panel .cx-mut,.overlay .panel .cust-mut,.overlay .panel .cx-metab,.overlay .panel .pf-msg-label{color:var(--mut)!important}

.overlay .panel .pf-band-n,.overlay .panel .pf-b2n,.overlay .panel .pf-b2.now .pf-b2n{color:rgb(var(--accent))!important}
.overlay .panel .pf-b2.goal .pf-b2n{color:var(--txt)!important}

.overlay .panel .md2-labs{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.overlay .panel .md2-lab{background:rgba(255,255,255,.045)!important;border:1px solid var(--bord)!important;border-radius:11px;padding:9px 10px}
.overlay .panel .md2-lab-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.overlay .panel .md2-lab-nm b{color:var(--txt);font-size:13px}
.overlay .panel .md2-lab-nm small{color:var(--mut);font-size:10.5px;margin-left:3px}
.overlay .panel .md2-lab-block{opacity:.55}
.overlay .panel .md2-lab-cap{font-size:10.5px;font-weight:800;color:#fdba74;background:rgba(251,146,60,.14);border-radius:999px;padding:2px 9px;white-space:nowrap}
.overlay .panel .md2-lab-blockmsg{font-size:10.5px;color:var(--mut);line-height:1.4}
.overlay .panel .md2-lab .md2-list{max-height:148px}
.overlay .panel .md2-lab .md2-add{margin-top:8px;padding:7px 10px;font-size:12.5px;width:100%}

.overlay .panel .cx-pri,.cx-pri{background:rgba(var(--accent),.2)!important;color:rgb(var(--accent))!important;border:1px solid rgba(var(--accent),.4)!important;font-weight:800!important}

.overlay .panel .cx-sec,.overlay .panel .cx-dn,.overlay .panel .lc-log-h,.overlay .panel .cx-stagew-h,.overlay .panel .cx-invw-h,.overlay .panel .lc-suggest-h{color:rgb(var(--accent))!important}
.overlay .panel .cx-stagew-h span,.overlay .panel .cx-invw-h span{color:var(--mut)!important}
.overlay .panel .cx-cbtn-call .cx-cbtn-ic{background:rgba(34,211,238,.22)!important}
.overlay .panel .cx-cbtn-wa .cx-cbtn-ic{background:rgba(52,211,153,.22)!important}
.overlay .panel .cx-cbtn-email .cx-cbtn-ic{background:rgba(167,139,250,.22)!important}
.overlay .panel .cx-cbtn{border-left:3px solid rgba(var(--accent),.5)!important}
.overlay .panel .lc-log{border-top:2px solid rgba(var(--accent),.35)!important}

@keyframes lz-fade{from{opacity:0;transform:translateY(10px)}}
.ex-pipe-bar i,.fn-bar i,.sd-bar i,.bar-fill,.acad-bar i,.att-bar i,.mp-bar i,.pf-bar i{transform-origin:left;animation:lz-grow .9s cubic-bezier(.2,.9,.3,1)}
.rv-ring-fg{animation:rvdraw 1.15s cubic-bezier(.2,.9,.3,1) both}
.eval-fig svg,.pf-chart svg,.rv-chart svg,.sd-chart svg,.tw-cal,.ex-card svg{animation:lz-fade .6s ease both}
@media(prefers-reduced-motion:reduce){.ex-pipe-bar i,.fn-bar i,.rv-ring-fg,.eval-fig svg,.pf-chart svg{animation:none!important}}

.overlay .panel:has(.ivb){width:96vw;max-width:1080px;max-height:92vh;overflow-y:auto}
.ivb{min-height:54vh}
.ivb-head,.ivb-row,.ivb-totrow{display:grid;grid-template-columns:1fr 100px 48px 76px 64px 96px 30px;gap:8px;align-items:center}
.ivb-table{border:1px solid var(--bord);border-radius:12px;overflow:hidden;background:var(--glass)}
.ivb-head{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);font-weight:800;background:rgba(var(--accent),.07);padding:9px 10px;border-bottom:1px solid var(--bord);margin:0}
.ivb-head span{text-align:center}
.ivb-head span:first-child{text-align:left}
.ivb-rows{display:flex;flex-direction:column;gap:0}
.ivb-row{padding:7px 10px;border-bottom:1px solid var(--bord2)}
.ivb-rows .ivb-row:nth-child(even){background:var(--glass-05)}
.ivb-row input{width:100%}
.ivb-row input:disabled{opacity:.35;cursor:not-allowed}
.ivb-lt{font-weight:700;font-size:13px;color:var(--txt);border:1px solid var(--bord2);border-radius:9px;background:var(--glass-05);padding:8px;min-height:38px;display:flex;align-items:center;justify-content:center;text-align:center}
.ivb-row input,.ivb-row select,.ivb-row .ivb-name{font-size:13px}
.ivb-rm,.ivb-srm{width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:var(--mut);cursor:pointer;font-size:13px;line-height:1;display:inline-flex;align-items:center;justify-content:center;transition:background .12s ease,color .12s ease,transform .12s ease}
.ivb-rm:hover,.ivb-srm:hover{background:rgba(251,113,133,.15);color:var(--bad);transform:scale(1.08)}
.ivb-rm:active,.ivb-srm:active{transform:scale(.94)}
.ivb-add{margin:0;width:100%;border:1.5px dashed var(--bord2);border-left:0;border-right:0;border-radius:0;background:transparent;color:var(--mut);font-weight:700}
.ivb-add:hover{border-color:rgba(var(--accent),.55);color:rgb(var(--accent));background:rgba(var(--accent),.05)}
.ivb-lower{display:block;margin-top:14px}
.ivb-lower>*{min-width:0}
.ivb-left{min-width:0;display:flex;flex-direction:column}
.ivb-notes label{font-size:12px;color:var(--mut);font-weight:700;display:block;margin-bottom:5px}
.ivb-notes textarea{width:100%;box-sizing:border-box;max-width:100%;min-width:0;resize:vertical;display:block}
.ivb-totrows{border-top:1px solid var(--bord);padding:8px 10px 10px}
.ivb-totrow{padding:4px 0}
.ivb-totlab{grid-column:1/6;text-align:right;color:var(--mut);font-weight:600;font-size:12px}
.ivb-totval{grid-column:6/7;text-align:right;color:var(--txt);font-weight:700;font-size:12.5px}
.ivb-totrow.ivb-grand{border-top:1px solid var(--bord2);margin-top:6px;padding-top:10px}
.ivb-totrow.ivb-grand .ivb-totval{color:rgb(var(--accent));font-size:14px;font-weight:800;letter-spacing:-.2px}
.ivb-totrow.ivb-grand .ivb-totlab{font-size:12.5px;color:var(--txt)}
.ivb-gen{min-width:240px;margin:0}
.ivb-pay{margin-top:14px;background:var(--glass);border:1px solid var(--bord);border-radius:14px;padding:13px 14px}
.ivb-pay-h{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;font-weight:800;color:var(--mut);margin-bottom:10px}
.ivb-pay-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ivb-pay-row input{width:130px}
.ivb-pay-row label{font-size:12px;color:var(--mut);font-weight:700}
.ivb-bal{color:rgb(var(--accent));font-weight:800;margin-left:auto}
.ivb-sched-h{display:flex;justify-content:space-between;align-items:center;font-weight:800;color:var(--txt);margin:14px 0 8px;font-size:13px}
.ivb-sched{display:flex;flex-direction:column;gap:7px}
.ivb-srow{display:grid;grid-template-columns:150px 120px 1fr 30px;gap:7px;align-items:center}
.ivb-schedwarn{color:var(--warn-2);font-size:12px;margin-top:8px;display:none}
@media(max-width:820px){.ivb-head,.ivb-row,.ivb-totrow{grid-template-columns:1fr 62px 38px 56px 48px 64px 24px;gap:6px}.ivb-srow{grid-template-columns:1fr 90px 1fr 28px}.ivb-foot{flex-direction:column-reverse;align-items:stretch}.ivb-foot .btn{width:100%}.ivb-cli{grid-template-columns:1fr}}
/* invoice-builder sectioned restyle */
.ivb-sec{margin:0 0 18px;padding-top:14px;border-top:1px solid var(--bord)}
.ivb-sec.ivb-sec1{border-top:0;padding-top:2px;margin-bottom:14px}
.ivb-sec-h{font:800 13px/1.2 var(--font-display);color:var(--txt);letter-spacing:.02em;text-transform:uppercase;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.ivb-sec-h::before{content:"";width:3px;height:14px;border-radius:2px;background:linear-gradient(180deg,#0ea5e9,rgb(var(--accent)))}
.ivb-left .ivb-sec-h{margin-top:16px}
.ivb-left .ivb-sec-h:first-child{margin-top:0}
.ivb-party{margin:-2px 0 2px;font-size:12.5px;color:var(--mut);display:flex;flex-wrap:wrap;gap:4px 16px}
.ivb-party-n{color:var(--txt);font-weight:800}
.ivb-cli{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px 10px;margin:2px 0 12px}
.ivb-cli+.ivb-cli{margin-top:2px}
.ivb-cli select{padding-right:6px}
.ivb-cli-f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--mut)}
.ivb-foot{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:20px;padding-top:14px;border-top:1px solid var(--bord)}
.ivb-cancel{background:transparent;border-color:transparent;color:var(--mut);font-weight:700}
.ivb-cancel:hover{background:var(--glass-05);color:var(--txt);transform:none}
.ivb-foot .btn.primary{background:linear-gradient(120deg,#0ea5e9,rgb(var(--accent)))}
/* v851 — quiet secondary "Save as draft" — glass border, muted text, visually below the gradient Generate */
.ivb-savedraft{background:var(--glass-05);border:1px solid var(--bord2);color:var(--mut);font-weight:700}
.ivb-savedraft:hover{border-color:#f0c98a;color:#b45309;background:#fffdf7;transform:none}
.ivb-preview{background:var(--glass-05);border:1px solid rgba(var(--accent),.4);color:rgb(var(--accent));font-weight:700}
.ivb-preview:hover{border-color:rgb(var(--accent));background:rgba(var(--accent),.09);transform:none}
.ivb input:not([type=checkbox]),.ivb select,.ivb textarea{border:1px solid var(--bord2);border-radius:10px;background:var(--glass-05);color:var(--txt);font:inherit;padding:8px 10px;min-height:38px}
.ivb textarea{min-height:70px}
.ivb input:focus,.ivb select:focus,.ivb textarea:focus{outline:none;border-color:rgba(var(--accent),.7);box-shadow:0 0 0 3px rgba(var(--accent),.14)}
html[data-theme="light"] .ivb input:not([type=checkbox]),html[data-theme="light"] .ivb select,html[data-theme="light"] .ivb textarea{background:#fff}

.tb-search{display:inline-flex;align-items:center;gap:9px;background:var(--glass);border:1px solid var(--bord);border-radius:12px;padding:9px 14px;color:var(--mut);font-size:13px;min-width:260px;font-family:inherit;cursor:pointer;transition:border-color .15s,color .15s}
.tb-search:hover{border-color:var(--vio);color:var(--txt)}
.tb-search>span{flex:1;text-align:left;white-space:nowrap}
.tb-search kbd{font-size:10px;font-weight:700;background:rgba(127,127,127,.16);border-radius:6px;padding:2px 6px;color:var(--mut);font-family:inherit}
/* v649 — the always-present "+ New Lead" / "+ Refer a student" action, in the shared topbar so it's
   one tap from any portal, any view. Filled accent so it reads as the primary quick-action. */
.tb-newlead{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:0;border-radius:12px;padding:9px 15px;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer;color:#fff;background:linear-gradient(135deg,rgb(var(--accent)),var(--vio));box-shadow:0 2px 10px rgba(var(--accent),.25);transition:transform .12s cubic-bezier(.22,1,.36,1),box-shadow .15s,filter .15s}
.tb-newlead:hover{filter:brightness(1.06);box-shadow:0 4px 16px rgba(var(--accent),.34);transform:translateY(-1px)}
.tb-newlead:active{transform:translateY(0)}
.tb-newlead.tb-refer{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 2px 10px rgba(34,197,94,.28)}
.tb-newlead.tb-refer:hover{box-shadow:0 4px 16px rgba(34,197,94,.36)}
/* 25 Sep (ANik) — the way back from another Cloud: quiet outline so it never competes with ＋ Refer a client */
.tb-newlead.tb-exitadmin{background:transparent;color:inherit;border:1px solid rgba(var(--accent),.5);box-shadow:none;margin-right:8px}
.tb-newlead.tb-exitadmin:hover{background:rgba(var(--accent),.08);box-shadow:none}
/* match the Refer-a-friend button height to the profile-picture (avatar, 42px) beside it */
.top-left .tb-newlead.tb-refer{ height:42px; box-sizing:border-box; padding-top:0; padding-bottom:0 }
@media(max-width:640px){ .tb-newlead{padding:9px 12px;font-size:0} .tb-newlead::before{content:"＋";font-size:16px} }
.tb-ic-svg{width:18px;height:18px;flex:0 0 auto}
.tb-icon .tb-ic-svg{width:19px;height:19px}
.sf-beta{font-size:9px;font-weight:800;color:var(--warn);background:rgba(251,191,36,.16);border-radius:5px;padding:1px 4px;vertical-align:super;margin-left:3px;letter-spacing:.02em;line-height:1}
@media(max-width:900px){.tb-search{min-width:0}.tb-search>span,.tb-search kbd{display:none}}

.seg-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.seg-tag{font-size:9.5px;font-weight:800;border-radius:6px;padding:1px 6px;white-space:nowrap}
.t-vip{background:rgba(167,139,250,.18);color:var(--viol-2)}
.t-rep{background:rgba(34,211,238,.16);color:#67e8f9}
.t-new{background:rgba(52,211,153,.16);color:var(--ok-2)}
.t-risk{background:rgba(251,191,36,.16);color:var(--warn-2)}
.t-due{background:rgba(251,113,133,.16);color:var(--bad-3)}

.cx-kan{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:start;margin-top:10px}
.cx-kcol{background:var(--glass);border:1px solid var(--bord);border-radius:16px;padding:12px;min-height:150px}
.cx-kh{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);margin-bottom:11px}
.cx-kh span:last-child{background:rgba(127,127,127,.16);border-radius:7px;padding:1px 8px;color:var(--txt)}
.cx-kc{background:var(--glass2);border:1px solid var(--bord);border-radius:13px;padding:11px 12px;margin-bottom:9px;cursor:pointer;transition:transform .15s,border-color .15s}
.cx-kc:hover{transform:translateY(-2px);border-color:var(--vio)}
.cx-kc>b{font-size:13.5px;font-weight:700;color:var(--txt)}
.cx-kc-m{font-size:11.5px;color:var(--mut);margin:3px 0 8px}
.cx-kc-f{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cx-kc-v{font-weight:800;font-size:12.5px;color:var(--ok)}
@media(max-width:1100px){.cx-kan{grid-template-columns:repeat(2,1fr)}}

.overlay .panel .cx-cbtn-call{background:#0ea5e9!important;border:0!important}
.overlay .panel .cx-cbtn-wa{background:#25d366!important;border:0!important}
.overlay .panel .cx-cbtn-call .cx-cbtn-1l,.overlay .panel .cx-cbtn-call .cx-cbtn-1l small,.overlay .panel .cx-cbtn-wa .cx-cbtn-1l,.overlay .panel .cx-cbtn-wa .cx-cbtn-1l small{color:#fff!important}
.overlay .panel .cx-cbtn-call .cx-cbtn-ic,.overlay .panel .cx-cbtn-wa .cx-cbtn-ic{background:rgba(255,255,255,.22)!important}

.sf-tab-lock{opacity:.72}
.sf-tab-lock.on{opacity:1}
.sf-soon{font-size:9.5px;font-weight:800;letter-spacing:.02em;background:rgba(251,191,36,.16);color:var(--warn-2);border:1px solid rgba(251,191,36,.32);border-radius:999px;padding:1px 6px;margin-left:5px;vertical-align:middle;text-transform:uppercase}
.soon{max-width:640px;margin:40px auto;text-align:center;background:var(--glass);border:1px solid var(--bord);border-radius:24px;padding:44px 40px 40px}
.soon-badge{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--warn-2);background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.28);border-radius:999px;padding:5px 14px;margin-bottom:18px}
.soon-ic{font-size:56px;line-height:1;margin-bottom:12px;filter:drop-shadow(0 8px 24px rgba(var(--accent),.35))}
.soon-h{font-size:30px;font-weight:800;margin:0 0 12px;background:linear-gradient(120deg,rgb(var(--accent)),rgb(var(--accent2)));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.soon-h .sf-beta{-webkit-text-fill-color:var(--warn-2);font-size:14px}
.soon-p{color:var(--mut);font-size:14.5px;line-height:1.6;max-width:520px;margin:0 auto 22px}
.soon-feats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:24px}
.soon-feat{font-size:12.5px;font-weight:700;color:var(--txt);background:var(--glass2);border:1px solid var(--bord);border-radius:11px;padding:9px 14px}
.soon-note{color:var(--mut);font-size:13px;line-height:1.55;background:rgba(var(--accent),.06);border:1px solid rgba(var(--accent),.16);border-radius:12px;padding:12px 16px;margin-bottom:22px}
.soon-note b{color:rgb(var(--accent))}
.soon-cta{min-width:230px}

.mba{margin:6px 0}
.mba-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:14px}
.mba-kpi{display:flex;align-items:center;gap:12px;background:var(--glass);border:1px solid var(--bord);border-radius:15px;padding:14px 16px;transition:transform .15s,border-color .15s}
.mba-kpi:hover{transform:translateY(-2px);border-color:rgba(var(--accent),.4)}
.mba-kpi-ic{font-size:21px;line-height:1;width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:var(--glass2);border-radius:12px;flex:0 0 auto}
.mba-kpi-v{font-size:25px;font-weight:800;color:var(--txt);line-height:1}
.mba-kpi-l{font-size:11.5px;color:var(--mut);font-weight:600;margin-top:3px}
.mba-kpi.is-act{border-color:rgba(251,191,36,.4);background:linear-gradient(180deg,rgba(251,191,36,.08),transparent)}
.mba-kpi.is-act .mba-kpi-ic{background:rgba(251,191,36,.18)}
.mba-kpi.is-warn{border-color:rgba(251,113,133,.36);background:linear-gradient(180deg,rgba(251,113,133,.08),transparent)}
.mba-kpi.is-warn .mba-kpi-ic{background:rgba(251,113,133,.18)}
.mba-grid{display:grid;grid-template-columns:1.15fr .95fr 1.5fr;gap:14px;margin-bottom:14px}
.mba-c{padding:16px 18px}
.mba-h{font-size:13px;font-weight:800;color:var(--txt);margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mba-hn{font-size:11px;font-weight:700;color:var(--mut)}
.mba-track{display:flex;height:16px;border-radius:8px;overflow:hidden;gap:2px;background:var(--glass)}
.mba-seg{display:block;min-width:3px;border-radius:3px;transition:flex .6s cubic-bezier(.2,.8,.2,1)}
.s-aw{background:var(--warn)}.s-up{background:rgb(var(--accent))}.s-gr{background:rgb(var(--accent2))}.s-pb{background:var(--ok)}.s-ns{background:var(--bad)}
.mba-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:14px}
.mba-lg{font-size:11.5px;color:var(--mut);display:flex;align-items:center;gap:6px}
.mba-lg i{width:9px;height:9px;border-radius:3px;display:inline-block}
.mba-lg b{color:var(--txt);font-weight:800}
.mba-rings{display:flex;justify-content:space-around;gap:10px}
.mba-ring{text-align:center;flex:1}
.mba-ring-s{position:relative;width:76px;height:76px;margin:0 auto}
.mba-ring-s svg{width:76px;height:76px;transform:rotate(-90deg)}
.mba-rt{fill:none;stroke:rgba(255,255,255,.08);stroke-width:7}
.mba-rv{fill:none;stroke-width:7;stroke-linecap:round;animation:mbaRing 1s cubic-bezier(.2,.8,.2,1) both}
.mba-rv.r-g{stroke:var(--ok)}.mba-rv.r-a{stroke:rgb(var(--accent))}.mba-rv.r-w{stroke:var(--warn)}
@keyframes mbaRing{from{stroke-dasharray:0 188.5}}
.mba-ring-c{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:800;color:var(--txt)}
.mba-ring-c small{font-size:10px;font-weight:700;color:var(--mut);margin-left:1px}
.mba-ring-l{font-size:11px;color:var(--mut);font-weight:600;margin-top:7px}
.mba-chart{display:flex;align-items:flex-end;gap:5px;height:96px;padding-top:6px}
.mba-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;position:relative}
.mba-bar i{width:100%;max-width:22px;height:var(--h);min-height:3px;background:linear-gradient(180deg,rgb(var(--accent)),rgba(var(--accent),.45));border-radius:5px 5px 3px 3px;animation:mbaGrow .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*28ms)}
.mba-bar.is-0 i{background:var(--glass-06)}
.mba-bar.is-today i{background:linear-gradient(180deg,rgb(var(--accent2)),rgba(var(--accent2),.5));box-shadow:0 0 0 2px rgba(var(--accent2),.3)}
@keyframes mbaGrow{from{height:0}}
.mba-bar em{font-size:10px;font-weight:800;color:var(--txt);font-style:normal;margin-bottom:3px;min-height:12px}
.mba-bar.is-0 em{color:transparent}
.mba-bl{font-size:9.5px;color:var(--mut);margin-top:5px;font-weight:600}
.mba-bar.is-today .mba-bl{color:rgb(var(--accent2));font-weight:800}
.mba-foot{display:grid;grid-template-columns:1.4fr 1fr;gap:14px}
.mba-foot-blk{background:var(--glass);border:1px solid var(--bord);border-radius:14px;padding:12px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.mba-foot-t{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);flex:0 0 auto}
.mba-mixwrap{display:flex;gap:16px;flex:1;flex-wrap:wrap}
.mba-mix{display:flex;align-items:center;gap:7px;min-width:120px;flex:1}
.mba-mix-l{font-size:12px;font-weight:800;color:var(--txt);width:46px;flex:0 0 auto}
.mba-mix-tr{flex:1;height:7px;border-radius:5px;background:var(--glass-06);overflow:hidden;min-width:40px}
.mba-mix-tr i{display:block;height:100%;background:linear-gradient(90deg,rgb(var(--accent)),rgb(var(--accent2)));border-radius:5px}
.mba-mix b{font-size:12px;font-weight:800;color:var(--txt)}
.mba-foot-split{gap:16px}
.mba-dv{font-size:12.5px;color:var(--mut)}
.mba-dv b{color:var(--txt);font-weight:800;margin-left:2px}
.mba-fresh{margin-left:auto;font-size:11px;color:var(--ok);font-weight:700}
@media(max-width:1100px){.mba-kpis{grid-template-columns:repeat(2,1fr)}.mba-grid{grid-template-columns:1fr}.mba-foot{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.mba-seg{transition:none}.mba-rv,.mba-bar i{animation:none}}

.pf-rec-earn{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.pf-earn-c{border-radius:12px;padding:11px 13px;border:1px solid var(--bord)}
.pf-earn-rev{background:rgba(var(--accent),.1);border-color:rgba(var(--accent),.26)}
.pf-earn-comm{background:rgba(52,211,153,.1);border-color:rgba(52,211,153,.28)}
.pf-earn-v{font-size:21px;font-weight:800;line-height:1}
.pf-earn-rev .pf-earn-v{color:rgb(var(--accent))}
.pf-earn-comm .pf-earn-v{color:var(--ok)}
.pf-earn-l{font-size:11px;color:var(--mut);font-weight:600;margin-top:4px}

.overlay .panel .ma-sess{font-size:14.5px;font-weight:700;color:var(--txt);margin:2px 0 1px}

.overlay .panel .cx-name-row .cx-temp{border:1px solid transparent}
.overlay .panel .cx-name-row .cx-temp.cx-Hot{background:rgba(251,113,133,.2)!important;color:#fda4af!important;border-color:rgba(251,113,133,.45)!important}
.overlay .panel .cx-name-row .cx-temp.cx-Warm{background:rgba(251,191,36,.2)!important;color:#fcd34d!important;border-color:rgba(251,191,36,.45)!important}
.overlay .panel .cx-name-row .cx-temp.cx-Cold{background:rgba(56,189,248,.2)!important;color:#7dd3fc!important;border-color:rgba(56,189,248,.5)!important}

.overlay .panel .cx-flow .cx-sp{background:rgba(255,255,255,.04)!important;border:1px solid var(--bord)!important;color:var(--mut)!important;font-weight:700!important;transition:transform .12s,background .15s,border-color .15s}
.overlay .panel .cx-flow .cx-sp:hover{border-color:rgba(var(--accent),.5)!important;color:var(--txt)!important;transform:translateY(-1px)}
.overlay .panel .cx-flow .cx-sp.done{background:rgba(var(--accent),.14)!important;border:1px solid rgba(var(--accent),.36)!important;color:rgb(var(--accent))!important;font-weight:800!important}
.overlay .panel .cx-flow .cx-sp.on{background:var(--grad)!important;border:0!important;color:#04121f!important;font-weight:900!important;box-shadow:0 4px 16px rgba(var(--accent),.45)!important}
.overlay .panel .cx-flow .cx-sp.on.lost{background:linear-gradient(90deg,#fb7185,#f59e0b)!important;color:#3a0a12!important;box-shadow:0 4px 16px rgba(251,113,133,.45)!important}

.overlay .panel .md2-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.overlay .panel .md2-stu-n small{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.md2-stu-n small .md2-lab{display:inline-block;white-space:nowrap;color:rgb(var(--accent));font-weight:800;font-size:10px;background:rgba(var(--accent),.14);border:1px solid rgba(var(--accent),.3);border-radius:6px;padding:1px 7px}

.stu-table .stu-due{display:inline-block;white-space:nowrap;font-weight:800;font-size:12.5px;font-family:inherit;color:var(--bad-3);background:rgba(251,113,133,.14);border:1px solid rgba(251,113,133,.34);border-radius:8px;padding:3px 9px;cursor:pointer;transition:background .15s,transform .12s}
.stu-table .stu-due:hover{background:rgba(251,113,133,.26);transform:translateY(-1px)}
.stu-table .stu-due-ok{font-size:12px;font-weight:600;color:var(--ok-2);opacity:.75}

.stu-table th.stu-sortable{cursor:pointer;user-select:none;white-space:nowrap;transition:color .12s}
.stu-table th.stu-sortable:hover{color:var(--txt)}
.stu-table th.stu-sortable.on{color:rgb(var(--accent))}

/* v1.285 — Enrolled Students COMPACT 7-column row (design: out/students-compact-mockup.html).
   Tokens only; every one exists in both themes. .pp-toggle is scoped `.overlay .panel` (the v1.232
   pf-tile trap), so the page-level toggle gets its own class, .stu-tg. */
.stu-table.compact{table-layout:fixed}
.stu-table.compact td{padding:9px 12px;vertical-align:middle}
.stu-table .th-sub{font-weight:500;letter-spacing:0;text-transform:none;color:var(--mut)}
.stu-table .chips{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.stu-table .num{font-variant-numeric:tabular-nums}
.stu-table .small{font-size:12px;color:var(--mut)}
.stu-ct{font-size:12.5px;margin-top:3px;display:flex;gap:6px;align-items:center;white-space:nowrap}
.stu-ct a{color:var(--txt);text-decoration:none}
.stu-ic{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;border:1px solid var(--bord2);font-size:11px;color:var(--mut);background:var(--glass2);text-decoration:none}
.stu-ic.wa{color:#3ddc84;border-color:rgba(37,211,102,.4)}
.stu-tg{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;cursor:pointer;font:inherit}
.stu-tg .knob{width:34px;height:20px;border-radius:999px;background:var(--bord2);position:relative;transition:.2s}
.stu-tg .knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:.2s}
.stu-tg.on .knob{background:var(--ok-2)} .stu-tg.on .knob::after{left:16px}
.stu-tg .tl{font-size:11px;font-weight:700;color:var(--mut)} .stu-tg.on .tl{color:var(--ok-2)}
.stu-tg[disabled]{cursor:default;opacity:.6}
.stu-exp{display:block;margin-top:3px;color:var(--mut);border-bottom:1px dashed currentColor;width:max-content;cursor:pointer;text-decoration:none}
.stu-exp:hover{color:rgb(var(--accent))}
.stu-table .row-acts .btn.small{padding:0 7px;min-width:28px;height:28px}

.ph-hint{font-size:12px;margin-top:6px;min-height:15px;line-height:1.4}
.ph-hint-dup{color:var(--bad-2);font-weight:600}
.ph-hint-dup b{color:#fecaca}
.ph-hint-ok{color:var(--ok-2);font-weight:600}
.ph-hint-wait{color:var(--mut)}
/* X12 one phone field (P-X, X-18; plan-X §2.12): the base skin of phoneFieldHTML on any screen (the sign-up shell has no Lumen);
   lumen.css re-skins .px-* under body.lumen. One row: country button + number box, 32 px desktop / 40 phone (--px-h; a host may set 44).
   The list opens under the button (320 x 360); on a phone it is a bottom sheet (70 vh). No flags. */
.px-field{--px-h:32px;position:relative;min-width:0}
.px-row{display:flex;gap:8px;align-items:center;position:relative;min-width:0}
.px-cc{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:var(--px-h);min-height:var(--px-h);box-sizing:border-box;padding:0 10px;border:1px solid var(--bord2);border-radius:8px;background:var(--glass2);color:var(--txt);font:500 13px/1 var(--font-ui);white-space:nowrap;cursor:pointer}
.px-cc-n{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-cc-d{flex:0 0 auto;color:var(--mut);font-variant-numeric:tabular-nums}
.px-cc svg{flex:0 0 auto;color:var(--mut)}
.px-in{flex:1 1 auto;min-width:0;width:auto;height:var(--px-h);min-height:var(--px-h);box-sizing:border-box;padding:0 10px;border:1px solid var(--bord2);border-radius:8px;background:var(--glass2);color:var(--txt);font:450 13.5px/normal var(--font-ui)}
.px-cc:focus-visible,.px-in:focus-visible,.px-q:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:1px}
.px-msg{margin-top:4px;font-size:12px;line-height:16px;color:var(--bad-2)}
.px-msg:empty{display:none}
.px-pop{position:absolute;top:calc(100% + 4px);left:0;z-index:40;width:320px;max-width:calc(100vw - 32px);max-height:360px;display:flex;flex-direction:column;box-sizing:border-box;background:var(--menu);color:var(--txt);border:1px solid var(--bord2);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.px-q-wrap{flex:0 0 auto;padding:8px;border-bottom:1px solid var(--bord)}
.px-q{display:block;width:100%;height:var(--px-h);box-sizing:border-box;padding:0 10px;border:1px solid var(--bord2);border-radius:8px;background:var(--glass2);color:var(--txt);font:450 13px/normal var(--font-ui)}
.px-list{flex:1 1 auto;min-height:0;margin:0;padding:4px;list-style:none;overflow-y:auto;overscroll-behavior:contain}
.px-opt{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 8px;border-radius:6px;cursor:pointer;font:450 13px/1.3 var(--font-ui);color:var(--txt)}
.px-o-n{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-o-d{flex:0 0 auto;color:var(--mut);font-variant-numeric:tabular-nums}
.px-o-k{flex:0 0 16px;width:16px;display:inline-flex;color:rgb(var(--accent))}
.px-opt:hover,.px-opt.px-act{background:var(--glass2)}
.px-div{height:1px;margin:4px 8px;background:var(--bord)}
.px-note{padding:8px;font-size:12px;line-height:16px;color:var(--mut)}
@media (max-width:760px){
  .px-field{--px-h:40px}
  .px-pop.px-sheet{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:1001;width:auto;max-width:none;height:70vh;max-height:70vh;border-radius:14px 14px 0 0;border-bottom:0}
  .px-scrim{position:fixed;inset:0;z-index:1000;background:var(--overlay)}
  .px-opt{min-height:44px}
}
/* X12 site swaps 1 (P-X, X-19): the hosts. Sign-up / reactivate (.sp2, no Lumen): 44 px like its own boxes. The contacts dialogs (.ask-panel,
   always a white card): 44 px and the card's own light box, dark text, on both themes. Extra-number rows: the field takes the row's room. */
.sp2 .px-field,.ask-panel .px-field,body.lumen .sp2 .px-field,body.lumen .ask-panel .px-field{--px-h:44px}
.ask-panel .px-cc,.ask-panel .px-in,body.lumen .ask-panel .px-cc,body.lumen .ask-panel .px-in{background:#fff;color:#0f172a;border:1.5px solid #94a3b8;box-shadow:none;font-size:14px}
.ask-panel .px-cc-d,.ask-panel .px-cc svg,body.lumen .ask-panel .px-cc-d,body.lumen .ask-panel .px-cc svg{color:#475569}
.ask-panel .px-msg,body.lumen .ask-panel .px-msg{color:#b42318}
.ls-d-xp>.px-field,.ct-xnum-w>.px-field{flex:1 1 auto;width:100%}
/* Classic dialogs (.overlay .panel): the panel's generic input rule makes every box --ds-ctl-h (42) tall, so the country button follows it */
body:not(.lumen) .overlay .panel :is(.cx-f,.ls-d-fld,.ls-d-xp)>.px-field{--px-h:var(--ds-ctl-h,42px)}
/* X12 site swaps 2 (P-X, X-20): the other dialog hosts (the student dialogs, Edit profile, the teacher's Add a lead, the invoice, Refer a friend)
   take the classic panel's --ds-ctl-h like their boxes. On a touch screen every staff box is 44 (the pointer:coarse rule below), so the country
   button is 44 there too: one height per row. */
body:not(.lumen) .overlay .panel .px-field{--px-h:var(--ds-ctl-h,42px)}
@media (pointer: coarse){ html body:has(.fin-side) :is(#app, #dlg) .px-field{--px-h:44px} }
/* a dialog's glass (backdrop-filter on the overlay and its panel) makes a position:fixed child fixed to the panel: while the phone's country sheet
   is open, the dialog drops it so the sheet sits on the screen's bottom edge, full width */
:is(.overlay, .overlay .panel, .tw-overlay, .tw-panel):has(.px-sheet){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.ph-hint-len{color:var(--mut)}   /* v832 — country-aware "N of 11 digits…" length coaching (muted; red uses .ph-hint-dup) */

.bb{margin:2px 0}
.bb-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 18px}
.bb-chip{background:var(--glass);border:1px solid var(--bord);color:var(--mut);border-radius:999px;padding:7px 14px;font-size:12.5px;font-weight:700;cursor:pointer;transition:transform .12s,border-color .15s,color .15s}
.bb-chip:hover{transform:translateY(-1px);color:var(--txt);border-color:rgba(var(--accent),.5)}
.bb-chip.on{background:var(--grad);color:#04121f;border:0;box-shadow:0 4px 16px rgba(var(--accent),.4)}
.bb-chip b{opacity:.75;margin-left:2px}
.bb-chip.on b{opacity:1}
.bb-group{margin-bottom:22px}
.bb-group-h{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);margin:0 0 12px;display:flex;align-items:center;gap:8px}
.bb-group-h span{background:rgba(var(--accent),.16);color:rgb(var(--accent));border-radius:7px;padding:1px 9px;font-size:11px}
.bb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(325px,1fr));gap:14px}
.bb-card{background:var(--glass);border:1px solid var(--bord);border-radius:18px;padding:16px 17px;display:flex;flex-direction:column;gap:11px;position:relative;overflow:hidden;transition:transform .16s,border-color .16s,box-shadow .16s;animation:bbRise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*45ms)}
.bb-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--grad);opacity:.85}
.bb-card:hover{transform:translateY(-3px);border-color:rgba(var(--accent),.45);box-shadow:0 0 0 1px rgba(var(--accent),.14)}
@keyframes bbRise{from{opacity:0;transform:translateY(12px)}}
.bb-card-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.bb-card-t b{font-size:15px;font-weight:800;color:var(--txt);line-height:1.25;display:block}
.bb-card-m{display:flex;align-items:center;gap:6px;margin-top:5px}
.bb-pill{font-size:10.5px;font-weight:800;letter-spacing:.03em;background:rgba(var(--accent),.14);color:rgb(var(--accent));border:1px solid rgba(var(--accent),.28);border-radius:6px;padding:1px 7px}
.bb-mode{font-size:11px;font-weight:700;color:var(--mut)}
.bb-mode-online{color:rgb(var(--accent))}
.bb-health{flex:0 0 auto;font-size:11px;font-weight:800;border-radius:999px;padding:3px 10px;white-space:nowrap;border:1px solid transparent}
.bb-health.bh-open{background:rgba(52,211,153,.16);color:var(--ok-2);border-color:rgba(52,211,153,.34)}
.bb-health.bh-fill{background:rgba(251,191,36,.16);color:var(--warn-2);border-color:rgba(251,191,36,.34)}
.bb-health.bh-full{background:rgba(251,113,133,.16);color:var(--bad-3);border-color:rgba(251,113,133,.34)}
.bb-meta{font-size:12px;color:var(--mut);line-height:1.5}
.bb-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--mut)}
.bb-line-l b{color:var(--txt)}
.bb-line-r{font-weight:800;color:rgb(var(--accent))}
.bb-bar{height:7px;border-radius:5px;background:var(--glass-06);overflow:hidden}
.bb-bar i{display:block;height:100%;width:var(--w);background:var(--grad);border-radius:5px;animation:bbGrow .85s cubic-bezier(.2,.8,.2,1) both}
@keyframes bbGrow{from{width:0}}
.bb-seatline{display:flex;flex-direction:column;gap:5px}
.bb-seat-meter{height:9px;border-radius:6px;background:var(--glass-06);overflow:hidden}
.bb-seat-meter i{display:block;height:100%;width:var(--w);border-radius:6px;animation:bbGrow .85s cubic-bezier(.2,.8,.2,1) both}
.bb-seat-meter i.bh-open{background:linear-gradient(90deg,var(--ok),#22d3ee)}
.bb-seat-meter i.bh-fill{background:linear-gradient(90deg,var(--warn),var(--bad))}
.bb-seat-meter i.bh-full{background:linear-gradient(90deg,var(--bad),#f43f5e)}
.bb-seat-t{font-size:12px;color:var(--mut)}
.bb-seat-t b{color:var(--txt);font-weight:800}
.bb-free{color:var(--ok-2);font-weight:700}
.bb-nofree{color:var(--bad-3);font-weight:700}
.bb-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px;flex-wrap:wrap}
.bb-intake{font-size:11.5px;color:var(--mut);flex:1;min-width:120px}
.bb-intake b{color:var(--txt)}
.bb-intake-now{color:var(--ok-2);font-weight:700}
.bb-act{flex:0 0 auto;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.bb-card,.bb-bar i,.bb-seat-meter i{animation:none}}

.tw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-top:14px}
.tw-card{background:var(--glass);border:1px solid var(--bord);border-radius:18px;padding:16px 17px;display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden;transition:transform .16s,border-color .16s,box-shadow .16s;animation:bbRise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*45ms)}
.tw-card::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--grad);opacity:.85}
.tw-card:hover{transform:translateY(-3px);border-color:rgba(var(--accent),.45);box-shadow:0 0 0 1px rgba(var(--accent),.14)}
.tw-card-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tw-card-t b{font-size:15px;font-weight:800;color:var(--txt);line-height:1.25;display:block}
.tw-card-m{display:flex;align-items:center;gap:6px;margin-top:5px;flex-wrap:wrap}
.tw-pill{font-size:10.5px;font-weight:800;letter-spacing:.03em;background:rgba(var(--accent),.14);color:rgb(var(--accent));border:1px solid rgba(var(--accent),.28);border-radius:6px;padding:1px 7px}
.tw-room{font-size:11px;font-weight:700;color:var(--mut)}
.tw-roster{flex:0 0 auto;font-size:11.5px;font-weight:800;color:var(--txt);background:var(--glass2);border:1px solid var(--bord);border-radius:999px;padding:3px 10px;white-space:nowrap}
.tw-meta{font-size:12px;color:var(--mut);line-height:1.5}
.tw-mod{font-size:13px;color:var(--txt)}.tw-mod b{color:var(--info-2)}
.tw-final{font-size:10px;font-weight:800;color:var(--warn-2);background:rgba(251,191,36,.16);border:1px solid rgba(251,191,36,.34);border-radius:999px;padding:1px 7px;margin-left:2px}
.tw-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--mut)}
.tw-line-l{font-weight:700;color:var(--txt)}
.tw-line-r{font-weight:800;color:rgb(var(--accent))}
.tw-bar{height:7px;border-radius:5px;background:var(--glass-06);overflow:hidden}
.tw-bar i{display:block;height:100%;width:var(--w);background:var(--grad);border-radius:5px;animation:bbGrow .85s cubic-bezier(.2,.8,.2,1) both}
.tw-acts{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}
.tw-act{white-space:nowrap}
@media(prefers-reduced-motion:reduce){.tw-card,.tw-bar i{animation:none}}

.fx2{position:relative;isolation:isolate}
.fx2-chair{padding-bottom:30px}
@keyframes fxIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes fxFloat{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(40px,-30px) scale(1.12)}66%{transform:translate(-30px,24px) scale(.94)}}
@keyframes fxHue{0%,100%{filter:hue-rotate(0deg)}50%{filter:hue-rotate(28deg)}}
@keyframes fxDash{from{stroke-dashoffset:1800}to{stroke-dashoffset:0}}
.fx-orbs{position:absolute;inset:-40px -20px;overflow:hidden;z-index:-1;pointer-events:none;border-radius:24px}
.fx-orbs i{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5;animation:fxFloat 16s ease-in-out infinite}
.fx-orbs i:nth-child(1){width:420px;height:420px;left:-90px;top:-120px;background:radial-gradient(circle,#1d4ed8 0%,transparent 70%)}
.fx-orbs i:nth-child(2){width:380px;height:380px;right:-70px;top:60px;background:radial-gradient(circle,#7c3aed 0%,transparent 70%);animation-delay:-6s}
.fx-orbs i:nth-child(3){width:300px;height:300px;left:38%;bottom:-140px;background:radial-gradient(circle,#0e7490 0%,transparent 70%);animation-delay:-11s}
.fx-topbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:2px 0 14px;animation:fxIn .5s ease both}
.fx-fresh{font-size:11.5px;color:var(--mut-9);margin-left:auto}
.fx-hero{display:flex;gap:26px;flex-wrap:wrap;padding:26px 28px;border-radius:20px;background:linear-gradient(135deg,rgba(37,99,235,.16),rgba(124,58,237,.13) 55%,rgba(6,182,212,.1));border:1px solid var(--glass-12);backdrop-filter:blur(18px);box-shadow:0 18px 50px rgba(2,6,23,.45),inset 0 1px 0 var(--glass-08);animation:fxIn .55s .05s ease both}
.fx-hero-l{flex:1 1 420px;min-width:300px}
.fx-hero-r{display:flex;flex-direction:column;align-items:center;gap:10px;flex:0 1 300px;justify-content:center}
.fx-eyebrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:700 11px/1 'Inter',sans-serif;letter-spacing:1.6px;color:var(--mut-3)}
.fx-big{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:14px 0 10px}
.fx-big .fx-num{font:800 56px/1 'Sora',sans-serif;letter-spacing:-2px;background:linear-gradient(100deg,#e2ecff,var(--info-3) 50%,var(--viol-2));-webkit-background-clip:text;background-clip:text;color:transparent;animation:fxHue 9s ease-in-out infinite}
.fx-big-tag{font:700 14px/1.2 'Inter',sans-serif}
.fx-sent{font-size:14.5px;line-height:1.65;color:#c7d2ea;max-width:560px}
.fx-sent b{color:#fff}
.fx-year{margin-top:12px;font-size:13px;color:var(--mut-3);padding-top:10px;border-top:1px solid var(--glass-08)}
.fx-scen{display:inline-flex;background:var(--glass-06);border:1px solid var(--glass-10);border-radius:999px;padding:2px}
.fx-scen-b{border:0;background:transparent;color:var(--mut-3);font:600 11px/1 'Inter',sans-serif;padding:6px 12px;border-radius:999px;cursor:pointer;letter-spacing:.4px;transition:.2s}
.fx-scen-b.on{background:var(--glass4);color:#fff}
.fx-ring{width:128px;height:128px;border-radius:50%;background:conic-gradient(var(--rc) calc(var(--p)*1%),var(--glass-07) 0);display:grid;place-items:center;box-shadow:0 0 34px color-mix(in srgb,var(--rc) 32%,transparent);transition:background .6s}
.fx-ring-in{width:96px;height:96px;border-radius:50%;background:#0b1226;display:grid;place-items:center;text-align:center}
.fx-ring-in b{font:800 26px/1 'Sora',sans-serif}
.fx-ring-in small{display:block;font-size:10px;color:var(--mut-9);letter-spacing:1px;text-transform:uppercase}
.fx-verdict{font:800 17px/1 'Sora',sans-serif;letter-spacing:-.2px}
.fx-chks{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:320px}
.fx-chk{font:600 11px/1 'Inter',sans-serif;padding:6px 10px;border-radius:999px;cursor:default}
.fx-chk.ok{background:rgba(52,211,153,.13);color:var(--ok-2);border:1px solid rgba(52,211,153,.3)}
.fx-chk.no{background:rgba(251,113,133,.11);color:var(--bad-3);border:1px solid rgba(251,113,133,.3)}
.fx-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0}
.fx-stat{position:relative;padding:18px;border-radius:16px;background:var(--glass-045);border:1px solid var(--glass-10);backdrop-filter:blur(14px);overflow:hidden;transition:transform .25s,box-shadow .25s;animation:fxIn .5s ease both}
.fx-stat:nth-child(2){animation-delay:.06s}.fx-stat:nth-child(3){animation-delay:.12s}.fx-stat:nth-child(4){animation-delay:.18s}
.fx-stat:hover{transform:translateY(-3px)}
.fx-stat::before{content:"";position:absolute;left:0;right:0;top:0;height:2.5px;border-radius:3px}
.fx-stat.glow-r::before{background:linear-gradient(90deg,var(--bad),transparent)}
.fx-stat.glow-v::before{background:linear-gradient(90deg,var(--viol),transparent)}
.fx-stat.glow-b::before{background:linear-gradient(90deg,var(--info),transparent)}
.fx-stat.glow-a::before{background:linear-gradient(90deg,var(--warn),transparent)}
.fx-stat.glow-r:hover{box-shadow:0 12px 34px rgba(251,113,133,.16)}
.fx-stat.glow-v:hover{box-shadow:0 12px 34px rgba(167,139,250,.16)}
.fx-stat.glow-b:hover{box-shadow:0 12px 34px rgba(56,189,248,.16)}
.fx-stat.glow-a:hover{box-shadow:0 12px 34px rgba(251,191,36,.16)}
.fx-stat-ic{font-size:20px;margin-bottom:8px}
.fx-stat-v{font:800 30px/1 'Sora',sans-serif;letter-spacing:-1px;color:var(--ink-hi5)}
.fx-stat-l{font:700 12.5px/1.3 'Inter',sans-serif;color:#c7d2ea;margin-top:6px}
.fx-stat-sub{font-size:11.5px;color:var(--mut-9);margin-top:4px;line-height:1.5}
.fx-card{padding:20px 22px;border-radius:18px;background:var(--glass);border:1px solid var(--glass-10);backdrop-filter:blur(14px);margin:16px 0;animation:fxIn .55s .1s ease both}
.fx-card-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:700 14px/1.3 'Sora',sans-serif;color:var(--ink-hi6);margin-bottom:12px}
.fx-legend{display:flex;align-items:center;gap:8px;margin-left:auto;font:500 11px/1 'Inter',sans-serif;color:var(--mut-3)}
.fx-legend i{width:14px;height:3px;border-radius:2px;display:inline-block}
.fx-leg-band{color:var(--mut-9)}
.fx-chart-note{margin-top:10px;font-size:12.5px;line-height:1.65;color:var(--mut-3)}
.fx-draw{stroke-dasharray:1800;animation:fxDash 1.6s .2s ease-out both}
.fx-sec{font:800 15px/1 'Sora',sans-serif;letter-spacing:-.2px;color:var(--ink-hi6);margin:26px 0 12px;animation:fxIn .5s ease both}
.fx-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.fx-act{display:flex;gap:14px;align-items:flex-start;text-align:left;padding:16px;border-radius:16px;background:var(--glass-045);border:1px solid var(--glass-10);backdrop-filter:blur(12px);cursor:pointer;transition:.25s;animation:fxIn .5s ease both;position:relative;overflow:hidden}
.fx-act::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}
.fx-act.a1::before{background:var(--info)}.fx-act.a2::before{background:var(--ok)}.fx-act.a3::before{background:var(--warn)}.fx-act.a4::before{background:var(--viol)}
.fx-act:hover{transform:translateY(-3px);background:var(--glass-07)}
.fx-act-ic{font-size:22px;filter:drop-shadow(0 0 12px rgba(255,255,255,.2))}
.fx-act-t{flex:1;min-width:0}
.fx-act-t b{display:block;font:700 14px/1.3 'Sora',sans-serif;color:var(--ink-hi5)}
.fx-act-t small{display:block;font-size:12px;color:#a5b4d4;margin-top:3px}
.fx-act-t em{display:block;font-style:normal;font-size:11.5px;color:var(--mut-9);margin-top:6px;line-height:1.5}
.fx-act-go{align-self:center;color:var(--mut-6);font-size:20px;transition:.2s}
.fx-act:hover .fx-act-go{color:#fff;transform:translateX(3px)}
.fx-foot{margin-top:22px;font-size:11.5px;color:var(--mut-6);text-align:center}
@media(max-width:640px){.fx-big .fx-num{font-size:40px}.fx-hero{padding:20px}.fx-fresh{display:none}}

.fx2 .bento,.fx2 .sf-card{background:var(--glass);border:1px solid var(--glass-10);backdrop-filter:blur(14px);border-radius:16px;box-shadow:inset 0 1px 0 var(--glass-06);transition:transform .25s,box-shadow .25s;animation:fxIn .5s ease both}
.fx2 .bento:hover,.fx2 .sf-card:hover{transform:translateY(-2px);border-color:rgba(var(--accent),.35)}
.fx2 .sf-card-h{border-bottom:1px solid var(--glass-07)}
.fx2 .fin-qa{animation:fxIn .45s ease both}
.fx2 .fin-qa-b{background:var(--glass-05);border:1px solid var(--glass-10);backdrop-filter:blur(10px)}
.fx2 .fin-qa-b:hover{background:var(--glass3);transform:translateY(-2px)}
.fx-stat.glow-g::before{background:linear-gradient(90deg,var(--ok),transparent)}
.fx-stat.glow-g:hover{box-shadow:0 12px 34px rgba(52,211,153,.16)}
@keyframes fxBar{from{width:0}to{width:var(--w)}}
.fx-team{display:flex;flex-direction:column;gap:7px}
.fx-tm-row{display:grid;grid-template-columns:30px minmax(120px,180px) 1fr 78px 92px;align-items:center;gap:10px;padding:7px 10px;border-radius:11px;transition:background .2s}
.fx-tm-row:hover{background:var(--glass-05)}
.fx-tm-medal{font-size:16px;text-align:center}
.fx-tm-rank{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--glass-07);color:var(--mut-3);font:700 10.5px/1 'Inter',sans-serif}
.fx-tm-name{font:600 13px/1.2 'Inter',sans-serif;color:var(--ink-hi6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-tm-g{font:700 8.5px/1 'Inter',sans-serif;letter-spacing:.5px;padding:2.5px 6px;border-radius:99px;margin-left:7px;vertical-align:1px;font-style:normal}
.fx-tm-g.gle{background:rgba(129,140,248,.15);color:var(--viol-3);border:1px solid rgba(129,140,248,.3)}
.fx-tm-g.gem{background:rgba(45,212,191,.13);color:#5eead4;border:1px solid rgba(45,212,191,.3)}
.fx-tm-bar{height:9px;border-radius:99px;background:var(--glass-06);overflow:hidden}
.fx-tm-bar i{display:block;height:100%;border-radius:99px;width:var(--w);animation:fxBar 1.1s .15s cubic-bezier(.22,1,.36,1) both}
.fx-tm-bar i.ble{background:linear-gradient(90deg,var(--info),#818cf8);box-shadow:0 0 12px rgba(99,150,248,.4)}
.fx-tm-bar i.bem{background:linear-gradient(90deg,#2dd4bf,var(--ok));box-shadow:0 0 12px rgba(45,212,191,.35)}
.fx-tm-amt{font:800 13px/1 'Sora',sans-serif;color:var(--ink-hi5);text-align:right}
.fx-tm-jul{font:700 10.5px/1 'Inter',sans-serif;color:var(--ok-2);background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.25);padding:4px 8px;border-radius:99px;text-align:center;white-space:nowrap}
.fx-tm-jul.dim{color:#5b6880;background:transparent;border-color:var(--glass-06)}
@media(max-width:640px){.fx-tm-row{grid-template-columns:24px minmax(90px,1fr) 70px;gap:8px}.fx-tm-bar,.fx-tm-jul{display:none}}

@keyframes fxGrad{0%{background-position:0% 40%}100%{background-position:100% 60%}}
.fx2 .fx-hero{background:linear-gradient(125deg,rgba(37,99,235,.18),rgba(124,58,237,.15) 45%,rgba(6,182,212,.12) 80%,rgba(37,99,235,.16));background-size:220% 220%;animation:fxIn .55s .05s ease both,fxGrad 16s ease infinite alternate}
.fx-eyebrow{background:var(--glass-05);border:1px solid var(--glass-08);border-radius:999px;padding:7px 14px;width:max-content;max-width:100%}
.fx-mini{display:inline-flex;align-items:flex-end;gap:3px;height:28px;margin-left:12px;vertical-align:bottom;padding:0 6px;cursor:default}
.fx-mini i{width:7px;border-radius:2.5px;transition:transform .15s}
.fx-mini i:hover{transform:scaleY(1.15)}
.fx-mini i.up{background:linear-gradient(180deg,var(--ok),#0d9488)}
.fx-mini i.dn{background:linear-gradient(180deg,var(--bad),#be123c);opacity:.9}

.fx-stat-ic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--glass-07);border:1px solid var(--glass-08);font-size:17px;margin-bottom:10px}
.fx-stat-v{font-size:26px}

.fx2 .sf-card-h,.fx2 .bento-h{font:700 11.5px/1.5 'Sora',sans-serif;letter-spacing:.9px;text-transform:uppercase;color:#9fb0d8}

.fx2 .fin-alert{background:var(--glass);border:1px solid var(--glass-08);border-radius:12px;transition:.2s}
.fx2 .fin-alert:hover{background:var(--glass-08);transform:translateX(3px)}

.fx2 .fin-pl{border-radius:8px;padding-left:8px;padding-right:8px;transition:background .15s}
.fx2 .fin-pl:hover{background:var(--glass-045)}

.fx2 .fin-ratio{background:var(--glass-045);border:1px solid var(--bord);border-radius:13px;backdrop-filter:blur(8px);transition:.2s}
.fx2 .fin-ratio:hover{transform:translateY(-2px);background:var(--glass-07)}
.fx2 .fin-ratio-mtr i{box-shadow:0 0 10px rgba(255,255,255,.15)}

.fx2 .fin-jump-b{background:var(--glass-045);border:1px solid var(--bord);border-radius:12px;transition:.2s}
.fx2 .fin-jump-b:hover{background:var(--glass-08);transform:translateY(-2px)}
.fx2 table.list tr.lead-row{transition:background .15s}
.fx2 table.list tr.lead-row:hover td{background:var(--glass-045)}

.fx2 .fx-money{background:linear-gradient(115deg,rgba(251,191,36,.13),var(--glass-03) 55%);border-color:rgba(251,191,36,.25)}
.fx2 .fx-money:hover{box-shadow:0 10px 30px rgba(251,191,36,.12)}

.fx-scen-b.on{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 2px 12px rgba(99,102,241,.4)}

.fx-team{gap:3px}
.fx-tm-row{grid-template-columns:22px minmax(96px,148px) 1fr 64px 70px;gap:8px;padding:3.5px 8px;border-radius:9px}
.fx-tm-medal{font-size:13px}
.fx-tm-rank{width:17px;height:17px;font-size:9.5px}
.fx-tm-name{font-size:11.5px}
.fx-tm-g{font-size:7.5px;padding:2px 5px;margin-left:5px}
.fx-tm-bar{height:6.5px}
.fx-tm-amt{font-size:11.5px}
.fx-tm-jul{font-size:9.5px;padding:2.5px 6px}
.fx-tm-foot{margin-top:9px;padding-top:8px;border-top:1px solid var(--glass-07);font-size:11px;color:var(--mut-9)}
.fx-tm-foot b{color:var(--ink-hi6)}

.fx-sec{display:flex;align-items:center;gap:10px}
.fx-sec::before{content:"";width:4px;height:16px;border-radius:3px;background:linear-gradient(180deg,var(--info),var(--viol))}

.fx-legend{background:var(--glass);border:1px solid var(--glass-07);border-radius:999px;padding:5px 11px}
.fx-chart-note{background:var(--glass-03);border-left:3px solid rgba(167,139,250,.5);border-radius:0 10px 10px 0;padding:9px 12px}

.fx-act-ic{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--glass-06);border:1px solid var(--glass-08);font-size:18px;filter:none}
@media(max-width:640px){.fx-mini{display:none}.fx-tm-row{grid-template-columns:20px minmax(80px,1fr) 60px;gap:6px}.fx-tm-bar,.fx-tm-jul{display:none}}

.fxr-grp{margin:0 0 18px}
.fxr-grp:last-child{margin-bottom:4px}
.fxr-grp-h{font:700 12px/1 'Sora',sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#bcc9e8;margin:0 0 10px;display:flex;align-items:center;gap:6px}
.fxr-grp-h small{font:500 11px/1 'Inter',sans-serif;letter-spacing:.2px;text-transform:none;color:var(--mut-9)}
.fxr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.fxr{position:relative;padding:13px 14px 12px;border-radius:13px;background:var(--glass-045);border:1px solid var(--bord);backdrop-filter:blur(8px);transition:.2s;overflow:hidden}
.fxr:hover{transform:translateY(-2px);background:var(--glass-07)}
.fxr::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}
.fxr-good::after{background:var(--ok)}.fxr-ok::after{background:var(--warn)}.fxr-warn::after{background:var(--bad)}
.fxr-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fxr-name{font:600 11.5px/1.3 'Inter',sans-serif;color:#aab8dd}
.fxr-badge{font:700 8.5px/1 'Inter',sans-serif;letter-spacing:.7px;text-transform:uppercase;padding:3px 7px;border-radius:99px}
.fxr-good .fxr-badge{background:rgba(52,211,153,.14);color:var(--ok-2)}
.fxr-ok .fxr-badge{background:rgba(251,191,36,.13);color:var(--warn-2)}
.fxr-warn .fxr-badge{background:rgba(251,113,133,.13);color:var(--bad-3)}
.fxr-val{font:800 21px/1.1 'Sora',sans-serif;letter-spacing:-.5px;margin:7px 0 9px}
.fxr-good .fxr-val{color:var(--ok-2)}.fxr-ok .fxr-val{color:var(--warn-2)}.fxr-warn .fxr-val{color:var(--bad-3)}
.fxr-scale{position:relative;height:6px;border-radius:99px;background:linear-gradient(90deg,rgba(251,113,133,.55),rgba(251,191,36,.55) 45%,rgba(52,211,153,.55) 75%);}
.fxr-scale::before,.fxr-scale::after{content:"";position:absolute;top:-2px;bottom:-2px;width:1.5px;background:rgba(6,10,26,.55)}
.fxr-scale::before{left:33%}.fxr-scale::after{left:66%}
@keyframes fxDot{from{left:0;opacity:0}to{left:var(--x);opacity:1}}
.fxr-dot{position:absolute;top:50%;left:var(--x);transform:translate(-50%,-50%);width:13px;height:13px;border-radius:50%;background:#fff;border:2.5px solid #0b1226;box-shadow:0 0 10px rgba(255,255,255,.5);animation:fxDot .9s .2s cubic-bezier(.22,1,.36,1) both}
.fxr-bench{font-size:10px;color:var(--mut-9);margin-top:8px}
@media(max-width:640px){.fxr-grid{grid-template-columns:repeat(2,1fr)}}

.fx-freshbar{display:inline-flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.fx-fresh-chip{font:700 10px/1 'Inter',sans-serif;color:var(--fc);background:color-mix(in srgb,var(--fc) 10%,transparent);border:1px solid color-mix(in srgb,var(--fc) 30%,transparent);padding:4.5px 9px;border-radius:99px;cursor:default}
.fx-tm-row{grid-template-columns:22px minmax(92px,140px) 1fr 62px 44px 62px 64px}
.fx-tm-proj{font:800 10px/1 'Sora',sans-serif;color:var(--pc,#8fa3c8);text-align:right;cursor:default;white-space:nowrap}
.fx-tm-proj.dim{color:#5b6880}
.fx-tm-bar{position:relative;overflow:visible}
.fx-tm-bar u{position:absolute;top:-3px;bottom:-3px;left:var(--x,0);width:2px;background:rgba(255,255,255,.65);border-radius:2px;pointer-events:none}
.fx-tm-tgt{font:800 10px/1 'Sora',sans-serif;color:var(--tc);text-align:right;cursor:default}
.fx-tm-tgt.dim{color:#5b6880}
.fx-au-nums{display:flex;gap:18px;flex-wrap:wrap;margin:2px 0 12px}
.fx-au-nums>div{flex:1;min-width:100px}
.fx-au-nums b{display:block;font:800 19px/1.15 'Sora',sans-serif;letter-spacing:-.4px;color:var(--ink-hi5)}
.fx-au-nums small{display:block;font-size:10.5px;color:var(--mut-9);margin-top:3px;line-height:1.4}
.fx-meter{height:9px;border-radius:99px;background:var(--glass-07);overflow:hidden}
.fx-meter i{display:block;height:100%;border-radius:99px;width:var(--w);animation:fxBar 1.1s .15s cubic-bezier(.22,1,.36,1) both;box-shadow:0 0 12px rgba(56,189,248,.3)}
@media(max-width:640px){.fx-freshbar{display:none}.fx-tm-row{grid-template-columns:20px minmax(80px,1fr) 60px 40px}.fx-tm-bar,.fx-tm-jul,.fx-tm-proj{display:none}}

.fx-hero-r{background:rgba(8,12,30,.42);border:1px solid var(--glass-12);border-radius:18px;padding:20px 22px;box-shadow:inset 0 1px 0 var(--glass-06);flex:0 1 320px}
.fx-ring{width:112px;height:112px}
.fx-ring-in{width:84px;height:84px}
.fx-ring-in b{font-size:22px}
.fx-ring{box-shadow:0 0 26px color-mix(in srgb,var(--rc) 24%,transparent)}

.fx-chks{flex-direction:column;align-items:stretch;gap:5px;max-width:280px;width:100%;margin-top:4px}
.fx-chk{display:flex;align-items:center;gap:8px;justify-content:flex-start;padding:7px 11px;border-radius:9px;font-size:11.5px}
.fx-chk.ok{background:rgba(52,211,153,.09);border:1px solid rgba(52,211,153,.22)}
.fx-chk.no{background:rgba(251,113,133,.08);border:1px solid rgba(251,113,133,.2)}
.fx-verdict{margin-top:2px}

.fx-stat{overflow:hidden}
.fx-stat::after{content:"";position:absolute;right:-46px;top:-46px;width:120px;height:120px;border-radius:50%;filter:blur(34px);opacity:.16;pointer-events:none}
.fx-stat.glow-r::after{background:var(--bad)}.fx-stat.glow-v::after{background:var(--viol)}
.fx-stat.glow-b::after{background:var(--info)}.fx-stat.glow-a::after{background:var(--warn)}.fx-stat.glow-g::after{background:var(--ok)}
.fx-stat.glow-r .fx-stat-ic{background:rgba(251,113,133,.13);border-color:rgba(251,113,133,.28)}
.fx-stat.glow-v .fx-stat-ic{background:rgba(167,139,250,.13);border-color:rgba(167,139,250,.28)}
.fx-stat.glow-b .fx-stat-ic{background:rgba(56,189,248,.13);border-color:rgba(56,189,248,.28)}
.fx-stat.glow-a .fx-stat-ic{background:rgba(251,191,36,.13);border-color:rgba(251,191,36,.28)}
.fx-stat.glow-g .fx-stat-ic{background:rgba(52,211,153,.13);border-color:rgba(52,211,153,.28)}
.fx-stat-v{font-size:27px}
.fx-stat-l{margin-top:7px}

.fx2 .fin-qa-ic{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:17px;border:1px solid var(--glass-08)}
.fx2 .fin-qa-b:nth-child(1) .fin-qa-ic{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.26)}
.fx2 .fin-qa-b:nth-child(2) .fin-qa-ic{background:rgba(251,113,133,.12);border-color:rgba(251,113,133,.26)}
.fx2 .fin-qa-b:nth-child(3) .fin-qa-ic{background:rgba(56,189,248,.12);border-color:rgba(56,189,248,.26)}
.fx2 .fin-qa-b:nth-child(4) .fin-qa-ic{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.26)}
.fx2 .fin-qa-b:nth-child(5) .fin-qa-ic{background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.26)}

.fx-mini{background:var(--glass-05);border:1px solid var(--glass-08);border-radius:9px;padding:5px 8px 4px;height:34px;position:relative}
.fx-mini::after{content:"";position:absolute;left:6px;right:6px;bottom:4px;height:1px;background:var(--glass4)}

.fx-sent{font-size:15px;color:#d4ddf2}
.fx-year{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.fx-stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin:14px 0 6px}
@media(min-width:1200px){.fx-stats{grid-template-columns:repeat(6,1fr)}}
@media(min-width:700px) and (max-width:1199px){.fx-stats{grid-template-columns:repeat(3,1fr)}}
.fx-stat{padding:15px 16px}
.fx-stat-v{font-size:24px}
.fx-stat-sub{min-height:30px}

.fx-moves{margin-top:16px;padding-top:14px;border-top:1px solid var(--bord)}
.fx-moves-h{font:700 11px/1 'Sora',sans-serif;letter-spacing:1.1px;text-transform:uppercase;color:#9fb0d8;margin-bottom:9px;display:flex;align-items:center;gap:7px}
.fx-moves-h span{cursor:default;color:var(--mut-6)}
.fx-move{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:9px 12px;margin:4px 0;border-radius:12px;background:var(--glass-05);border:1px solid var(--bord);cursor:pointer;transition:.2s}
.fx-move:hover{background:var(--glass3);transform:translateX(3px)}
.fx-move-rank{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:7px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font:800 11px/1 'Sora',sans-serif;flex:none}
.fx-move-ic{font-size:16px;flex:none}
.fx-move-t{flex:1;min-width:0}
.fx-move-t b{display:block;font:700 13px/1.25 'Inter',sans-serif;color:var(--ink-hi5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-move-t small{display:block;font-size:10.5px;color:var(--mut-3);margin-top:2px}
.fx-move-score{font:800 12px/1 'Sora',sans-serif;color:var(--viol-3);background:rgba(129,140,248,.12);border:1px solid rgba(129,140,248,.3);padding:5px 8px;border-radius:8px;flex:none}

.fx-act.a-auto::before{background:var(--ac)}
.fx-act-sc{font-style:normal;font:700 9px/1 'Inter',sans-serif;color:var(--viol-3);background:rgba(129,140,248,.12);border:1px solid rgba(129,140,248,.28);padding:2.5px 6px;border-radius:99px;margin-left:6px;vertical-align:2px}

.skl-row{display:grid;grid-template-columns:minmax(120px,180px) 1fr 44px 76px;gap:10px;align-items:center;padding:6px 4px;border-radius:8px}
.skl-row:hover{background:var(--glass)}
.skl-nm{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skl-nm small{color:var(--mut);font-weight:500}
.skl-bar{height:8px;border-radius:99px;background:var(--glass-08);overflow:hidden}
.skl-bar i{display:block;height:100%;border-radius:99px;transition:width .8s cubic-bezier(.22,1,.36,1)}
.skl-pct{font-size:12px;text-align:right;font-variant-numeric:tabular-nums}
.skl-go{font:700 10.5px/1 inherit;padding:5px 9px;border-radius:99px;border:1px solid rgba(56,189,248,.4);background:rgba(56,189,248,.12);color:var(--info-2);cursor:pointer;transition:.15s}
.skl-go:hover{background:rgba(56,189,248,.22)}
.skl-ok{text-align:center;color:#22c55e;font-weight:700}
.skl-foot{margin-top:8px;padding-top:8px;border-top:1px solid var(--bord,var(--glass-08));font-size:11.5px;color:var(--mut)}

.player-shell .radio-row input[type="radio"],.player-shell label>input[type="radio"]{width:17px;height:17px;cursor:pointer;accent-color:#1a73e8}
.player-shell .radio-row label,.player-shell .mcq label{cursor:text}

.p-volwrap{display:inline-flex;align-items:center;gap:5px;margin:0 6px}
.p-volwrap input[type="range"]{width:86px;height:4px;cursor:pointer;accent-color:#1a73e8}

#skills-card{ flex: 0 1 44%; min-width: 340px; }
@media (max-width: 980px){ #skills-card{ flex: 1 1 100%; min-width: 0; } }

.stats.dash{ grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.stats.dash .stat .l{ white-space: normal; line-height: 1.25; font-size: 10.5px; }

#skills-card .w-loading{ display: grid; place-items: center; min-height: 220px; text-align: center; padding: 26px; line-height: 1.7; max-width: 380px; margin: 0 auto; }

.car-track > .card{ display: flex; flex-direction: column; }
.car-track > .card .btn{ margin-top: auto; }
.car-track > .card .meta-line{ margin-bottom: 12px; }
.card.soon{ opacity: 1; }
.card.soon > *:not(.chip-row){ opacity: .6; }
.card.soon{ border-style: dashed; }
.car-btn{ top: 50%; }

.sg-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding:12px 4px 4px}
.sg-g-col{background:var(--glass);border:1px solid var(--bord,var(--bord));border-radius:12px;padding:12px}
.sg-g-col>b{display:block;font-size:13px;margin-bottom:8px}
.sg-g-row{font-size:11.5px;line-height:1.55;color:var(--mut);margin:6px 0}
.sg-g-row i{display:block;font-style:normal;font-weight:700;font-size:9.5px;letter-spacing:.7px;text-transform:uppercase;color:var(--info-2);margin-bottom:2px}
.sg-g-pen i{color:var(--bad-3)}.sg-g-ok i{color:var(--ok-2)}
.sg-g-foot{font-size:11.5px;line-height:1.7;color:var(--mut);padding:10px 6px 4px;border-top:1px dashed var(--bord,var(--glass-10));margin-top:10px}
.spk-fbrow td{vertical-align:top}
.spk-fbcell{padding:6px}
.spk-fbsel{width:100%;font-size:11px;padding:5px 6px;border-radius:8px;background:var(--glass2,var(--glass-05));border:1px solid var(--bord,var(--glass-12));color:var(--txt,#e5ecff);margin-bottom:5px}
.spk-cfb{width:100%;min-height:52px;font-size:11.5px;line-height:1.5;padding:6px 8px;border-radius:8px;background:var(--glass2,var(--glass));border:1px solid var(--bord,var(--glass-10));color:var(--txt,#e5ecff);resize:vertical}

.spk-grid .spk-fbsel{ width:100%; font-size:12px; padding:6px; border-radius:6px; background:#fff; border:1px solid #cfd5de; color:#1c1c1c; margin-bottom:5px; }
.spk-grid .spk-cfb{ width:100%; min-height:54px; font-size:12.5px; line-height:1.5; padding:6px 8px; border-radius:6px; background:#fff; border:1px solid #cfd5de; color:#1c1c1c; resize:vertical; }
.spk-grid .spk-cfb::placeholder,.spk-grid .spk-cmt::placeholder{ color:#9aa3b2; }
.spk-grid .spk-fbrow .spk-pn small{ color:#667085 !important; }

body{background:radial-gradient(1100px 600px at 8% -8%,rgba(37,99,235,.16),transparent 60%),radial-gradient(900px 540px at 96% 12%,rgba(124,58,237,.13),transparent 55%),radial-gradient(760px 500px at 50% 110%,rgba(14,116,144,.12),transparent 60%),var(--bg1);background-attachment:fixed} /* dark: #070b1c via :root token — this is the REAL page backdrop (overrides the top body rule) */

body .card,body .sf-card,body .kpi,body .stat,body .mba-kpi,body .sh-wxbox,body .ab-perf,body .ab-queue,body .spk-card,body .sg-booking,body .sg-today,body .att-row,body .cust-card,body .lead-card,body .fin-bank-card{
  background:var(--glass-045);border:1px solid var(--glass-10);backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 var(--glass-05)}
body .card:hover,body .sf-card:hover{border-color:rgba(var(--accent),.35)}

body .sf-card-h,body .bento-h{font:700 11.5px/1.5 'Sora',sans-serif;letter-spacing:.9px;text-transform:uppercase;color:#9fb0d8}

body .overlay .panel{background:rgba(13,18,38,.88);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(22px);box-shadow:0 24px 70px rgba(2,6,23,.6)}

body .topbar{background:var(--topbar);border-bottom:1px solid var(--glass-07)}
body .sidenav,body .side{background:var(--side);backdrop-filter:blur(16px)} /* dark: rgba(9,13,30,.55) via :root token */

body table.list th{background:var(--glass-05);color:#9fb0d8;letter-spacing:.5px}
body table.list tr:hover td{background:rgba(255,255,255,.035)}

body .stu-search,body .stu-sel,body .fin-in,body .field input,body .field select,body textarea.stu-search{
  background:var(--glass-05);border:1px solid var(--glass-12);backdrop-filter:blur(8px)}

body .btn{backdrop-filter:blur(8px)}
body .btn.primary{background:linear-gradient(135deg,#2563eb,#7c3aed);border:0;box-shadow:0 4px 18px rgba(99,102,241,.35)}
body .btn.primary:hover{box-shadow:0 6px 24px rgba(99,102,241,.5);transform:translateY(-1px)}

body .sf-card svg line[stroke*="rgba(255,255,255"]{opacity:.8}
body .sf-card svg path[stroke]:not([stroke="none"]){filter:drop-shadow(0 0 6px rgba(96,165,250,.18))}
body .sf-card svg circle[fill]:not([fill="none"]){filter:drop-shadow(0 0 4px rgba(255,255,255,.25))}

body .lz-seg,body .fin-tg,body .tag{backdrop-filter:blur(6px)}
body .lz-seg.on,body .fin-tg.on{background:linear-gradient(135deg,rgba(37,99,235,.5),rgba(124,58,237,.5));color:#fff;border-color:transparent}

body .att-row{border-radius:12px;margin:4px 0;padding:8px 12px;transition:.18s}
body .att-row:hover{background:var(--glass-08)}
body .att-row.att-on{background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.35)}
body .att-row.att-on .att-name{color:var(--ok-2)}

.player-shell,.player-shell *{backdrop-filter:none!important}
body .spk-grid,body .spk-grid th,body .spk-grid .spk-pn{backdrop-filter:none}

.ab-q-item{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:11px 13px;margin:0 0 8px;border-radius:13px;background:linear-gradient(120deg,rgba(52,211,153,.10),rgba(56,189,248,.06));border:1px solid rgba(52,211,153,.3);cursor:pointer;transition:.2s;font:inherit;color:var(--txt,#e5ecff)}
.ab-q-item:hover{transform:translateX(3px);background:linear-gradient(120deg,rgba(52,211,153,.16),rgba(56,189,248,.1))}
.ab-q-ic{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(52,211,153,.14);border:1px solid rgba(52,211,153,.3);font-size:16px;flex:none}
.ab-q-t2{flex:1;min-width:0}
.ab-q-t2 b{display:block;font-size:13px;line-height:1.35;color:#d9fbe9}
.ab-q-t2 small{display:block;font-size:11px;color:var(--mut-3);margin-top:2px}
.ab-q-go{color:var(--ok);font-size:18px;flex:none}

table.bdm-res{table-layout:fixed;width:100%}
table.bdm-res th:nth-child(1),table.bdm-res td:nth-child(1){width:84px}
table.bdm-res th:nth-child(2),table.bdm-res td:nth-child(2){width:20%}
table.bdm-res th:nth-child(4),table.bdm-res td:nth-child(4){width:60px;text-align:center}
table.bdm-res th:nth-child(5),table.bdm-res td:nth-child(5){width:14%}
table.bdm-res th:nth-child(6),table.bdm-res td:nth-child(6){width:104px}
table.bdm-res th:nth-child(7),table.bdm-res td:nth-child(7){width:88px;overflow:visible}
table.bdm-res th{white-space:nowrap}
table.bdm-res td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:10px;padding-bottom:10px}
table.bdm-res tr.lead-row{cursor:pointer}
table.bdm-res tr.lead-row:hover td{background:rgba(56,189,248,.06)}
.bdm-open{font:700 10.5px/1 'Inter',sans-serif;color:var(--info-2);background:rgba(56,189,248,.1);border:1px solid rgba(56,189,248,.3);padding:4px 9px;border-radius:99px;white-space:nowrap}

.cx-kc[draggable="true"]{cursor:grab}
.cx-kc.cx-kc-drag{opacity:.45;transform:rotate(2deg) scale(.98)}
.cx-kcol.cx-kover{outline:2px dashed rgba(56,189,248,.6);outline-offset:-4px;background:rgba(56,189,248,.05);border-radius:14px}

.msn{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.msn-ring{width:78px;height:78px;border-radius:50%;background:conic-gradient(var(--rc) calc(var(--p)*1%),var(--glass-08) 0);display:grid;place-items:center;flex:none;box-shadow:0 0 22px color-mix(in srgb,var(--rc) 25%,transparent)}
.msn-ring-in{width:58px;height:58px;border-radius:50%;background:#0b1226;display:grid;place-items:center;text-align:center}
.msn-ring-in b{font:800 19px/1 'Sora',sans-serif;display:block}
.msn-ring-in small{font-size:8.5px;color:var(--mut-3);text-transform:uppercase;letter-spacing:.6px}
.msn-mid{flex:1;min-width:200px}
.msn-gap-l{display:flex;justify-content:space-between;font-size:11px;color:#aab8dd;margin-bottom:4px}
.msn-gap-l b{font-size:11.5px}
.msn-gap-bar{height:9px;border-radius:99px;background:var(--glass-08);overflow:hidden}
.msn-gap-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--info),var(--ok));width:var(--w,0);animation:fxBar 1.1s .2s cubic-bezier(.22,1,.36,1) both}
.msn-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.msn-chip{font:600 11px/1 'Inter',sans-serif;color:#c7d2ea;background:var(--glass-06);border:1px solid var(--glass-10);padding:6px 10px;border-radius:99px}
.msn-noexam{font-size:12px;color:#aab8dd;margin-bottom:6px}
.stg-row{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.stg{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border-radius:14px;background:var(--glass-045);border:1px solid var(--glass-10);backdrop-filter:blur(10px)}
.stg-svg{width:60px;height:60px}
.stg-arc{transition:stroke-dashoffset 1s cubic-bezier(.22,1,.36,1)}
.stg-l{font:600 9.5px/1.2 'Inter',sans-serif;letter-spacing:.4px;text-transform:uppercase;color:var(--mut-3);text-align:center}
.stg-tn{font:800 26px/60px 'Sora',sans-serif;color:var(--warn);height:60px}
@media(max-width:860px){.stg-row{grid-template-columns:repeat(3,1fr)}}
.skl-wrap{display:flex;gap:14px;align-items:flex-start}
.skl-radar{flex:0 0 140px;text-align:center}
.skl-radar small{display:block;font-size:9.5px;color:var(--mut-9);margin-top:2px}
.skl-bars{flex:1;min-width:0}
@media(max-width:700px){.skl-wrap{flex-direction:column}.skl-radar{margin:0 auto}}
.res-med{display:inline-grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,rgba(37,99,235,.35),rgba(124,58,237,.35));border:1px solid rgba(129,140,248,.5);font:800 14px 'Sora',sans-serif;color:var(--ink-hi5);padding:0 6px}
.res-delta{font:700 10px/1 'Inter',sans-serif;padding:3px 7px;border-radius:99px;margin-left:6px;vertical-align:middle}
.res-delta.up{background:rgba(52,211,153,.14);color:var(--ok-2);border:1px solid rgba(52,211,153,.35)}
.res-delta.dn{background:rgba(251,113,133,.12);color:var(--bad-3);border:1px solid rgba(251,113,133,.3)}
.mkring{display:inline-block;width:30px;height:30px;vertical-align:-8px;margin-left:6px}
.mkring svg{width:30px;height:30px}
@keyframes cfxFall{from{transform:translateY(-8vh) rotate(0)}to{transform:translateY(108vh) rotate(340deg)}}
.cfx{position:fixed;inset:0;pointer-events:none;z-index:9999}
.cfx i{position:absolute;top:-6vh;animation:cfxFall 2.2s ease-in forwards;font-style:normal}
.cfx-badge{position:fixed;top:18%;left:50%;transform:translateX(-50%);z-index:10000;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font:800 16px 'Sora',sans-serif;padding:12px 22px;border-radius:99px;box-shadow:0 12px 40px rgba(99,102,241,.5);animation:fxIn .4s ease both}
@media(max-width:640px){.msn{gap:10px}.hero-bookcta{position:sticky;bottom:12px;width:100%}}

tr[data-tip]:hover::after,tr[data-tip]:hover::before{display:none!important;content:none!important}

.hrw{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:14px}
.hrw-l,.hrw-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hrw-t{font:700 11.5px 'Sora',sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#9fb0d8;margin-right:4px}
.hrw-chip{font:600 11px/1 'Inter',sans-serif;color:var(--c,var(--info-2));background:color-mix(in srgb,var(--c,var(--info-2)) 10%,transparent);border:1px solid color-mix(in srgb,var(--c,var(--info-2)) 30%,transparent);padding:5px 9px;border-radius:99px}
.hrw-chip b{font-size:12px}
.hrw-out{font-size:11.5px;color:var(--warn)}
.hrw-out.ok{color:var(--ok-2)}
.hrwk-row{display:flex;gap:6px}
.hrwk{flex:1;text-align:center;padding:6px 2px;border-radius:9px;background:var(--glass-05);border:1px solid var(--glass-08)}
.hrwk small{display:block;font-size:8.5px;color:var(--mut-9);text-transform:uppercase}
.hrwk b{font-size:13px;color:var(--mut-3)}
.hrwk.busy{background:rgba(251,191,36,.1);border-color:rgba(251,191,36,.35)}
.hrwk.busy b{color:var(--warn-2)}
.hro-row{display:flex;align-items:center;gap:9px;padding:7px 4px;font-size:13px;cursor:pointer;border-radius:8px}
.hro-row:hover{background:var(--glass-05)}
.hro-row input{width:16px;height:16px;accent-color:var(--ok)}

.bdm-contact{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}
.bdm-prof{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:10px 0;padding:12px;border-radius:12px;background:var(--glass);border:1px solid var(--bord)}
.bdm-prof small{display:block;font-size:9.5px;letter-spacing:.5px;text-transform:uppercase;color:var(--mut-9)}
.bdm-prof b{font-size:13px}
.stu-link{cursor:pointer}
.stu-link:hover b{color:var(--info-2);text-decoration:underline}

.lv-insight{margin:10px 0 4px;padding:10px 13px;border-radius:11px;background:rgba(56,189,248,.08);border:1px solid rgba(56,189,248,.3);font-size:12px;line-height:1.65;color:#c7d2ea}
.lp-qa{margin:4px 0;font-size:12px}
.lp-qa summary{cursor:pointer;font-weight:600;color:#aab8dd;padding:4px 0}
.lp-qa summary:hover{color:var(--info-2)}
.lp-qa div{padding:4px 0 6px 14px;color:var(--mut-3);line-height:1.6}
.bdm-pitch{font:600 10.5px/1.3 'Inter',sans-serif;color:var(--viol-2);background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.3);padding:4px 8px;border-radius:99px;white-space:nowrap}
table.bdm-res th:nth-child(6),table.bdm-res td:nth-child(6){width:150px}
table.bdm-res th:nth-child(7),table.bdm-res td:nth-child(7){width:100px}
table.bdm-res th:nth-child(8),table.bdm-res td:nth-child(8){width:84px;overflow:visible}

.hero-ctas{display:flex;gap:10px;flex-wrap:wrap}
.hero-cta2{background:linear-gradient(135deg,#2563eb,#7c3aed);border:0;color:#fff;font-weight:700;box-shadow:0 4px 18px rgba(99,102,241,.35)}
.hero-cta2:hover{box-shadow:0 6px 24px rgba(99,102,241,.5);transform:translateY(-1px)}
@media(max-width:640px){.hero-ctas{width:100%}.hero-ctas .btn{flex:1}}

.prof-sec-h{font:700 12px 'Sora',sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#9fb0d8;margin:6px 0 10px}
.sqx-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 8px}
.sqx-stat{text-align:center;padding:12px 8px;border-radius:13px;background:var(--glass-05);border:1px solid var(--glass-10)}
.sqx-stat b{display:block;font:800 24px 'Sora',sans-serif}
.sqx-stat small{font-size:10px;color:var(--mut-3);text-transform:uppercase;letter-spacing:.5px}
.sqx-zero{background:rgba(251,113,133,.08);border-color:rgba(251,113,133,.35)}
.sqx-zero b{color:var(--bad-3)}
.sqx-bar{height:8px;border-radius:99px;background:var(--glass-08);overflow:hidden}
.sqx-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2dd4bf,var(--info));animation:fxBar 1s .15s cubic-bezier(.22,1,.36,1) both}
.sqx-cta{display:flex;gap:8px;flex-wrap:wrap}
.sqx-cta .btn{flex:1;min-width:150px;text-align:center}

.btn.sqx-req{background:linear-gradient(135deg,#059669,#0d9488);border:0;color:#fff;font-weight:700;box-shadow:0 4px 18px rgba(16,185,129,.35)}
.btn.sqx-req:hover{box-shadow:0 6px 24px rgba(16,185,129,.5);transform:translateY(-1px)}
.btn.sqx-req[disabled]{background:rgba(52,211,153,.15);color:var(--ok-2);box-shadow:none;border:1px solid rgba(52,211,153,.35)}
/* Student profile page — every button gets the same primary (blue→purple) look, white text, for a
   consistent page (matches ＋ Add official result / 🤝 Refer a friend / 🎓 Talk to a counsellor).
   color/text-decoration forced so links (WhatsApp share) and secondary buttons stay legible. */
.stu-prof .btn:not(.ghost):not(.secondary), .stu-prof a.btn:not(.ghost):not(.secondary){ background:linear-gradient(135deg,#2563eb,#7c3aed) !important; border:0 !important; color:#fff !important; font-weight:700; box-shadow:0 4px 18px rgba(99,102,241,.35); text-decoration:none !important; }
/* Uniform button sizing across the whole profile page — same small text + height for every button,
   overriding both the default (larger) .btn and any per-button inline padding/font-size (e.g. the
   passport CTA's inline 15.5px / 16px padding). User prefers the smaller-text look. */
.stu-prof .btn, .stu-prof a.btn, .stu-prof label.btn{ font-size:13px !important; line-height:1.2 !important; padding:9px 15px !important; border-radius:11px !important; min-height:38px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; }
.stu-prof .btn > span{ font-size:12px !important; }
.stu-prof .btn:not(.ghost):not(.secondary):hover:not([disabled]){ box-shadow:0 6px 24px rgba(99,102,241,.5); transform:translateY(-1px); filter:brightness(1.04); }
/* Primary (gradient) disabled → keep the colour, just non-interactive. Only the gradient primary;
   secondary/ghost get their own muted disabled treatment below. */
.stu-prof .btn:not(.ghost):not(.secondary)[disabled],
html[data-theme="light"] .stu-prof .btn.primary:disabled,
html[data-theme="light"] .stu-prof .btn.primary[disabled]{ background:linear-gradient(135deg,#2563eb,#7c3aed) !important; color:#fff !important; border:0 !important; opacity:1 !important; box-shadow:0 4px 18px rgba(99,102,241,.3) !important; cursor:default; filter:none; }

/* ── Button hierarchy (Phase 1): secondary + ghost tiers ──────────────────────────────────────
   The gradient is reserved for ONE primary action per card; everything else is a quiet neutral
   (secondary) or transparent (ghost) button. Scoped to .stu-prof AND provided globally so the
   photo-editor modal (which lives in the overlay, not .stu-prof) styles the same way. */
.btn.secondary{ background:var(--glass2); border:1px solid var(--bord2); color:var(--txt); font-weight:600; box-shadow:none; }
.btn.secondary:hover:not([disabled]){ background:var(--glass-12); }
.btn.ghost{ background:transparent; border:1px solid transparent; color:var(--mut); font-weight:600; box-shadow:none; }
.btn.ghost:hover:not([disabled]){ background:var(--glass2); color:var(--txt); }
.stu-prof .btn.secondary, .stu-prof a.btn.secondary{ background:var(--glass2) !important; border:1px solid var(--bord2) !important; color:var(--txt) !important; font-weight:600 !important; box-shadow:none !important; text-decoration:none !important; }
.stu-prof .btn.secondary:hover:not([disabled]){ background:var(--glass-12) !important; transform:translateY(-1px); }
.stu-prof .btn.ghost, .stu-prof a.btn.ghost, .stu-prof label.btn.ghost{ background:transparent !important; border:1px solid var(--bord2) !important; color:var(--mut) !important; font-weight:600 !important; box-shadow:none !important; text-decoration:none !important; }
.stu-prof .btn.ghost:hover:not([disabled]){ background:var(--glass2) !important; color:var(--txt) !important; transform:translateY(-1px); }
.stu-prof .btn.secondary[disabled], .stu-prof .btn.ghost[disabled]{ opacity:.5 !important; cursor:default; box-shadow:none !important; transform:none !important; }
.stu-prof .btn.secondary .lu, .stu-prof .btn.ghost .lu{ opacity:.8; }

/* ── Identity header (Phase 1) ────────────────────────────────────────────────────────────────
   Pulls the student's identity out of the card stack into a distinct header band. */
.stu-prof .pf-hero{ display:flex; align-items:center; gap:18px; padding:22px 22px 20px; margin:6px 0 18px; border-radius:20px;
  background:radial-gradient(120% 140% at 0% 0%, rgba(99,102,241,.14), transparent 60%), var(--glass2);
  border:1px solid var(--bord2); }
.stu-prof .pf-avatar{ position:relative; flex:none; width:84px; height:84px; border-radius:50%; padding:0; cursor:pointer;
  border:2px solid transparent; background:
    linear-gradient(var(--glass2),var(--glass2)) padding-box,
    linear-gradient(135deg,#2563eb,#7c3aed) border-box;
  overflow:visible; display:grid; place-items:center; transition:transform .15s ease, box-shadow .2s ease; }
.stu-prof .pf-avatar:hover{ transform:translateY(-1px); box-shadow:0 6px 20px rgba(99,102,241,.3); }
.stu-prof .pf-avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.stu-prof .pf-avatar > span{ font:800 30px 'Sora',sans-serif; color:#fff; letter-spacing:.5px; }   /* v1.300 V-16 (dark ink on the blue->violet disc = 2.8:1) */
.stu-prof .pf-cam{ position:absolute; right:-2px; bottom:-2px; width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#2563eb,#7c3aed);
  border:2px solid var(--bg); box-shadow:0 2px 6px rgba(0,0,0,.3); }
.stu-prof .pf-id{ min-width:0; flex:1; }
.stu-prof .pf-name-row{ display:flex; align-items:center; gap:8px; font:700 24px 'Sora',sans-serif; color:var(--txt); line-height:1.15; }
.stu-prof .pf-name-row input{ font:700 20px 'Sora',sans-serif; }
.stu-prof .pf-edit{ background:none; border:none; cursor:pointer; color:var(--mut); padding:4px; border-radius:8px; display:inline-grid; place-items:center; transition:background .15s ease, color .15s ease; }
.stu-prof .pf-edit:hover{ background:var(--glass2); color:var(--accent-solid,#7c3aed); }
.stu-prof .pf-meta{ color:var(--mut); font-size:13px; margin-top:4px; }
.stu-prof .pf-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.stu-prof .pf-chip{ display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 11px; border-radius:99px;
  font-size:12px; font-weight:600; background:var(--glass2); border:1px solid var(--bord2); color:var(--mut); }
.stu-prof .pf-chip.ok{ color:#34d399; background:rgba(52,211,153,.12); border-color:rgba(52,211,153,.3); }
.stu-prof .pf-chip .pf-dot{ width:7px; height:7px; border-radius:50%; background:#34d399; box-shadow:0 0 0 3px rgba(52,211,153,.2); }
.stu-prof .pf-chip.pro{ color:#f5b301; background:rgba(245,179,1,.12); border-color:rgba(245,179,1,.32); }
.stu-prof .pf-chip.warn{ color:#fb923c; background:rgba(251,146,60,.12); border-color:rgba(251,146,60,.32); }
/* Light theme: the pale dark-mode chip inks fail contrast on a white surface — darken text/borders
   so Active / PRO / countdown chips stay legible (WCAG 4.5:1). */
html[data-theme="light"] .stu-prof .pf-chip{ color:#475569; background:rgba(16,24,42,.05); border-color:rgba(16,24,42,.18); }
html[data-theme="light"] .stu-prof .pf-chip.ok{ color:#047857; background:rgba(5,150,105,.12); border-color:rgba(5,150,105,.38); }
html[data-theme="light"] .stu-prof .pf-chip.ok .pf-dot{ background:#059669; box-shadow:0 0 0 3px rgba(5,150,105,.18); }
html[data-theme="light"] .stu-prof .pf-chip.pro{ color:#b45309; background:rgba(180,83,9,.1); border-color:rgba(180,83,9,.38); }
html[data-theme="light"] .stu-prof .pf-chip.warn{ color:#c2410c; background:rgba(194,65,12,.1); border-color:rgba(194,65,12,.38); }
/* Card headings with a leading line-icon — consistent anatomy across every profile card. */
.stu-prof .pf-inp{ width:100%; box-sizing:border-box; background:transparent; color:var(--txt);
  border:1px solid var(--bord2); border-radius:9px; padding:8px 11px; font:inherit; font-size:13px; margin-top:3px;
  transition:border-color .15s ease, box-shadow .15s ease; }
.stu-prof .pf-inp:focus{ outline:none; border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,.18); }
.stu-prof .pf-contact{ margin-top:16px; padding-top:14px; border-top:1px solid var(--bord); }
.stu-prof .pf-ctrow{ margin-bottom:12px; }
.stu-prof .pf-ctrow:last-child{ margin-bottom:0; }
.stu-prof .pf-ctline{ display:flex; gap:8px; align-items:stretch; margin-top:3px; }
.stu-prof .pf-ctline .pf-inp{ flex:1; min-width:0; margin-top:0; }
.stu-prof .pf-ctline .btn{ flex:none; white-space:nowrap; }
.stu-prof .pf-verified{ display:inline-flex; align-items:center; gap:3px; font-size:10.5px; font-weight:600; text-transform:none; letter-spacing:0;
  color:#34d399; background:rgba(52,211,153,.12); border:1px solid rgba(52,211,153,.3); border-radius:99px; padding:1px 7px; margin-left:6px; }
html[data-theme="light"] .stu-prof .pf-verified{ color:#047857; background:rgba(5,150,105,.1); border-color:rgba(5,150,105,.35); }
@media (max-width:560px){ .stu-prof .pf-ctline{ flex-direction:column; } .stu-prof .pf-ctline .btn{ align-self:flex-start; } }
.stu-prof .pf-h{ display:flex; align-items:center; gap:9px; margin-bottom:6px; }
.stu-prof .pf-h .lu{ color:var(--mut); }
/* MigrateCloud v2 ship 4, A-16: the student's "Your details for your application" card (app.js spfCardHTML, the first visaFileHTML slot).
   The student portal's own card, pf-h, card-sub, pf-chip, pf-inp and btn; layout only here (no new colour: --bord, --mut, --bad, --ok).
   Phone first: one field per row, inputs 40 px, Submit and Try again full width under 600 px; two columns and 36 px inputs above. */
.stu-prof .spf{ margin-bottom:18px; }
.spf-secs{ margin-top:10px; }
.spf-sec{ border-top:1px solid var(--bord); }
.spf-sec:first-child{ border-top:0; }
.spf-sum{ display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; font-weight:600; }
.spf-sum::-webkit-details-marker{ display:none; }
.spf-sum .spf-t{ flex:1; min-width:0; overflow-wrap:anywhere; }
.spf-sum:focus-visible{ outline:2px solid currentColor; outline-offset:2px; border-radius:6px; }
.spf-sec[open] > .spf-sum > svg:last-child{ transform:rotate(180deg); }
.spf-form{ padding:2px 0 14px; }
.spf-grid{ display:grid; grid-template-columns:minmax(0, 1fr); gap:12px; }
.spf-fld{ min-width:0; margin:0; padding:0; border:0; }
.spf-l{ display:block; margin-bottom:2px; padding:0; font-size:12.5px; font-weight:600; color:var(--mut); }
.stu-prof .spf .pf-inp{ min-height:40px; }
.stu-prof .spf textarea.pf-inp{ min-height:80px; resize:vertical; }
.spf-rov{ display:block; overflow-wrap:anywhere; }
.spf-hint{ display:block; margin-top:2px; font-size:12.5px; color:var(--mut); }
.spf-checks{ display:flex; flex-wrap:wrap; gap:0 16px; }
.spf-checks label{ display:inline-flex; align-items:center; gap:8px; min-height:40px; cursor:pointer; }
.spf-checks input{ width:18px; height:18px; margin:0; }
.spf-ferr{ margin:4px 0 0; font-size:12.5px; color:var(--bad); }
.spf-err{ margin:10px 0 0; font-size:13px; color:var(--bad); }
.spf-consent{ margin-top:12px; }
.spf-act{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:10px; }
.spf-act .btn, .spf-ban .btn{ min-height:32px; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.spf-st{ display:inline-flex; align-items:center; gap:6px; font-size:13px; }
.spf-st.ok{ font-weight:600; color:var(--ok); }
.spf-ban{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:10px; font-size:13px; color:var(--bad); }
.spf-skel{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.spf-skel i{ display:block; height:14px; border-radius:4px; background:var(--bord); }
.spf-skel i:nth-child(2){ width:80%; } .spf-skel i:nth-child(3){ width:60%; } .spf-skel i:nth-child(4){ width:70%; }
@media (min-width:600px){ .spf-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } .spf-fld.wide{ grid-column:1 / -1; } .stu-prof .spf .pf-inp{ min-height:36px; } }
@media (max-width:599px){ .spf-act .btn, .spf-ban .btn{ flex:1 1 100%; min-height:40px; } }
@media (max-width:640px){
  .stu-prof .pf-hero{ flex-direction:column; align-items:flex-start; gap:14px; padding:18px; }
  .stu-prof .pf-name-row{ font-size:21px; }
}
@media (prefers-reduced-motion: reduce){
  .stu-prof .pf-avatar, .stu-prof .btn, .stu-prof .pf-edit{ transition:none !important; }
}

/* ── Section layout (Phase 2): left rail + capped content, four show/hide sections ────────────── */
.stu-prof .pf-layout{ display:flex; gap:24px; align-items:flex-start; }
.stu-prof .pf-rail{ flex:none; width:212px; position:sticky; top:82px; display:flex; flex-direction:column; gap:4px; }
.stu-prof .pf-navitem{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 13px; border-radius:11px;
  border:1px solid transparent; background:transparent; color:var(--mut); font:600 14px 'Inter',sans-serif; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease; }
.stu-prof .pf-navitem .lu{ color:currentColor; opacity:.85; }
.stu-prof .pf-navitem:hover{ background:var(--glass2); color:var(--txt); }
.stu-prof .pf-navitem.active{ background:var(--glass-12); color:var(--txt); border-color:var(--bord2); box-shadow:inset 3px 0 0 0 #7c3aed; }
.stu-prof .pf-content{ flex:1; min-width:0; max-width:720px; }
.stu-prof .pf-sec{ display:none; }
.stu-prof .pf-sec.active{ display:block; animation:pfFade .18s ease; }
@keyframes pfFade{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:none;} }
@media (max-width:860px){
  .stu-prof .pf-layout{ flex-direction:column; gap:14px; }
  .stu-prof .pf-rail{ width:100%; flex-direction:row; overflow-x:auto; position:sticky; top:56px; z-index:5;
    padding:6px 2px; gap:6px; background:var(--bg); border-bottom:1px solid var(--bord); scrollbar-width:none; }
  .stu-prof .pf-rail::-webkit-scrollbar{ display:none; }
  .stu-prof .pf-navitem{ width:auto; white-space:nowrap; flex:none; padding:8px 14px; }
  .stu-prof .pf-navitem.active{ box-shadow:inset 0 -3px 0 0 #7c3aed; }
  .stu-prof .pf-content{ max-width:none; }
}
@media (prefers-reduced-motion: reduce){ .stu-prof .pf-sec.active{ animation:none; } .stu-prof .pf-navitem{ transition:none; } }

/* ── Student-facing staff public card (v735) ──────────────────────────────────────────────────── */
.sc-head{ display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.sc-av{ flex:none; width:64px; height:64px; border-radius:50%; overflow:hidden; display:grid; place-items:center;
  color:#fff; font:800 22px 'Sora',sans-serif; background:linear-gradient(135deg,#2563eb,#7c3aed); }
.sc-av img{ width:100%; height:100%; object-fit:cover; }
.sc-name{ font:700 19px 'Sora',sans-serif; color:var(--txt); line-height:1.2; }
.sc-bio{ color:var(--txt); font-size:13.5px; line-height:1.55; margin:0 0 12px; }
.sc-sec{ margin:12px 0; padding-top:12px; border-top:1px solid var(--bord); }
.sc-h{ display:flex; align-items:center; gap:7px; font-size:12px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--mut); margin-bottom:8px; }
.sc-h .lu{ color:var(--mut); }
.sc-chips{ display:flex; flex-wrap:wrap; gap:7px; }
.sc-chip{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; padding:4px 11px;
  border-radius:99px; background:var(--glass2); border:1px solid var(--bord2); color:var(--txt); }
.sc-chip.gold{ color:#b45309; background:rgba(245,179,1,.12); border-color:rgba(245,179,1,.4); }
html[data-theme="light"] .sc-chip.gold{ color:#92600e; }
.sc-ul{ margin:0; padding-left:18px; color:var(--txt); font-size:13.5px; line-height:1.6; }
.sc-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--bord); }

/* ── Target-score steppers + overall ring (v737) ─────────────────────────────────────────────── */
.stu-prof .tgt-wrap{ display:flex; gap:22px; align-items:center; margin-top:14px; }
.stu-prof .tgt-skills{ flex:1; min-width:0; display:flex; flex-direction:column; gap:14px; }
.stu-prof .tgt-skill-h{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--txt); margin-bottom:6px; }
.stu-prof .tgt-ctrl{ display:flex; align-items:center; gap:10px; }
.stu-prof .tgt-btn{ flex:none; width:30px; height:30px; border-radius:9px; border:1px solid var(--bord2); background:var(--glass2); color:var(--txt); font-size:18px; line-height:1; cursor:pointer; display:grid; place-items:center; transition:background .15s ease, transform .1s ease; }
.stu-prof .tgt-btn:hover{ background:var(--glass-12); }
.stu-prof .tgt-btn:active{ transform:scale(.92); }
.stu-prof .tgt-barwrap{ flex:1; height:8px; border-radius:99px; background:var(--glass2); border:1px solid var(--bord2); overflow:hidden; }
.stu-prof .tgt-bar{ height:100%; border-radius:99px; background:linear-gradient(90deg,#2563eb,#7c3aed); transition:width .2s ease; }
.stu-prof .tgt-val{ flex:none; width:30px; text-align:center; font:800 15px 'Sora',sans-serif; color:var(--txt); }
.stu-prof .tgt-ring-wrap{ flex:none; display:grid; place-items:center; }
.stu-prof .tgt-ring{ transform:rotate(-90deg); }
.stu-prof .tgt-ring-bg{ fill:none; stroke:var(--glass2); stroke-width:10; }
.stu-prof .tgt-ring-fg{ fill:none; stroke:#7c3aed; stroke-width:10; stroke-linecap:round; transition:stroke-dashoffset .3s ease; }
.stu-prof .tgt-ring-v{ transform:rotate(90deg); transform-origin:center; fill:var(--txt); font:800 26px 'Sora',sans-serif; text-anchor:middle; dominant-baseline:middle; }
.stu-prof .tgt-ring-l{ transform:rotate(90deg); transform-origin:center; fill:var(--mut); font-size:10px; text-anchor:middle; letter-spacing:.06em; }
@media (max-width:560px){ .stu-prof .tgt-wrap{ flex-direction:column-reverse; align-items:stretch; } .stu-prof .tgt-ring-wrap{ align-self:center; } }
@media (prefers-reduced-motion: reduce){ .stu-prof .tgt-bar, .stu-prof .tgt-ring-fg{ transition:none; } }

/* ── Official-result scorecard (v737) ────────────────────────────────────────────────────────── */
.stu-prof .scorecard{ margin-top:12px; border:1px solid var(--bord2); border-radius:16px; padding:16px 18px;
  background:radial-gradient(120% 140% at 100% 0%, rgba(99,102,241,.1), transparent 55%), var(--glass2); }
.stu-prof .scorecard.win{ background:radial-gradient(120% 140% at 100% 0%, rgba(52,211,153,.14), transparent 55%), var(--glass2); border-color:rgba(52,211,153,.35); }
.stu-prof .sk-top{ display:flex; align-items:center; gap:14px; }
.stu-prof .sk-overall{ display:flex; flex-direction:column; }
.stu-prof .sk-big{ font:800 44px 'Sora',sans-serif; line-height:1; color:var(--txt); }
.stu-prof .scorecard.win .sk-big{ color:#059669; }
html[data-theme="dark"] .stu-prof .scorecard.win .sk-big{ color:#34d399; }
.stu-prof .sk-band-l{ font-size:11.5px; color:var(--mut); text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }
.stu-prof .sk-delta{ margin-left:auto; font-size:12px; font-weight:700; padding:4px 11px; border-radius:99px; white-space:nowrap; }
.stu-prof .sk-delta.up{ color:#059669; background:rgba(5,150,105,.12); border:1px solid rgba(5,150,105,.35); }
.stu-prof .sk-delta.dn{ color:#c2410c; background:rgba(194,65,12,.1); border:1px solid rgba(194,65,12,.32); }
.stu-prof .sk-subs{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:14px 0; }
.stu-prof .sk-sub{ text-align:center; padding:9px 4px; border-radius:11px; background:var(--glass); border:1px solid var(--bord); }
.stu-prof .sk-sub-v{ font:800 18px 'Sora',sans-serif; color:var(--txt); }
.stu-prof .sk-sub-l{ font-size:10.5px; color:var(--mut); text-transform:uppercase; letter-spacing:.04em; margin-top:2px; }
.stu-prof .sk-meta{ font-size:12px; color:var(--mut); }
.stu-prof .sk-actions{ margin-top:12px; }

/* ── Registration progressive disclosure (v737) ──────────────────────────────────────────────── */
.stu-prof .reg-summary{ margin-top:12px; }
.stu-prof .reg-prog{ height:7px; border-radius:99px; background:var(--glass2); border:1px solid var(--bord2); overflow:hidden; }
.stu-prof .reg-prog-bar{ height:100%; border-radius:99px; background:linear-gradient(90deg,#2563eb,#7c3aed); transition:width .3s ease; }
.stu-prof .reg-summary-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; flex-wrap:wrap; }

/* ── Study-abroad journey timeline (v730) ─────────────────────────────────────────────────────── */
.stu-prof .jrn-locked{ display:flex; gap:14px; align-items:flex-start; padding:14px 0 2px; color:var(--mut); }
.stu-prof .jrn-locked .lu{ color:#7c3aed; flex:none; margin-top:2px; }
.stu-prof .jrn-progress{ height:8px; border-radius:99px; background:var(--glass2); border:1px solid var(--bord2); margin:14px 0 4px; overflow:hidden; }
.stu-prof .jrn-progress-bar{ height:100%; border-radius:99px; background:linear-gradient(90deg,#2563eb,#7c3aed); transition:width .4s ease; }
.stu-prof .jrn-pct{ font-size:12px; margin-bottom:4px; }
.stu-prof .jrn-steps{ margin:16px 0 6px; }
.stu-prof .jrn-step{ position:relative; display:flex; gap:14px; padding:0 0 18px 0; }
.stu-prof .jrn-step:last-child{ padding-bottom:0; }
.stu-prof .jrn-dot{ position:relative; z-index:1; flex:none; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:var(--glass2); border:2px solid var(--bord2); color:#fff; }
.stu-prof .jrn-step::before{ content:""; position:absolute; left:11px; top:24px; bottom:-2px; width:2px; background:var(--bord2); }
.stu-prof .jrn-step:last-child::before{ display:none; }
.stu-prof .jrn-step.done .jrn-dot{ background:linear-gradient(135deg,#2563eb,#7c3aed); border-color:transparent; }
.stu-prof .jrn-step.done::before{ background:#7c3aed; }
.stu-prof .jrn-step.current .jrn-dot{ background:var(--glass); border-color:#7c3aed; box-shadow:0 0 0 4px rgba(124,58,237,.18); }
.stu-prof .jrn-step.current .jrn-dot::after{ content:""; width:8px; height:8px; border-radius:50%; background:#7c3aed; animation:jrnPulse 1.6s ease-in-out infinite; }
@keyframes jrnPulse{ 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.45); opacity:.55;} }
.stu-prof .jrn-label{ font-weight:600; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-top:2px; }
.stu-prof .jrn-step.upcoming .jrn-label{ color:var(--mut); font-weight:500; }
.stu-prof .jrn-date{ font-size:11.5px; color:var(--mut); font-weight:500; }
.stu-prof .jrn-next{ font-size:12.5px; color:var(--mut); margin-top:3px; line-height:1.5; }
.stu-prof .jrn-apps{ margin:12px 0; }
.stu-prof .jrn-app{ display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--bord2); border-radius:11px; margin-bottom:6px; }
.stu-prof .jrn-cslr{ display:flex; gap:14px; align-items:flex-start; margin-top:16px; padding-top:14px; border-top:1px solid var(--bord); }
.stu-prof .jrn-cslr-av{ flex:none; width:46px; height:46px; border-radius:50%; display:grid; place-items:center; font:800 16px 'Sora',sans-serif; color:#fff; background:linear-gradient(135deg,#2563eb,#7c3aed); }
.stu-prof .jrn-cslr-links{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
@media (prefers-reduced-motion: reduce){ .stu-prof .jrn-step.current .jrn-dot::after{ animation:none; } .stu-prof .jrn-progress-bar{ transition:none; } }

.overlay .panel .btn.sqx-req,.btn.sqx-req{background:linear-gradient(120deg,#2563eb,#7c3aed 45%,#db2777 90%)!important;background-size:180% 180%!important;border:0!important;color:#fff!important;font-weight:800;box-shadow:0 6px 24px rgba(124,58,237,.45);animation:fxGrad 5s ease infinite alternate}
.overlay .panel .btn.sqx-req:hover,.btn.sqx-req:hover{box-shadow:0 8px 30px rgba(219,39,119,.5);transform:translateY(-1px)}
.overlay .panel .btn.sqx-req[disabled],.btn.sqx-req[disabled]{background:rgba(52,211,153,.15)!important;color:#6ee7b7!important;box-shadow:none;animation:none;border:1px solid rgba(52,211,153,.35)!important}

.overlay .panel .btn[data-bdmsell]{background:linear-gradient(120deg,#059669,#34d399)!important;border:0!important;color:#fff!important;font-weight:700;box-shadow:0 4px 16px rgba(52,211,153,.35)}
.overlay .panel .btn[data-bdmcust]{background:linear-gradient(120deg,#2563eb,#38bdf8)!important;border:0!important;color:#fff!important;font-weight:700;box-shadow:0 4px 16px rgba(56,189,248,.35)}
.overlay .panel .btn[data-bdmlog]{background:linear-gradient(120deg,#d97706,#fbbf24)!important;border:0!important;color:#1a1206!important;font-weight:800;box-shadow:0 4px 16px rgba(251,191,36,.3)}
.overlay .panel .btn[data-bdmmakelead]{background:linear-gradient(120deg,#2563eb,#7c3aed)!important;border:0!important;color:#fff!important;font-weight:700;box-shadow:0 4px 16px rgba(124,58,237,.4)}
.overlay .panel .btn[data-bdmsell]:hover,.overlay .panel .btn[data-bdmcust]:hover,.overlay .panel .btn[data-bdmlog]:hover,.overlay .panel .btn[data-bdmmakelead]:hover{transform:translateY(-1px);filter:brightness(1.08)}
.bdm-band{display:inline-flex;flex-direction:column;align-items:center;gap:2px;margin:0 8px 4px 0;padding:8px 14px;border-radius:13px;background:color-mix(in srgb,var(--bc) 9%,transparent);border:1px solid color-mix(in srgb,var(--bc) 40%,transparent)}
.bdm-band b{font:800 19px 'Sora',sans-serif;color:var(--bc)}
.bdm-band small{font-size:9px;letter-spacing:.6px;text-transform:uppercase;color:var(--mut-3)}
.bdm-hist{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 2px}
.bdm-h-node{display:flex;flex-direction:column;align-items:center;gap:3px}
.bdm-h-node b{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:2.5px solid;background:var(--glass);font:800 14px 'Sora',sans-serif}
.bdm-h-node small{font-size:9px;color:var(--mut-9)}
.bdm-h-link{font:800 10.5px 'Inter',sans-serif;color:var(--mut-9);padding:0 2px}
.bdm-h-link.up{color:var(--ok)}.bdm-h-link.dn{color:var(--bad)}
.bdm-price{color:var(--ok-2);background:rgba(52,211,153,.1);border:1px solid rgba(52,211,153,.3);padding:3px 9px;border-radius:99px;font-size:12px}
.bdm-revban{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:12px 16px;border-radius:13px;background:linear-gradient(115deg,rgba(52,211,153,.16),rgba(56,189,248,.1));border:1px solid rgba(52,211,153,.4)}
.bdm-revban span{font-weight:700;font-size:13px}
.bdm-revban b{font:800 20px 'Sora',sans-serif;color:var(--ok)}

.pipe-sim{margin:12px 0;padding:12px 16px;border-radius:13px;background:linear-gradient(115deg,rgba(52,211,153,.14),rgba(56,189,248,.08));border:1px solid rgba(52,211,153,.4);font-size:12.5px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;animation:fxIn .4s ease both}
.pipe-sim.dim{background:var(--glass);border-color:var(--glass-10);color:var(--mut-3)}
.pipe-sim .fin-tg{margin-left:auto}
.ivb-mycut{border-top:1px dashed rgba(255,255,255,.15);padding-top:8px;margin-top:4px}
.ab-slabnudge{margin:10px 0;padding:10px 13px;border-radius:12px;background:linear-gradient(115deg,rgba(124,58,237,.16),rgba(37,99,235,.1));border:1px solid rgba(124,58,237,.4)}
.ab-slabnudge.top{background:rgba(52,211,153,.1);border-color:rgba(52,211,153,.35);font-size:12px}
.asn-t{font-size:11.5px;line-height:1.5;margin-bottom:7px}
.asn-bar{height:7px;border-radius:99px;background:var(--glass3);overflow:hidden}
.asn-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2563eb,#7c3aed,#db2777);animation:fxBar 1s .2s cubic-bezier(.22,1,.36,1) both}
.pb-margin{font:700 10px 'Inter',sans-serif;padding:4px 9px;border-radius:99px;white-space:nowrap}
.pb-margin.hi{background:rgba(52,211,153,.12);color:var(--ok-2);border:1px solid rgba(52,211,153,.35)}
.pb-margin.lo{background:rgba(251,191,36,.1);color:var(--warn-2);border:1px solid rgba(251,191,36,.3)}
.ivb-batches{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}
.ivb-bchip{font:600 10.5px 'Inter',sans-serif;padding:5px 10px;border-radius:99px;background:var(--glass-05);border:1px solid var(--glass-12);color:#c7d2ea}
.ivb-bchip.bh-open{border-color:rgba(52,211,153,.4);color:var(--ok-2)}
.ivb-bchip.bh-fill{border-color:rgba(251,191,36,.4);color:var(--warn-2)}
.ivb-bchip.bh-full{opacity:.5;text-decoration:line-through}

.sf-new-float{position:fixed;top:78px;right:26px;z-index:45;box-shadow:0 8px 26px rgba(99,102,241,.45)}
@media(max-width:760px){.sf-new-float{top:auto;bottom:18px;right:18px}}
.n7{margin-bottom:14px}
.n7-row{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:11px;transition:.15s}
.n7-row:hover{background:var(--glass-06)}
.n7-row.hot{background:rgba(251,113,133,.07);border:1px solid rgba(251,113,133,.3);margin:3px 0}
.n7-d{font-size:16px;flex:none}
.n7-t{flex:1;min-width:0}
.n7-t b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.n7-t small{color:var(--mut-3);font-size:10.5px}
.n7-go{color:var(--mut-6)}

/* v1.300 V-02 — desktop only: unscoped, this beat the <=860px strip rule at ~L1249 and kept a 200px column on phones */
@media(min-width:861px){.fin-side{width:200px;padding:12px 10px 40px}}
.fin-sitem{padding:8px 10px;font-size:12.5px}
.fin-shell .sf-wrap.sf-fin{max-width:none;width:100%;padding:24px 28px 72px}
@media(min-width:1800px){.fin-shell .sf-wrap.sf-fin{max-width:1680px;margin:0 auto}}

.sf-new-float{top:74px;right:22px}
.tb-newlead{margin:0 10px 0 6px;padding:8px 16px;font-size:13px;white-space:nowrap}
/* v1.356 (portal audit 30 Sep) — the rule above re-sets font-size after the ≤640px icon-only rule, so Classic phones read "＋ ＋ New Lead": the label (which carries its own ＋) stays and the extra ::before goes. Lumen draws its own icon (lumen.css) and is unaffected. */
@media(max-width:640px){ .tb-newlead::before{content:none} }
.sf-new-float{display:none}

.ab-head-r{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
.ab-head-r .gsearch{width:380px;max-width:44vw;flex:0 1 auto}
.ab-head-r .sf-new{flex-shrink:0;white-space:nowrap}
@media(max-width:900px){.ab-head-r{flex-wrap:wrap}.ab-head-r .gsearch{max-width:100%;width:100%}}

.reg-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--bord)}
.reg-actions .btn{margin:0;height:42px;display:inline-flex;align-items:center}
@media(max-width:700px){.reg-actions .btn{flex:1 1 100%;justify-content:center}}

.ab-head-r{justify-content:flex-end}
.ab-head-r .gsearch{flex:1 1 auto;width:auto;max-width:none}

.bkx{font-family:Inter,sans-serif}
.bkx-h{display:flex;align-items:center;justify-content:space-between;background:#e2136e;margin:-22px -22px 0;padding:14px 18px;border-radius:14px 14px 0 0}
.bkx-logo{font-family:Sora,sans-serif;font-weight:800;font-size:20px;color:#fff;font-style:italic}
.bkx-mch{font-size:11.5px;color:rgba(255,255,255,.85)}
.bkx-amt{text-align:center;padding:18px 0 6px}
.bkx-amt small{display:block;color:var(--mut);font-size:12px;margin-bottom:2px}
.bkx-amt b{font-size:30px;font-family:Sora,sans-serif;color:#e2136e}
.bkx-step{padding:10px 4px}
.bkx-step label{display:block;font-size:12px;color:var(--mut);margin-bottom:6px}
.bkx-step input{width:100%;box-sizing:border-box;padding:12px 14px;border-radius:10px;border:1.5px solid rgba(226,19,110,.4);background:rgba(226,19,110,.05);color:var(--txt);font-size:16px;letter-spacing:.12em;outline:none}
.bkx-step input:focus{border-color:#e2136e}
.bkx-btn{width:100%;margin-top:12px;padding:13px;border:none;border-radius:10px;background:#e2136e;color:#fff;font-weight:800;font-size:14.5px;cursor:pointer;font-family:inherit}
.bkx-btn:hover{background:#c31161}
.bkx-spin{font-size:34px;color:#e2136e;animation:bkxspin 1s linear infinite;display:inline-block;margin:10px 0 4px}
@keyframes bkxspin{to{transform:rotate(360deg)}}
.bkx-foot{font-size:10.5px;color:var(--mut);text-align:center;margin-top:10px;border-top:1px dashed var(--bord);padding-top:8px}
.overlay .panel .btn.bkx-open{background:rgba(226,19,110,.12)!important;border-color:rgba(226,19,110,.55)!important;color:#f9679f!important}

.rdy-t{font-weight:800;font-family:Sora,sans-serif;font-size:14px;margin-bottom:5px}
.rdy-t small{color:var(--mut);font-weight:600;font-family:Inter,sans-serif;font-size:11.5px}
.rdy-row{display:flex;align-items:center;gap:14px}
.rdy-big{font-family:Sora,sans-serif;font-weight:800;font-size:28px;line-height:1}
.rdy-mid{flex:1;min-width:0}
.rdy-bar{position:relative;height:8px;border-radius:99px;background:rgba(127,127,127,.15);overflow:visible}
.rdy-bar i{display:block;height:100%;border-radius:99px;transition:width .6s ease}
.rdy-tgt{position:absolute;top:-8px;transform:translateX(-50%);font-size:12px}
.rdy-sub{font-size:11.5px;color:var(--mut);margin-top:4px;line-height:1.4}
.rdy-pct{text-align:center;font-family:Sora,sans-serif;font-weight:800;font-size:18px;line-height:1}
.rdy-pct small{display:block;font-size:9.5px;color:var(--mut);font-family:Inter,sans-serif;font-weight:600}
.nb-card{margin:14px 0}
.nb-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px dashed var(--bord)}
.nb-row:last-child{border-bottom:none}
.nb-nm{flex:1;font-size:13px;font-weight:600}
.nb-nm small{color:var(--mut);font-weight:500}
.nb-st{font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:99px;white-space:nowrap}
.nb-st.due{background:rgba(251,191,36,.14);color:var(--warn);border:1px solid rgba(251,191,36,.4)}
.nb-st.ok{background:rgba(52,211,153,.12);color:var(--ok);border:1px solid rgba(52,211,153,.35)}
.nb-st.wait{background:rgba(127,127,127,.1);color:var(--mut);border:1px solid var(--bord)}
.nb-st.bad{background:rgba(251,113,133,.12);color:var(--bad);border:1px solid rgba(251,113,133,.35)}
html[data-theme="light"] .nb-st.bad{background:rgba(190,18,60,.09);color:#be123c;border-color:rgba(190,18,60,.3)}
/* ── v652: mock voucher codes ── */
.mv-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;font-weight:600;letter-spacing:.07em;color:var(--txt);background:var(--glass2);border:1px solid var(--bord);border-radius:7px;padding:3px 9px;white-space:nowrap}
.mv-qty{display:flex;gap:8px;flex-wrap:nowrap;align-items:center}
.mv-qty input{width:78px;text-align:center;padding:8px 6px;border:1px solid var(--bord2);border-radius:10px;background:var(--glass2);color:var(--txt);font-weight:800;font-size:14px;font-family:inherit}
.mv-qty input:focus{outline:none;border-color:rgb(var(--accent));background:rgba(var(--accent),.10)}
.mv-qty button[disabled]{opacity:.4;cursor:not-allowed}
.mv-qty button[disabled]:hover{border-color:var(--bord2)}
.mv-qty button{padding:8px 15px;border:1px solid var(--bord2);border-radius:10px;background:var(--glass2);color:var(--txt);font-weight:700;font-size:13px;cursor:pointer;font-family:inherit}
.mv-qty button:hover{border-color:rgba(var(--accent),.5)}
.mv-qty button.on{border-color:rgb(var(--accent));background:rgba(var(--accent),.14);color:rgb(var(--accent))}
html[data-theme="light"] .mv-qty button.on{background:rgba(var(--accent),.1)}
.plan-card{margin:14px 0}
.plan-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:12px}
.plan-day{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:12px;padding:10px 12px}
.plan-day>b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);margin-bottom:7px;font-family:Sora,sans-serif}
.plan-it{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;padding:4px 0;cursor:pointer}
.plan-it input{margin-top:2px;accent-color:rgb(var(--accent))}
.plan-it.done span{text-decoration:line-through;color:var(--mut)}
.cap-bar{display:inline-block;width:80px;height:8px;border-radius:99px;background:rgba(127,127,127,.15);overflow:hidden;vertical-align:middle;margin-right:7px}
.cap-bar i{display:block;height:100%;border-radius:99px}

.doc-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px dashed var(--bord)}
.doc-row:last-child{border-bottom:none}
.doc-ic{font-size:17px}
.doc-nm{flex:1;font-size:13px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-nm small{color:var(--mut);font-weight:500}
/* MigrateCloud v2 ship 4, X-8: the student's "Documents your counsellor asked for" card (app.js stuDocReqCardHTML). The student portal's own
   card, pf-h, card-sub, pf-chip and btn; layout only here (no new colour: --bord, --mut, --bad). Phone first: the row wraps and the Upload
   button takes the full width under 600 px (40 px tall), 32 px on a wider screen. */
.studr{ margin-top:18px; }
.studr-list{ list-style:none; margin:10px 0 0; padding:0; }
.studr-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px 0; border-top:1px solid var(--bord); }
.studr-row:first-child{ border-top:0; }
.studr-main{ flex:1 1 220px; min-width:0; }
.studr-l{ display:block; overflow-wrap:anywhere; }
.studr-meta{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.studr-rerr{ margin:6px 0 0; font-size:13px; color:var(--bad); }
.studr .studr-up{ min-height:32px; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.studr-file{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.studr-note, .studr-consent{ margin-top:10px; }
.studr-empty{ display:flex; align-items:center; gap:8px; margin-top:10px; font-size:13px; }
.studr-err{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:10px; font-size:13px; color:var(--bad); }
.studr-err .btn{ min-height:32px; }
.studr-skel{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.studr-skel i{ display:block; height:14px; border-radius:4px; background:var(--bord); }
.studr-skel i:nth-child(2){ width:80%; } .studr-skel i:nth-child(3){ width:60%; }
@media (max-width:600px){ .studr .studr-up, .studr-err .btn{ flex:1 1 100%; min-height:40px; } }
.ck-row{display:flex;align-items:center;gap:9px;margin-top:12px;padding-top:11px;border-top:1px dashed var(--bord);font-size:12.5px;color:var(--mut)}
.ck-row.ok{color:var(--ok);font-weight:700}
.ck-row input{width:74px;padding:7px 10px;border-radius:9px;border:1px solid var(--bord);background:rgba(127,127,127,.07);color:var(--txt);font-size:15px;letter-spacing:.25em;text-align:center;outline:none}
.ck-row input:focus{border-color:rgb(var(--accent))}
.grp-code-chip{margin:8px 0 2px;font-size:12px;color:var(--mut);background:rgba(56,189,248,.08);border:1px dashed rgba(56,189,248,.4);border-radius:9px;padding:6px 10px}
.grp-code-chip b{color:var(--info);font-family:Sora,sans-serif;letter-spacing:.15em;font-size:13.5px}

.rail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.rail-btn{display:flex;flex-direction:column;gap:4px;align-items:center;padding:16px 10px;border-radius:12px;border:1.5px solid var(--bord);background:rgba(127,127,127,.05);cursor:pointer;transition:.15s;font-family:inherit;color:var(--txt)}
.rail-btn b{font-family:Sora,sans-serif;font-size:15px;color:var(--rc)}
.rail-btn small{font-size:10px;color:var(--mut);text-align:center}
.rail-btn:hover{border-color:var(--rc);background:color-mix(in srgb,var(--rc) 8%,transparent);transform:translateY(-2px)}

.ram-banner{background:linear-gradient(90deg,rgba(16,88,66,.9),rgba(9,60,90,.9));color:#d9f7e8;font-size:12.5px;font-weight:700;text-align:center;padding:7px 14px;letter-spacing:.01em;border-bottom:1px solid rgba(52,211,153,.35)}
/* v649 — admin "previewing the student portal" banner + exit */
.preview-banner{background:linear-gradient(90deg,#7c3aed,#4f46e5);color:#fff;font-size:12.5px;font-weight:700;text-align:center;padding:8px 14px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.pv-exit{border:0;background:rgba(255,255,255,.2);color:#fff;font-weight:800;font-family:inherit;font-size:12px;border-radius:8px;padding:4px 12px;cursor:pointer;transition:background .15s}
.pv-exit:hover{background:rgba(255,255,255,.34)}
.ram-chip{display:inline-block;font-size:10.5px;font-weight:700;color:#5eead4;background:rgba(20,184,166,.1);border:1px dashed rgba(20,184,166,.45);border-radius:8px;padding:1px 8px;margin-left:4px}
.ref-code{font-family:Sora,sans-serif;font-weight:800;font-size:19px;letter-spacing:.14em;color:var(--warn);background:rgba(251,191,36,.09);border:1.5px dashed rgba(251,191,36,.5);border-radius:10px;padding:7px 16px}

.vfl{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:12.5px}
.vfl>span:first-child{width:92px;color:var(--mut);font-weight:600}
.vfl-bar{flex:1;height:9px;border-radius:99px;background:rgba(127,127,127,.14);overflow:hidden}
.vfl-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--info),var(--viol))}
.vfl b{min-width:20px;text-align:right}
.fe-team{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:8px}

.vl-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
@media(max-width:1100px){.vl-board{grid-template-columns:repeat(3,minmax(0,1fr))}}
.vl-col{background:rgba(127,127,127,.04);border:1px solid var(--bord);border-radius:14px;padding:10px;min-height:120px}
.vl-col-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.vl-card{background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:11px;padding:9px 11px;margin-bottom:8px;cursor:pointer;transition:.13s}
.vl-card:hover{border-color:rgb(var(--accent));transform:translateY(-1px)}
.vl-hot{border-color:rgba(251,113,133,.55);box-shadow:0 0 14px rgba(251,113,133,.12);animation:vlpulse 2s infinite}
@keyframes vlpulse{50%{box-shadow:0 0 20px rgba(251,113,133,.25)}}
.vl-nm{font-weight:700;font-size:12.5px}
.vl-meta{font-size:10.5px;color:var(--mut);margin-top:2px}
.vl-empty{color:var(--mut);text-align:center;font-size:12px;padding:12px 0}
.pb-step{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border:1px solid var(--bord);border-left:3px solid rgba(56,189,248,.6);border-radius:0 10px 10px 0;margin:7px 0;background:rgba(127,127,127,.04)}
.pb-step b{font-size:13px}
.pb-step span{font-size:12px;color:var(--mut)}
.vs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.vs-card .sf-card-b{padding-top:6px}

.vu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:12px}
@media(max-width:900px){.vu-grid{grid-template-columns:1fr}}
.vu-stats{display:flex;gap:18px;margin:4px 0 6px}
.vu-stats span{display:flex;flex-direction:column;align-items:center}
.vu-stats b{font-family:Sora,sans-serif;font-size:17px}
.vu-stats small{font-size:9.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.05em}

.pol-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.pol-card{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:13px 14px;border-radius:13px;border:1px solid var(--bord);background:rgba(127,127,127,.05);cursor:pointer;text-align:left;font-family:inherit;color:var(--txt);transition:.14s}
.pol-card:hover{border-color:rgb(var(--accent));transform:translateY(-2px)}
.pol-ic{font-size:20px}
.pol-card b{font-size:13px}
.pol-card small{font-size:11px;color:var(--mut)}
.pol-read{font-size:11px;font-weight:800;color:rgb(var(--accent));margin-top:4px}
.pol-par{display:flex;gap:10px;margin:9px 0;align-items:flex-start}
.pol-n{flex-shrink:0;width:20px;height:20px;border-radius:99px;background:rgba(56,189,248,.14);color:var(--info);font-size:11px;font-weight:800;display:grid;place-items:center;margin-top:2px}
.pol-par p{margin:0;font-size:13px;line-height:1.55;color:var(--txt)}
.pol-mini{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--txt);cursor:pointer;font-family:inherit;font-size:12.5px;text-align:left}
.pol-mini span{flex:1;font-weight:600}
.pol-mini i{color:var(--mut);font-style:normal}
.pol-mini:hover{background:rgba(127,127,127,.08);border-color:var(--bord)}

.cf-filters{display:flex;gap:9px;flex-wrap:wrap}
.cf-filters .stu-sel{min-width:0}
.cf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(390px,1fr));gap:12px}
@media(max-width:860px){.cf-grid{grid-template-columns:1fr}}
.cf-card{background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:15px;padding:14px 16px;transition:.14s}
.cf-card:hover{border-color:rgb(var(--accent));transform:translateY(-2px)}
.cf-partner{border-color:rgba(251,191,36,.4);background:linear-gradient(180deg,rgba(251,191,36,.05),rgba(127,127,127,.05))}
.cf-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.cf-uni{font-size:12px;color:var(--mut)}
.cf-uni b{color:var(--txt);font-size:12.5px}
.cf-pbadge{flex-shrink:0;font-size:10px;font-weight:800;color:var(--warn);background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.45);border-radius:99px;padding:2px 9px;white-space:nowrap}
.cf-course{font-family:Sora,sans-serif;font-weight:800;font-size:15.5px;margin:6px 0 8px}
.cf-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.cf-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap}
.cf-fee b{font-family:Sora,sans-serif;font-size:16px;color:var(--ok)}
.cf-fee small{display:block;font-size:10.5px;color:var(--mut)}
.cf-acts{display:flex;gap:7px}

.va-board{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:1250px){.va-board{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.va-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
.va-docbar{height:5px;border-radius:99px;background:rgba(127,127,127,.18);overflow:hidden;margin-top:6px}
.va-docbar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--info),var(--ok))}

.vmm{border-color:rgba(251,191,36,.35);background:linear-gradient(180deg,rgba(251,191,36,.05),transparent)}
.vml-me{background:rgba(56,189,248,.07);border-radius:9px;padding-left:8px!important;padding-right:8px!important}
.vwall{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:9px}
.vwall-it{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border:1px solid rgba(34,197,94,.35);border-radius:12px;background:rgba(34,197,94,.06)}
.vwall-flag{font-size:22px}
.vwall-it b{font-size:11.5px}
.vwall-it small{font-size:9.5px;color:var(--mut)}

.va-quicklog{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0}
.va-notewrap{margin:6px 0 8px}
.va-acts{max-height:200px;overflow:auto;border:1px solid var(--bord);border-radius:11px;padding:4px 10px;background:rgba(127,127,127,.04)}
.va-act{display:flex;gap:9px;padding:7px 0;border-bottom:1px dashed var(--bord)}
.va-act:last-child{border-bottom:none}
.va-act-ic{font-size:14px;margin-top:1px}
.va-act-b{min-width:0;flex:1}
.va-act-t{font-size:12.5px}
.va-act-b small{font-size:10.5px;color:var(--mut)}

.nb-axes{display:flex;justify-content:space-between;font-size:10.5px;color:var(--mut);margin:12px 2px 6px;text-transform:uppercase;letter-spacing:.06em}
.nb-grid{display:flex;flex-direction:column;gap:8px}
.nb-rowg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.nb-cell{border:1px solid var(--bord);border-top:3px solid var(--nc);border-radius:13px;background:rgba(127,127,127,.04);padding:9px 10px;min-height:86px}
.nb-cell-h{font-size:11.5px;font-weight:800;color:var(--nc);margin-bottom:7px;cursor:help}
.nb-emp{display:inline-flex;flex-direction:column;align-items:flex-start;margin:0 6px 6px 0;padding:5px 10px;border-radius:9px;border:1px solid var(--bord);background:rgba(127,127,127,.08);color:var(--txt);cursor:pointer;font-family:inherit;font-size:12px;font-weight:700;transition:.12s}
.nb-emp small{font-size:9px;color:var(--mut);font-weight:500}
.nb-emp:hover{border-color:var(--nc);transform:translateY(-1px)}
.nb-none{color:var(--mut);font-size:11px;text-align:center;padding:8px 0}

.sc-stars{display:flex;gap:4px}
.sc-star{width:30px;height:26px;border-radius:7px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--mut);cursor:pointer;font-family:inherit;font-weight:700}
.sc-star.on{background:rgba(251,191,36,.18);border-color:rgba(251,191,36,.6);color:var(--warn)}
.enps-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.enps-b{width:34px;height:32px;border-radius:9px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--txt);cursor:pointer;font-weight:800;font-family:inherit;transition:.12s}
.enps-b:hover{transform:translateY(-2px)}
.enps-b.d:hover{border-color:var(--bad);color:var(--bad)}
.enps-b.p:hover{border-color:var(--warn);color:var(--warn)}
.enps-b.x:hover{border-color:var(--ok);color:var(--ok)}

.acdm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-top:8px}
.acdm-card{display:flex;gap:11px;align-items:flex-start;text-align:left;padding:13px 14px;border-radius:13px;border:1px solid var(--bord);background:rgba(127,127,127,.05);color:var(--txt);cursor:pointer;font-family:inherit;transition:.14s}
.acdm-card:hover:not(:disabled){border-color:rgb(var(--accent));transform:translateY(-2px)}
.acdm-card.done{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.05)}
.acdm-card.locked{opacity:.45;cursor:not-allowed}
.acdm-st{font-size:18px}
.acdm-t b{display:block;font-size:13px}
.acdm-t small{color:var(--mut);font-size:10.5px}
.acd-p{font-size:13px;line-height:1.6;margin:7px 0;color:var(--txt)}
.acd-ul{margin:6px 0 6px 18px;font-size:12.5px;line-height:1.55}
.acd-ul li{margin:3px 0}
.acd-note{border-left:3px solid rgba(56,189,248,.6);background:rgba(56,189,248,.07);border-radius:0 9px 9px 0;padding:8px 12px;font-size:12.5px;margin:8px 0}
.acd-micro{border:1px dashed var(--bord);border-radius:10px;padding:8px 12px;margin:8px 0;font-size:12.5px}
.acd-micro summary{cursor:pointer;font-weight:700;font-size:12.5px}
.acd-scen{border:1px solid rgba(167,139,250,.4);border-radius:12px;padding:12px 14px;margin:12px 0;background:rgba(167,139,250,.05)}
.acd-scen-h{font-weight:800;font-size:13px;margin-bottom:4px;color:var(--viol-2)}
.acd-opt{display:block;width:100%;text-align:left;margin:6px 0;padding:9px 12px;border-radius:10px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--txt);cursor:pointer;font-family:inherit;font-size:12.5px;transition:.12s}
.acd-opt:hover{border-color:var(--viol)}
.acd-opt.on{border-color:var(--viol);background:rgba(167,139,250,.14)}
.acd-fb{font-size:12.5px;margin:8px 0;padding:8px 12px;border-radius:9px;background:rgba(127,127,127,.08)}
.acd-q{border-top:1px dashed var(--bord);padding:10px 0;font-size:13px}
.acd-q b{display:block;margin-bottom:5px}

.acx-hero{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:16px 18px;border-radius:16px;border:1px solid rgba(56,189,248,.3);background:linear-gradient(135deg,rgba(56,189,248,.08),rgba(167,139,250,.06))}
.acx-rank{flex:1;min-width:220px}
.acx-rank-t{font-family:Sora,sans-serif;font-weight:800;font-size:19px}
.acx-xpbar{height:10px;border-radius:99px;background:rgba(127,127,127,.18);overflow:hidden;margin:8px 0 4px}
.acx-xpbar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--info),var(--viol),var(--warn));transition:width .6s ease}
.acx-xps{font-size:11.5px;color:var(--mut)}
.acx-stats{display:flex;gap:8px;flex-wrap:wrap}
.acx-chip{font-size:11.5px;font-weight:700;padding:5px 12px;border-radius:99px;border:1px solid var(--bord);background:rgba(127,127,127,.07)}
.acx-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.acx-badge{font-size:11px;font-weight:700;padding:4px 11px;border-radius:99px;border:1px solid rgba(251,191,36,.45);background:rgba(251,191,36,.08);color:#fde68a}
.acx-daily{border-color:rgba(251,191,36,.35)}
.acx-daily-done{margin-top:12px;font-size:12.5px;color:var(--ok);font-weight:700}
.acx-steps{display:flex;align-items:center;gap:6px;margin:10px 0 14px;flex-wrap:wrap}
.acx-dot{padding:6px 13px;border-radius:99px;border:1px solid var(--bord);background:rgba(127,127,127,.06);color:var(--mut);font-family:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.acx-dot.on{border-color:rgb(var(--accent));color:var(--txt);background:rgba(var(--accent),.12)}
.acx-dot.done{color:var(--ok);border-color:rgba(52,211,153,.4)}
.acx-dot-line{flex:0 0 14px;height:1px;background:var(--bord)}
.acx-take{display:grid;gap:7px;margin:8px 0}
.acx-take-it{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;padding:8px 12px;border-radius:10px;background:rgba(52,211,153,.06);border:1px solid rgba(52,211,153,.25)}
.acx-take-it span{flex-shrink:0;width:20px;height:20px;border-radius:99px;background:rgba(52,211,153,.2);color:var(--ok);font-weight:800;font-size:11px;display:grid;place-items:center}
.acx-microxp{font-size:9.5px;font-weight:800;color:var(--warn);background:rgba(251,191,36,.1);border-radius:99px;padding:1px 7px;margin-left:6px}
.acx-coach{display:flex;gap:10px;margin:10px 0;padding:11px 13px;border-radius:13px;border:1px solid var(--bord);background:rgba(127,127,127,.05);animation:fxIn .3s ease both}
.acx-coach.good{border-color:rgba(52,211,153,.5);background:rgba(52,211,153,.07)}
.acx-coach.bad{border-color:rgba(251,113,133,.5);background:rgba(251,113,133,.06)}
.acx-coach-ava{font-size:26px;line-height:1}
.acx-coach-v{font-weight:800;font-size:12.5px;margin-bottom:2px}
.acx-coach.good .acx-coach-v{color:var(--ok)}
.acx-coach.bad .acx-coach-v{color:var(--bad)}
.acx-coach-t{font-size:12.5px;line-height:1.55}
.acx-playbook{margin-top:8px;font-size:12.5px;line-height:1.55;border-left:3px solid rgba(167,139,250,.6);background:rgba(167,139,250,.08);border-radius:0 9px 9px 0;padding:8px 11px}
.acd-opt.good{border-color:rgba(52,211,153,.6)!important;background:rgba(52,211,153,.12)!important}
.acd-opt.bad{border-color:rgba(251,113,133,.6)!important;background:rgba(251,113,133,.1)!important}

.em-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 12px}
.em-search{flex:1;min-width:220px;max-width:420px;background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:10px;padding:9px 12px;color:var(--ink,#e8eef7);font-size:13px}
.em-search:focus{outline:none;border-color:rgb(var(--accent))}
.em-sel{background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:10px;padding:9px 12px;color:var(--ink,#e8eef7);font-size:13px}
.em-showing{font-size:11.5px;color:var(--mut);margin-left:auto}
.em-board{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 12px;scroll-snap-type:x proximity}
.em-col{flex:0 0 236px;background:rgba(127,127,127,.04);border:1px solid var(--bord);border-radius:14px;padding:10px;scroll-snap-align:start}
.em-col-h{display:flex;align-items:center;gap:7px;margin-bottom:9px;font-size:12px}
.em-col-h b{margin-left:auto;font-size:13px}
.em-col-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.em-col-t{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.em-col-b{max-height:64vh;overflow-y:auto;padding-right:2px}
.em-card{margin-bottom:8px}
.em-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.em-chip{font-size:9.5px;padding:2px 6px;border-radius:6px;background:rgba(127,127,127,.1);border:1px solid var(--bord);color:var(--mut);white-space:nowrap}
.em-chip.ok{background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.4);color:var(--ok)}
.em-chip.warn{background:rgba(251,113,133,.13);border-color:rgba(251,113,133,.38);color:var(--bad)}
.em-dh{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.em-dt{font-size:19px;font-weight:800}
.em-dsub{font-size:12px;color:var(--mut);margin-top:3px}
.em-track{display:flex;gap:3px;margin-bottom:14px}
.em-trk{flex:1;height:6px;border-radius:4px;background:rgba(127,127,127,.16)}
.em-trk.on{background:var(--sc,#22c55e)}
.em-dgrid{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px}
.em-drow{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:5px 0;border-bottom:1px solid var(--bord)}
.em-drow span{color:var(--mut);flex:0 0 auto}
.em-drow b{text-align:right}
.em-dnotes{margin-top:12px;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:10px;padding:10px 12px}
.em-dnotes span{font-size:11px;color:var(--mut)}
.em-dnotes p{margin:4px 0 0;font-size:12.5px;line-height:1.5}
.em-dapps{margin-top:12px}
.em-dapps-h{font-size:12.5px;font-weight:700;margin-bottom:7px}
.em-app{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:1px solid var(--bord);border-radius:10px;margin-bottom:6px;background:rgba(127,127,127,.04)}
.em-app b{font-size:12.5px}
.em-app-c{font-size:11px;color:var(--mut)}
.em-app-meta{font-size:10.5px;color:var(--mut);margin-top:2px}
.em-dfoot{margin-top:14px;text-align:center}
@media(max-width:640px){.em-dgrid{grid-template-columns:1fr}}

.sf-kpi-link{cursor:pointer;transition:.13s;border:1px solid transparent}
.sf-kpi-link:hover{border-color:rgb(var(--accent));transform:translateY(-1px)}
.emp-tblwrap{margin-top:6px;border:1px solid var(--bord);border-radius:12px;overflow:hidden;overflow-x:auto}
.emp-tbl{width:100%;border-collapse:collapse;font-size:12.5px;min-width:640px}
.emp-tbl thead th{text-align:left;font-size:11px;color:var(--mut);font-weight:600;padding:10px 12px;background:rgba(127,127,127,.05);border-bottom:1px solid var(--bord);position:sticky;top:0}
.emp-tbl tbody td{padding:9px 12px;border-bottom:1px solid var(--bord)}
.emp-tbl tbody tr{cursor:pointer;transition:.1s}
.emp-tbl tbody tr:hover{background:rgba(127,127,127,.06)}
.emp-tbl tbody tr:last-child td{border-bottom:0}
.emp-tag{display:inline-block;font-size:9.5px;padding:1px 6px;margin-left:7px;border-radius:6px;background:rgba(127,127,127,.12);border:1px solid var(--bord);color:var(--mut);vertical-align:middle}
.emp-exp{color:#fb923c;font-weight:700}
.fin-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}

.fin-side-brand{font-size:15px;font-weight:800;color:var(--txt);padding:6px 10px 10px;letter-spacing:-.2px}
.fin-side-brand b{background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
@media(max-width:860px){.fin-side-brand{width:100%}}
.bt-note{font-size:12px;color:var(--mut);line-height:1.6}
.dr-sec{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--mut);margin:14px 0 6px}
.nmcell{display:flex;align-items:center;gap:10px;min-width:0}
.nmcell .av{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;flex:none;background:rgba(56,189,248,.14);color:var(--info-2);border:1px solid rgba(56,189,248,.35)}
.acx-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.acx-coach-b{flex:1;min-width:0}
.ma-anl{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 2px}
.ab-q-list{display:flex;flex-direction:column;gap:7px;margin-top:8px}
.lp-bal-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.lp-act-b{display:flex;gap:6px;flex:none;flex-wrap:wrap}
.tw-w-uv{background:rgba(251,191,36,.14);color:var(--warn);border:1px solid rgba(251,191,36,.3);border-radius:6px;padding:1px 6px;font-weight:700;font-size:11px}
.dash-wave{display:inline-block;animation:dashWave 2.6s ease-in-out infinite;transform-origin:70% 70%}
@keyframes dashWave{0%,88%,100%{transform:rotate(0)}90%{transform:rotate(16deg)}94%{transform:rotate(-8deg)}97%{transform:rotate(10deg)}}

.stu-search,.stu-sel,.fin-in,.field input,.field select,textarea.stu-search,.cx-f input,.cx-f select,.cust-fi{
  min-height:38px;font-size:13.5px;border-radius:10px;padding:8px 12px;box-sizing:border-box;color:var(--txt)}
textarea.stu-search{min-height:76px;line-height:1.5}
.stu-search::placeholder,.cx-f input::placeholder,.cust-fi::placeholder,.field input::placeholder{color:rgba(167,178,198,.55)}
body .stu-search:focus,body .stu-sel:focus,body .cx-f input:focus,body .cx-f select:focus,body .field input:focus,body .field select:focus,body .cust-fi:focus,body textarea.stu-search:focus{
  border-color:rgba(56,189,248,.65);box-shadow:0 0 0 3px rgba(56,189,248,.14);outline:none;background:var(--glass-07)}
.cx-f small,.field label{font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--mut);margin-bottom:4px;display:block}
input[type="date"].stu-search,input[type="month"].stu-search{min-width:150px;color-scheme:dark}
input[type="number"].stu-search{min-width:96px;text-align:right;font-variant-numeric:tabular-nums}
.ck-row input{min-height:38px;width:86px!important}
select.stu-sel{cursor:pointer;padding-right:28px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a7b2c6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}

/* v1.300 V-04 — was rgba(56,189,248,.9)->rgba(99,102,241,.9): #f4faff text measured 3.49:1 (2.43 at the sky end).
   Opaque deep pair, the same one light uses (--info/--viol-3 light values): white clears >=5.9 on both stops. */
body .btn.primary{
  background:linear-gradient(135deg,#0369a1,#4338ca);border-color:rgba(125,211,252,.55);
  color:#f4faff;font-weight:800;text-shadow:0 1px 2px rgba(2,20,40,.35);box-shadow:0 4px 14px rgba(56,189,248,.22)}
body .btn.primary:hover{background:linear-gradient(135deg,#0369a1,#4338ca);filter:brightness(1.1);box-shadow:0 6px 20px rgba(56,189,248,.32)}   /* v1.300 V-04 */
body .btn.danger-line{color:var(--bad-3);border-color:rgba(251,113,133,.45);background:rgba(251,113,133,.07)}
body .btn.danger-line:hover{background:rgba(251,113,133,.16);border-color:rgba(251,113,133,.7);color:#fecdd3}
.btn:disabled,.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.btn.small{padding:6px 12px;font-size:12px;border-radius:9px;min-height:30px}
body .btn:not(.primary):not(.danger-line):hover{border-color:rgba(56,189,248,.45);color:var(--ink-hi8)}
.fin-toolbar .btn.small{min-height:32px}

.btn.share-wa,a.btn[href^="https://wa.me"]{border-color:rgba(37,211,102,.45);color:#86efac}
a.btn[href^="https://wa.me"]:hover{background:rgba(37,211,102,.14);border-color:rgba(37,211,102,.7)}

:root{--mut:#aeb9cd}
.card-sub,.cx-ph,.sub{color:var(--mut);line-height:1.55}
.row-sub{color:rgba(167,178,198,.85);font-size:11px}
body table.list th{color:#c6d2e4;font-weight:700}
body .sf-kpi-l,body .fx-stat-l{color:#b6c2d6}
body .sf-kpi-v{color:#f2f6fc}
body .fin-pl>span:first-child{color:#c3cfe0}
body .bt-note{color:#9fb0c7}
.vl-meta{color:#9fb0c7}
.acd-p,.acd-ul{color:var(--ink-hi9)}
body .cust-dsec{color:#8fd3f4;font-weight:800;letter-spacing:.04em}

.fin-pl b{font-variant-numeric:tabular-nums}

.overlay .panel .cx-invw-row{flex-wrap:nowrap;min-width:0}
.overlay .panel .cx-invw-no{white-space:nowrap;flex:0 0 auto}
.overlay .panel .cx-invw-amt{white-space:nowrap;flex:0 0 auto;margin-left:auto}
.overlay .panel .cx-invw-st{flex:1 1 auto;min-width:0;display:flex;justify-content:flex-end}
.overlay .panel .cx-invw-st .lv-status{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;padding:3px 9px}
.overlay .panel .cx-invw-go{white-space:nowrap}
@media(max-width:560px){.overlay .panel .cx-invw-row{flex-wrap:wrap}.overlay .panel .cx-invw-st{justify-content:flex-start;order:5;flex-basis:100%}}

.ivb-row input,.ivb-row input[type="number"],.ivb-srow input,.ivb-srow input[type="number"]{min-width:0;width:100%}
.ivb-row .stu-sel{min-width:0;padding-right:20px}
.ivb-row input[type="number"]{text-align:right}
.ivb-head{align-items:end}

.ivb-row input.ivb-qty{text-align:center}

.cx-f input,.cx-f select,.cx-f textarea{width:100%}               
.fin-sitem{align-items:flex-start}
.fin-sitem span{line-height:1.3}                                   
.bdm-pitch{white-space:normal;max-width:180px;line-height:1.35}    

.rt-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:8px}
@media(max-width:1150px){.rt-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.rt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rt-col{background:rgba(127,127,127,.04);border:1px solid var(--bord);border-radius:13px;padding:9px;min-height:140px}
.rt-col.rt-today{border-color:rgba(56,189,248,.5);background:rgba(56,189,248,.05)}
.rt-col-h{display:flex;align-items:baseline;gap:6px;margin-bottom:8px}
.rt-col-h b{font-family:Sora,sans-serif;font-size:13px}
.rt-col-h small{color:var(--mut);font-size:10.5px}
.rt-now{margin-left:auto;font-size:9px;font-weight:800;color:var(--info);text-transform:uppercase}
.rt-card{background:rgba(127,127,127,.07);border:1px solid var(--bord);border-radius:10px;padding:8px 10px;margin-bottom:7px;cursor:pointer;transition:.12s}
.rt-card:hover{border-color:rgb(var(--accent));transform:translateY(-1px)}
.rt-time{font-size:10px;font-weight:800;color:var(--warn)}
.rt-name{font-size:12px;font-weight:800;margin:1px 0}
.rt-meta{font-size:10px;color:var(--mut);line-height:1.4}
.rt-join{display:inline-block;margin-top:5px;font-size:10.5px;font-weight:800;color:var(--ok);border:1px solid rgba(52,211,153,.4);border-radius:8px;padding:2px 9px;text-decoration:none}
.rt-empty{color:var(--mut);text-align:center;font-size:11px;padding:14px 0}
.grp-topic{margin:6px 0 2px;font-size:11.5px;color:var(--viol-2);background:rgba(167,139,250,.08);border:1px dashed rgba(167,139,250,.4);border-radius:9px;padding:5px 10px}
.tlog-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:13px;padding:10px 14px;margin:10px 0}
.tlog-t{font-weight:800;font-family:Sora,sans-serif;font-size:13px}
.tlog-stats{font-size:12px;color:var(--mut);cursor:help}

body .lw-lbl{color:var(--ink-hi9)}
body .lw-sub,body .lw-none,body .lw-date{color:#9db1c9}
body .lw-batch{background:var(--glass-05);border-color:rgba(255,255,255,.13);color:var(--ink-hi9);font-weight:600}
body .lw-batch b{font-weight:700}
body .lw-batch span{color:#8fa3bd}
body .lw-batch:hover{border-color:rgba(56,189,248,.55);background:rgba(56,189,248,.07)}
body .lw-batch.on{border-color:rgba(56,189,248,.75);background:rgba(56,189,248,.14);box-shadow:0 0 0 1px rgba(56,189,248,.3)}
body .lw-batch.on::after{color:var(--info)}
body .stp b,body [data-wlv]{color:var(--txt)}
body .stp-b{background:var(--glass-08);border:1px solid rgba(255,255,255,.16);color:var(--txt)}
body .stp-b:hover{border-color:rgba(56,189,248,.6);background:rgba(56,189,248,.12)}

body .att-name{color:var(--ink-hi4)}
body .att-row.att-on .att-name{color:var(--ok-2)}
body .att-m{background:var(--glass-06);border-color:rgba(255,255,255,.16);color:#b9c6da}
body .att-m:hover{border-color:rgba(56,189,248,.55);color:var(--ink-hi8)}
body .att-m.on{background:rgba(56,189,248,.16);border-color:rgba(56,189,248,.7);color:var(--info-2)}
body .att-m-present.on{background:rgba(52,211,153,.16);border-color:rgba(52,211,153,.7);color:var(--ok-2)}
body .att-m-absent.on{background:rgba(251,113,133,.14);border-color:rgba(251,113,133,.65);color:var(--bad-3)}
body .att-m-makeup.on,body .att-m-repeat.on{background:rgba(251,191,36,.14);border-color:rgba(251,191,36,.6);color:var(--warn-2)}

.rv-primer{border:1px solid rgba(56,189,248,.3);background:rgba(56,189,248,.05);border-radius:12px;padding:9px 14px;margin:10px 0}
.rv-primer summary{cursor:pointer;font-weight:800;font-size:12.5px;color:var(--info-2)}
.rv-primer p{margin:8px 0 2px;font-size:12.5px;line-height:1.6;color:#c9d6e8}
.rv-ex-rich{background:rgba(127,127,127,.06);border:1px solid var(--bord);border-radius:11px;padding:10px 13px;margin-top:8px;font-size:12.5px;line-height:1.55}
.rv-ex-row{color:var(--ink-hi9)}
.rv-ref{color:var(--mut);font-size:11px}
.rv-quote{border-left:3px solid rgba(52,211,153,.6);background:rgba(52,211,153,.06);border-radius:0 9px 9px 0;padding:7px 11px;margin:7px 0;font-style:italic;color:#c7f0dd;font-size:12.5px}
.rv-quote-inline{color:var(--ok-2);font-style:italic}
.rv-syn{margin-top:7px;color:#cbd7ea;font-size:12px}
.rv-syn-pair{display:inline-block;background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.35);border-radius:99px;padding:2px 10px;margin:2px 2px;color:#d5c8f7;font-size:11.5px}

.rv-rows{display:block}
.rv-rows .rv-part{width:100%;margin-bottom:18px}
.rv-rows .rv-card{width:100%;box-sizing:border-box}
/* v1.666 R1 (docs/port-easymock-review-plan-2026-11-30.md) — answer review: evidence marked in the passage, the costliest-type line,
   the per-question actions and the "how this type works" cards. Lumen (lx-stu) restates the colours in its own tokens (lumen.css). */
.rv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.rv-cost{margin:-4px 0 13px;font-size:14px;line-height:1.5;color:var(--txt)}
.rv-ev{background:rgba(52,211,153,.16);color:inherit;border-radius:3px;padding:0 1px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.rv-ev.no{background:rgba(251,113,133,.16)}
.rv-ev.on{outline:2px solid rgba(var(--accent),.75);outline-offset:1px}
.rv-ev-h:focus{outline:2px solid rgba(var(--accent),.9);outline-offset:1px}
.rv-ev-n{display:inline-block;margin-right:4px;font-size:11px;font-weight:700;font-style:normal;font-variant-numeric:tabular-nums;color:var(--mut);vertical-align:1px}
.rv-acts{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin-top:6px}
.rv-evgo,.rv-report{-webkit-appearance:none;appearance:none;background:none;border:0;margin:0;padding:0;min-height:32px;font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.rv-evgo{color:var(--info-2);font-weight:600}
.rv-report{color:var(--mut);margin-left:auto}
.rv-evgo:hover,.rv-report:hover{text-decoration-thickness:2px}
.rv-evgo:focus-visible,.rv-report:focus-visible,.rv-tcard>summary:focus-visible,.rv-tc-ans>summary:focus-visible{outline:2px solid rgba(var(--accent),.9);outline-offset:2px;border-radius:4px}
.rv-tcard p,.rv-tcard li{font-size:13px;line-height:1.6;color:var(--txt)}
.rv-tc-steps{margin:6px 0 6px 20px;padding:0}
.rv-tc-ex{border-left:2px solid var(--bord);margin:10px 0 4px;padding:0 0 0 12px}
.rv-tc-q{font-weight:600}
.rv-tc-ans>summary{display:inline-flex;align-items:center;min-height:32px;cursor:pointer;font-size:13px;font-weight:600;color:var(--info-2)}
.rv-tc-hide{display:none}
.rv-tc-ans[open]>summary .rv-tc-show{display:none}
.rv-tc-ans[open]>summary .rv-tc-hide{display:inline}
.mb-exam.on{border-color:rgba(56,189,248,.7)!important;background:rgba(56,189,248,.12)!important;box-shadow:0 0 0 1px rgba(56,189,248,.35)}
.stu-quick{transition:.15s;cursor:pointer}
.stu-quick:hover{border-color:rgb(var(--accent))!important;transform:translateY(-2px)}
.slot .slot-tn{display:block;font-size:8.5px;color:var(--mut);margin-top:1px}

.emp-stg{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;padding:2px 9px;border-radius:999px;color:var(--sc);background:color-mix(in srgb,var(--sc) 15%,transparent);border:1px solid color-mix(in srgb,var(--sc) 42%,transparent);white-space:nowrap;line-height:1.7}
.emp-stg-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}
.emp-sum-row{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 2px}
.emp-sum{--sc:#8aa;flex:1 1 120px;min-width:110px;background:var(--glass-03);border:1px solid var(--glass-08);border-left:3px solid var(--sc);border-radius:12px;padding:11px 13px}
.emp-sum-n{font-size:23px;font-weight:800;color:var(--sc);line-height:1}
.emp-sum-l{font-size:11.5px;color:var(--mut);font-weight:700;margin-top:3px}
.emp-tag{display:inline-block;font-size:10.5px;font-weight:700;color:var(--viol-2);background:rgba(167,139,250,.15);border:1px solid rgba(167,139,250,.3);border-radius:6px;padding:1px 7px;margin:2px 4px 0 0}
.etl{margin-top:8px;max-height:360px;overflow:auto}
.etl-row{display:flex;gap:11px;padding:9px 2px;border-bottom:1px solid var(--glass-06)}
.etl-row:last-child{border-bottom:none}
.etl-ic{font-size:16px;width:24px;text-align:center;flex:none;line-height:1.3}
.etl-t{font-size:13px;font-weight:700;color:var(--txt)}
.etl-m{font-size:11px;color:var(--mut);margin-top:2px}

.lock-chip{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:800;letter-spacing:.06em;padding:2px 8px;border-radius:999px;color:#cbb38a;background:rgba(203,179,138,.14);border:1px solid rgba(203,179,138,.34)}
/* v879 — locked full-mock catalogue card (inert, display-only). Mirrors .vg-set.locked / .acdm-card.locked. */
/* v1.300 V-08 — was opacity:.55 + grayscale: every line fell to 2.3–3.6:1, incl. the "ask your counsellor" CTA */
.card.mk-locked{ cursor:default; border-style:dashed; }
.card.mk-locked > div:first-child > b{ color:var(--mut); }
.card.mk-locked .t-emo{ filter:grayscale(1); opacity:.6; }
.mk-lock-note{ margin-top:auto; padding-top:10px; font-size:12.5px; color:var(--mut); text-align:center; }
.deliv-toggle{display:flex;gap:12px;flex-wrap:wrap}
.deliv-opt{flex:1;min-width:180px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:14px 16px;border-radius:14px;border:1.5px solid var(--bord,var(--glass-12));background:var(--glass-03);color:var(--txt);cursor:pointer;font-family:inherit;transition:.16s}
.deliv-opt:hover{border-color:rgba(56,189,248,.5)}
.deliv-opt.on{border-color:var(--info);background:rgba(56,189,248,.12);box-shadow:0 0 0 1px rgba(56,189,248,.4) inset}
.deliv-opt .deliv-ic{font-size:24px;line-height:1}
.deliv-opt b{font-size:15px}
.deliv-opt small{color:var(--mut);font-size:11.5px;font-weight:500}
.mock-pass{font-family:'SFMono-Regular',ui-monospace,Menlo,monospace;font-size:17px;font-weight:800;letter-spacing:.22em;color:var(--ok);background:rgba(52,211,153,.12);border:1px solid rgba(52,211,153,.34);border-radius:8px;padding:4px 12px}

.comp-chip{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:800;letter-spacing:.06em;padding:2px 9px;border-radius:999px;color:var(--ok);background:rgba(52,211,153,.15);border:1px solid rgba(52,211,153,.4)}

.qt-legend{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.qt-lg{font-size:11px;font-weight:800;color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);border:1px solid color-mix(in srgb,var(--c) 32%,transparent);border-radius:999px;padding:3px 10px;white-space:nowrap}
.qt-list{display:flex;flex-direction:column;gap:13px}
.qt-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px}
.qt-name{font-size:13.5px;font-weight:700;color:var(--txt)}
.qt-tag{font-size:11px;font-weight:800;color:var(--c);white-space:nowrap}
.qt-line{display:flex;align-items:center;gap:10px}
.qt-track{flex:1;height:9px;border-radius:999px;background:var(--glass3);overflow:hidden}
.qt-track i{display:block;height:100%;border-radius:999px;transition:width .55s ease}
.qt-go{flex:none;font-size:11.5px;font-weight:800;color:#9cc0ff;background:rgba(96,165,250,.14);border:1px solid rgba(96,165,250,.34);border-radius:9px;padding:5px 12px;cursor:pointer;font-family:inherit;transition:.15s}
.qt-go:hover{background:rgba(96,165,250,.26);color:#cfe0ff}
.qt-done{flex:none;font-size:11px;font-weight:800;color:#22c55e;white-space:nowrap}
.qt-sub{font-size:10.5px;color:var(--mut);margin-top:5px}

.vd-bar{display:flex;align-items:center;gap:10px;padding:5px 0}
.vd-bar-l{flex:0 0 40%;font-size:12px;font-weight:700;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vd-bar-l small{color:var(--mut);font-weight:600}
.vd-track{flex:1;height:9px;border-radius:999px;background:var(--glass-08);overflow:hidden}
.vd-track i{display:block;height:100%;border-radius:999px;transition:width .5s}

.overlay .panel .lc-grid2-mig{grid-template-columns:minmax(0,1.5fr) minmax(0,0.92fr)}
.overlay .panel .cx-cbtn-call{background:rgba(56,189,248,.13)!important;border:1px solid rgba(56,189,248,.3)!important}
.overlay .panel .cx-cbtn-wa{background:rgba(52,211,153,.13)!important;border:1px solid rgba(52,211,153,.3)!important}
.overlay .panel .cx-cbtn-email{background:rgba(167,139,250,.11)!important;border:1px solid rgba(167,139,250,.28)!important}
.overlay .panel .cx-cbtn-call .cx-cbtn-1l,.overlay .panel .cx-cbtn-call .cx-cbtn-1l small{color:#8fd3f7!important}
.overlay .panel .cx-cbtn-wa .cx-cbtn-1l,.overlay .panel .cx-cbtn-wa .cx-cbtn-1l small{color:#74dcae!important}
.overlay .panel .cx-cbtn-email .cx-cbtn-1l,.overlay .panel .cx-cbtn-email .cx-cbtn-1l small{color:#c4b5fd!important}
.overlay .panel .cx-cbtn-call .cx-cbtn-ic,.overlay .panel .cx-cbtn-wa .cx-cbtn-ic,.overlay .panel .cx-cbtn-email .cx-cbtn-ic{background:rgba(255,255,255,.09)!important}

.em-chk-bar{height:8px;border-radius:99px;background:var(--glass-08);overflow:hidden;margin:2px 0 10px}
.em-chk-bar>i{display:block;height:100%;border-radius:99px;transition:width .3s ease}
.em-chk-list{display:flex;flex-direction:column;gap:2px}
.em-chk{display:flex;align-items:center;gap:9px;padding:5px 4px;border-radius:8px;cursor:pointer;font-size:12.5px}
.em-chk:hover{background:var(--glass-03)}
.em-chk input{position:absolute;opacity:0;width:0;height:0}
.em-chk-box{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--bord2);display:grid;place-items:center;font-size:11px;color:transparent;flex-shrink:0;transition:all .15s}
.em-chk input:checked+.em-chk-box{background:#22c55e;border-color:#22c55e;color:#04210f}
.em-chk-lab{color:var(--txt)}
.em-chk-lab.done{color:var(--mut);text-decoration:line-through}

.em-ams{display:flex;align-items:center;gap:0;flex-wrap:wrap;margin:9px 0 2px;padding:8px 2px 2px;border-top:1px dashed var(--bord)}
.em-ams-step{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;min-width:44px;position:relative}
.em-ams-step:not(:last-child):after{content:"";position:absolute;top:6px;left:50%;width:100%;height:2px;background:var(--glass-08);z-index:0}
.em-ams-dot{width:12px;height:12px;border-radius:50%;background:var(--glass4);z-index:1;position:relative}
.em-ams-dot.done{background:var(--ok)}
.em-ams-dot.on{background:var(--info);box-shadow:0 0 0 3px rgba(56,189,248,.22)}
.em-ams-t{font-size:9.5px;color:var(--mut);text-align:center;line-height:1.1}
.em-ams-t.on{color:var(--txt);font-weight:600}
.em-ams-adv{flex-shrink:0;margin-left:6px}

.em-tpls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:9px}
.em-tpls-l{font-size:11px;color:var(--mut);margin-right:2px}

.ab-cold{margin:4px 12px 8px;padding:8px 11px;border-radius:9px;background:rgba(96,165,250,.1);border:1px solid rgba(96,165,250,.28);color:var(--info-3);font-size:12px}
.ab-dl{display:inline-block;margin-left:7px;padding:1px 7px;border-radius:99px;font-size:10.5px;background:rgba(148,163,184,.16);color:#b6c2d6}
.ab-dl.soon{background:rgba(249,115,22,.16);color:#fdba74}
.ab-dl.past{background:rgba(251,113,133,.16);color:var(--bad-3)}

.ap-card{border:1px solid var(--bord);border-radius:16px;padding:16px 18px;background:linear-gradient(180deg,rgba(56,189,248,.05),rgba(255,255,255,.01))}
.ap-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.ap-nm{font-size:18px;font-weight:800}
.ap-sub{color:var(--mut);font-size:13px;margin-top:2px}
.ap-badge{background:rgba(56,189,248,.16);color:var(--info-2);border:1px solid rgba(56,189,248,.4);padding:4px 11px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.ap-sec{font-size:12px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.4px;margin:14px 0 8px}
.ap-steps{display:flex;flex-direction:column;gap:2px}
.ap-step{display:flex;align-items:center;gap:10px;padding:4px 0;opacity:.5}
.ap-step.done{opacity:1}
.ap-step.on{opacity:1}
.ap-step-dot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--glass-08);color:var(--mut);flex-shrink:0}
.ap-step.done .ap-step-dot{background:#22c55e;color:#04210f}
.ap-step.on .ap-step-dot{background:var(--info);color:#04121f;box-shadow:0 0 0 3px rgba(56,189,248,.22)}
.ap-step.on .ap-step-t{font-weight:700}
.ap-step-t{font-size:13px}
.ap-note{font-size:13px;color:var(--txt);background:var(--glass-03);border:1px solid var(--bord);border-radius:10px;padding:9px 12px}
.ap-note.ok{color:#86efac;border-color:rgba(34,197,94,.3);background:rgba(34,197,94,.08)}
.ap-app{font-size:13px;padding:7px 0;border-bottom:1px dashed var(--bord)}
.ap-app-st{float:right;font-size:11px;color:var(--info-2)}
.ap-foot{margin-top:14px;padding-top:12px;border-top:1px dashed var(--bord);font-size:12.5px;color:var(--mut)}

.em-neCard{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin:10px 0 2px}
@media(max-width:640px){.em-neCard{grid-template-columns:1fr}}
.em-ne-next{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;border-radius:13px;background:linear-gradient(135deg,rgba(56,189,248,.12),rgba(56,189,248,.03));border:1px solid rgba(56,189,248,.28)}
.em-ne-ic{font-size:20px;line-height:1;flex-shrink:0;margin-top:1px}
.em-ne-lab{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--info-2);font-weight:700;margin-bottom:3px}
.em-ne-txt{font-size:13px;line-height:1.45;color:var(--txt)}
.em-ne-earn{padding:12px 15px;border-radius:13px;background:linear-gradient(135deg,rgba(52,211,153,.12),rgba(52,211,153,.03));border:1px solid rgba(52,211,153,.28)}
.em-ne-etop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.em-ne-elab{font-size:12px;font-weight:700;color:var(--ok-2)}
.em-ne-badge{font-size:10.5px;padding:2px 8px;border-radius:99px;background:var(--glass-08);color:var(--mut)}
.em-ne-badge.g{background:rgba(52,211,153,.2);color:var(--ok-2)}
.em-ne-erow{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;padding:3px 0}
.em-ne-erow b{font-size:14px}
.em-ne-erow.sub{opacity:.72;font-size:11.5px;border-top:1px dashed var(--bord);margin-top:4px;padding-top:6px}
.em-ne-erow.sub b{font-size:12.5px;font-weight:600}

.ab-earn{display:inline-block;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:700;background:rgba(52,211,153,.14);color:var(--ok-2);margin-right:7px;white-space:nowrap}

.em-xlink .sf-card-h{color:var(--info-2)}

.wrap.prof-staff{max-width:1180px}
.prof-cols{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);gap:20px;align-items:start;margin-top:6px}
.prof-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.prof-cols .card{margin-bottom:0}
.prof-cols .prof-display{margin-top:0}
@media(max-width:920px){.prof-cols{grid-template-columns:1fr}}

.stu-svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
/* Contact card sits in the left column at the same width as the Exam-readiness card above it */
.stu-svc-spacer{flex:0 1 44%;min-width:0}
@media(max-width:980px){.stu-svc-spacer{display:none}}
@media(max-width:820px){.stu-svc-grid{grid-template-columns:1fr}}
.stu-svc-card{margin-bottom:0}
.stu-handler{display:flex;align-items:center;gap:13px;margin:12px 0 10px}
.stu-handler-av{width:52px;height:52px;border-radius:50%;flex-shrink:0;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,var(--info),#818cf8);color:#04121f;font-weight:800;font-size:18px}
.stu-handler-av img{width:100%;height:100%;object-fit:cover}
.stu-handler-nm{font-size:16px;font-weight:700}
.stu-handler-role{font-size:12.5px;color:var(--mut)}
.stu-handler-ph{font-size:12.5px;color:var(--txt);margin-top:2px}
.stu-handler-btns{display:flex;gap:8px;flex-wrap:wrap}
.stu-rec-box{margin:12px 0;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,rgba(52,211,153,.1),rgba(56,189,248,.05));border:1px solid rgba(52,211,153,.25)}
.stu-rec-tag{display:inline-block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--ok-2);background:rgba(52,211,153,.16);border:1px solid rgba(52,211,153,.4);padding:2px 9px;border-radius:99px}
.stu-rec-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:8px}
.stu-rec-main{font-size:16px}
.stu-rec-price{font-size:17px;font-weight:800;color:var(--ok);white-space:nowrap}
.stu-rec-why{font-size:12.5px;color:var(--mut);line-height:1.5;margin-top:5px}
.stu-rec-btns{display:flex;gap:8px;flex-wrap:wrap}

.stu-sug-box{padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,rgba(52,211,153,.1),rgba(56,189,248,.05));border:1px solid rgba(52,211,153,.25)}
.stu-sug-tag{display:inline-block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--ok-2);background:rgba(52,211,153,.16);border:1px solid rgba(52,211,153,.4);padding:2px 9px;border-radius:99px}
.stu-sug-main{font-size:16px;margin-top:8px}
.stu-sug-price{color:var(--ok);font-weight:800}
.stu-sug-why{font-size:12.5px;color:var(--mut);line-height:1.5;margin-top:5px}

.stu-handler-ph a,.stu-handler-em a{color:var(--txt);text-decoration:none}
.stu-handler-ph a:hover,.stu-handler-em a:hover{text-decoration:underline}
.stu-handler-em{font-size:12.5px;color:var(--mut);margin-top:2px}
.stu-handler-desk{color:var(--mut);font-size:11.5px}

.mkt-stub{margin-top:18px;max-width:760px}
.mkt-stub .sf-card-h{background:linear-gradient(135deg,rgba(251,191,36,.10),var(--glass-03))}
.mkt-stub-blurb{font-size:14px;line-height:1.65;color:var(--txt)}
.mkt-stub-note{font-size:12.5px;line-height:1.6;color:var(--mut);margin-top:12px;padding-top:10px;border-top:1px dashed var(--bord)}

.mkt-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
@media(max-width:820px){.mkt-grid2{grid-template-columns:1fr}}

.ret-sech{margin:20px 0 4px;font-size:15px;font-weight:800;color:var(--txt)}
.ret-sech span{font-weight:600;font-size:12px;color:var(--mut)}
.ret-toprow{display:grid;grid-template-columns:.82fr 1.18fr;gap:14px;margin-top:10px;align-items:stretch}
@media(max-width:900px){.ret-toprow{grid-template-columns:1fr}}
.ret-idxcard .sf-card-b{display:flex;flex-direction:column;gap:10px}
.ret-idx-top{display:flex;align-items:center;gap:12px}
.ret-idx-ic{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;flex:0 0 auto}
.ret-idx-tx{min-width:0}
.ret-idx-v{font-size:30px;font-weight:850;line-height:1;letter-spacing:-.5px;color:var(--txt)}
.ret-idx-l{font-size:12.5px;color:var(--mut);font-weight:600;margin-top:3px}
.ret-idx-badge{margin-left:auto;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;white-space:nowrap}
.ret-idx-meta{font-size:12px;color:var(--mut)}
.ret-link{align-self:flex-start;color:#60a5fa!important}
.ret-alertcard .sf-card-h{color:var(--bad)}
.ret-alertgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(max-width:720px){.ret-alertgrid{grid-template-columns:1fr}}
.ret-alert{border:1px solid var(--bord);border-radius:12px;padding:11px 12px;background:rgba(239,68,68,.05);display:flex;flex-direction:column;gap:8px}
.ret-alert-hd{display:flex;align-items:center;gap:9px;min-width:0}
.ret-av{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:12px;flex:0 0 auto}
.ret-alert-id{min-width:0}.ret-alert-id b{display:block;font-size:13.5px;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ret-alert-id small{font-size:11px;color:var(--mut)}
.ret-alert-ft{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ret-alert-sc{font-size:12px;color:var(--mut)}.ret-alert-sc b{color:var(--txt);font-size:13px}
.ret-alert-rs{font-size:11px;color:var(--mut);border-top:1px solid var(--bord);padding-top:6px}
.ret-pill{font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:999px}
.ret-brank{margin-top:14px}
.ret-btbl{width:100%}.ret-btbl td,.ret-btbl th{padding:10px 14px}
.ret-rk{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-weight:800;font-size:12px;background:var(--glass-08);color:var(--mut)}
.ret-rk-1{background:#f59e0b;color:#1a1205}.ret-rk-2{background:#cbd5e1;color:#0f172a}.ret-rk-3{background:#b45309;color:#fff}
.ret-tr{font-weight:800;font-size:15px}.ret-tr.up{color:#10b981}.ret-tr.dn{color:#ef4444}.ret-tr.fl{color:var(--mut-5)}
.ret-dlgb{border:1px solid var(--bord);border-radius:10px;padding:10px 12px;margin-bottom:8px}
.ret-dlgb-h{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--txt)}
.ret-dlgb-s{margin-top:6px;font-size:12px;color:var(--warn)}.ret-dlgb-s.ok{color:var(--ok)}
.mkt-cols{display:grid;grid-template-columns:1.12fr .88fr;gap:14px;margin-top:14px;align-items:start}
@media(max-width:900px){.mkt-cols{grid-template-columns:1fr}}
.mkt-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.mkt-hero{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
@media(max-width:820px){.mkt-hero{grid-template-columns:repeat(2,1fr)}}
@media(max-width:460px){.mkt-hero{grid-template-columns:1fr}}
.mkt-hstat{position:relative;background:linear-gradient(157deg,rgba(129,140,248,.13),var(--glass-03) 60%);border:1px solid var(--bord);border-radius:16px;padding:15px 16px 14px;overflow:hidden}
.mkt-hstat-ic{font-size:15px;opacity:.9;margin-bottom:4px}
.mkt-hstat-v{font:800 25px/1.05 'Sora',sans-serif;color:var(--ink-hi5);letter-spacing:-.5px}
.mkt-hstat-l{font-size:12px;color:var(--mut-10);font-weight:600;margin-top:5px}
.mkt-hstat-sub{font-size:11px;color:var(--mut);margin-top:3px;line-height:1.4}
.mkt-hstat-bar{margin-top:8px}

.mkt-fin .sf-card-h{display:flex;align-items:center;gap:8px}
.mkt-fin-hero{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.mkt-fin-big{font:800 27px/1 'Sora',sans-serif;color:var(--ok);letter-spacing:-.5px}
.mkt-fin-cap{font-size:12px;color:var(--mut-10);font-weight:600;line-height:1.5}
.mkt-fin-mut{color:var(--mut);font-weight:500}
.mkt-fin-rows{display:flex;flex-direction:column;gap:6px}
.mkt-fin-r{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;color:var(--mut-10);border-bottom:1px dashed var(--glass-08);padding-bottom:5px}
.mkt-fin-r small{color:var(--mut);font-weight:500}
.mkt-fin-r b{color:var(--ink-hi5);text-align:right;white-space:nowrap}

.mkt-sumgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
@media(max-width:1180px){.mkt-sumgrid{grid-template-columns:repeat(2,1fr)}}
.mkt-sum{background:var(--glass-045);border:1px solid var(--bord);border-radius:11px;padding:9px 10px;text-align:center}
.mkt-sum-v{font:800 16px/1.1 'Sora',sans-serif;color:var(--ink-hi5)}
.mkt-sum-l{font-size:10.5px;color:var(--mut);margin-top:3px;line-height:1.3}

.stu-glass{position:relative}
.stu-glass::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(620px 440px at 10% 14%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(580px 440px at 90% 20%, rgba(129,140,248,.17), transparent 60%),
    radial-gradient(680px 520px at 72% 92%, rgba(52,211,153,.13), transparent 62%);}

.stu-glass > .fin-side{position:sticky;z-index:1}
.stu-glass > .sf-main{position:relative;z-index:1}
.stu-glass .card{background:rgba(255,255,255,.055);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border:1px solid var(--glass4);box-shadow:0 10px 34px rgba(0,0,0,.30)}
.stu-glass .fin-side{background:var(--glass-045);backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);border-right:1px solid var(--glass-10)}

.stu-glass .fin-side{padding-top:10px}
/* hide the sidebar scrollbar so it never steals width (which was wrapping long nav labels);
   still scrollable by wheel/trackpad so every tab stays reachable when "More" is expanded */
.stu-glass .fin-side{scrollbar-width:none;-ms-overflow-style:none}
.stu-glass .fin-side::-webkit-scrollbar{width:0;height:0;display:none}
.stu-glass .fin-side-brand{margin-top:0;padding-top:2px}
/* Student sidebar is a LIGHT glass panel, so the "StudyCloud" gradient text must stay dark to read
   (the generic light-theme .fin-side-brand rule assumes a DARK sidebar and gives it a pale gradient). */
html[data-theme="light"] .stu-glass .fin-side-brand{color:#1c1c1c}
html[data-theme="light"] .stu-glass .fin-side-brand b{background:linear-gradient(120deg,#0e7490,#6d28d9);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.stu-glass .sf-kpi{background:var(--glass-06);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.13)}
.stu-glass .stu-hc-line,.stu-glass .stu-hc-chip,.stu-glass .buy-preset,.stu-glass .stu-hc-act,.stu-glass .slot{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.stu-glass .fin-sitem.on{background:var(--glass-12);backdrop-filter:blur(8px)}

.stu-svc-grid{align-items:stretch}
.stu-svc-card{display:flex;flex-direction:column}
.stu-handler-card .stu-hc-top{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.stu-hc-eyebrow{font-size:11px;font-weight:700;letter-spacing:.4px;color:var(--mut);text-transform:uppercase}
.stu-hc-id{min-width:0}
.stu-handler-card .stu-handler-nm{font:800 18px/1.2 'Sora',sans-serif;color:var(--txt,#eaf1ff);margin-top:3px}
.stu-handler-card .stu-handler-role{font-size:12.5px;color:var(--mut);margin-top:1px}
.stu-hc-contacts{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}
.stu-hc-line{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--txt,#eaf1ff);text-decoration:none;padding:8px 12px;border:1px solid var(--bord);border-radius:10px;background:var(--glass-03)}
.stu-hc-line:hover{border-color:rgba(56,189,248,.45)}
.stu-hc-ic{font-size:14px;flex:none}
.stu-hc-actions{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 2px}
.stu-hc-act{flex:1 1 auto;min-width:0;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 12px;border-radius:12px;font:inherit;font-size:13.5px;font-weight:700;text-decoration:none;cursor:pointer;border:1px solid var(--bord2,var(--glass4));background:var(--glass-05);color:var(--txt,#eaf1ff);line-height:1;transition:border-color .15s,background .15s}
.stu-hc-nmbtn{background:none;border:0;padding:0;cursor:pointer;text-align:left;display:inline-block}
.stu-hc-nmbtn:hover{text-decoration:underline}
.stu-hc-msg{display:flex;flex-direction:column;gap:10px}
.stu-hc-ta{width:100%;box-sizing:border-box;resize:vertical;min-height:74px;padding:11px 13px;border-radius:12px;border:1px solid var(--bord2,var(--glass4));background:var(--glass-05);color:var(--txt,#eaf1ff);font:inherit;font-size:14px;line-height:1.5;outline:none;transition:border-color .15s}
.stu-hc-ta::placeholder{color:var(--mut)}
.stu-hc-ta:focus{border-color:rgba(var(--accent),.55)}
.stu-hc-cb-full{width:100%;flex:none}
.stu-hc-cbrow{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.stu-hc-fld{display:flex;flex-direction:column;gap:4px;flex:1 1 130px;min-width:120px}
.stu-hc-fld>span{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
.stu-hc-fld input,.stu-hc-fld select{width:100%;box-sizing:border-box;height:40px;padding:0 11px;border-radius:10px;border:1px solid var(--bord2,var(--glass4));background:var(--glass-05);color:var(--txt,#eaf1ff);font:inherit;font-size:13.5px;outline:none;transition:border-color .15s}
.stu-hc-fld input:focus,.stu-hc-fld select:focus{border-color:rgba(var(--accent),.55)}
.stu-hc-cbbtn{flex:1 1 170px;height:40px;padding:0 14px;background:linear-gradient(135deg,#1d4ed8,#3b82f6)!important;color:#fff!important;border:1px solid transparent!important}
.stu-hc-cbbtn:hover{filter:brightness(1.07);border-color:transparent!important}
.stu-hc-act:hover{border-color:rgba(255,255,255,.32)}
.stu-hc-act-ic{display:inline-flex;align-items:center;font-size:15px;line-height:1}
.stu-hc-act.act-call{background:linear-gradient(135deg,rgba(56,189,248,.22),rgba(59,130,246,.16));border-color:rgba(56,189,248,.5);color:var(--ink-hi7)}
.stu-hc-act.act-call:hover{background:linear-gradient(135deg,rgba(56,189,248,.32),rgba(59,130,246,.24))}
.stu-hc-act.act-wa{background:rgba(22,163,74,.14);border-color:rgba(22,163,74,.45);color:#c9f7dd}
.stu-hc-act.act-wa:hover{background:rgba(22,163,74,.22)}
.stu-hc-act.act-cb:hover{background:var(--glass3)}
.stu-hc-help{margin-top:auto;padding-top:16px}
.stu-hc-help-t{font-size:12px;color:var(--mut);font-weight:600;margin-bottom:9px}
.stu-hc-chips{display:flex;flex-wrap:wrap;gap:8px}
.stu-hc-chip{font-size:12.5px;color:var(--mut-10);background:var(--glass);border:1px solid var(--bord);border-radius:999px;padding:7px 13px;text-decoration:none;white-space:nowrap}
.stu-hc-chip:hover{border-color:rgba(22,163,74,.5);background:rgba(22,163,74,.12);color:#eafff2}

.qw-rows{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.qw-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px}
.qw-row-main{min-width:0;flex:1}
.qw-row-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.qw-row-top h3{margin:0;font-size:16px}
.qw-row .desc{margin:5px 0 0;color:var(--mut);font-size:13px;line-height:1.4}
.qw-row-side{display:flex;align-items:center;gap:18px;flex:none}
.qw-row-side .meta-line{margin:0;white-space:nowrap}
.qw-row-side .btn{min-width:150px;white-space:nowrap}
.w-stack .qw-row{padding:12px 15px}

.qw-perf{display:flex;align-items:center;gap:10px;margin-top:9px;flex-wrap:wrap}
.qw-perf-bar{width:120px;height:7px;border-radius:99px;background:rgba(127,127,127,.16);overflow:hidden;flex:none}
.qw-perf-bar i{display:block;height:100%;border-radius:99px;transition:width .5s ease}
.qw-perf-v{font-size:12.5px;font-weight:700}
.qw-perf-n{font-size:12px;color:var(--mut)}
.qw-perf-none{font-size:12.5px;color:var(--mut);font-style:italic;margin-top:9px}
@media(max-width:640px){.qw-row{flex-direction:column;align-items:stretch}.qw-row-side{justify-content:space-between;gap:12px}.qw-row-side .btn{flex:1}}

.stu-bookbox{margin-top:14px;padding:16px 18px}
.bkx-toprow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.bkx-block-h{font:800 17px/1.2 'Sora',sans-serif;color:var(--txt,#eaf1ff)}
.deliv-row{display:flex;gap:8px;flex-wrap:wrap}
.deliv-pill{font:inherit;font-size:13px;font-weight:700;color:var(--mut,var(--mut-4));background:var(--glass2,var(--glass-05));border:1px solid var(--bord2,var(--glass4));border-radius:999px;padding:8px 15px;cursor:pointer}
.deliv-pill:hover{border-color:rgba(56,189,248,.5)}
.deliv-pill.on{background:linear-gradient(135deg,rgba(56,189,248,.22),rgba(129,140,248,.18));border-color:rgba(56,189,248,.7);color:var(--ink-hi7)}
.bkx-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
@media(max-width:720px){.bkx-grid{grid-template-columns:1fr}}
.deliv-inline{display:flex;gap:6px}
.deliv-inline .deliv-pill{flex:1;padding:9px 6px;font-size:12.5px;text-align:center;white-space:nowrap;justify-content:center}
.bkx-grid .cx-f{display:flex;flex-direction:column;gap:4px;min-width:0}
.bkx-grid .cx-f small{font-size:11.5px;color:var(--mut,var(--mut-4));font-weight:600}

/* ── v1.003 · the student mock-booking form ─────────────────────────────────────────────────────
   ONE grid, TWO rows, four uniform 38px-high fields:
       row 1   Test · Location · Preferred date · Preferred slot
       row 2   🎥 Speaking (label)              · Preferred date · Preferred slot   ← IELTS only
   THE ALIGNMENT IS STRUCTURAL. Row 2's two fields are placed on the LAST TWO TRACKS by negative
   grid lines (-3/-2, -2/-1) of the SAME grid that lays out row 1, so their left edges are the same
   numbers as row 1's date/slot by definition — not by two widths that happen to agree. Do not wrap
   the speaking fields in a container: the wrapper would become the grid item and the guarantee
   would be lost. The label takes 1/-3, i.e. everything left of those two tracks, whatever it is.
   max-width keeps the four boxes COMPACT (the owner's "reduce the width" note) instead of letting
   them stretch across the whole card. */
.bkx-eyebrow{font:700 11px/1.4 'Sora',sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--mut,var(--mut-4));margin:2px 0 9px}
/* v1.005 — Preferred slot needed room for "AM1 · 10:00 AM – 1:00 PM" without truncating, so its
   track grew (1.18 -> 1.42) and the two narrower ones gave the space back. */
.bkx-form{display:grid;grid-template-columns:.86fr 1.24fr .96fr 1.42fr;gap:12px 12px;align-items:end;max-width:720px}
.bkx-form .cx-f{display:flex;flex-direction:column;gap:5px;min-width:0;background:none;border:0;padding:0;border-radius:0}
.bkx-form .cx-f small{display:block;font:600 11px/1.3 system-ui;letter-spacing:.02em;text-transform:none;color:var(--mut,var(--mut-4));margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bkx-form .stu-sel,.bkx-form .stu-search{width:100%;min-width:0;height:38px;min-height:38px;font-size:13px;padding:0 11px}
.bkx-form select.stu-sel{padding-right:26px}
.bkx-form .stu-search[disabled],.bkx-form .stu-sel[disabled]{opacity:.45;cursor:not-allowed}
/* the assigned-paper Test cell — a field, not a picker: the paper is already fixed by the assignment */
.bkx-static{height:38px;display:flex;align-items:center;padding:0 12px;box-sizing:border-box;border-radius:10px;font-size:13px;font-weight:700;letter-spacing:.01em;
  color:var(--ink-hi7,var(--txt));background:linear-gradient(135deg,rgba(56,189,248,.16),rgba(129,140,248,.11));border:1px solid var(--bord2,var(--glass4))}
.bkx-form .deliv-row{gap:6px;flex-wrap:nowrap}
.bkx-form .deliv-pill{flex:1 1 0;min-width:0;height:38px;padding:0 6px;font-size:12.5px;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:border-color .15s,background .15s}
.bkx-f-spk{grid-column:1/-3;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-width:0;padding-bottom:3px}
.bkx-spk-k{font:700 13.5px/1.3 'Sora',sans-serif;color:var(--txt,#eaf1ff)}
.bkx-f-spk small{font:400 11.5px/1.45 system-ui;color:var(--mut,var(--mut-4))}
.bkx-f-spkd{grid-column:-3/-2}
.bkx-f-spkt{grid-column:-2/-1}
.bkx-hint{margin-top:13px;max-width:720px;font-size:12.5px;line-height:1.6;color:var(--mut,var(--mut-4));border-left:2px solid var(--bord2,var(--glass4));padding-left:11px}
.bkx-hint b{color:var(--txt,#eaf1ff);font-weight:700}
/* ── v1.011 · booking redesign: one quota line · home "ready now" · mandatory speaking chips ────── */
.bkx-quota{margin-top:12px;font-size:13.5px;color:var(--mut,var(--mut-4))}
.bkx-quota-n{font-size:15px;color:var(--txt,#eaf1ff);font-weight:700}
.bkx-quota-n b{font-size:19px;color:var(--ok)}
.bkx-ready{margin-top:14px;max-width:720px;background:rgba(4,120,87,.08);border:1px solid rgba(4,120,87,.28);border-radius:12px;padding:13px 15px}
.bkx-ready-t{font:700 14px/1.35 'Sora',sans-serif;color:var(--txt,#eaf1ff)}
.bkx-ready-d{margin-top:5px;font-size:12.5px;line-height:1.6;color:var(--mut,var(--mut-4))}
.bkx-ready-d b{color:var(--txt,#eaf1ff)}
.bkx-spkblk{margin-top:14px;max-width:720px;background:var(--glass2,rgba(255,255,255,.04));border:1px solid var(--bord,var(--glass4));border-radius:12px;padding:13px 15px}
.bkx-spk-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.bkx-spk-head small{font-size:11.5px;color:var(--mut,var(--mut-4))}
.bkx-req{display:inline-block;margin-left:6px;font:700 10px/1 system-ui;letter-spacing:.06em;text-transform:uppercase;color:var(--warn);background:rgba(180,83,9,.14);border:1px solid rgba(180,83,9,.32);border-radius:999px;padding:3px 7px;vertical-align:middle}
.bkx-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.bkx-chips-t{margin-top:7px}
.bkx-chip{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;font:600 12.5px/1.25 system-ui;color:var(--txt,#eaf1ff);background:var(--glass2,rgba(255,255,255,.05));border:1px solid var(--bord2,var(--glass4));border-radius:10px;padding:7px 11px;cursor:pointer;transition:border-color .15s,background .15s}
.bkx-chip small{font-size:10.5px;font-weight:600;color:var(--mut,var(--mut-4))}
.bkx-chip:hover{border-color:var(--accent-b,rgba(56,189,248,.5))}
.bkx-chip.on{background:rgba(56,189,248,.14);border-color:rgba(56,189,248,.6)}
.bkx-chip.on small{color:var(--txt,#eaf1ff)}
.bkx-picked{margin-top:11px;font-size:12.5px;line-height:1.5;color:var(--ok)}
.bkx-picked b{color:var(--txt,#eaf1ff)}
.bkx-picked-need{color:var(--warn)}
.bkx-pol{display:flex;align-items:flex-start;gap:8px;margin-top:14px;max-width:720px;font-size:12.5px;line-height:1.5;color:var(--txt,#eaf1ff);cursor:pointer}
.bkx-pol input{margin-top:2px;flex:0 0 auto}
.bkx-pol a{color:var(--accent-t,#38bdf8);text-decoration:underline}
/* Below ~1040px the card is too narrow for four boxes side by side, so it folds to 2×2 and the
   speaking pair simply takes the next row — alignment still holds because they stay in the same
   two tracks; only the label has to span the full width. */
@media(max-width:1040px){
  .bkx-form{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}
  .bkx-f-spk{grid-column:1/-1;padding-bottom:0;margin-top:2px}
}
@media(max-width:560px){
  .bkx-form{grid-template-columns:1fr;max-width:none}
  .bkx-f-spkd,.bkx-f-spkt{grid-column:auto}
}
/* v1.005 — the card and the confirm button used to span the whole content column, which read as a
   giant slab next to a 720px form. Both now share the form's width so the block looks composed. */
.bkx-card{max-width:772px}
/* v1.008 — the booking buttons live in .sf-wrap, a flex COLUMN, so a stretched item ignores
   width:auto and spans the whole content column. align-self:flex-start + the card's own max-width
   is what actually makes them line up with the "When would you like to sit it?" card. */
.bkx-confirm,.bkx-backbtn{width:100%;max-width:772px;align-self:flex-start;box-sizing:border-box}
.bkx-confirm{margin-top:16px;font-size:14.5px;font-weight:700;padding:12px 30px;display:block}
.bkx-backbtn{margin-top:10px}

.stu-buybox{margin-top:14px;padding:16px 18px}
.buy-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px}
.buy-qty{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--bord2,var(--glass4));border-radius:12px;overflow:hidden}
.buy-step{width:38px;height:38px;font-size:20px;font-weight:700;background:var(--glass2,var(--glass-05));color:var(--txt,#eaf1ff);border:0;cursor:pointer;line-height:1}
.buy-step:hover{background:rgba(56,189,248,.18)}
.buy-n{min-width:40px;text-align:center;font:800 18px/1 'Sora',sans-serif;color:var(--txt,#eaf1ff)}
.buy-presets{display:flex;gap:6px}
.buy-preset{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:66px;padding:7px 10px;border-radius:10px;border:1px solid var(--bord2,var(--glass4));background:var(--glass2,var(--glass-05));color:var(--mut,var(--mut-4));font-weight:700;font-size:13px;cursor:pointer;line-height:1.2}
.buy-preset b{font-size:14px;color:var(--txt,#eaf1ff)}
.buy-preset small{font-size:10.5px;font-weight:600;color:var(--mut,var(--mut-4));margin-top:1px}
.buy-preset.on,.buy-preset:hover{border-color:rgba(56,189,248,.6);background:rgba(56,189,248,.14)}
.buy-preset.on b,.buy-preset:hover b{color:var(--ink-hi7)}
.buy-preset.on small{color:#a7f3d0}
.buy-total{margin-left:auto;font-size:13px;color:var(--mut,var(--mut-4))}
.buy-total b{font-size:18px;color:var(--ok);font-family:'Sora',sans-serif}
.buy-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.buy-actions .btn{flex:1;min-width:180px;font-size:14px;font-weight:700;padding:11px}
.bkx-sslc{background:rgba(52,211,153,.08);border:1px solid rgba(52,211,153,.25);border-radius:10px;padding:9px 12px;font-size:12.5px;color:#a7f3d0;line-height:1.5;margin-top:6px}

.wa-same{margin-left:8px;font:inherit;font-size:11px;font-weight:600;color:#16a34a;background:rgba(22,163,74,.1);border:1px solid rgba(22,163,74,.35);border-radius:999px;padding:2px 9px;cursor:pointer;vertical-align:middle}
.wa-same:hover{background:rgba(22,163,74,.18)}
.wa-same:active{transform:translateY(1px)}

.mb-topbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 6px;padding:10px 14px;background:var(--glass);border:1px solid var(--bord);border-radius:12px}
.mb-pick select{margin-left:6px;padding:6px 10px;border-radius:8px;background:#0e1a30;border:1px solid var(--bord);color:#eaf1ff;font:inherit;font-weight:600;cursor:pointer}
.mb-pick select option{background:#0e1a30;color:#eaf1ff}
.mb-status{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}
.mb-status.live{background:rgba(52,211,153,.15);color:var(--ok)}
.mb-status.draft{background:rgba(148,163,184,.15);color:var(--mut-5)}
.mb-count{font-size:12px;color:var(--mut)}
.mb-spacer{flex:1 1 auto}
.mb-tabs{display:flex;gap:6px;margin:12px 0}
.mb-tab{padding:7px 14px;border:1px solid var(--bord);background:transparent;border-radius:10px;font:inherit;font-size:13px;color:var(--mut);cursor:pointer}
.mb-tab.on{background:rgba(129,140,248,.14);border-color:rgba(129,140,248,.4);color:#c7d2fe;font-weight:700}
.mb-sec{display:flex;flex-direction:column;gap:12px}
.mb-card{background:var(--glass-03);border:1px solid var(--bord);border-radius:12px;padding:13px 15px}
.mb-card-h{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;margin-bottom:8px}
.mb-card-acts{margin-left:auto;display:flex;gap:4px}
.mb-qc{font-size:11px;font-weight:600;color:var(--mut);background:var(--glass-06);padding:2px 8px;border-radius:999px}
.mb-ok{font-size:11px;color:var(--ok);font-weight:600}.mb-todo{font-size:11px;color:var(--warn);font-weight:600}
.mb-x{border:1px solid var(--bord);background:transparent;border-radius:7px;width:26px;height:26px;cursor:pointer;color:inherit;font-size:12px}
.mb-x:hover{border-color:#888}
.mb-groups{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.mb-grow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 11px;background:var(--glass);border:1px solid var(--bord);border-radius:9px;font-size:13px}
.mb-grow-acts{display:flex;gap:4px}
.mb-hint{font-size:12px;color:var(--mut);line-height:1.5;margin:4px 0}
.mb-passage-note{font-size:12px;color:var(--mut);margin-bottom:8px}
.mb-upload{display:inline-block;margin-top:8px;padding:8px 14px;border:1px dashed rgba(129,140,248,.5);border-radius:10px;background:rgba(129,140,248,.06);color:#c7d2fe;font-size:13px;font-weight:600;cursor:pointer}
.mb-audio-has{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
.mb-audio-none{font-size:12.5px;color:var(--mut)}
.mb-taskprompt{font-size:12.5px;color:var(--fg,#e8eefc);background:var(--glass);border-radius:8px;padding:8px 11px;margin-bottom:8px;line-height:1.5}
.mb-typerow{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.mb-typeopt{font-size:12.5px;border:1px solid var(--bord);border-radius:9px;padding:6px 11px;cursor:pointer;display:flex;align-items:center;gap:6px}
.mb-typeopt input{margin:0}
.mb-formtitle{text-align:center;font-weight:700;border:1px solid #999;padding:8px;margin:8px 0}
.mb-chk{display:flex;align-items:center;gap:8px;font-size:13px}
.mb-typeopt:has(input:checked){background:rgba(129,140,248,.14);border-color:rgba(129,140,248,.45)}
.mkt-form textarea{width:100%;font:inherit;font-size:13px;padding:9px 11px;border-radius:9px;border:1px solid var(--bord);background:var(--card,#0e1626);color:inherit;resize:vertical;line-height:1.5}
.mkt-form code{background:rgba(129,140,248,.12);padding:1px 5px;border-radius:5px;font-size:11.5px}

/* Mock Builder — live readiness checklist (same rules that gate Publish) */
.mb-ready{border:1px solid rgba(248,113,113,.35);background:rgba(248,113,113,.06);border-radius:12px;padding:10px 14px;margin:10px 0 2px;font-size:12.5px}
.mb-ready-ok{border-color:rgba(52,211,153,.35);background:rgba(52,211,153,.06)}
/* v1.356 (portal audit 30 Sep): "Ready to publish · N warnings" wore the red blocked-box colours — warnings only is amber */
.mb-ready-warn{border-color:rgba(251,191,36,.45);background:rgba(251,191,36,.07)}
.mb-pick{max-width:100%;min-width:0}.mb-pick select{max-width:calc(100% - 6px)}
.mb-ready-h{font-weight:700;font-size:12.5px}
.mb-ready ul,.mb-ready-list{margin:6px 0 0;padding-left:4px;list-style:none;max-height:180px;overflow:auto}
.mb-ready li,.mb-ready-list li{padding:2px 0;line-height:1.45}
.mb-ready li.err,.mb-ready-list li.err{color:var(--bad-2)}
.mb-ready li.wrn,.mb-ready-list li.wrn{color:var(--warn)}
/* Mock Builder — bulk paste-import preview */
.mb-imp-part{border:1px solid var(--bord);border-radius:10px;padding:9px 12px;margin:8px 0;font-size:12.5px}
.mb-imp-part ul{margin:5px 0 0;padding-left:18px}
.mb-imp-part li{padding:1px 0}
.mb-imp-err{border:1px solid rgba(248,113,113,.4);background:rgba(248,113,113,.07);color:var(--bad-2);border-radius:10px;padding:8px 12px;margin:8px 0;font-size:12.5px}
.mb-imp-err ul{margin:4px 0 0;padding-left:18px;max-height:140px;overflow:auto}
/* authored map-labelling: numbered drop slots listed under the map when no coordinates are given */
.player .map-slots{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.player .map-slot{display:flex;align-items:center;gap:8px}
.player .mb-map-missing{border:1px dashed #bbb;color:#888;padding:26px;text-align:center;font-size:13px}

.mkt-src-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding:9px 12px;background:rgba(52,211,153,.05);border:1px solid rgba(52,211,153,.18);border-radius:13px}
.mkt-src-h{font-size:11.5px;font-weight:700;color:var(--ok-2);letter-spacing:.2px;margin-right:2px}
.mkt-src{font-size:11.5px;color:var(--mut-10);background:var(--glass-05);border:1px solid var(--bord);border-radius:999px;padding:4px 10px;cursor:help;white-space:nowrap}
.mkt-src b{color:var(--ink-hi5);font-weight:700}
.mkt-src.on{border-color:rgba(52,211,153,.35)}
.mkt-src.on::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ok);margin-right:6px;vertical-align:middle;box-shadow:0 0 0 2px rgba(52,211,153,.25)}
.mkt-src-spacer{flex:1 1 auto;min-width:8px}
.mkt-src-when{font-size:11px;color:var(--mut)}

.mkt-op-row{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.mkt-op-l{font-size:12.5px;color:var(--mut-10);font-weight:600;width:82px;flex:none}
.mkt-op-bar{flex:1;height:9px;background:var(--glass-08);border-radius:999px;overflow:hidden;min-width:40px}
.mkt-op-bar i{display:block;height:100%;background:rgb(var(--accent))}
.mkt-op-v{font-size:12.5px;font-weight:700;color:var(--ink-hi2);min-width:92px;text-align:right;flex:none;white-space:nowrap}
.mkt-op-off .mkt-op-l,.mkt-op-off .mkt-op-v{color:var(--mut)}
.mkt-op-off .mkt-op-bar i{background:rgba(255,255,255,.16)}
.mkt-note{font-size:12px;line-height:1.55;color:var(--mut);margin-top:8px}
.mkt-kpi-sub{font-size:11px;color:var(--mut);margin-top:4px;line-height:1.4}
.mkt-p2{opacity:.85}.mkt-p2 .sf-kpi-v{font-size:16px;color:var(--viol-3)}
.mkt-hd-note,.mkt-hd-note span{font-weight:600;font-size:11px;color:var(--mut-3);cursor:help}

.mkt-sug{border:1px solid var(--glass-10);border-left:4px solid #8091b0;border-radius:13px;background:var(--glass);padding:11px 13px;margin:8px 0}
.mkt-sug-act{border-left-color:var(--bad)}.mkt-sug-watch{border-left-color:var(--warn)}.mkt-sug-opp{border-left-color:var(--ok)}
.mkt-sug-top{display:flex;align-items:flex-start;gap:10px}
.mkt-sug-dot{font-size:14px;flex:none;line-height:1.4}
.mkt-sug-t{flex:1;min-width:0}
.mkt-sug-t b{display:block;font:700 14px/1.35 'Inter',sans-serif;color:var(--ink-hi5)}
.mkt-sug-t small{display:block;font-size:12.5px;line-height:1.55;color:#b6c6e0;margin-top:3px}
.mkt-sug-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 6px}
.mkt-sug-money{font:800 12.5px/1 'Sora',sans-serif;color:var(--bad-2);background:rgba(251,113,133,.12);border:1px solid rgba(251,113,133,.28);padding:4px 8px;border-radius:8px}
.mkt-sug-money.mkt-ops{color:var(--info-3);background:rgba(96,165,250,.12);border-color:rgba(96,165,250,.28)}
.mkt-sug-urg{font-size:11.5px;font-weight:700;color:var(--warn);background:rgba(251,191,36,.10);padding:4px 8px;border-radius:8px}
.mkt-sug-back{font-size:10.5px;font-weight:700;color:var(--ok);background:rgba(52,211,153,.12);padding:2px 6px;border-radius:6px}
.mkt-sug-tipn{font-size:11px;color:var(--mut-3);cursor:help}
.mkt-sug-acts{display:flex;flex-wrap:wrap;gap:6px}
.mkt-act{font-size:12.5px}
.mkt-strip{margin:12px 0}
.mkt-strip-h{font:700 11px/1 'Sora',sans-serif;letter-spacing:.8px;text-transform:uppercase;color:#9fb0d8;margin-bottom:7px}
.mkt-strip-h span{color:var(--mut-6);cursor:help;text-transform:none;letter-spacing:0;font-weight:600}
.mkt-strip-more{margin-top:4px}

.mkt-chips{display:inline-flex;align-items:center;gap:4px}
.mkt-chip{border:1px solid var(--glass-12);background:var(--glass-05);border-radius:7px;padding:3px 7px;font-size:13px;cursor:pointer;transition:.15s}
.mkt-chip:hover{background:var(--glass-12)}
.mkt-chip-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#8091b0;cursor:pointer;flex:none}
.mkt-chip-dot.mkt-sug-act{background:var(--bad)}.mkt-chip-dot.mkt-sug-watch{background:var(--warn)}.mkt-chip-dot.mkt-sug-opp{background:var(--ok)}
.mkt-chips-row{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}

.mkt-waste-tile .sf-card-h span{font-weight:600;font-size:11px;color:var(--mut-3);cursor:help}
.mkt-waste-big{font:800 30px/1 'Sora',sans-serif;color:var(--bad-2);margin:4px 0 10px}
.mkt-waste-rows{display:flex;flex-direction:column;gap:5px}
.mkt-waste-r{display:flex;justify-content:space-between;font-size:12.5px;color:var(--mut-10);border-bottom:1px dashed var(--glass-08);padding-bottom:4px}
.mkt-waste-r b{color:var(--ink-hi5)}

.mkt-pace-card{background:var(--glass-05);border:1px solid var(--bord);border-radius:14px;padding:14px 18px;flex:1;min-width:220px}
.mkt-pace-h{font-size:11.5px;text-transform:uppercase;letter-spacing:.3px;color:var(--mut);margin-bottom:10px}
.mkt-pacebar{position:relative;height:12px;border-radius:999px;background:var(--glass-08);overflow:hidden;margin-bottom:6px}
.mkt-pacebar i{display:block;height:100%;border-radius:999px}
.mkt-pacebar-100{position:absolute;top:-3px;width:2px;height:18px;background:#e8eefc;z-index:2}
.mkt-pace-lbl{display:flex;justify-content:space-between;font-size:10px;color:var(--mut)}
.mkt-allclear{font-size:13.5px;line-height:1.6;color:#a7f3d0;background:rgba(52,211,153,.08);border:1px solid rgba(52,211,153,.2);border-radius:11px;padding:12px 14px}
.mkt-organic-ph{font-size:12.5px;line-height:1.6;color:var(--mut);background:rgba(96,165,250,.06);border:1px dashed rgba(96,165,250,.25);border-radius:10px;padding:10px 12px;margin-top:8px}

.mkt-acct-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0;padding:9px 12px;background:var(--glass);border:1px solid var(--bord);border-radius:11px}
.mkt-acct-h{font-size:12px;color:var(--mut);margin-right:4px}
.mkt-acct{font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:999px;border:1px solid var(--glass-12)}
.mkt-acct.active{color:var(--ok-2);background:rgba(52,211,153,.10)}
.mkt-acct.restricted{color:var(--bad-2);background:rgba(251,113,133,.10)}
.mkt-mtabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.mkt-mtab{font-size:12.5px;font-weight:600;padding:6px 13px;border-radius:9px;border:1px solid var(--glass-12);background:var(--glass);color:var(--mut-10);cursor:pointer;transition:.15s}
.mkt-mtab:hover{background:var(--glass3)}
.mkt-mtab.on{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}
.mkt-table{font-size:12.5px}
.mkt-table td,.mkt-table th{padding:8px 10px}
.mkt-table td.num,.mkt-table th.num{text-align:right;white-space:nowrap}
.mkt-lnk{background:none;border:none;color:var(--info-3);font-weight:700;cursor:pointer;text-align:left;padding:0;font-size:12.5px}
.mkt-lnk:hover{text-decoration:underline}
.mkt-pill{font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}
.mkt-goal-ph{font-size:11px;color:var(--mut-3)}
.mkt-newboost{font-size:12.5px}

.mkt-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
@media(max-width:560px){.mkt-form{grid-template-columns:1fr}}
.mkt-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--mut)}
.mkt-form input,.mkt-form select{padding:8px 10px;border-radius:9px;border:1px solid var(--bord);background:var(--glass-05);color:var(--txt);font-size:13px}
.mkt-dlg-sug{margin-bottom:10px}
.mkt-dlg-list{max-height:60vh;overflow:auto}
.mkt-hist{display:flex;flex-direction:column;gap:6px}
.mkt-hist-r{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--mut-10);border-bottom:1px dashed var(--glass-08);padding-bottom:5px}
.mkt-hist-r span{color:var(--mut);white-space:nowrap}

.mkt-kan{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;margin-top:12px}
.mkt-kan-tasks{margin-top:0}
.mkt-kcol{flex:0 0 230px;background:rgba(127,127,127,.05);border:1px solid var(--bord);border-radius:14px;padding:11px;min-height:120px}
.mkt-kh{font-weight:800;font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;display:flex;justify-content:space-between;margin-bottom:10px;color:var(--mut-10)}
.mkt-kh span:last-child{background:rgba(127,127,127,.16);border-radius:7px;padding:1px 8px;color:var(--txt);font-weight:700}
.mkt-kempty{font-size:11.5px;color:var(--mut);text-align:center;padding:14px 0}
.mkt-ccard,.mkt-tcard{background:var(--glass-05);border:1px solid var(--bord);border-radius:12px;padding:10px 11px;margin-bottom:9px;cursor:pointer;transition:.15s}
.mkt-ccard:hover,.mkt-tcard:hover{border-color:rgba(255,255,255,.28);transform:translateY(-1px)}
.mkt-tcard-over{border-color:rgba(251,113,133,.5);background:rgba(251,113,133,.06);animation:mktGlow 2.2s ease-in-out infinite}
@keyframes mktGlow{0%,100%{box-shadow:0 0 0 rgba(251,113,133,0)}50%{box-shadow:0 0 10px rgba(251,113,133,.35)}}
.mkt-ccard-top,.mkt-tcard-top{display:flex;align-items:flex-start;gap:7px;font-size:13px}
.mkt-ccard-top b,.mkt-tcard-top b{font-size:13px;line-height:1.35;color:var(--ink-hi5)}
.mkt-ccard-kind,.mkt-tcard-cat{flex:none}
.mkt-ccard-meta,.mkt-tcard-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:7px 0}
.mkt-ccard-type{font-size:10.5px;color:var(--mut-3);font-weight:600}
.mkt-tcard-req{font-size:10.5px;color:var(--info-3);margin-bottom:6px}
.mkt-ccard-foot,.mkt-tcard-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--mut);margin-bottom:6px}
.mkt-ccard-chips,.mkt-tcard-chips{display:flex;justify-content:flex-end}
.mkt-pri{font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px}
.mkt-pri-high{color:var(--bad-2);background:rgba(251,113,133,.12)}
.mkt-pri-medium{color:var(--warn);background:rgba(251,191,36,.12)}
.mkt-dl{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:7px;white-space:nowrap}
.mkt-dl-ok{color:var(--mut-3);background:rgba(143,160,197,.10)}
.mkt-dl-soon{color:var(--warn);background:rgba(251,191,36,.12)}
.mkt-dl-over{color:var(--bad-2);background:rgba(251,113,133,.14)}

.mkt-idea-card{margin-top:12px}
.mkt-idea-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.mkt-idea-btn{text-align:left;padding:9px 11px;border-radius:10px;border:1px solid var(--glass-12);background:var(--glass);color:var(--ink-hi4);font-size:12.5px;font-weight:600;cursor:pointer;transition:.15s}
.mkt-idea-btn:hover{background:var(--glass-10);border-color:rgba(255,255,255,.24)}

.mkt-vc{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.mkt-vc-row{display:flex;align-items:center;gap:8px;font-size:12px;padding:6px 9px;border-radius:9px;background:var(--glass);border:1px solid var(--bord)}
.mkt-vc-row.fail{border-color:rgba(251,113,133,.4);background:rgba(251,113,133,.08)}
.mkt-vc-row.ok{border-color:rgba(52,211,153,.3)}
.mkt-vc-ic{flex:none}
.mkt-vc-l{font-weight:700;color:var(--ink-hi5);flex:none}
.mkt-vc-d{color:var(--mut);font-size:11.5px}

.mkt-chat{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow:auto;margin-bottom:8px}
.mkt-chat-r{background:var(--glass);border:1px solid var(--bord);border-radius:10px;padding:8px 10px}
.mkt-chat-hd{display:flex;justify-content:space-between;font-size:11px;color:var(--mut);margin-bottom:3px}
.mkt-chat-hd b{color:var(--ink-hi4)}
.mkt-chat-tx{font-size:12.5px;line-height:1.5;color:var(--mut-10)}
.mkt-chat-img{max-width:160px;border-radius:8px;margin-top:6px;display:block}
.mkt-chat-add{display:flex;gap:6px;align-items:center}
.mkt-chat-add input[type="text"],.mkt-chat-add input:not([type]){flex:1;padding:8px 10px;border-radius:9px;border:1px solid var(--bord);background:var(--glass-05);color:var(--txt);font-size:12.5px}

.mkt-conn-list{display:flex;flex-direction:column;gap:7px}
.mkt-conn-r{display:flex;align-items:center;gap:9px;font-size:12.5px;padding:7px 9px;border-radius:9px;background:var(--glass-03)}
.mkt-conn-ic{flex:none;font-size:15px}
.mkt-conn-l{font-weight:700;color:var(--ink-hi5);flex:0 0 150px}
.mkt-conn-s{color:var(--mut)}
.mkt-conn-s.ok{color:var(--ok-2)}
.mkt-conn-s.warn{color:var(--warn)}
.mkt-appr-list{display:flex;flex-direction:column;gap:7px;margin-bottom:6px}
.mkt-appr-row{display:grid;grid-template-columns:1fr 1.4fr 60px 1.4fr auto;gap:6px;align-items:center}
.mkt-appr-row input,.mkt-appr-row select{padding:6px 8px;border-radius:8px;border:1px solid var(--bord);background:var(--glass-05);color:var(--txt);font-size:12px}
@media(max-width:700px){.mkt-appr-row{grid-template-columns:1fr 1fr}}

.mkt-camp-chip{color:var(--viol-3);background:rgba(165,180,252,.10);border:1px solid rgba(165,180,252,.25);border-radius:999px;padding:3px 9px}
.mkt-tie-card{background:var(--glass-05);border:1px solid var(--bord);border-radius:14px;padding:14px 16px;flex:1;min-width:220px}
.mkt-tie-h{font:800 13px/1 'Sora',sans-serif;color:var(--ink-hi5);margin-bottom:6px}
.mkt-tie-b{font-size:12px;color:var(--mut);line-height:1.5}
.mkt-vtabs{display:flex;flex-wrap:wrap;gap:6px;padding:12px 12px 0}
.mkt-vtab{font-size:12.5px;font-weight:700;padding:8px 14px;border-radius:9px;border:1px solid var(--glass-12);background:var(--glass);color:var(--mut-10);cursor:pointer;transition:.15s}
.mkt-vtab:hover{background:var(--glass3)}
.mkt-vtab.on{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border-color:transparent}
@media(max-width:560px){.mkt-vtabs{flex-direction:column}}

.mkt-us-row{background:rgba(34,211,238,.07)}
.mkt-us-row td b{color:rgb(var(--accent))}
.mkt-narrate p{font-size:13.5px;line-height:1.7;color:var(--ink-hi4);margin:0 0 8px}
.mkt-narrate p:last-child{margin-bottom:0}
.mkt-sync-body{min-height:60px}
.mkt-sync-body .fin-pl{margin-bottom:4px}

.mkt-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.mkt-cal-dow{font-size:11px;font-weight:800;text-align:center;color:var(--mut);padding:4px 0;text-transform:uppercase;letter-spacing:.04em}
.mkt-cal-cell{min-height:74px;border-radius:9px;background:var(--glass-03);border:1px solid var(--glass-06);padding:5px 5px 4px;display:flex;flex-direction:column;gap:2px;overflow:hidden}
.mkt-cal-cell.mkt-cal-empty{background:transparent;border-color:transparent}
.mkt-cal-cell.has{border-color:rgba(124,58,237,.35)}
.mkt-cal-d{font-size:11.5px;font-weight:800;color:var(--mut-10)}
.mkt-cal-item{font-size:10px;font-weight:700;padding:2px 5px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}
.mkt-cal-item.mkt-cal-content{background:rgba(96,165,250,.16);color:var(--info-3)}
.mkt-cal-item.mkt-cal-boost{background:rgba(167,139,250,.16);color:var(--viol-2)}
.mkt-cal-item.mkt-cal-exam{background:rgba(52,211,153,.16);color:var(--ok-2)}
.mkt-cal-item.mkt-cal-intake{background:rgba(251,191,36,.16);color:var(--warn-2)}
/* media tasks on the calendar — one colour per status, so the calendar and the board agree */
.mkt-cal-item.mkt-cal-task{background:rgba(148,163,184,.16);color:var(--mut-7);cursor:pointer;border:1px solid transparent}
.mkt-cal-item.mkt-cal-task:hover{filter:brightness(1.25);border-color:currentColor}
.mkt-cal-item.mkt-cal-t-requested{background:rgba(148,163,184,.18);color:var(--mut-7)}
.mkt-cal-item.mkt-cal-t-indesign{background:rgba(96,165,250,.18);color:var(--info-3)}
.mkt-cal-item.mkt-cal-t-delivered{background:rgba(167,139,250,.20);color:var(--viol-2)}
.mkt-cal-item.mkt-cal-t-uploaded{background:rgba(52,211,153,.20);color:var(--ok-2)}
.mkt-cal-item.mkt-cal-t-rework{background:rgba(251,113,133,.20);color:var(--bad-3)}
.mkt-cal-more{font-size:9.5px;color:var(--mut);font-weight:700}
.mkt-cal-legend{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;align-items:center}
.mkt-cal-legend .mkt-cal-item{font-size:11px;padding:4px 9px;cursor:default}
@media(max-width:700px){.mkt-cal-grid{grid-template-columns:repeat(7,minmax(34px,1fr))}.mkt-cal-cell{min-height:54px}.mkt-cal-item{display:none}.mkt-cal-cell.has::after{content:"•";color:var(--viol);font-size:14px}}
/* v1.356 (portal audit 30 Sep): the phone calendar hid every item (and the legend) — a day-by-day agenda under the grid carries them */
.mkt-cal-agenda{display:none}
@media(max-width:700px){.mkt-cal-legend .mkt-cal-item{display:inline-block}.mkt-cal-agenda{display:grid;gap:8px;margin-top:12px}.mkt-cal-ag-d{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.mkt-cal-ag-d>b{font-size:12px;min-width:48px}.mkt-cal-agenda .mkt-cal-item{display:inline-block;font-size:12px;padding:6px 9px;white-space:normal}}

/* ── BC registration commission ───────────────────────────────────────────────────────────── */
/* 11 columns have to fit the ADMIN content width (narrower than FinanceCloud's) without the
   admin scrolling sideways to reach TOTAL. Headers wrap onto two lines and the cells go
   compact; the table then fills its container instead of overflowing it. */
.bc-table{width:100%;table-layout:fixed;font-size:11.5px}
.bc-table td{white-space:nowrap;padding:6px 3px !important}
.bc-table th{white-space:normal;line-height:1.25;font-size:9.5px;letter-spacing:.02em;padding:6px 3px !important;word-break:normal;hyphens:none}
/* explicit widths summing to 100% — the money column gets the room it needs so the TOTAL
   is never clipped. (First attempt used ellipsis and truncated ৳48,69,900 to "৳48,69,9…".) */
.bc-table th:nth-child(1),.bc-table td:nth-child(1){width:7.5%;padding-left:8px !important}
.bc-table th:nth-child(2),.bc-table td:nth-child(2){width:8%}
.bc-table th:nth-child(3),.bc-table td:nth-child(3){width:8.5%}
.bc-table th:nth-child(4),.bc-table td:nth-child(4){width:6.5%}
.bc-table th:nth-child(5),.bc-table td:nth-child(5){width:8.5%}
.bc-table th:nth-child(6),.bc-table td:nth-child(6){width:6.5%}
.bc-table th:nth-child(7),.bc-table td:nth-child(7){width:10.5%;white-space:normal}
.bc-table th:nth-child(8),.bc-table td:nth-child(8){width:8.5%}
.bc-table th:nth-child(9),.bc-table td:nth-child(9){width:7.5%}
.bc-table th:nth-child(10),.bc-table td:nth-child(10){width:7.5%}
.bc-table th:nth-child(11),.bc-table td:nth-child(11){width:20.5%;padding-right:8px !important}
.bc-table .bc-mid{background:rgba(251,191,36,.07)}
.bc-table .bc-hi{background:rgba(96,165,250,.09)}
/* inputs stretch to their column rather than holding a fixed 66px each */
.bc-table .bc-in{width:100%;max-width:62px;padding:5px 2px;font-size:11.5px}
.bc-in{width:66px;padding:5px 6px;border-radius:8px;border:1px solid var(--bord);background:var(--glass-05);color:var(--txt);font-size:12.5px;text-align:center;font-family:inherit}
.bc-in:focus{outline:none;border-color:#60a5fa;background:rgba(96,165,250,.10)}
.bc-in.w{width:96px}
.bc-in.bc-act{border-color:rgba(52,211,153,.4);background:rgba(52,211,153,.07)}
.bc-in.bc-act::placeholder{color:var(--mut);opacity:.65}
.bc-cfg{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.bc-cfg label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--mut)}
.bc-cfg label.bc-mid{color:var(--warn-2)}
.bc-cfg label.bc-hi{color:var(--info-3)}
/* v1.359 — a rate period ("From Oct-26: Base · Mid · High") sits on one line like the year-start rates, framed so it reads as a group */
.bc-cfg .bc-period{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 10px;border:1px dashed var(--line,rgba(127,127,127,.35));border-radius:10px;font-size:12px;font-weight:700;color:var(--mut)}
.bc-retro{margin-top:12px}
.bc-retro-n{margin-top:6px;font-size:11.5px;line-height:1.55;color:var(--warn-2);background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.28);border-radius:10px;padding:8px 11px}
.bc-t{font-size:10px;font-weight:800;padding:2px 7px;border-radius:99px;letter-spacing:.03em}
.bc-t.base{background:rgba(148,163,184,.16);color:var(--mut-7)}
.bc-t.mid{background:rgba(251,191,36,.18);color:var(--warn-2)}
.bc-t.hi{background:rgba(52,211,153,.20);color:var(--ok-2)}
.bc-hot td{background:rgba(251,113,133,.07)}
.bc-mn{color:var(--ok);font-size:11px}
.bc-alert{margin-top:14px;padding:12px 14px;border-radius:14px;border:1px solid rgba(251,113,133,.42);
  background:linear-gradient(180deg,rgba(251,113,133,.13),rgba(251,113,133,.05))}
.bc-alert-h{font-size:14px;font-weight:800;color:var(--bad-3);margin-bottom:4px}
.bc-alert-b{font-size:12.5px;line-height:1.6;color:var(--mut-10)}

/* ── MigrationCloud: reason codes, consultation gate, qualification ───────────────────────── */
.em-rsn{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:44vh;overflow:auto}
.em-rsn-o{display:flex;align-items:flex-start;gap:9px;padding:9px 11px;border:1px solid var(--bord);border-radius:11px;cursor:pointer;background:var(--glass-03)}
.em-rsn-o:hover{border-color:rgba(148,163,184,.5)}
.em-rsn-o input{margin-top:3px;flex:none}
.em-rsn-o:has(input:checked){border-color:var(--bad);background:rgba(251,113,133,.10)}
.em-rsn-ic{font-size:15px;flex:none}
.em-rsn-o b{display:block;font-size:12.8px;color:var(--txt)}
.em-rsn-o small{display:block;font-size:11px;color:var(--mut);margin-top:1px;line-height:1.35}
@media(max-width:640px){.em-rsn{grid-template-columns:1fr}}

.em-consult{margin:10px 0;padding:10px 12px;border-radius:12px;border:1px solid var(--bord)}
.em-consult.ok{border-color:rgba(52,211,153,.4);background:rgba(52,211,153,.08)}
.em-consult.warn{border-color:rgba(251,191,36,.45);background:rgba(251,191,36,.09)}
.em-consult-h{font-size:12.5px;font-weight:800;margin-bottom:4px}
.em-consult.ok .em-consult-h{color:var(--ok-2)}
.em-consult.warn .em-consult-h{color:var(--warn-2)}
.em-consult-n{font-size:12px;color:var(--mut-10);line-height:1.5}
.em-consult-by{font-size:11px;color:var(--mut);margin-top:6px;display:flex;align-items:center;gap:8px}

.em-qual{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.em-qual-o{display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid var(--bord);border-radius:10px;cursor:pointer;font-size:12.4px;color:var(--mut-10)}
.em-qual-o.on{border-color:rgba(52,211,153,.42);background:rgba(52,211,153,.08);color:#d1fae5}
.em-qual-o input{flex:none}
.em-warn{margin-top:8px;padding:9px 11px;border-radius:11px;font-size:12px;line-height:1.5;color:var(--warn-2);background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.32)}
.em-chip.ok{background:rgba(52,211,153,.14);border-color:rgba(52,211,153,.4);color:var(--ok-2)}
.em-chip.warn{background:rgba(251,191,36,.14);border-color:rgba(251,191,36,.4);color:var(--warn-2)}

/* ── Student Store (product suggestions + in-app purchase) ─────────────────────────────── */
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px}
.shop-card{border:1px solid var(--bord);border-radius:14px;padding:12px 14px;background:var(--glass-03);display:flex;flex-direction:column;gap:6px}
.shop-card-sug{border-color:rgba(52,211,153,.42);background:linear-gradient(180deg,rgba(52,211,153,.09),rgba(255,255,255,.02))}
.shop-card-hit{border-color:rgba(52,211,153,.34)}
.shop-by{font-size:11.5px;font-weight:700;color:var(--ok-2);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.shop-by-r{font-weight:600;color:var(--mut)}
.shop-when{margin-left:auto;font-weight:600;color:var(--mut);font-size:10.5px}
.shop-t{font-size:14.5px;color:var(--txt)}
.shop-why{font-size:12.5px;color:var(--mut-10);line-height:1.45}
.shop-why.dim{color:var(--mut)}
.shop-f{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px}
.shop-price{font-size:17px;font-weight:800;color:var(--ok)}
.shop-cat{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--mut);margin:14px 0 8px}
.shop-cat:first-child{margin-top:0}
.shop-tag{font-size:10px;font-weight:800;color:var(--ok-2);background:rgba(52,211,153,.14);padding:2px 7px;border-radius:99px;align-self:flex-start}
.shop-tag2{font-size:10px;font-weight:800;color:var(--warn-2);background:rgba(251,191,36,.14);padding:2px 7px;border-radius:99px}
.shop-attr{font-size:12px;color:var(--ok-2);background:rgba(52,211,153,.10);border:1px solid rgba(52,211,153,.28);border-radius:10px;padding:8px 10px}
.shop-empty{margin-top:12px;padding:16px;border:1px dashed var(--bord);border-radius:14px;color:var(--mut);font-size:13px}
.fin-tag.inv-ch{background:rgba(52,211,153,.14);color:var(--ok-2)}

/* Boost sheet — 15 columns of Uzzal's requisition sheet, so it must breathe horizontally */
.mkt-boost-table{min-width:1480px}
.mkt-boost-table th,.mkt-boost-table td{padding:8px 10px;font-size:12.5px;white-space:nowrap}
.mkt-boost-table td.mkt-dt{color:var(--mut-10);font-weight:600}
.mkt-pace{font-size:9.5px;font-weight:800;letter-spacing:.02em;margin-top:1px;opacity:.9}
/* full-width field inside the 2-column .mkt-form dialogs (Link inputs) */
.mkt-wide{display:block;margin-top:10px;font-size:12px;font-weight:600;color:var(--mut)}
.mkt-wide input{width:100%;margin-top:4px;padding:8px 10px;border-radius:9px;border:1px solid var(--bord);background:var(--glass-05);color:var(--txt);font-size:13px}
.mkt-tcard-link{margin:4px 0 2px;font-size:11px}

.mkt-mix-row{display:grid;grid-template-columns:110px 1fr 130px;align-items:center;gap:10px;padding:6px 0}
.mkt-mix-l{font-size:12.5px;font-weight:700;color:var(--mut-10);text-transform:capitalize}
.mkt-mix-bar{position:relative;height:10px;border-radius:6px;background:var(--glass-06);overflow:visible}
.mkt-mix-bar i{position:absolute;left:0;top:0;height:100%;border-radius:6px;display:block}
.mkt-mix-bar em{position:absolute;top:-3px;width:2px;height:16px;background:#e8eefc;font-style:normal}
.mkt-mix-v{font-size:11.5px;color:var(--mut);white-space:nowrap}
.mkt-mix-v small{color:#6b7a99}
@media print{
  body *{visibility:hidden}
  #mkt-report-print,#mkt-report-print *{visibility:visible}
  #mkt-report-print{position:absolute;left:0;top:0;width:100%}
}

/* printArea() print mode — re-reveal the in-view report or open dialog that the body*{hidden}
   rules above would otherwise blank out, and collapse the app chrome so the page fills cleanly.
   Scoped to html.printing so it NEVER affects the transfer-certificate / marketing-report prints. */
@media print{
  html.printing .topbar,html.printing .fin-side,html.printing .noprint,html.printing .fdb-new{display:none!important}
  html.printing .sf-main,html.printing .sf-main *{visibility:visible!important}
  html.printing .sf-main{position:absolute;left:0;top:0;width:100%;margin:0;padding:0}
  html.printing .sf-wrap{max-width:none!important;margin:0;padding:14px 16px}
  html.printing .overlay,html.printing .overlay *{visibility:visible!important}
  html.printing .overlay{position:absolute!important;inset:0;background:#fff;overflow:visible;padding:0;display:block}
  html.printing .overlay .panel{max-width:none!important;width:auto;margin:0;box-shadow:none;border:0;border-radius:0;transform:none;max-height:none}
  html.printing .overlay .panel .btn,html.printing .overlay .panel button{display:none!important}
}

.stu-glass > .fin-side{position:sticky}

.stu-glass > .fin-side{position:sticky}

.overlay .panel .cx-fields .cx-f .cx-phone{display:flex;gap:8px}
.overlay .panel .cx-fields .cx-f .cx-phone select{flex:0 0 auto;width:auto;min-width:104px;max-width:150px;padding-left:10px;padding-right:24px}
.overlay .panel .cx-fields .cx-f .cx-phone input{flex:1 1 auto;width:auto;min-width:0}

.overlay .panel .mfb-seg{display:flex;flex-wrap:wrap;gap:8px}
.overlay .panel .mfb-opt{flex:1 1 auto;min-width:110px;padding:9px 10px;border-radius:10px;border:1.5px solid #94a3b8;background:#fff;color:#0f172a;font-weight:600;font-size:13px;cursor:pointer}
.overlay .panel .mfb-opt.on{border-color:#2563eb;background:#eff5ff;color:#1d4ed8;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.mfb-card .mfb-quote{margin-top:8px;padding:10px 12px;border-left:3px solid var(--info);background:rgba(148,163,184,.10);border-radius:0 8px 8px 0;font-style:italic}

.ivb-cols{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.ivb-crow{display:flex;gap:8px;align-items:center}
.ivb-crow .ivb-cmethod{flex:0 0 178px;min-width:0}
.ivb-crow .ivb-camt{flex:1;min-width:0}
.fadj-row{display:flex;gap:10px;align-items:center;margin-top:6px}
.fadj-row .fadj-l{flex:1;min-width:0}
.fadj-row input{width:150px}
.fadj-col select{flex:0 0 178px}
.fadj-col input{flex:1;width:auto}
.fadj-tot{margin-top:12px;padding:9px 12px;border-radius:10px;background:rgba(148,163,184,.10);border:1px solid rgba(148,163,184,.25);font-size:13px}
.fin-verify-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:12px;padding:10px 12px;border-radius:10px;background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.35)}
.fin-verify-t{font-size:12.5px;font-weight:700;color:var(--warn)}
.ss-tbl .ss-in{width:84px;text-align:center;padding:6px 8px}
.ss-tbl td{vertical-align:middle}

.tr-leads{margin:0 0 14px;padding:14px 18px}
.tr-leads-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
/* v1.324 code review new-issue (layout) — on a phone the flex row squeezed "＋ Add a lead" and clipped its text; the caption wraps instead */
.tr-leads-h>.btn{flex-shrink:0}
.tr-mylead-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.tr-mylead{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:rgba(148,163,184,.07);border:1px solid rgba(148,163,184,.16);border-radius:9px;padding:7px 11px;font-size:13px}
.tr-mylead .lv-status{margin-left:auto}

.pb-audio{width:100%;margin:6px 0;height:40px}
.pb-sec{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--mut-2);margin-top:10px}
.pb-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.pb-lib-grid{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}

.th-side-n{margin-left:auto;background:rgba(251,191,36,.18);color:var(--warn);font-size:10.5px;font-weight:800;border-radius:9px;padding:1px 7px}
.th-wrap{padding-top:4px}
.th-wrap .th-toprow{margin-top:8px}

.tr-earn{margin:0 0 14px;padding:16px 18px}
.tr-earn-top{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;justify-content:space-between}
.tr-earn-l{font-size:12px;font-weight:700;letter-spacing:.3px;color:var(--mut-2);text-transform:uppercase}
.tr-earn-v{font-family:Sora,Inter,sans-serif;font-size:34px;font-weight:800;color:var(--ok);margin-top:2px}
.tr-earn-s{color:var(--mut-2);font-size:12.5px;margin-top:2px}
.tr-earn-s b{color:var(--warn)}
.tr-earn-chips{flex-wrap:wrap}
.tr-earn-foot{margin-top:10px;padding-top:10px;border-top:1px solid rgba(148,163,184,.18);color:var(--mut-2);font-size:12.5px}
.tr-earn-foot b{color:var(--ok)}
.tr-ref-hr{display:flex;align-items:center;gap:8px}
.tr-earn-won{color:var(--ok);font-weight:800;font-size:13px}
.tr-chiprow{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.overlay .panel .tr-refw{margin-top:10px}
.overlay .panel .tr-ref{border:1px solid rgba(148,163,184,.30);border-radius:10px;padding:10px 12px;margin-top:8px;background:rgba(148,163,184,.10)}
.overlay .panel .tr-ref-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.overlay .panel .tr-ref-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.overlay .panel .tr-fups{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.overlay .panel .tr-fup{background:rgba(148,163,184,.12);border:1px solid rgba(148,163,184,.25);border-radius:8px;padding:6px 9px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px}
.overlay .panel .tr-fup-t{color:#8aa0bd;font-weight:600;font-size:11px}
.overlay .panel .tr-fup-n{width:100%}

.msgr-scope{font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#0ea5e9;background:rgba(14,165,233,.12);border:1px solid rgba(14,165,233,.3);padding:3px 9px;border-radius:999px;vertical-align:middle;margin-left:8px}
.msgr-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:16px 0}
.msgr-stat{background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:12px 14px}
.msgr-stat-v{font-size:22px;font-weight:800;line-height:1.1}
.msgr-stat-l{font-size:11px;color:var(--mut);margin-top:3px;text-transform:uppercase;letter-spacing:.4px}
.msgr-phasebar{display:flex;align-items:center;gap:14px;background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:10px 12px;margin-bottom:14px;flex-wrap:wrap}
.msgr-phase-seg{display:inline-flex;background:rgba(148,163,184,.12);border-radius:10px;padding:3px;gap:2px;flex:0 0 auto}
.msgr-phase-b{border:0;background:transparent;color:var(--mut);font-weight:700;font-size:12.5px;padding:6px 12px;border-radius:8px;cursor:pointer}
.msgr-phase-b.on{background:linear-gradient(135deg,#22d3ee,var(--viol));color:#0b1120}
.msgr-phase-x{color:var(--mut);font-size:12.5px;flex:1 1 240px;min-width:0}
.msgr-shell{display:grid;grid-template-columns:340px 1fr;gap:16px;align-items:start}
/* ═══ the ERP inbox — Ship 1B (specs/inbox-redesign-plan.md §12.4): a calm Business-Suite layout — two white cards on a grey page
   (list + chat | the person), one accent, no glass, no gradients, SVG icons. Breakpoints are on the INBOX AREA's width (container
   queries on .ibx-wrap; .ibx-w3/.ibx-w2/.ibx-w1 from a ResizeObserver where they are unsupported): ≥1060 two cards + panel ·
   700–1059 one card + a drawer · <700 one column + a bottom sheet. Light is the default; the dark theme overrides the tokens. ═══ */
:root{--ibx-ring:#22d3ee}
html[data-theme="light"]{--ibx-ring:#0e7490}
.ibx-wrap{--ibx-bg:#eef1f5;--ibx-card:#ffffff;--ibx-line:#e6e9ee;--ibx-line2:#d5dae1;--ibx-tx:#1a2233;--ibx-tx2:#4a5466;--ibx-tx3:#5f6979;
  --ibx-acc:#1747b8;--ibx-acc-h:#0f347f;--ibx-acc-tint:#e8eefb;--ibx-acc-ink:#12305c;--ibx-link:#1747b8;--ibx-sel:#f3f6fc;--ibx-tile:#f5f7fa;
  --ibx-in:#f0f2f5;--ibx-out:#1747b8;--ibx-out-tx:#ffffff;--ibx-amb:#9a5b00;--ibx-amb-bg:#fffaeb;--ibx-amb-ln:#f1d58a;--ibx-red:#b42318;--ibx-red-bg:#fdf3f2;
  --ibx-red-ln:#e3c4c0;--ibx-ok:#15803d;--ibx-ok-solid:#15803d;--ibx-ok-solid-h:#166534;--ibx-ok-solid-a:#14532d;--ibx-ok-on:#ffffff;--ibx-dis-bg:#eef1f5;--ibx-dis-tx:#5f6979;--ibx-dis-ln:#d5dae1;--ibx-note:#fffbeb;--ibx-cnt:#c2271b;--ibx-shadow:0 2px 8px rgba(20,30,50,.08);--ibx-shadow2:0 8px 24px rgba(20,30,50,.16);
  --ibx-scrim:rgba(13,17,23,.32);--ibx-q-engaged:#0369a1;--ibx-q-qualified:#15803d;--ibx-q-nurture:#6d28d9;--ibx-q-not_qualified:#b45309;--ibx-q-junk:#b42318;
  --ibx-av0:#dfe7f7;--ibx-av1:#f6e6d4;--ibx-av2:#dcefe2;--ibx-av3:#ebe1f7;--ibx-av4:#f5dcda;--ibx-av5:#e6eaf0;
  container:ibx / inline-size;position:relative;margin-top:4px;padding:0;border-radius:14px;background:var(--ibx-bg);color:var(--ibx-tx);
  font-family:Inter,"Lx Inter",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.4;text-align:left}
html:not([data-theme="light"]) .ibx-wrap,html[data-theme="dark"] .ibx-wrap{--ibx-bg:#0b0e13;--ibx-card:#13171d;--ibx-line:rgba(255,255,255,.08);--ibx-line2:rgba(255,255,255,.16);
  --ibx-tx:#eceef2;--ibx-tx2:#b4bac6;--ibx-tx3:#9aa2b0;--ibx-acc:#2f5fd0;--ibx-acc-h:#3d6ee0;--ibx-acc-tint:rgba(99,140,240,.18);--ibx-acc-ink:#c9d8ff;--ibx-link:#8fb0ff;
  --ibx-sel:rgba(99,140,240,.10);--ibx-tile:#1a1f27;--ibx-in:#1f252e;--ibx-out:#2f5fd0;--ibx-amb:#fbbf24;--ibx-amb-bg:rgba(251,191,36,.10);--ibx-amb-ln:rgba(251,191,36,.35);
  --ibx-red:#fb7185;--ibx-red-bg:rgba(251,113,133,.10);--ibx-red-ln:rgba(251,113,133,.35);--ibx-ok:#34d399;--ibx-ok-solid:#34d399;--ibx-ok-solid-h:#6ee7b7;--ibx-ok-solid-a:#10b981;--ibx-ok-on:#06281a;--ibx-dis-bg:#1a1f27;--ibx-dis-tx:#9aa2b0;--ibx-dis-ln:rgba(255,255,255,.16);--ibx-note:rgba(251,191,36,.08);--ibx-cnt:#e11d48;
  --ibx-shadow:0 4px 16px rgba(0,0,0,.45);--ibx-shadow2:0 12px 32px rgba(0,0,0,.6);--ibx-scrim:rgba(3,5,8,.6);
  --ibx-q-engaged:#7dd3fc;--ibx-q-qualified:#34d399;--ibx-q-nurture:#c4b5fd;--ibx-q-not_qualified:#fbbf24;--ibx-q-junk:#fb7185;
  --ibx-av0:#24324f;--ibx-av1:#3d2f1f;--ibx-av2:#1f3a2b;--ibx-av3:#33284a;--ibx-av4:#45262a;--ibx-av5:#2a3039}
.ibx-wrap *,.ibx-wrap *::before,.ibx-wrap *::after{box-sizing:border-box}
.ibx-in{padding:12px}
.ibx-cards{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,420px);gap:12px;height:var(--ibx-h,calc(100vh - 210px));min-height:440px}
.ibx-card{background:var(--ibx-card);border:1px solid var(--ibx-line);border-radius:12px;min-width:0;min-height:0;overflow:hidden}
.ibx-main{display:flex;flex-direction:column}
.ibx-tabrow{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--ibx-line);min-width:0}
.ibx-wrap .ibx-tabs{display:flex;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:none;flex:1 1 auto}
.ibx-wrap .ibx-tabs::-webkit-scrollbar{display:none}
.ibx-sp{flex:1}
.ibx-wrap .ibx-tab{display:inline-flex;align-items:center;gap:6px;height:34px;border:0;border-radius:8px;padding:0 9px;background:transparent;color:var(--ibx-tx2);font:inherit;font-size:13.5px;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.ibx-wrap .ibx-tab:hover{background:var(--ibx-tile)}
.ibx-wrap .ibx-tab.on{background:var(--ibx-acc-tint);color:var(--ibx-acc-ink);font-weight:600}
.ibx-wrap .ibx-tab[disabled]{cursor:default;color:var(--ibx-tx3)}
.ibx-wrap .ibx-tab[disabled]:hover{background:transparent}
.ibx-cnt{background:var(--ibx-cnt,#c2271b);color:#fff;border-radius:999px;padding:0 6px;font-size:11px;line-height:17px;font-weight:600}
.ibx-soon{font-size:11px;color:var(--ibx-tx3)}
/* WhatsApp W1b — a WhatsApp chat in the inbox: delivery ticks, the phone's history divider, the template picker, the 24-hour window */
.ibx-wrap .ibx-tick{margin-left:4px;letter-spacing:-2px;color:var(--ibx-tx3)}
.ibx-wrap .ibx-tick.rd{color:var(--ibx-acc)}
.ibx-wrap .ibx-tick.bad{color:var(--bad-3,#b42318);letter-spacing:0}
.ibx-wrap .ibx-hist{margin:10px auto;padding:4px 10px;border-radius:999px;background:var(--ibx-tile);color:var(--ibx-tx2);font-size:12px;text-align:center;max-width:90%}
.ibx-wrap .msgr-b.ibx-imp{opacity:.82}
.ibx-wrap .ibx-tpl{font-size:11.5px;color:var(--ibx-tx3);margin-bottom:2px}
.ibx-wrap .ibx-tplbox{display:flex;flex-direction:column;gap:6px;padding:8px 10px;margin:6px 0;border:1px solid var(--ibx-line);border-radius:10px;background:var(--ibx-tile)}
.ibx-wrap .ibx-tplbox select,.ibx-wrap .ibx-tplbox input{max-width:100%;min-width:0}
.ibx-wrap .ibx-tplprev{white-space:pre-wrap;overflow-wrap:anywhere}
.ibx-wrap .ibx-tplp{padding:6px 8px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx)}
.ibx-wrap .ibx-win,.ibx-wrap .ibx-tplnone{font-size:12px;color:var(--ibx-tx3);margin:4px 2px}
.ibx-wrap .msgr-shell.ibx-shell{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:300px minmax(360px,1fr);gap:0;align-items:stretch}
.ibx-lcol{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--ibx-line)}
.ibx-lhead{display:flex;flex-direction:column;gap:10px;padding:12px 12px 8px}
.ibx-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--ibx-line2);border-radius:8px;color:var(--ibx-tx3);background:var(--ibx-card)}
.ibx-wrap .ibx-q{flex:1;min-width:0;height:100%;border:0;outline:0;padding:0;background:transparent;color:var(--ibx-tx);font:inherit;font-size:14px;min-height:0}
.ibx-wrap .ibx-chips{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.ibx-wrap .ibx-chip{display:inline-flex;align-items:center;height:28px;border:0;border-radius:6px;padding:0 9px;background:transparent;color:var(--ibx-tx2);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.ibx-wrap .ibx-chip:hover{background:var(--ibx-tile)}
.ibx-wrap .ibx-chip.on{background:var(--ibx-acc-tint);color:var(--ibx-acc-ink);font-weight:600}
/* inbox-history-sort (22 Oct): ONE Sort menu, default "Newest message" (replaces the 18 Oct Newest / Oldest toggle) */
.ibx-wrap .ibx-sort{display:inline-flex;align-items:center;align-self:flex-start;gap:6px;max-width:100%;min-width:0}
.ibx-wrap .ibx-sortl{font-size:12px;color:var(--ibx-tx2);white-space:nowrap}
.ibx-wrap .ibx-sortsel{height:28px;min-width:0;max-width:100%;border:1px solid var(--ibx-line2);border-radius:8px;padding:0 8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:12px;cursor:pointer}
.ibx-wrap .ibx-sortsel:focus-visible{outline:2px solid var(--ibx-ring,#1747b8);outline-offset:1px}
/* Inbox "Assigned to" (24 Oct 2026, specs/inbox-bdm-filter-plan.md r2 §5.8): Sort and Assigned to in .ibx-lctl — in the 300 px list column
   (laptop) one per line, labels aligned, so a name stays readable; below 480 px side by side, each select shrinking (never a horizontal
   scroll at 360 px) and the two visible labels kept for screen readers only (each select keeps its aria-label) */
.ibx-wrap .ibx-lctl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;max-width:100%}
.ibx-wrap .ibx-lctl .ibx-sort,.ibx-wrap .ibx-lctl .ibx-own{flex:1 1 100%;min-width:0;max-width:100%;align-self:auto}
.ibx-wrap .ibx-lctl select{flex:1 1 0;min-width:0;max-width:100%;text-overflow:ellipsis}
.ibx-wrap .ibx-lctl .ibx-sortl,.ibx-wrap .ibx-lctl .ibx-ownl{min-width:74px}
.ibx-wrap .ibx-own{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ibx-wrap .ibx-ownl{font-size:12px;color:var(--ibx-tx2);white-space:nowrap}
.ibx-wrap .ibx-ownsel{height:28px;min-width:0;max-width:100%;border:1px solid var(--ibx-line2);border-radius:8px;padding:0 8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:12px;cursor:pointer;text-overflow:ellipsis}
.ibx-wrap select.ibx-ownsel.on{border-color:var(--ibx-acc)!important;background-color:var(--ibx-acc-tint)!important;color:var(--ibx-acc-ink)!important;font-weight:600}
body.lumen #app .ibx-wrap select.ibx-ownsel.on{background-color:var(--ibx-acc-tint)!important;color:var(--ibx-acc-ink)!important;box-shadow:0 0 0 1px var(--ibx-acc)!important;font-weight:600!important}   /* Lumen skins every select through #app */
.ibx-wrap .ibx-ownsel:focus-visible{outline:2px solid var(--ibx-ring,#1747b8);outline-offset:1px}
.ibx-wrap .ibx-ownhelp{margin:0;font-size:12px;line-height:1.4;color:var(--ibx-tx2);overflow-wrap:anywhere}
/* inbox view (25 Oct 2026, DECISIONS 255): Sort › Assigned to (A–Z) — a line naming each group's person above its chats */
.ibx-wrap .ibx-grp{padding:10px 12px 4px;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ibx-tx2);border-top:1px solid var(--ibx-line2);overflow-wrap:anywhere;min-width:0}
.ibx-wrap .ibx-list>.ibx-grp:first-child{border-top:0}
@media (max-width:479.98px){
  .ibx-wrap .ibx-sortl,.ibx-wrap .ibx-ownl{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .ibx-wrap .ibx-lctl .ibx-sort,.ibx-wrap .ibx-lctl .ibx-own{flex:1 1 0}
  .ibx-wrap .ibx-lctl .ibx-sortl,.ibx-wrap .ibx-lctl .ibx-ownl{min-width:0}
}
.ibx-wrap .ibx-tag.ibx-wchip{border-color:transparent;background:var(--ibx-tile);font-weight:600}
.ibx-wrap .ibx-tag.ibx-wchip.amb{color:var(--ibx-amb)}
.ibx-wrap .ibx-tag.ibx-wchip.late{color:var(--ibx-red)}
/* inbox-history-sort: the "Load earlier messages" bar at the top of a Messenger thread (both themes through the inbox tokens; ≥ 44 px tap target) */
.ibx-wrap .ibx-histbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:6px auto 10px;padding:6px 10px;max-width:92%;min-height:56px;box-sizing:border-box;border-radius:12px;background:var(--ibx-tile);color:var(--ibx-tx2);font-size:12px;text-align:center}   /* one height in every state (button / Loading… / text), so the rows below never move when it changes */
.ibx-wrap .ibx-histbar.err{color:var(--ibx-amb)}
.ibx-wrap .ibx-histbar .ibx-histbtn{min-height:44px;height:auto;white-space:normal}
.ibx-wrap .ibx-histload{font-style:italic}
.ibx-wrap .msgr-list.ibx-list{display:block;flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;padding:0 0 8px;margin:0;gap:0}
.ibx-wrap .msgr-litem.ibx-item{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;row-gap:3px;align-items:start;width:100%;margin:0;padding:12px 14px;border:0;border-left:3px solid transparent;border-radius:0;background:transparent;color:var(--ibx-tx);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:background-color .12s}
.ibx-wrap .msgr-litem.ibx-item:hover{background:var(--ibx-sel)}
.ibx-wrap .msgr-litem.ibx-item.on{background:var(--ibx-sel);border-left-color:var(--ibx-acc)}
.ibx-wrap .ibx-item .msgr-li-top{display:contents}
.ibx-wrap .ibx-item .ibx-av{grid-column:1;grid-row:1 / span 3}
.ibx-wrap .ibx-item .msgr-li-id{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;line-height:1.3}
.ibx-marks{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;margin-right:auto}
.ibx-wrap .ibx-item .msgr-li-id b{display:block;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ibx-wrap .ibx-item.un .msgr-li-id b{font-weight:700}
.ibx-wrap .ibx-item .msgr-li-snip{grid-column:2;margin:0;font-size:13px;line-height:1.35;color:var(--ibx-tx3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibx-wrap .ibx-item.un .msgr-li-snip{color:var(--ibx-tx);font-weight:700}   /* inbox-meta (DECISIONS 267): unread = bold name + bold preview, as Meta (was: bold while waiting) */
.ibx-wrap .ibx-item.un .ibx-rt{color:var(--ibx-link);font-weight:700}
.ibx-wrap .ibx-udot{flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:var(--ibx-acc);margin-left:2px}   /* Meta's blue unread dot, after the time */
/* v1.554 job A (specs/inbox-presence-7day-1554-plan.md §A5): "Raka is typing…" / "is also viewing" above the reply box — one line, ellipsis at phone width;
   on a list row the preview line becomes "Raka is typing…" in italics */
.ibx-wrap .ibx-pres{font-size:12px;font-style:italic;color:var(--ibx-acc-ink);padding:0 2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ibx-wrap .ibx-pres[hidden]{display:none}
.ibx-wrap .msgr-li-snip.ibx-rtyping{font-style:italic;color:var(--ibx-acc-ink)}
.ibx-wrap .ibx-chipn{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:var(--ibx-acc,#1747b8);color:#fff;font-size:11px;font-weight:700;line-height:18px;box-sizing:border-box}
.ibx-wrap .ibx-item .msgr-li-tags{grid-column:2;display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:0}
.ibx-wrap .ibx-item .msgr-li-tags:empty{display:none}
.ibx-rt{flex:0 0 auto;font-size:12px;color:var(--ibx-tx3);white-space:nowrap}
/* DECISIONS 261 #5: who has the chat, on the row's top line (between the name and the time; never a new line) */
/* DECISIONS 261 #4: the row's one-tap Take — beside the row (a sibling: a button may not sit inside the row's button); shown on hover / focus with a
   mouse, always on a touch screen */
.ibx-wrap .ibx-rwo{position:relative}   /* ibx-tnow-color: the row's owner button over its invisible copy (the row's Take is gone — ANik 04:40) */
.ibx-wrap .ibx-item .msgr-li-own{grid-column:2;display:flex;min-width:0}
.ibx-wrap .ibx-rowner{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-width:0;height:20px;margin:0;padding:0 7px;border:1px solid var(--ibx-line2);border-radius:6px;background:var(--ibx-card);color:var(--ibx-acc-ink);font:inherit;font-size:11px;font-weight:600;line-height:16px;white-space:nowrap;cursor:pointer}
.ibx-wrap .ibx-rowner .ibx-rowner-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ibx-wrap .ibx-rowner.sp{visibility:hidden;pointer-events:none}
/* v1.552 inbox bundle §1: the owner is a CRM colour chip (.cx-own-N for a BDM, grey .cx-own-x for anyone else) — inside the row button (no second
   border: the button is the hit area only), the group lines, the panel, the lead card and the Assigned to help line */
.ibx-wrap .ibx-rowner{border-color:transparent;background:transparent;padding:0 2px}
.ibx-wrap .ibx-rwo>.ibx-rowner:hover{border-color:transparent;background:transparent}
.ibx-wrap .ibx-rwo>.ibx-rowner:hover .cx-own{background:color-mix(in srgb, var(--own) 26%, transparent)}
.ibx-rowner .cx-own,.ibx-grp .cx-own,.ibx-orow .cx-own,.ibx-leadline .cx-own,.ibx-ownhelp .cx-own{font-size:11px;line-height:16px;padding:1px 8px 1px 1px;gap:5px;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;text-transform:none;letter-spacing:0}
.ibx-rowner .cx-own .cx-own-i,.ibx-grp .cx-own .cx-own-i,.ibx-orow .cx-own .cx-own-i,.ibx-leadline .cx-own .cx-own-i,.ibx-ownhelp .cx-own .cx-own-i{width:16px;height:16px;font-size:8.5px}
.ibx-rowner .cx-own-x,.ibx-grp .cx-own-x,.ibx-leadline .cx-own-x,.ibx-ownhelp .cx-own-x{padding-left:8px}
.ibx-orow .cx-own-x .cx-own-i{display:inline-flex;background:var(--own)}
.ibx-orow .cx-own{padding:1px}   /* the panel's compact chip: the coloured initials only, the full name beside it */
@media (hover:none),(pointer:coarse){ .ibx-rowner .cx-own{font-size:12px;line-height:20px} }
/* light theme without Lumen: the pastel hues as text on white are too faint — the same darkening Lumen applies (lumen.css .cx-own) */
html[data-theme="light"] .ibx-wrap .cx-own{color:color-mix(in srgb, var(--own) 36%, #0d1117)}
.ibx-wrap .ibx-rwo>.ibx-rowner{position:absolute;left:73px;bottom:12px;max-width:calc(100% - 87px)}   /* 3 px border + 14 px padding + 44 px photo + 12 px gap; the row's 12 px bottom padding */
.ibx-wrap .ibx-rwo>.ibx-rowner:hover{border-color:var(--ibx-acc);background:var(--ibx-acc-tint)}
.ibx-wrap .ibx-rwo>.ibx-rowner:focus-visible{outline:2px solid var(--ibx-acc);outline-offset:1px}
@media (hover:none),(pointer:coarse){ .ibx-wrap .ibx-rowner{height:28px;padding:0 10px;font-size:12px} }
/* the header's Take this chat, beside "Unassigned" */
.ibx-wrap .ibx-hasg{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0}
.ibx-wrap .ibx-hasg .ibx-htake{flex:0 0 auto;height:26px;padding:0 10px;font-size:12.5px}
.ibx-rt.amb{color:var(--ibx-amb);font-weight:600}
.ibx-rt.late{color:var(--ibx-red);font-weight:600}
.ibx-wrap .ibx-tag{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:11px;font-weight:500;line-height:16px;padding:0 6px;border:1px solid var(--ibx-line2);border-radius:6px;background:transparent;color:var(--ibx-tx2);white-space:nowrap}
.ibx-wrap .ibx-tag.ad{max-width:200px}
/* v1.553 Part 2 — the daytime LuminAI take-over: the row tag and the chat's strip (ruling 1501 D3) */
.ibx-wrap .ibx-tag.ibx-aitk{border-color:transparent;background:var(--ibx-tile);color:var(--ibx-tx2);font-weight:600}
.ibx-wrap .ibx-tkstrip{display:flex;align-items:center;gap:6px;margin:6px 12px 0;padding:6px 10px;border-radius:8px;background:var(--ibx-tile);color:var(--ibx-tx2);font-size:12px;line-height:16px}
.ibx-dt-warn{color:var(--ibx-amb,#a15c00)}
.ibx-wrap .ibx-tag.ok{color:var(--ibx-ok)}
.ibx-wrap .ibx-tag.fu.due,.ibx-wrap .ibx-tag.warn,.ibx-wrap .ibx-tag.wait{color:var(--ibx-red)}
.ibx-wrap .ibx-tag.q-engaged{color:var(--ibx-q-engaged)}
.ibx-wrap .ibx-tag.q-qualified{color:var(--ibx-q-qualified)}
.ibx-wrap .ibx-tag.q-nurture{color:var(--ibx-q-nurture)}
.ibx-wrap .ibx-tag.q-not_qualified{color:var(--ibx-q-not_qualified)}
.ibx-wrap .ibx-tag.q-junk{color:var(--ibx-q-junk)}
.ibx-mark{display:inline-flex;align-items:center;color:var(--ibx-tx3)}
.ibx-mark.hot{color:var(--ibx-amb)}
.ibx-av{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--ibx-av0);color:var(--ibx-tx);font-weight:600;line-height:1}
.ibx-av.r{width:44px;height:44px;font-size:14px}
.ibx-av.m{width:40px;height:40px;font-size:14px}
.ibx-av.l{width:48px;height:48px;font-size:16px}
.ibx-av.s{width:24px;height:24px;font-size:11px}
.ibx-av.c1{background:var(--ibx-av1)}.ibx-av.c2{background:var(--ibx-av2)}.ibx-av.c3{background:var(--ibx-av3)}.ibx-av.c4{background:var(--ibx-av4)}.ibx-av.c5{background:var(--ibx-av5)}
.ibx-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.ibx-pdot{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:50%;border:2px solid var(--ibx-card);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;line-height:1;color:#fff;background:#1747b8}
.ibx-pdot.p1{background:#0f766e}.ibx-pdot.p2{background:#b45309}.ibx-pdot.p3{background:#7c3aed}.ibx-pdot.p4{background:#be123c}.ibx-pdot.p8,.ibx-pdot.p9{background:#5b6472}
.ibx-wrap .msgr-conv.ibx-conv{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent}
.ibx-wrap .msgr-conv-h.ibx-head{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;min-width:0;padding:12px 16px;margin:0;border-bottom:1px solid var(--ibx-line)}
.ibx-wrap .ibx-hid{display:flex;flex-direction:column;align-items:flex-start;flex:1 1 160px;min-width:0}   /* H1: the actions drop to a second row rather than eat the name */
.ibx-hname{max-width:100%;padding:0;border:0;background:none;color:var(--ibx-tx);font:inherit;font-weight:700;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.ibx-hsub{max-width:100%;font-size:13px;color:var(--ibx-tx2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button.ibx-hsub{padding:0;border:0;background:none;font:inherit;font-size:13px;color:var(--ibx-tx2);text-align:left;cursor:pointer}
button.ibx-hsub:hover{color:var(--ibx-tx)}
.ibx-psub{display:none;font-size:13px;color:var(--ibx-tx3)}
.ibx-qlink{padding:0;border:0;background:none;color:var(--ibx-link);font:inherit;font-size:13px;cursor:pointer}
.ibx-hacts{flex:0 0 auto;min-width:0}
.ibx-wrap .ibx-qbar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0;padding:0;border:0;font-size:13px}
.ibx-qbtn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.ibx-qbtn:hover{background:var(--ibx-tile)}
.ibx-qchip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 4px;font-size:13px;color:var(--ibx-tx2);white-space:nowrap}
.ibx-dot{display:inline-block;flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--ibx-line2)}
.ibx-dot.q-engaged{background:var(--ibx-q-engaged)}.ibx-dot.q-qualified{background:var(--ibx-q-qualified)}.ibx-dot.q-nurture{background:var(--ibx-q-nurture)}.ibx-dot.q-not_qualified{background:var(--ibx-q-not_qualified)}.ibx-dot.q-junk{background:var(--ibx-q-junk)}
.ibx-ibtn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:34px;padding:0;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx2);cursor:pointer}
.ibx-ibtn:hover{background:var(--ibx-tile);color:var(--ibx-tx)}
.ibx-ibtn.set{color:var(--ibx-link)}
.ibx-ibtn[aria-expanded="true"]{background:var(--ibx-acc-tint);color:var(--ibx-acc-ink)}
.ibx-ibtn.primary{border-color:var(--ibx-acc);background:var(--ibx-acc,#1747b8);color:#fff}
.ibx-ibtn.primary:hover{background:var(--ibx-acc-h,#0f347f);color:#fff}
.ibx-ibtn.sm{width:28px;height:28px}
.ibx-ibtn.ibx-plain{border-color:transparent;background:transparent}
.ibx-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
.ibx-btn:hover{background:var(--ibx-tile)}
.ibx-btn.sm{height:26px;padding:0 8px;font-size:12px}
.ibx-btn.primary{border-color:var(--ibx-acc);background:var(--ibx-acc,#1747b8);color:#fff;font-weight:600}
.ibx-btn.primary:hover{background:var(--ibx-acc-h,#0f347f)}
.ibx-btn[disabled],.ibx-ibtn[disabled]{opacity:.5;cursor:default}
.ibx-a{padding:0;border:0;background:none;color:var(--ibx-link);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.ibx-a:hover{text-decoration:underline}
.ibx-wrap .ibx-det{display:none}
.ibx-wrap .ibx-ponly{display:none}
.ibx-wrap :is(button,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--ibx-ring,#0e7490);outline-offset:2px}
.ibx-wrap .ibx-conv:focus-visible{outline-offset:-2px}
.ibx-mhost{position:relative;display:inline-flex}
.ibx-pop{position:absolute;z-index:40;min-width:200px;padding:6px;border:1px solid var(--ibx-line);border-radius:10px;background:var(--ibx-card);box-shadow:var(--ibx-shadow2);color:var(--ibx-tx);text-align:left}
.ibx-pop[hidden]{display:none}
.ibx-kmenu,.ibx-gmenu,.ibx-lomenu{top:calc(100% + 6px);right:0}
.ibx-lomenu{right:auto;left:0;top:auto;bottom:calc(100% + 6px)}
.ibx-mmenu{top:calc(100% + 6px);left:0;min-width:180px;display:flex;flex-direction:column;gap:2px}
.ibx-mi{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:0 10px;border:0;border-radius:6px;background:none;color:var(--ibx-tx);font:inherit;font-size:13px;text-align:left;white-space:nowrap;cursor:pointer}
.ibx-wrap .ibx-mi:hover,.ibx-wrap .ibx-mi:focus-visible{background:var(--ibx-tile)}
.ibx-wrap .ibx-mi.danger{color:var(--ibx-red)}
.ibx-wrap .ibx-mmenu .ibx-chip{height:34px;width:100%}
.ibx-qpop{top:62px;right:12px;width:330px;max-width:calc(100% - 24px);display:flex;flex-direction:column;gap:4px}
.ibx-wrap .ibx-qpop .ibx-qopt{display:grid;grid-template-columns:22px 96px minmax(0,1fr);gap:8px;align-items:center;min-height:40px;padding:6px 8px;border:0;border-radius:8px;background:none;color:var(--ibx-tx);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.ibx-wrap .ibx-qpop .ibx-qopt:hover,.ibx-wrap .ibx-qpop .ibx-qopt:focus-visible{background:var(--ibx-tile)}
.ibx-wrap .ibx-qpop .ibx-qopt.cur{background:var(--ibx-acc-tint)}
.ibx-wrap .ibx-qpop .ibx-qopt.cur b::after{content:""}
.ibx-wrap .ibx-qpop .ibx-qopt .sub{color:var(--ibx-tx3);font-size:12px;line-height:1.3}
.ibx-wrap .ibx-qpop .ibx-qopt.ibx-qnj{grid-template-columns:96px minmax(0,1fr);border-bottom:1px solid var(--ibx-line);border-radius:8px 8px 0 0}   /* v1.552 Not junk: no key, first item */
.ibx-wrap .ibx-qpop kbd{display:inline-block;min-width:20px;padding:1px 4px;border:1px solid var(--ibx-line2);border-radius:5px;font:inherit;font-size:11px;text-align:center;color:var(--ibx-tx3)}
.ibx-qpop .ibx-qx{align-self:flex-start;margin:4px 8px}
.ibx-qph{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.ibx-qpop select,.ibx-qpop input{width:100%;height:34px;padding:0 8px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;margin-bottom:6px}
.ibx-wrap .ibx-lab{display:block;margin:4px 0;font-size:12px;font-weight:600;color:var(--ibx-tx3)}
.ibx-wrap .ibx-err{min-height:0;margin:2px 0;color:var(--ibx-red);font-size:12.5px;font-weight:600}
.ibx-wrap .ibx-err:empty{display:none}
.ibx-emo{bottom:calc(100% + 6px);left:0;display:grid;grid-template-columns:repeat(6,36px);gap:2px;min-width:0}
.ibx-emo button{width:36px;height:36px;border:0;border-radius:6px;background:none;font-size:20px;line-height:1;cursor:pointer}
.ibx-emo button:hover{background:var(--ibx-tile)}
.ibx-slash,.ibx-mention{left:0;right:0;bottom:calc(100% + 6px);max-height:260px;overflow-y:auto}
.ibx-opt{display:flex;flex-direction:column;gap:2px;padding:7px 10px;border-radius:6px;font-size:13px;cursor:pointer}
.ibx-opt span{font-size:12px;color:var(--ibx-tx3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibx-opt.on,.ibx-opt:hover{background:var(--ibx-acc-tint)}
.ibx-opt-none{padding:8px 10px;font-size:13px;color:var(--ibx-tx3)}
.ibx-slfoot{display:flex;gap:14px;margin-top:4px;padding:6px 10px 2px;border-top:1px solid var(--ibx-line)}
.ibx-furow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 16px;border-bottom:1px solid var(--ibx-line);background:var(--ibx-tile);font-size:13px}
.ibx-furow input{height:32px;padding:0 8px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px}
.ibx-wrap .msgr-thread.ibx-thread{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0;max-height:none;margin:0;padding:16px;overflow-y:auto}
.ibx-wrap .msgr-b{display:flex;flex-direction:column;gap:3px;max-width:72%}
.ibx-wrap .msgr-b.user{align-self:flex-start}
.ibx-wrap .msgr-b.agent{align-self:flex-end;align-items:flex-end}
.ibx-wrap .msgr-bb{padding:8px 14px;border:0;border-radius:18px;background:var(--ibx-in);color:var(--ibx-tx);font-size:14px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.ibx-wrap .msgr-b.user .msgr-bb{background:var(--ibx-in);border-bottom-left-radius:18px}
.ibx-wrap .msgr-b.agent .msgr-bb{background:var(--ibx-out);color:var(--ibx-out-tx);border:0;border-bottom-right-radius:18px}
.ibx-wrap .msgr-b.bs .msgr-bb{outline:1px dashed var(--ibx-line2);outline-offset:2px}
/* inbox-reply (28 Oct 2026): Meta's Reply beside a customer's bubble (hover / keyboard focus; always shown on a touch screen), the quote above a reply, the
   "Replying to" strip above the box, the original lit up when its quote is pressed */
.ibx-wrap .msgr-b.user{position:relative}
.ibx-wrap .ibx-rbtn{position:absolute;top:50%;right:-36px;transform:translateY(-50%);width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ibx-line);border-radius:999px;background:var(--ibx-card);color:var(--ibx-tx2);cursor:pointer;opacity:0;transition:opacity .12s}
.ibx-wrap .msgr-b.user:hover .ibx-rbtn,.ibx-wrap .msgr-b.user:focus-within .ibx-rbtn,.ibx-wrap .ibx-rbtn:focus-visible{opacity:1}
.ibx-wrap .ibx-rbtn:hover{color:inherit;filter:brightness(.95)}
.ibx-wrap .ibx-rbtn:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media (hover:none){.ibx-wrap .ibx-rbtn{opacity:.7}}
.ibx-wrap .ibx-rq{display:flex;flex-direction:column;gap:2px;max-width:100%;margin:0 0 -2px;padding:6px 10px 8px;border:0;border-radius:14px;background:var(--ibx-tile);color:var(--ibx-tx2);font:inherit;font-size:12px;text-align:left;opacity:.9;cursor:pointer}
.ibx-wrap .ibx-rq.off{cursor:default}
.ibx-wrap .ibx-rq:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.ibx-wrap .ibx-rqlab{display:inline-flex;align-items:center;gap:4px;font-size:11px}
.ibx-wrap .ibx-rqt{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(320px,100%)}
.ibx-wrap .msgr-b.ibx-rqhit .msgr-bb{box-shadow:0 0 0 3px var(--ibx-acc);transition:box-shadow .2s}
.ibx-wrap .ibx-rstrip{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:6px 6px 6px 10px;border-left:3px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-tile);font-size:12px;color:var(--ibx-tx2)}
.ibx-wrap .ibx-rsl{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}
.ibx-wrap .ibx-rsw{display:flex;flex-direction:column;min-width:0}
.ibx-wrap .ibx-rsw b{color:inherit;font-weight:600}
.ibx-wrap .ibx-rst{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibx-wrap .msgr-bt{margin:0;font-size:12px;color:var(--ibx-tx3)}
.ibx-wrap .msgr-bb.ibx-empty{background:transparent;color:var(--ibx-tx3);font-style:italic}
.ibx-media{display:flex;flex-direction:column;gap:6px}
.ibx-img{max-width:240px;max-height:240px;min-width:60px;min-height:60px;border-radius:10px;background:var(--ibx-tile,rgba(148,163,184,.16));cursor:zoom-in}
.ibx-img.stk{max-width:110px;max-height:110px;cursor:default}
.ibx-aud{width:240px;max-width:100%}
.ibx-vid{max-width:280px;max-height:240px;border-radius:10px}
.ibx-mfail{font-size:12.5px;color:var(--ibx-tx3,var(--mut));font-style:italic}
.ibx-empty{color:var(--mut);font-style:italic}
.ibx-wrap .ibx-play{display:inline-flex;align-items:center;gap:6px}
.ibx-leadbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;align-self:center;max-width:calc(100% - 32px);margin:0 16px 8px;padding:8px 8px 8px 14px;border:1px solid var(--ibx-line);border-radius:10px;background:var(--ibx-card);box-shadow:var(--ibx-shadow);font-size:13px}
.ibx-leadbar.linked,.ibx-leadbar.test{align-self:stretch;max-width:none;margin:0 16px 6px;padding:4px 0;border:0;background:transparent;box-shadow:none}
.ibx-lt{min-width:0}
.ibx-wrap .ibx-leadline{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--ibx-tx2);font-size:12.5px}
.ibx-wrap .ibx-ok{display:inline-flex;align-items:center;gap:4px;color:var(--ibx-ok)}
.ibx-wrap .ibx-mut{color:var(--ibx-tx3);font-size:12px}
.ibx-wrap .ibx-link{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:2px 0;font-size:12.5px}
.ibx-wrap .ibx-link.unconf{padding:4px 8px;border:1px solid var(--ibx-amb-ln);border-radius:8px;background:var(--ibx-amb-bg)}
.ibx-wrap .msgr-draft.ibx-compose{margin:0;padding:8px 14px 12px;border:0;border-radius:0;background:transparent}
/* v1.508 (ANik 20 Oct): the reply box and its Send button stay in view. The shadow banner + an expanded AI draft ("Show all") + a
   filled reply box could be taller than the conversation card, whose overflow is hidden, so Send was cut off at the bottom.
   The thread takes only the room left (flex-basis 0, floor 96px), so compose keeps its natural height whenever it fits; when it
   does not, only the AI draft gives up height (it scrolls inside itself) — the banner and the reply box keep their full size.
   No overflow:hidden on compose: the emoji picker and the saved-replies list open upward out of the reply box (audit 20 Oct). */
.ibx-wrap .msgr-draft.ibx-compose{display:flex;flex-direction:column;min-height:0}
.ibx-wrap .msgr-draft.ibx-compose>*{flex:0 0 auto}
.ibx-wrap .msgr-draft.ibx-compose>.ibx-aid{flex:0 1 auto;min-height:0;overflow-y:auto}
.ibx-wrap .msgr-thread.ibx-thread{flex:1 1 0;min-height:96px}
.ibx-wrap .ibx-block,.ibx-wrap .ibx-held{display:flex;align-items:flex-start;gap:6px;margin:0 0 8px;padding:6px 10px;border:1px solid var(--ibx-amb-ln);border-radius:8px;background:var(--ibx-amb-bg);color:var(--ibx-tx);font-size:12.5px;line-height:1.4}
.ibx-wrap .ibx-block .ibx-svg,.ibx-wrap .ibx-held .ibx-svg{color:var(--ibx-amb);margin-top:1px}
.ibx-cbox{position:relative;display:flex;flex-direction:column;gap:6px;padding:8px 10px;border:1px solid var(--ibx-line2);border-radius:10px;background:var(--ibx-card)}
.ibx-cbox:focus-within{border-color:var(--ibx-acc)}
.ibx-wrap .msgr-reply{display:block;width:100%;min-height:44px;max-height:136px;padding:0;border:0;outline:0;border-radius:0;background:transparent;color:var(--ibx-tx);font:inherit;font-size:14px;line-height:20px;resize:none;overflow-y:auto}
.ibx-wrap .msgr-reply:focus-visible{outline:0}
.ibx-ctools{display:flex;align-items:center;gap:2px}
.ibx-ctools .ibx-ibtn{width:32px;height:32px}
/* Phase 2 — the AI draft strip above the reply box (specs/ai-drafts-plan.md §5.4–5.6, §5.13): theme tokens only; the box's outline + label */
.ibx-wrap .ibx-aid{margin:0 0 8px;padding:8px 10px;border:1px solid var(--ibx-line2);border-left:3px solid var(--ibx-acc);border-radius:10px;background:var(--ibx-acc-tint);color:var(--ibx-tx);font-size:13px;line-height:1.45;min-width:0}
.ibx-wrap .ibx-aid[hidden]{display:none}
.ibx-wrap .ibx-aid.stale{border-left-color:var(--ibx-amb)}
.ibx-wrap .ibx-aid.err{border-left-color:var(--ibx-red);background:var(--ibx-red-bg)}
.ibx-wrap .ibx-aid-h{display:flex;align-items:center;gap:8px;min-width:0}
.ibx-wrap .ibx-aid-t{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--ibx-acc-ink)}
.ibx-wrap .ibx-aid.err .ibx-aid-t{color:var(--ibx-tx)}
.ibx-wrap .ibx-aid-lang{font-size:11px;color:var(--ibx-tx3);border:1px solid var(--ibx-line2);border-radius:6px;padding:0 6px;line-height:16px}
.ibx-wrap .ibx-aid-x{margin:6px 0 2px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ibx-tx);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.ibx-wrap .ibx-aid-x.all{display:block;-webkit-line-clamp:unset;line-clamp:none;max-height:40vh;overflow-y:auto}
.ibx-wrap .ibx-aid-more{padding:0;border:0;background:transparent;color:var(--ibx-link);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.ibx-wrap .ibx-aid-more:hover{text-decoration:underline}
.ibx-wrap .ibx-aid-st,.ibx-wrap .ibx-aid-np{display:flex;align-items:flex-start;gap:6px;margin:6px 0 0;padding:4px 8px;border:1px solid var(--ibx-amb-ln);border-radius:8px;background:var(--ibx-amb-bg);color:var(--ibx-tx);font-size:12.5px}
.ibx-wrap .ibx-aid-st .ibx-svg,.ibx-wrap .ibx-aid-np .ibx-svg{color:var(--ibx-amb);margin-top:2px;flex:0 0 auto}
.ibx-wrap .ibx-aid-e{margin:6px 0 0;color:var(--ibx-tx);font-size:13px}
.ibx-wrap .ibx-aid-from{margin:6px 0 0;font-size:12px;color:var(--ibx-tx2)}
.ibx-wrap .ibx-aid-from ul,.ibx-wrap .ibx-aid-chk{margin:2px 0 0;padding:0 0 0 16px}
.ibx-wrap .ibx-aid-from li{overflow-wrap:anywhere}
.ibx-wrap .ibx-aid-k{font-weight:600;color:var(--ibx-tx3)}
.ibx-wrap .ibx-aid-chk{margin-top:6px;font-size:12.5px;font-weight:600}
.ibx-wrap .ibx-aid-chk li.bad{color:var(--ibx-red)}
.ibx-wrap .ibx-aid-chk li.amb{color:var(--ibx-amb)}
.ibx-wrap .ibx-aid-b{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ibx-wrap .ibx-aid-sh{display:none}   /* r5 client MEDIUM-1: "Replace with the newer draft" → "Replace" on phones (the full words stay in aria-label) */
.ibx-wrap .ibx-aid-b .ibx-btn.hi,.ibx-wrap .ibx-aid.slim .ibx-aid-h .ibx-btn.hi{border-color:var(--ibx-amb);color:var(--ibx-amb);font-weight:600}   /* the folded strip too: Regenerate stands out when prices changed */
@media (max-width:480px){ .ibx-wrap .ibx-aid.slim .ibx-aid-t>span{display:none} }   /* phones: the box label already says "AI draft in the box — check before sending" */
.ibx-wrap .ibx-cbox.aid{border-color:var(--ibx-acc);box-shadow:0 0 0 2px var(--ibx-acc-tint)}
/* audit L9: after Use draft the strip folds to one line — the label, Show draft, Regenerate, Discard */
.ibx-wrap .ibx-aid.slim{padding:6px 10px}
.ibx-wrap .ibx-aid.slim .ibx-aid-h{flex-wrap:wrap;row-gap:4px}
.ibx-wrap .ibx-aid.slim .ibx-aid-h .ibx-btn{height:28px;padding:0 10px;font-size:12.5px}
/* DECISIONS 261 #1 (ANik 18:30): the draft strip is ONE line by default — label, language, the checks' count, Show / Use draft / Regenerate / ✕;
   open, it is capped at ~30% of the chat column (ibxAidFit measures it; this is the floor without JS) and scrolls inside itself */
.ibx-wrap .ibx-aid.c1{padding:5px 10px}
.ibx-wrap .ibx-aid.c1 .ibx-aid-h{flex-wrap:nowrap;row-gap:4px}   /* one line on a desktop: the label gives way (ellipsis), the buttons never wrap — a phone wraps (below) */
.ibx-wrap .ibx-aid.c1 .ibx-aid-t{flex:0 1 auto;min-width:0;overflow:hidden}
.ibx-wrap .ibx-aid.c1 .ibx-aid-t>span:last-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ibx-wrap .ibx-aid.c1 .ibx-aid-lang{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ibx-wrap .ibx-aid.c1 .ibx-aid-h>.ibx-btn,.ibx-wrap .ibx-aid.c1 .ibx-aid-h>.ibx-aid-n,.ibx-wrap .ibx-aid.c1 .ibx-aid-h>.ibx-aid-exp,.ibx-wrap .ibx-aid.c1 .ibx-aid-h>.ibx-aid-old{flex:0 0 auto}
.ibx-wrap .ibx-aid.c1 .ibx-aid-cb{flex:0 0 auto;flex-wrap:nowrap}
.ibx-wrap .msgr-draft.ibx-compose>.ibx-aid.c1{flex:0 0 auto}   /* the one line is never squeezed by a tall reply box */
.ibx-wrap .ibx-aid.c1 .ibx-aid-h .ibx-btn{height:28px;padding:0 10px;font-size:12.5px}
.ibx-wrap .ibx-aid-cb{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.ibx-wrap .ibx-aid.c1 .ibx-aid-h .ibx-btn.ibx-aid-rx{width:28px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.ibx-wrap .ibx-aid-cb .ibx-btn.hi{border-color:var(--ibx-amb);color:var(--ibx-amb);font-weight:600}
.ibx-wrap .ibx-aid-n{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border:1px solid var(--ibx-amb-ln);border-radius:11px;background:var(--ibx-amb-bg);color:var(--ibx-tx);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.ibx-wrap .ibx-aid-n.bad{border-color:var(--ibx-red);color:var(--ibx-red)}
.ibx-wrap .ibx-aid-dot{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--ibx-amb)}
.ibx-wrap .ibx-aid-n.bad .ibx-aid-dot{background:var(--ibx-red)}
.ibx-wrap .ibx-aid-old{font-size:12px;font-weight:700;color:var(--ibx-amb);white-space:nowrap}
.ibx-wrap .ibx-aid-exp{white-space:nowrap}
.ibx-wrap .msgr-draft.ibx-compose>.ibx-aid.exp{max-height:calc(var(--ibx-h,90vh)*.3);overflow-y:auto;overscroll-behavior:contain;min-height:36px}
.ibx-wrap .ibx-ailab{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600;color:var(--ibx-acc-ink)}
.ibx-wrap .ibx-ailab[hidden]{display:none}
.ibx-wrap .ibx-ailab-t{display:inline-flex;align-items:center;gap:5px}
.ibx-wrap .ibx-aidbw{display:inline-flex}
.ibx-wrap .ibx-ctools .ibx-ibtn.ibx-aidb{width:auto;gap:5px;padding:0 8px;color:var(--ibx-acc-ink);font:inherit;font-size:12.5px;font-weight:600}
.ibx-wrap .ibx-ctools .ibx-ibtn.ibx-aidb:hover{background:var(--ibx-acc-tint)}
/* r6 (AI draft cues, plan r2 §5): the note box, the note / seen photos under a draft, Reject's reason row — tokens only, wraps everywhere */
.ibx-wrap .ibx-aid-cn{margin:4px 0 0;font-size:12.5px;color:var(--ibx-tx2);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.ibx-wrap .ibx-aid-cn.all{display:block;-webkit-line-clamp:unset;line-clamp:none}
.ibx-wrap .ibx-aid-seen{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:12px;color:var(--ibx-tx2)}
.ibx-wrap .ibx-aid-ths{display:inline-flex;gap:6px;flex:0 0 auto}
.ibx-wrap .ibx-aid-th{width:40px;height:40px;object-fit:cover;border-radius:6px;border:1px solid var(--ibx-line2);background:var(--ibx-tile)}
.ibx-wrap .ibx-aid-cue,.ibx-wrap .ibx-aid-why{margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--ibx-line2);min-width:0}
.ibx-wrap .ibx-aid.cue>.ibx-aid-cue:first-child,.ibx-wrap .ibx-aid.cue>.ibx-aid-why:first-child{margin-top:0;padding-top:0;border-top:0}
.ibx-wrap .ibx-aid-cueh,.ibx-wrap .ibx-aid-whyh{display:flex;align-items:center;gap:8px;min-width:0}
.ibx-wrap .ibx-aid-cnt{font-size:11.5px;color:var(--ibx-tx3);font-variant-numeric:tabular-nums}
.ibx-wrap .ibx-aid-cnt.bad{color:var(--ibx-red);font-weight:700}
.ibx-wrap .ibx-aid-cuet{display:block;box-sizing:border-box;width:100%;min-width:0;margin:6px 0 0;padding:6px 8px;min-height:52px;max-height:108px;resize:none;overflow-y:auto;
  border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;line-height:1.45}
.ibx-wrap .ibx-aid-cuet:focus{outline:2px solid var(--ibx-acc);outline-offset:1px}
.ibx-wrap .ibx-aid-cuei{display:flex;align-items:flex-start;gap:5px;margin:6px 0 0;font-size:12px;color:var(--ibx-tx2)}
.ibx-wrap .ibx-aid-cuei .ibx-svg{flex:0 0 auto;margin-top:2px}
.ibx-wrap .ibx-aid-ph{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:12.5px;color:var(--ibx-tx);cursor:pointer}
.ibx-wrap .ibx-aid-warn{display:flex;align-items:flex-start;gap:6px;margin:6px 0 0;padding:4px 8px;border:1px solid var(--ibx-amb-ln);border-radius:8px;background:var(--ibx-amb-bg);color:var(--ibx-tx);font-size:12.5px}
.ibx-wrap .ibx-aid-warn .ibx-svg{color:var(--ibx-amb);margin-top:2px;flex:0 0 auto}
.ibx-wrap .ibx-aid-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ibx-wrap .ibx-aid-chips .ibx-btn{height:28px;padding:0 10px;font-size:12.5px}
.ibx-wrap .ibx-aid-whyo{display:flex;gap:6px;margin-top:6px;min-width:0}
.ibx-wrap .ibx-aid-whyo input{flex:1 1 auto;min-width:0;height:32px;padding:0 8px;border:1px solid var(--ibx-line2);border-radius:8px;background:transparent;color:var(--ibx-tx);font:inherit;font-size:13px}
.ibx-wrap .ibx-aid-x0{min-width:28px;padding:0 6px}
.ibx-pdone{display:none;padding:0 14px 12px}
.ibx-wide{width:100%;height:46px;font-size:15px;border-radius:12px}
.ibx-wrap .ibx-panel{display:flex;flex-direction:column;gap:16px;padding:18px;overflow-y:auto;container:ibxp / inline-size}
.ibx-phead{display:none;align-items:center;justify-content:space-between;gap:8px}
.ibx-sec{display:flex;flex-direction:column;gap:6px;min-width:0}
.ibx-sh{margin:0;font-size:12px;font-weight:600;letter-spacing:0;color:var(--ibx-tx3)}
.ibx-whorow{display:flex;align-items:center;gap:12px;min-width:0}
.ibx-wid{display:flex;flex-direction:column;min-width:0;font-size:13px;color:var(--ibx-tx2)}
.ibx-wid b{font-size:14px;color:var(--ibx-tx)}
.ibx-new{color:var(--ibx-ok)}
.ibx-addph{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.ibx-row{display:flex;flex-wrap:wrap;gap:6px}
.ibx-addph input{flex:1 1 140px;min-width:0;height:34px;padding:0 10px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:14px}
.ibx-why{font-size:12.5px;color:var(--ibx-amb)}
.ibx-callout{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;font-size:13px}
.ibx-callout.claim{border:1px solid var(--ibx-amb-ln);background:var(--ibx-amb-bg)}
.ibx-callout.bad{border:1px solid var(--ibx-red-ln);background:var(--ibx-red-bg)}
.ibx-callout.bad > div{display:flex;flex-wrap:wrap;gap:6px}   /* v1.552: Not junk beside Re-open */
.ibx-callout .ibx-btn.primary{height:38px;font-size:14px}
.ibx-cl-k{font-size:12px;font-weight:600;color:var(--ibx-red)}
.ibx-quote{color:var(--ibx-tx2)}
.ibx-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ibx-tile{min-width:0;padding:10px;border-radius:10px;background:var(--ibx-tile)}
.ibx-tk{font-size:12px;color:var(--ibx-tx3)}
.ibx-tv{display:flex;align-items:center;gap:6px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.ibx-ts{font-size:12px;color:var(--ibx-tx3)}
.ibx-orow{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}
.ibx-ot{flex:1 1 auto;min-width:0}
.ibx-facts,.ibx-cf{font-size:13px;color:var(--ibx-tx2)}
.ibx-kp{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content minmax(0,1fr);gap:5px 12px;margin:0;font-size:13px}
.ibx-kpi{display:contents}
.ibx-kpi.w{display:contents}
.ibx-kpi.w dt{grid-column:1}
.ibx-kpi.w dd{grid-column:2 / -1}   /* M4: the wide row uses the same label column as the others */
.ibx-kp dt{color:var(--ibx-tx3)}
.ibx-kp dd{margin:0;min-width:0;overflow-wrap:anywhere}
.ibx-kp dd.warn{color:var(--ibx-amb)}
.ibx-src{margin-left:4px;padding:0 4px;border:1px solid var(--ibx-line2);border-radius:5px;font-size:11px;color:var(--ibx-tx3);white-space:nowrap}
@container ibxp (max-width:359px){ .ibx-kp{grid-template-columns:max-content minmax(0,1fr)} }
.ibx-ncard{padding:8px 10px;border-radius:8px;background:var(--ibx-note);color:var(--ibx-tx);font-size:13px}
.ibx-ntext{white-space:pre-wrap;overflow-wrap:anywhere}
.ibx-nfoot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:4px;font-size:12px;color:var(--ibx-tx3)}
.ibx-at{display:inline-block;padding:0 4px;border-radius:5px;background:var(--ibx-acc-tint);color:var(--ibx-acc-ink);font-weight:600}
.ibx-ncomp{position:relative;display:flex;flex-direction:column;gap:6px}
.ibx-ncomp textarea{width:100%;min-height:36px;padding:7px 10px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;resize:vertical}
.ibx-nchips{display:flex;flex-wrap:wrap;gap:4px}
.ibx-nchips:empty{display:none}
.ibx-nact{display:flex;align-items:center;justify-content:space-between;gap:8px}
/* Log call in the right panel (25 Oct 2026, DECISIONS 258): one button, a small form, the last calls; phone-width friendly */
.ibx-chead{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.ibx-wrap .ibx-cbtn{padding:0 14px;font-size:13.5px}
.ibx-cform{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--ibx-line2);border-radius:10px;background:var(--ibx-tile)}
.ibx-cform input{box-sizing:border-box;flex:0 0 auto;min-width:0;height:34px;padding:0 10px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:14px}
.ibx-cform textarea{width:100%;box-sizing:border-box;min-height:36px;padding:7px 10px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;resize:vertical}
.ibx-coc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ibx-wrap .ibx-coc .ibx-btn{padding:0 6px;white-space:normal;line-height:1.15;text-align:center}
.ibx-wrap .ibx-coc .ibx-btn.on{border-color:var(--ibx-acc);background:var(--ibx-acc-tint);color:var(--ibx-acc-ink);font-weight:600}
@container ibxp (max-width:300px){ .ibx-coc{grid-template-columns:repeat(2,minmax(0,1fr))} }
.ibx-cfu{display:flex;flex-direction:column;gap:6px}
.ibx-cform .ibx-row input{flex:1 1 120px}   /* the day and the time side by side; the number box is one line high (a column flex item never grows) */
.ibx-clist{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.ibx-ci{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--ibx-tx2);min-width:0}
.ibx-ci b{color:var(--ibx-tx)}
.ibx-cn{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ibx-tx)}
.ibx-cit{overflow-wrap:anywhere}
.ibx-scrim{display:none}
.ibx-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ibx-svg{display:block;flex:0 0 auto}
.ibx-ph{padding:40px 20px;text-align:center;color:var(--ibx-tx3,var(--mut));font-size:13px}
.ibx-ph.sm{padding:6px 0;text-align:left}
.ibx-ph.lg{padding:44px}
.ibx-wrap .ibx-morebtn{display:flex;margin:8px auto}
.ibx-ro{margin:6px 0 10px;padding:8px 12px;border:1px solid rgba(245,158,11,.35);border-radius:10px;background:rgba(245,158,11,.10);font-size:13px}
/* M1: the global input / textarea skin (lumen.css, !important) must not draw a box inside the search box or the reply box */
:is(#app,body) .ibx-wrap .ibx-search input.ibx-q.ibx-q.ibx-q,:is(#app,body) .ibx-wrap .ibx-search input.ibx-q.ibx-q.ibx-q:hover,:is(#app,body) .ibx-wrap .ibx-search input.ibx-q.ibx-q.ibx-q:focus{height:100% !important;min-height:0 !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;outline:0 !important}
:is(#app,body) .ibx-wrap .ibx-cbox textarea.msgr-reply.msgr-reply.msgr-reply,:is(#app,body) .ibx-wrap .ibx-cbox textarea.msgr-reply.msgr-reply.msgr-reply:hover,:is(#app,body) .ibx-wrap .ibx-cbox textarea.msgr-reply.msgr-reply.msgr-reply:focus{margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;outline:0 !important;font-size:14px !important;line-height:20px !important}
/* M3: on a phone with a chat open the page's title band goes, so the chat is full screen (Back · name · ⋯); desktop unchanged */
.ibx-ph0:has(~ .ibx-wrap.ibx-w1.conv),.ibx-ro:has(~ .ibx-wrap.ibx-w1.conv){display:none}
/* the Spam Undo line (outside .ibx-wrap; a later toast never removes it) */
.ibx-undo{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:10050;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);padding:10px 12px 10px 16px;border-radius:10px;background:#1a2233;color:#fff;font-size:14px;box-shadow:0 8px 24px rgba(20,30,50,.3)}
.ibx-undo .ibx-undo-b{height:32px;padding:0 12px;border:1px solid rgba(255,255,255,.55);border-radius:8px;background:#2c3850;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.ibx-undo .ibx-undo-b:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* hotfix 18 Oct: the inbox buttons' hover text, shown at once */
.ibx-tip{position:fixed;left:0;top:0;z-index:10060;max-width:280px;padding:5px 9px;border-radius:6px;background:#1a2233;color:#fff;font-size:12px;font-weight:500;line-height:1.35;pointer-events:none;opacity:0;transition:opacity .12s;box-shadow:0 6px 18px rgba(20,30,50,.28)}
.ibx-tip.on{opacity:1}
@media (prefers-reduced-motion:reduce){.ibx-tip{transition:none}}
.ibx-backw{display:none}   /* a wrapper: kept for the suites; shown on the phone layout */
/* the dialogs the inbox opens (they live in #dlg, outside .ibx-wrap, on the app's own tokens) */
.ibx-lab{display:block;font-size:12px;font-weight:700;color:var(--mut);margin-bottom:4px}
.ibx-err{min-height:18px;color:var(--bad);font-size:13px;font-weight:600;margin:4px 0}
.ibx-priv{padding:6px 14px 10px;text-align:right}
.ibx-privlist{margin:0 0 6px 18px;padding:0;font-size:13px;line-height:1.6}
.ibx-acard{border:1px solid var(--glass2);border-radius:12px;padding:10px 12px;margin-bottom:10px}
.ibx-arow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:4px}
.ibx-duty{margin-top:8px;font-size:13px}
.ibx-drow{display:flex;gap:6px;align-items:center;margin:5px 0}
.ibx-srow{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--glass2);padding:8px 0}
.ibx-ack{margin-top:8px;font-size:13px}
.ibx-ack textarea{width:100%;margin-top:6px}
.ibx-acclist{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:2px 14px;margin:8px 0;max-height:260px;overflow:auto;font-size:13px}
.ibx-accrow{display:flex;gap:8px;align-items:flex-start;cursor:pointer;padding:3px 0}
.ibx-ice textarea{width:100%;margin-top:6px}
/* ══ Inbox settings — the redesign (22 Oct 2026; _work/plans-1022/inbox-settings-redesign-plan.md). Scoped .ibs-*, on the app's tokens:
   dark by default, light under html[data-theme="light"]. The dialog is 920 px wide with a scrolling body; a full-screen sheet ≤ 720 px. ══ */
.ibs{--ibs-tx:var(--txt);--ibs-mut:var(--mut);--ibs-faint:var(--faint);--ibs-line:var(--bord);--ibs-line2:var(--bord2);--ibs-chip:var(--glass2);--ibs-p2:var(--glass);--ibs-raise:rgba(255,255,255,.06);
  --ibs-acc:rgb(var(--accent));--ibs-ok:var(--ok);--ibs-okbg:rgba(52,211,153,.12);--ibs-okln:rgba(52,211,153,.35);--ibs-warn:var(--warn);--ibs-warnbg:rgba(251,191,36,.10);--ibs-warnln:rgba(251,191,36,.35);
  --ibs-bad:var(--bad);--ibs-badbg:rgba(251,113,133,.10);--ibs-badln:rgba(251,113,133,.35);--ibs-knob:#f4f7fb;--ibs-bg:#0e1526;
  position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;height:100%;color:var(--ibs-tx);font-size:14px;line-height:1.45;text-align:left;color-scheme:dark}
html[data-theme="light"] .ibs{color-scheme:light;--ibs-raise:#fff;--ibs-okbg:#e6f6ee;--ibs-okln:#a7dcc4;--ibs-warnbg:#fdf5e4;--ibs-warnln:#efd59a;--ibs-badbg:#fdecef;--ibs-badln:#f3b8c4;--ibs-knob:#fff;--ibs-bg:#fff}
body.lumen .ibs{--ibs-bg:var(--lx-surface,#0e1526)}
#dlg .panel.ibs-panel{max-width:920px!important;width:min(920px,94vw)!important;height:min(760px,calc(100vh - 32px));max-height:none!important;padding:0!important;overflow:hidden!important;display:flex;flex-direction:column;text-align:left}
#dlg .panel.ibs-panel>.dlg-x{top:14px;right:14px;z-index:4}
.ibs .ibs-hd{padding:16px 64px 0 20px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--ibs-line);flex:none}
.ibs .ibs-hdtop{display:flex;align-items:flex-start;gap:12px}
.ibs .ibs-ttl{flex:1 1 auto;min-width:0}
.ibs h3#ibs-title{font-size:19px;font-weight:700;letter-spacing:-.2px;margin:0}
.ibs .ibs-sub{font-size:12.5px;color:var(--ibs-mut);margin-top:3px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.ibs .ibs-save{font-size:12px;color:var(--ibs-faint);display:inline-flex;gap:5px;align-items:center;white-space:nowrap;padding-top:8px}
.ibs .ibs-save.busy{color:var(--ibs-mut)}.ibs .ibs-save.err{color:var(--ibs-bad)}
.ibs .ibs-metabtn{display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.ibs .ibs-tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;margin:0 -2px}
.ibs .ibs-tabs::-webkit-scrollbar{display:none}
.ibs .ibs-tab{border:0;background:none;padding:9px 12px 11px;font:inherit;font-weight:600;color:var(--ibs-mut);border-bottom:2px solid transparent;white-space:nowrap;display:inline-flex;gap:7px;align-items:center;cursor:pointer;border-radius:0}
.ibs .ibs-tab:hover{color:var(--ibs-tx)}
.ibs .ibs-tab[aria-selected="true"]{color:var(--ibs-tx);border-bottom-color:var(--ibs-acc)}
.ibs .ibs-n{font-size:11px;font-weight:700;border-radius:999px;padding:0 6px;line-height:17px;background:var(--ibs-chip);color:var(--ibs-mut)}
.ibs .ibs-n.warn{background:var(--ibs-warnbg);color:var(--ibs-warn);display:inline-flex;gap:3px;align-items:center}
.ibs .ibs-amsg{color:var(--ibs-bad);font-size:13px;font-weight:600;padding:0 20px;flex:none}
.ibs .ibs-amsg:not(:empty){padding:8px 20px;border-bottom:1px solid var(--ibs-line);background:var(--ibs-badbg)}
.ibs .ibs-bd{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 20px;overscroll-behavior:contain}
.ibs .ibs-ft{border-top:1px solid var(--ibs-line);padding:10px 20px;display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--ibs-faint);flex:none}
.ibs .ibs-sp{flex:1 1 auto}
.ibs .ibs-help{font-size:12.5px;color:var(--ibs-mut)}
.ibs .ibs-muted{color:var(--ibs-faint)}
.ibs .ibs-lead{margin:0 0 10px;display:block}.ibs .ibs-tail{margin:8px 0 0;display:block}
.ibs .ibs-help>.ibx-svg{display:inline-block;vertical-align:-2px;margin-right:3px}   /* .ibx-svg is display:block for the inbox's flex rows */
.ibs #ibs-x-main:not(:empty)+#ibs-x-ai>.ibs-card:first-child{margin-top:12px}
.ibs .ibs-mb{margin-bottom:8px}.ibs .ibs-mt{margin-top:8px}
.ibs .ibs-row{display:flex;gap:12px;align-items:center}.ibs .ibs-row.ibs-top{align-items:flex-start}.ibs .ibs-wrap{flex-wrap:wrap;gap:6px}
.ibs .ibs-grow{flex:1 1 auto;min-width:0}
.ibs .ibs-h4{font-size:14.5px;font-weight:700;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ibs .ibs-card{border:1px solid var(--ibs-line);border-radius:12px;background:var(--ibs-p2);padding:14px}
.ibs .ibs-card+.ibs-card{margin-top:12px}
.ibs .ibs-rows{padding:2px 14px;margin-top:14px}
.ibs .ibs-rows>*+*{border-top:1px solid var(--ibs-line)}
.ibs .ibs-setrow{display:flex;gap:14px;align-items:center;padding:12px 0}
.ibs .ibs-tx{flex:1;min-width:0}.ibs .ibs-tx b{font-weight:600;display:block}
.ibs .ibs-err{color:var(--ibs-bad);font-size:12.5px;margin-top:6px;font-weight:600}.ibs .ibs-err:empty{margin:0}
.ibs .ibs-full{flex-basis:100%}
.ibs .ibs-link{border:0;background:none;padding:0;font:inherit;color:var(--ibs-acc);font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#dlg .ibs .btn.ibs-ghost{background:none;border-color:transparent;color:var(--ibs-acc)!important}
#dlg .ibs .btn.ibs-danger{background:#be123c!important;border:0!important;box-shadow:none!important;color:#fff!important;font-weight:700}   /* !important: the Lumen theme paints every .btn (surface + text) with !important */
/* pills, chips, switches */
.ibs .ibs-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;letter-spacing:.2px;border-radius:999px;padding:2px 10px 2px 8px;border:1px solid;white-space:nowrap;line-height:1.4}
.ibs .ibs-pill.sm{padding:0 8px;font-size:11.5px}
.ibs .ibs-pill i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.ibs .ibs-pill.live,.ibs .ibs-pill.on{color:var(--ibs-ok);background:var(--ibs-okbg);border-color:var(--ibs-okln)}
.ibs .ibs-pill.live i{box-shadow:0 0 0 3px var(--ibs-okbg);animation:ibs-pulse 2s infinite}
@keyframes ibs-pulse{50%{box-shadow:0 0 0 5px transparent}}
.ibs .ibs-pill.ro{color:var(--ibs-warn);background:var(--ibs-warnbg);border-color:var(--ibs-warnln)}
.ibs .ibs-pill.hid{color:var(--ibs-faint);background:transparent;border-color:var(--ibs-line2);border-style:dashed}
.ibs .ibs-pill.off{color:var(--ibs-faint);background:var(--ibs-chip);border-color:var(--ibs-line)}
.ibs .ibs-chips{display:flex;flex-wrap:wrap;gap:6px}
.ibs .ibs-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ibs-mut);background:var(--ibs-chip);border:1px solid var(--ibs-line);border-radius:999px;padding:3px 10px;max-width:100%}
.ibs .ibs-chip b{color:var(--ibs-tx);font-weight:600}
.ibs .ibs-chip.ok{color:var(--ibs-ok);border-color:var(--ibs-okln);background:var(--ibs-okbg)}
.ibs .ibs-chip.warn{color:var(--ibs-warn);border-color:var(--ibs-warnln);background:var(--ibs-warnbg)}
.ibs .ibs-chip.bad{color:var(--ibs-bad);border-color:var(--ibs-badln);background:var(--ibs-badbg)}
.ibs .ibs-chip.ok b,.ibs .ibs-chip.warn b,.ibs .ibs-chip.bad b{color:inherit}
.ibs .ibs-sw{position:relative;width:42px;height:24px;min-width:42px;border-radius:999px;border:1px solid var(--ibs-line2);background:var(--ibs-chip);flex:none;transition:background .18s,border-color .18s;padding:0;cursor:pointer;margin:0}
.ibs .ibs-sw::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:var(--ibs-knob);box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .18s}
.ibs .ibs-sw[aria-checked="true"]{background:var(--grad);border-color:transparent}
.ibs .ibs-sw[aria-checked="true"]::after{transform:translateX(18px)}
.ibs .ibs-sw:disabled{opacity:.45;cursor:not-allowed}
.ibs .ibs-sw:focus-visible,.ibs .ibs-tab:focus-visible,.ibs .ibs-rp:focus-visible,.ibs .ibs-st:focus-visible,.ibs .ibs-day:focus-visible,.ibs .ibs-hrs:focus-visible,.ibs .ibs-name:focus-visible,.ibs .ibs-more:focus-visible,.ibs .ibs-link:focus-visible{outline:2px solid var(--ibs-acc);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.ibs .ibs-sw,.ibs .ibs-sw::after{transition:none}.ibs .ibs-pill.live i{animation:none}}
/* #dlg-scoped: the app's generic ".overlay .panel input / select" rules (white box, 600 weight, a forced text colour) must not reach these */
#dlg .ibs .ibs-in,#dlg .ibs .ibs-num,#dlg .ibs .ibs-time{padding:7px 10px;border-radius:9px;border:1px solid var(--ibs-line2);background:var(--ibs-raise);color:var(--ibs-tx)!important;font:inherit;font-weight:500;min-width:0;max-width:100%;height:auto;min-height:34px;box-shadow:none;color-scheme:inherit}
#dlg .ibs .ibs-num{width:70px;padding:5px 8px;text-align:center;font-weight:700}
#dlg .ibs .ibs-time{padding:5px 8px}
#dlg .ibs .ibs-in:focus,#dlg .ibs .ibs-num:focus,#dlg .ibs .ibs-time:focus{outline:none;border-color:var(--ibs-acc);box-shadow:0 0 0 3px rgba(var(--accent),.18)}
#dlg .ibs .ibs-in.bad,#dlg .ibs .ibs-num.bad,#dlg .ibs .ibs-time.bad{border-color:var(--ibs-bad);box-shadow:0 0 0 3px var(--ibs-badbg)}
.ibs .ibs-note{display:flex;gap:10px;align-items:flex-start;border-radius:12px;padding:10px 12px;font-size:13px;border:1px solid var(--ibs-line);background:var(--ibs-p2);color:var(--ibs-mut);margin:0 0 10px}
.ibs .ibs-note b{color:var(--ibs-tx)}
.ibs .ibs-note.warn{border-color:var(--ibs-warnln);background:var(--ibs-warnbg);color:var(--ibs-tx)}
.ibs .ibs-note.warn .ibx-svg{color:var(--ibs-warn)}
.ibs .ibs-note.hid{border-style:dashed;margin-top:12px}
/* Pages: the rail and the chosen Page */
.ibs .ibs-pages{display:grid;grid-template-columns:232px minmax(0,1fr);gap:18px;align-items:start}
.ibs .ibs-rail{display:flex;flex-direction:column;gap:6px;position:sticky;top:0}
.ibs .ibs-rp{display:flex;flex-direction:column;gap:3px;text-align:left;border:1px solid var(--ibs-line);background:var(--ibs-p2);border-radius:12px;padding:10px 12px;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s;min-width:0}
.ibs .ibs-rp:hover{border-color:var(--ibs-line2)}
.ibs .ibs-rp[aria-selected="true"]{border-color:var(--ibs-acc);background:rgba(var(--accent),.08);box-shadow:inset 3px 0 0 var(--ibs-acc)}
.ibs .ibs-nm{font-weight:600;display:flex;gap:7px;align-items:center;min-width:0}
.ibs .ibs-nm span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibs .ibs-meta{font-size:12px;color:var(--ibs-faint)}
.ibs .ibs-dot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
.ibs .ibs-dot.live{background:var(--ibs-ok)}.ibs .ibs-dot.ro{background:var(--ibs-warn)}.ibs .ibs-dot.hid{background:transparent;border:1.5px dashed var(--ibs-faint)}
.ibs .ibs-detail{min-width:0}
.ibs .ibs-dhead{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ibs .ibs-name{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;background:none;border-radius:9px;padding:3px 6px;margin-left:-6px;font:inherit;font-size:18px;font-weight:700;letter-spacing:-.2px;max-width:100%;color:inherit;cursor:pointer}
.ibs .ibs-name:hover{border-color:var(--ibs-line2)}
.ibs .ibs-name .ibx-svg{color:var(--ibs-faint)}
.ibs .ibs-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibs .ibs-nameedit{display:flex;gap:6px;align-items:center;flex-wrap:wrap;width:100%}
#dlg .ibs .ibs-nmin{font-size:16px;font-weight:700;width:min(320px,100%)}
.ibs .ibs-dmeta{font-size:12.5px;color:var(--ibs-faint);margin:4px 0 10px}
.ibs .ibs-subtabs{display:flex;gap:4px;background:var(--ibs-chip);border:1px solid var(--ibs-line);border-radius:12px;padding:3px;margin:16px 0 12px;width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:none}
.ibs .ibs-st{border:0;background:none;border-radius:9px;padding:6px 12px;font:inherit;font-weight:600;font-size:13px;color:var(--ibs-mut);white-space:nowrap;display:inline-flex;gap:6px;align-items:center;cursor:pointer}
.ibs .ibs-st[aria-selected="true"]{background:var(--ibs-raise);color:var(--ibs-tx);box-shadow:0 1px 3px rgba(0,0,0,.18)}
.ibs .ibs-sn{font-size:11px;color:var(--ibs-faint)}
/* the duty list */
.ibs .ibs-dtool{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.ibs .ibs-count{font-weight:600;font-size:13px}
.ibs .ibs-people{border:1px solid var(--ibs-line);border-radius:12px;overflow:hidden}
.ibs .ibs-person{display:flex;gap:12px;align-items:center;padding:10px 12px;background:var(--ibs-p2);min-height:52px}
.ibs .ibs-people>*+*{border-top:1px solid var(--ibs-line)}
.ibs .ibs-person.off .ibs-pn{color:var(--ibs-mut)}
.ibs .ibs-av{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;flex:none;color:#0b1120}
.ibs .ibs-person.off .ibs-av{filter:grayscale(1);opacity:.55}
.ibs .ibs-pinfo{flex:1;min-width:0;display:flex;flex-direction:column}
.ibs .ibs-pn{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibs .ibs-ps{font-size:12px;color:var(--ibs-faint);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ibs .ibs-hrs{border:1px dashed var(--ibs-line2);background:none;border-radius:999px;padding:1px 8px;font:inherit;font-size:12px;color:var(--ibs-acc);display:inline-flex;gap:4px;align-items:center;cursor:pointer}
.ibs .ibs-hrs:hover,.ibs .ibs-hrs[aria-expanded="true"]{border-style:solid}
.ibs .ibs-hrs[aria-expanded="true"]{background:rgba(var(--accent),.08)}
.ibs .ibs-pedit{background:var(--ibs-raise);border-top:1px dashed var(--ibs-line2)!important;padding:12px 12px 12px 58px}
.ibs .ibs-slot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.ibs .ibs-days{display:flex;gap:4px;flex-wrap:wrap}
.ibs .ibs-day{width:34px;height:30px;border-radius:8px;border:1px solid var(--ibs-line2);background:none;font:inherit;font-size:12px;font-weight:600;color:var(--ibs-mut);cursor:pointer;padding:0}
.ibs .ibs-day[aria-pressed="true"]{background:rgba(var(--accent),.14);border-color:var(--ibs-acc);color:var(--ibs-tx)}
.ibs .ibs-more{display:flex;gap:8px;align-items:center;width:100%;border:0;background:var(--ibs-chip);padding:11px 12px;font:inherit;font-weight:600;font-size:13px;color:var(--ibs-mut);cursor:pointer;text-align:left}
.ibs .ibs-more:hover{color:var(--ibs-tx)}
.ibs .ibs-grp{font-size:11.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--ibs-faint);padding:10px 12px 6px;background:var(--ibs-chip)}
/* ice-breakers, first reply */
.ibs .ibs-ice{display:flex;flex-direction:column;gap:6px}
.ibs .ibs-iq{display:flex;gap:8px;align-items:center}
.ibs .ibs-idx{width:22px;text-align:right;font-size:12px;color:var(--ibs-faint);flex:none}
.ibs .ibs-iq .ibs-in{flex:1 1 auto}
.ibs .ibs-cnt{font-size:11.5px;color:var(--ibs-faint);width:44px;text-align:right;flex:none}
.ibs .ibs-cnt.bad{color:var(--ibs-bad);font-weight:700}
.ibs .ibs-ackbody{margin-top:12px}
.ibs .ibs-bubble{max-width:430px;background:var(--ibs-chip);border:1px solid var(--ibs-line);border-radius:16px 16px 16px 4px;padding:10px 12px;font-size:13.5px;margin-top:6px}
.ibs .ibs-lab{font-weight:700;color:var(--ibs-acc)}
.ibs .ibs-ticks{list-style:none;display:grid;gap:6px;margin:10px 0 12px;padding:0}
.ibs .ibs-ticks li{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--ibs-mut)}
.ibs .ibs-ticks .ibx-svg{color:var(--ibs-ok);margin-top:2px;flex:none}
/* alerts */
.ibs .ibs-sentence{font-size:16px;line-height:2.1;max-width:640px;margin-top:10px}
.ibs .ibs-sentence .ibs-num{font-size:15px;line-height:1.3;vertical-align:baseline}
.ibs .ibs-dim{opacity:.6}
.ibs .ibs-cover{display:grid;gap:8px}
.ibs .ibs-cv{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 12px;border:1px solid var(--ibs-line);border-radius:10px;background:var(--ibs-p2);font-size:13px}
.ibs .ibs-cvn{font-weight:600;flex:1 1 140px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* extras */
.ibs .ibs-igaccs{display:grid;gap:6px;padding:0 0 10px}
.ibs .ibs-igacc{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--ibs-mut);flex-wrap:wrap}
.ibs .ibs-igacc>span{flex:1 1 240px;min-width:0}
.ibs .ibs-iglink{padding:0 0 12px}
.ibs .ibs-setgrp>.ibs-setrow{border:0}
.ibs .ibs-aidform{margin-top:12px;border-top:1px solid var(--ibs-line);padding-top:12px}
.ibs #ibx-aidset{border:0;padding:0;margin:0;border-radius:0}
.ibs #ibx-aidset>b:first-child{display:none}
/* the confirm sheet (inside the dialog) */
.ibs .ibs-sheet{position:absolute;inset:0;background:var(--overlay);display:flex;align-items:center;justify-content:center;padding:16px;z-index:5;border-radius:inherit}
.ibs .ibs-sheet[hidden]{display:none}
.ibs .ibs-sbox{background:var(--ibs-bg);border:1px solid var(--ibs-line2);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.45);padding:18px;max-width:440px;width:100%}
#dlg .ibs #ibs-sh-t{font-size:16.5px;margin:0 0 8px;color:var(--ibs-tx)}
.ibs .ibs-shp{color:var(--ibs-mut);font-size:13.5px;margin:0 0 14px;line-height:1.5}
.ibs .ibs-acts{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.toast.ibs-toast-bad{background:#7f1d2d;border-color:#fb7185}
/* phone: a full-screen sheet; text boxes at 16 px (no iOS zoom); the rail, tabs and sub-tabs scroll sideways on purpose */
@media (max-width:720px){
  #dlg.overlay:has(.ibs-panel){padding:0}
  #dlg .panel.ibs-panel{width:100vw!important;max-width:100vw!important;height:100vh;height:100dvh;border-radius:0!important;border:0!important}
  .ibs .ibs-hd{padding:12px 56px 0 14px}
  .ibs .ibs-bd{padding:14px}
  .ibs .ibs-ft{padding:10px 14px}
  .ibs .ibs-amsg:not(:empty){padding:8px 14px}
  .ibs h3#ibs-title{font-size:17px}
  .ibs .ibs-x{display:none}
  .ibs .ibs-metabtn span{display:none}
  .ibs .ibs-metabtn{padding:6px 9px}
  .ibs .ibs-save{padding-top:9px}
  .ibs .ibs-pages{grid-template-columns:minmax(0,1fr);gap:12px}
  .ibs .ibs-rail{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:none;margin:0 -14px;padding:0 14px 2px}
  .ibs .ibs-rail::-webkit-scrollbar{display:none}
  .ibs .ibs-rp{flex:none;max-width:220px}
  .ibs .ibs-pedit{padding-left:12px}
  .ibs .ibs-sentence{font-size:15px}
  #dlg .ibs .ibs-in,#dlg .ibs .ibs-num,#dlg .ibs .ibs-time,#dlg .ibs .ibs-nmin{font-size:16px}
  .ibs .ibs-setrow{min-height:48px}
}
@media (max-width:400px){
  .ibs .ibs-person{gap:10px;padding:10px}
  .ibs .ibs-av{width:30px;height:30px;font-size:11.5px}
  .ibs .ibs-idx{display:none}
  .ibs .ibs-day{width:32px}
}
.ibx-qopts{display:grid;gap:6px}
.ibx-qopt{display:grid;grid-template-columns:26px 110px 1fr;gap:8px;align-items:center;text-align:left;background:var(--glass);border:1px solid var(--glass2);border-radius:10px;padding:8px 10px;font:inherit;font-size:13.5px;color:inherit;cursor:pointer;min-height:42px}
.ibx-qopt:hover{border-color:var(--bord2)}
.ibx-qopt.on{border-color:var(--ibx-ring,#22d3ee);background:var(--glass2)}
.ibx-qopt:focus-visible{outline:2px solid var(--ibx-ring,#22d3ee);outline-offset:2px}
.ibx-qopt.cur b::after{content:" · now";font-weight:400;color:var(--mut)}
.ibx-qopt .sub{margin:0;align-self:center;line-height:1.35}
.ibx-qopt kbd{display:inline-block;text-align:center;min-width:20px;padding:1px 5px;border:1px solid var(--glass2);border-radius:5px;font:inherit;font-size:11.5px;color:var(--mut)}
.ibx-qrs{margin-top:10px}
/* 18 Oct: Not qualified — several reasons (checkboxes; the first ticked is the main one) */
.ibx-qrm{border:0;margin:0 0 6px;padding:0;min-width:0;display:flex;flex-direction:column;gap:2px}
.ibx-qrm legend{padding:0;margin-bottom:2px}
.ibx-qrm .ibx-qrh{display:block;font-size:12px;color:var(--ibx-tx3,#6b7280);margin-bottom:4px;line-height:1.35}
.ibx-qrm .ibx-qck{display:flex;align-items:center;gap:8px;min-height:30px;padding:2px 6px;border-radius:6px;font-size:13px;cursor:pointer}
.ibx-qrm .ibx-qck:hover{background:var(--ibx-tile,rgba(0,0,0,.04))}
.ibx-qpop .ibx-qrm .ibx-qck input,.ibx-qrm .ibx-qck input{flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0;border:0;accent-color:var(--ibx-acc,#1747b8)}
.ibx-qrm .ibx-qck input:focus-visible{outline:2px solid var(--ibx-ring,#1747b8);outline-offset:2px}
.ibx-qrm .ibx-qmain{margin-left:auto;padding:1px 6px;border-radius:999px;background:var(--ibx-acc-tint,#e8eefc);color:var(--ibx-acc-ink,#1747b8);font-size:11px;font-weight:600}
.ibx-qrm .ibx-qmain[hidden]{display:none}
.ibx-qpop{max-height:calc(100vh - 140px);overflow-y:auto}
.ibx-qbtn > span:not([class]){max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibx-qrs select,.ibx-qrs input{width:100%;margin-bottom:8px}
.ibx-qfoot{display:flex;gap:8px;align-items:center;margin-top:10px}
.ibx-stalelist{margin:0 0 10px 18px}
.ibx-aidset .ibx-accrow{margin:4px 0}
.ibx-aidr-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin:10px 0}
.ibx-aidr-tile{border:1px solid var(--glass2);border-radius:10px;padding:8px 10px}
.ibx-aidr-tile b{font-size:18px}
.ibx-aidr-h{margin:14px 0 6px;font-size:14px}
/* Phase 3 S1 — AI replies by themselves (shadow): the chat banner, the review cards, the cost card (specs/ai-phase3-plan.md §16) */
.ibx-wrap .ibx-aia[hidden]{display:none}
.ibx-wrap .ibx-aia{align-items:center}
.ibx-wrap .ibx-aia .ibx-aia-t{flex:1;min-width:0}
.ibx-aia-last summary{cursor:pointer;margin-top:2px}
.ibx-aia-line{white-space:pre-wrap;word-break:break-word;border-left:3px solid var(--glass2);padding:4px 8px;margin:4px 0}
.ibx-aia-q{white-space:pre-wrap;word-break:break-word;margin:2px 0 6px}
.ibx-aia-run{margin:8px 0}
.ibx-aia-run .ibx-arow,.ibx-aia-cost .ibx-arow{flex-wrap:wrap;gap:6px;margin-top:6px}
.ibx-aia-g7{margin:4px 0 0 18px;padding:0;font-size:13px}
.ibx-aidr-tw{overflow-x:auto;max-width:100%}
.ibx-aidr-bad{color:var(--bad)}
/* ui-ai-polish (24 Oct 2026; QA _work/qa-1024/ai-admin B1, C7, C8, C10, C16, D1–D6, D9): the AI replies dialog — a refusal beside its button, the app's card
   for the examples / the go-live steps / the safety test, numbered steps, "what is this?" folds, helper text level with its button, the phone layout */
#aia-box .sub{margin:0 0 6px}
#aia-box .ibx-arow{align-items:center;gap:8px 10px;margin:6px 0}
#aia-box .ibx-arow>.sub{margin:0;flex:1 1 220px;min-width:0}
.aia-inl{color:var(--bad-3);font-size:13px;font-weight:600}
.aia-inl:empty{display:none}
#aia-box .ibx-arow>.aia-inl{flex-basis:100%}
.aia-why{color:var(--lx-text-2,var(--mut))}
.ibx-aia-pcard{border:1px solid var(--lx-line-2,var(--bord));border-radius:12px;background:var(--lx-surface-2,var(--glass));padding:12px 14px;margin:10px 0}
/* reply-learn (27 Oct 2026): What got numbers — the 28-day line and the tables stay inside the card at 360 px */
.ibx-rl-spark{display:block;color:var(--ibx-ok,var(--ok,#16a34a));max-width:100%}
.ibx-rl-t td,.ibx-rl-t th{white-space:nowrap}
.ibx-rl-t td[dir="auto"]{white-space:normal;min-width:180px}
.ibx-aia-pcard>.ibx-aidr-h:first-child{margin-top:0}
.ibx-aia-ex-t{font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.ibx-aia-ex-m{font-size:12.5px;line-height:1.45;color:var(--lx-text-2,var(--mut));margin-top:4px;overflow-wrap:anywhere}
#aia-box .ibx-aia-acts{margin-top:10px}
#aia-box .ibx-aia-gap{margin-top:16px}
.ibx-aia-g7,.ibx-aia-dgo-st,.ibx-aia-rem{list-style:none;margin:4px 0 8px;padding:0}
.ibx-aia-g7 li,.ibx-aia-dgo-st li{margin:3px 0}
.ibx-aia-later{color:var(--lx-text-2,var(--mut));font-weight:700}
.ibx-aia-what{margin:0 0 6px;font-size:12.5px}
.ibx-aia-what>summary{cursor:pointer;width:max-content;color:var(--lx-accent-text,rgb(var(--accent)));text-decoration:underline;text-underline-offset:3px}
.ibx-aia-what>div{margin-top:4px;color:var(--lx-text-2,var(--mut));max-width:680px;line-height:1.45}
.ibx-aia-next{margin:4px 0 10px;padding:7px 10px;border-radius:9px;background:var(--lx-accent-tint,rgba(var(--accent),.12));font-size:13.5px}
.ibx-aia-step{border-top:1px solid var(--lx-line-2,var(--bord));padding-top:10px;margin-top:10px}
.ibx-aia-sh{display:flex;align-items:center;gap:8px;margin:8px 0 4px;font-size:14px;font-weight:650}
.ibx-aia-sn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--lx-primary-bg,var(--txt));color:var(--lx-primary-fg,var(--bg0));font-size:12px;font-weight:700;flex:none;vertical-align:1px}
.aia-g1-prog progress{width:160px;max-width:40vw;height:10px;vertical-align:middle;accent-color:var(--lx-accent,rgb(var(--accent)))}
#aia-box .aia-g1-prog>.sub{flex:0 1 auto}
.ibx-aia-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:8px 0}
.ibx-aia-tile{border:1px solid var(--lx-line-2,var(--bord));border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.ibx-aia-tile b{font-size:20px;line-height:1.2}
.ibx-aia-tile span{font-size:12.5px;line-height:1.35;color:var(--lx-text-2,var(--mut))}
.ibx-aia-alertbox{margin:0 0 10px;padding:9px 12px;border-radius:10px;border:1px solid var(--lx-warn,var(--warn));background:var(--lx-warn-tint,rgba(251,191,36,.12));outline:none}
.ibx-aia-alertbox:focus-visible{box-shadow:0 0 0 2px var(--lx-accent,rgb(var(--accent)))}
.ibx-aia-rem li{border-bottom:1px solid var(--lx-line-2,var(--bord));padding:6px 0;margin:0}
#aia-box .aia-lanes select.aia-lane{min-width:250px !important}
#aia-box .aia-wact{margin:0;flex-wrap:nowrap}
.aia-known{margin-top:8px}
.ibx-aia-tech>summary{cursor:pointer;font-size:12.5px;color:var(--lx-text-2,var(--mut))}
.aia-drep-l{display:none;font-size:12px;color:var(--lx-text-2,var(--mut))}
/* build audit N2: the long Settings sections as folds (closed on a phone) */
.ibx-aia-sec{margin:0}
.ibx-aia-sec>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none}
.ibx-aia-sec>summary::-webkit-details-marker{display:none}
.ibx-aia-sec>summary::before{content:"▸";font-size:12px;color:var(--lx-text-2,var(--mut));width:12px;flex:none}
.ibx-aia-sec[open]>summary::before{content:"▾"}
.ibx-aia-sec>summary>.ibx-aidr-h{margin:14px 0 6px}
.ibx-aia-pcard>.ibx-aia-sec:first-child>summary>.ibx-aidr-h{margin-top:0}
.ibx-aia-secn{font-weight:500;font-size:12.5px;color:var(--lx-text-2,var(--mut));margin-left:6px}
@media (max-width:640px){
  .ibx-aia-dlg .ibx-aia-dh h3{margin-right:58px !important}
  .aia-lanes tr:first-child,.aia-texts tr:first-child{display:none}
  .aia-lanes tr{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:4px;padding:8px 0;border-bottom:1px solid var(--lx-line-2,var(--bord))}
  .aia-texts tr{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:10px 0;border-bottom:1px solid var(--lx-line-2,var(--bord))}
  #aia-box .aia-lanes td,#aia-box .aia-texts td{display:block;border:0 !important;padding:0 !important;height:auto !important}
  .aia-lanes td:nth-child(3){font-size:12.5px}
  .aia-lanes td:first-child{font-weight:600}
  #aia-box .aia-lanes select.aia-lane{width:100% !important;min-width:0 !important}
  #aia-box .aia-texts textarea{min-width:0 !important}
  .aia-c0-grid td,.aia-c0-grid th{white-space:normal}
  .aia-drep-t th:nth-child(n+3),.aia-drep-t td:nth-child(n+3){display:none}
  .aia-drep-l{display:block;margin-top:2px}
}
/* ── Inbox settings › AI replies › Grade (Review redesign r3.2, aia-review-redesign-plan.md §2–§4): one reply at a time, the tray of
   5 (or 2) grade buttons with the undo strip, the queues, the progress strip and rows. Lumen tokens with the base theme's as fallback. ── */
.ibx-aia-badge{display:inline-block;min-width:18px;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--lx-primary-bg,var(--txt));color:var(--lx-primary-fg,var(--bg0));font-size:11px;font-weight:700;line-height:18px;text-align:center;vertical-align:1px}
.ibx-aia-menu{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.ibx-aia-menu[hidden]{display:none}
.ibx-aia-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ibx-aia-g{padding-bottom:8px}
.ibx-aia-queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.ibx-aia-qbtn{display:flex;flex-direction:column;gap:1px;padding:7px 11px;border-radius:12px;border:1px solid var(--lx-line-2,var(--bord));background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.ibx-aia-qbtn .qt{display:flex;align-items:center;gap:8px;font-weight:650;font-size:14px}
.ibx-aia-qbtn .qs{font-size:12.5px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-qbtn .qn{margin-left:auto;padding:0 8px;border-radius:999px;font-size:12.5px;font-weight:700;border:1px solid var(--lx-line-2,var(--bord));white-space:nowrap}
.ibx-aia-qbtn .short{display:none}
.ibx-aia-qbtn .opt{font-size:11px;font-weight:600;color:var(--lx-text-3,var(--mut));border:1px solid var(--lx-line-2,var(--bord));border-radius:6px;padding:0 5px}
.ibx-aia-qbtn[aria-pressed="true"]{border-color:var(--lx-accent,rgb(var(--accent)));background:var(--lx-accent-tint,rgba(var(--accent),.12))}
.ibx-aia-qbtn[aria-pressed="true"] .qn{background:var(--lx-primary-bg,var(--txt));color:var(--lx-primary-fg,var(--bg0));border-color:transparent}
.ibx-aia-strip{display:flex;align-items:center;gap:10px;padding:7px 11px;margin-bottom:10px;border-radius:12px;border:1px solid var(--lx-line-2,var(--bord));background:var(--lx-surface-2,var(--glass));font-size:14px}
.ibx-aia-strip.practice{background:var(--lx-warn-tint,rgba(251,191,36,.12));border-color:var(--lx-warn,var(--warn))}
.ibx-aia-strip .left{margin-left:auto;font-size:13px;color:var(--lx-text-2,var(--mut));white-space:nowrap}
.ibx-aia-bar{flex:0 0 110px;height:8px;border-radius:99px;background:var(--lx-line-2,var(--bord));overflow:hidden}
.ibx-aia-bar i{display:block;height:100%;border-radius:99px;background:var(--lx-accent,rgb(var(--accent)));transition:width .3s}
.ibx-aia-bar.ok i{background:var(--lx-ok,var(--ok))}
.ibx-aia-bar.held i{background:var(--lx-bad,var(--bad))}
.ibx-aia-card h3{margin:0 0 6px;font-size:13px;font-weight:650;color:var(--lx-text-3,var(--mut));outline:none}
.ibx-aia-card h3:focus-visible{text-decoration:underline;text-underline-offset:3px}
.ibx-aia-tagw{display:inline-block;padding:0 6px;margin-left:6px;border-radius:6px;font-size:12px;font-weight:600;background:var(--lx-warn-tint,rgba(251,191,36,.12));color:var(--lx-warn,var(--warn))}
.ibx-aia-cgrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px}
.ibx-aia-convo,.ibx-aia-side{min-width:0}
.ibx-aia-side{display:flex;flex-direction:column;gap:10px}
.ibx-aia-lbl{display:flex;align-items:center;gap:6px;margin:0 0 5px;font-size:12.5px;font-weight:650;color:var(--lx-text-2,var(--mut))}
.ibx-aia-right{text-align:right;justify-content:flex-end}
.ibx-aia-bub{padding:10px 14px;border-radius:16px;font-size:16px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.ibx-aia-bub.cust{max-width:92%;border-top-left-radius:5px;background:var(--lx-surface-3,var(--glass2))}
.ibx-aia-bub.ai{max-width:96%;margin-left:auto;border-top-right-radius:5px;background:var(--lx-accent-tint,rgba(var(--accent),.12));border:1px solid var(--lx-accent-ring,rgba(var(--accent),.45))}
.ibx-aia-bub.staff{max-width:92%;font-size:15px;border:1px dashed var(--lx-line-2,var(--bord));background:var(--lx-surface-2,var(--glass))}
.ibx-aia-meta{margin:4px 2px 12px;font-size:12.5px;color:var(--lx-text-3,var(--mut))}
.ibx-aia-nol{font-size:14px;font-style:italic;color:var(--lx-text-2,var(--mut))}
.ibx-aia-why{display:inline-block;margin:0 0 8px;padding:4px 10px;border-radius:10px;font-size:13.5px;text-align:left;background:var(--lx-warn-tint,rgba(251,191,36,.12));border:1px solid var(--lx-warn,var(--warn))}
.ibx-aia-why.hand{background:var(--lx-accent-tint,rgba(var(--accent),.12));border-color:var(--lx-accent-ring,rgba(var(--accent),.45))}
.ibx-aia-chip{display:inline-block;margin-right:4px;padding:0 4px;border-radius:6px;font:600 11px/1.4 var(--lx-mono,ui-monospace,Menlo,monospace);vertical-align:2px;color:var(--lx-text-2,var(--mut));border:1px solid var(--lx-line-2,var(--bord))}
.ibx-aia-chip.new{font-family:inherit;color:var(--lx-accent-text,rgb(var(--accent)));border-color:var(--lx-accent-ring,rgba(var(--accent),.45))}
.ibx-aia-chip.nm{font-family:inherit}
.ibx-aia-newtxt{text-decoration:underline dashed;text-underline-offset:4px}
.ibx-aia-pnote{max-width:96%;margin:4px 2px 0 auto;font-size:12.5px;text-align:right;color:var(--lx-text-2,var(--mut))}
.ibx-aia-pnote.drop s{color:var(--lx-text-3,var(--mut))}
mark.ibx-aia-fig{padding:0 1px;border-radius:3px;background:transparent;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
mark.ibx-aia-fig.ok{text-decoration-color:var(--lx-ok,var(--ok))}
mark.ibx-aia-fig.no{text-decoration-color:var(--lx-warn,var(--warn));background:var(--lx-warn-tint,rgba(251,191,36,.12))}
.ibx-aia-fold>summary{padding:4px 0;font-size:13px;font-weight:600;color:var(--lx-text-2,var(--mut));cursor:pointer}
.ibx-aia-boxd{padding:8px 12px;border-radius:12px;border:1px solid var(--lx-line-2,var(--bord))}
.ibx-aia-facts{display:flex;flex-direction:column;gap:8px;margin:4px 0 0;padding:0;list-style:none}
.ibx-aia-facts li{font-size:14px;line-height:1.4}
.ibx-aia-facts li b{display:block;font-size:12.5px;font-weight:600;color:var(--lx-text-2,var(--mut))}
.ibx-aia-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;font-size:12px;color:var(--lx-text-3,var(--mut))}
.ibx-aia-dot{display:inline-block;width:9px;height:9px;margin-right:4px;border-radius:50%;vertical-align:middle}
.ibx-aia-dot.ok{background:var(--lx-ok,var(--ok))}
.ibx-aia-dot.no{background:var(--lx-warn,var(--warn))}
.ibx-aia-kv{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin:6px 0 0;font-size:13.5px}
.ibx-aia-kv dt{color:var(--lx-text-2,var(--mut))}
.ibx-aia-kv dd{margin:0}
.ibx-aia-link{padding:0;border:0;background:none;color:var(--lx-accent-text,rgb(var(--accent)));text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:13.5px;cursor:pointer}
.ibx-aia-regrade,.ibx-aia-restart,.ibx-aia-basis,.ibx-aia-n0,.ibx-aia-needs{margin-bottom:10px;padding:7px 10px;border-radius:9px;font-size:13px;background:var(--lx-accent-tint,rgba(var(--accent),.12));border:1px solid var(--lx-accent-ring,rgba(var(--accent),.45))}
.ibx-aia-regrade.warn,.ibx-aia-needs{background:var(--lx-warn-tint,rgba(251,191,36,.12));border-color:var(--lx-warn,var(--warn))}
/* S2a: the Sentences approval list (ai-phase3-plan r5.10 §32.1) — pass / fail per row on the app's own status tokens */
.ibx-aia-apv th[scope="rowgroup"]{vertical-align:top;white-space:nowrap}
.ibx-aia-ok{color:var(--ok);font-weight:600}
.ibx-aia-bad{color:var(--bad)}
.ibx-aia-n0{background:transparent;border-color:var(--lx-line-2,var(--bord))}
.ibx-aia-ask{margin:14px 0 0;font-size:16px;font-weight:700}
.ibx-aia-ask small{display:block;font-size:13px;font-weight:400;color:var(--lx-text-2,var(--mut))}
.ibx-aia-more2{margin:12px 0 0;font-size:13.5px}
.ibx-aia-done{padding:24px 12px;text-align:center}
.ibx-aia-done h3{margin:10px 0 4px;font-size:19px}
.ibx-aia-done p{margin:4px 0;color:var(--lx-text-2,var(--mut))}
.ibx-aia-ring{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--lx-ok-tint,rgba(52,211,153,.12));color:var(--lx-ok,var(--ok))}
/* the tray: the status row (Back / Skip, or the undo strip) and the grade buttons — sticky, so it never covers the card */
.ibx-aia-gtray{position:sticky;bottom:0;z-index:2;margin:8px -2px 0;padding:8px 2px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--lx-line-2,var(--bord));background:var(--lx-raised,var(--glass2))}
.ibx-aia-trow{display:flex;align-items:center;gap:6px;min-height:38px;margin-bottom:8px}
.ibx-aia-trow .sp{flex:1}
.ibx-aia-trow kbd,.ibx-aia-gb kbd{padding:1px 5px;border-radius:5px;font:600 11px/1.2 var(--lx-mono,ui-monospace,Menlo,monospace);border:1px solid var(--lx-line-2,var(--bord));color:var(--lx-text-2,var(--mut))}
.ibx-aia-pendwrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.ibx-aia-pend{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:7px 8px 9px 12px;border-radius:11px;background:var(--lx-text,#0d1117);color:var(--lx-raised,#fff);font-size:13.5px;line-height:1.35}
.ibx-aia-pend .pt{flex:1;min-width:0}
.ibx-aia-pend .pt em{display:block;font-style:normal;font-size:13px;opacity:.85}
.ibx-aia-pend .pt input{width:100%;padding:7px 9px;border:0;border-radius:8px;font:inherit;font-size:14px;color:var(--lx-text,#0d1117);background:var(--lx-raised,#fff)}
.ibx-aia-pend button{min-height:36px;padding:6px 12px;border:0;border-radius:9px;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;background:var(--lx-raised,#fff);color:var(--lx-text,#0d1117)}
.ibx-aia-pend .nb{background:transparent;color:inherit;border:1px solid rgba(127,127,127,.6);font-weight:600}
.ibx-aia-pend .tm{position:absolute;left:10px;right:10px;bottom:3px;height:3px;border-radius:3px;overflow:hidden;background:rgba(127,127,127,.35)}
.ibx-aia-pend .tm i{display:block;height:100%;background:var(--lx-accent,rgb(var(--accent)))}
.ibx-aia-pend.saved{background:var(--lx-ok-tint,rgba(52,211,153,.12));color:var(--lx-ok,var(--ok));border:1px solid var(--lx-ok,var(--ok))}
.ibx-aia-wprow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-wprow button{min-height:32px;padding:4px 10px;border-radius:8px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;color:inherit;background:transparent;border:1px solid var(--lx-line-2,var(--bord))}
.ibx-aia-wprow button[aria-pressed="true"]{background:var(--lx-primary-bg,var(--txt));color:var(--lx-primary-fg,var(--bg0));border-color:transparent}
/* grade-note-bell (23 Oct): the note box a grade 2–5 opens on its own card, in the tray's status row — nothing moves until Save & next */
.ibx-aia-note{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding:9px 10px;border-radius:11px;border:1.5px solid var(--lx-accent-ring,rgba(var(--accent),.45));background:var(--lx-accent-tint,rgba(var(--accent),.08))}
.ibx-aia-note .nh{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px}
.ibx-aia-note label{font-size:14.5px;font-weight:700}
.ibx-aia-note .nv{font-size:13px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-note .ne{font-size:12.5px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-note textarea{display:block;width:100%;box-sizing:border-box;min-height:60px;resize:vertical;padding:8px 10px;border-radius:9px;border:1px solid var(--lx-line-2,var(--bord));font:inherit;font-size:15px;line-height:1.4;color:inherit;background:var(--lx-raised,var(--glass2))}
.ibx-aia-note textarea:focus-visible{outline:3px solid var(--lx-accent,rgb(var(--accent)));outline-offset:1px}
.ibx-aia-note .na{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}
.ibx-aia-note .nk{flex:1;min-width:0;font-size:12px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-note .btn{min-height:36px}
.ibx-aia-note .ibx-err{min-height:0;margin:0}
.ibx-aia-gtray:has(.ibx-aia-note) .ibx-aia-gb{min-height:40px;padding:6px 28px 6px 10px}
.ibx-aia-gtray:has(.ibx-aia-note) .ibx-aia-gb .l{font-size:14px}
.ibx-aia-gtray:has(.ibx-aia-note) .ibx-aia-gb .b,.ibx-aia-gtray:has(.ibx-aia-note) .ibx-aia-hint{display:none}
.ibx-aia-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;transition:opacity .15s}
.ibx-aia-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ibx-aia-grid.locked{opacity:.5}
.ibx-aia-gb{position:relative;display:flex;flex-direction:column;justify-content:center;gap:1px;min-height:60px;padding:8px 30px 8px 11px;border-radius:13px;font:inherit;text-align:left;cursor:pointer;color:inherit;background:transparent;border:1.5px solid var(--lx-line-2,var(--bord))}
.ibx-aia-gb .l{display:flex;align-items:flex-start;gap:7px;font-size:15px;font-weight:700;line-height:1.25}
.ibx-aia-gb .l svg{flex:none;margin-top:1px}
.ibx-aia-gb .s{display:none}
.ibx-aia-gb .b{font-size:12px;line-height:1.3;color:var(--lx-text-2,var(--mut))}
.ibx-aia-gb kbd{position:absolute;top:7px;right:8px}
.ibx-aia-gb.good{border-color:var(--lx-ok,var(--ok))}.ibx-aia-gb.good .l{color:var(--lx-ok,var(--ok))}
.ibx-aia-gb.warn{border-color:var(--lx-warn,var(--warn))}.ibx-aia-gb.warn .l{color:var(--lx-warn,var(--warn))}
.ibx-aia-gb.bad{border-color:var(--lx-bad,var(--bad))}.ibx-aia-gb.bad .l{color:var(--lx-bad,var(--bad))}
.ibx-aia-gb.good:hover,.ibx-aia-gb.good.sel{background:var(--lx-ok-tint,rgba(52,211,153,.12))}
.ibx-aia-gb.warn:hover,.ibx-aia-gb.warn.sel{background:var(--lx-warn-tint,rgba(251,191,36,.12))}
.ibx-aia-gb.bad:hover,.ibx-aia-gb.bad.sel{background:var(--lx-bad-tint,rgba(251,113,133,.12))}
.ibx-aia-gb.sel{box-shadow:0 0 0 2px currentColor inset}
.ibx-aia-gb:focus-visible,.ibx-aia-qbtn:focus-visible,.ibx-aia-pend button:focus-visible,.ibx-aia-wprow button:focus-visible{outline:3px solid var(--lx-accent,rgb(var(--accent)));outline-offset:2px}
.ibx-aia-hint{min-height:17px;margin-top:6px;font-size:12.5px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-gtray.nobn .ibx-aia-gb .b{display:none}
.ibx-aia-help{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.35)}
.ibx-aia-help[hidden]{display:none}
.ibx-aia-help .hb{width:min(380px,100%);padding:16px 18px;border-radius:14px;background:var(--lx-raised,var(--glass2));box-shadow:var(--lx-e3,0 10px 30px rgba(0,0,0,.4))}
.ibx-aia-help dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0 0 10px;font-size:14px}
.ibx-aia-prows{display:flex;flex-direction:column;border:1px solid var(--lx-line-2,var(--bord));border-radius:12px;overflow:hidden}
.ibx-aia-prow{display:grid;grid-template-columns:minmax(0,1.3fr) 140px minmax(0,1fr);align-items:center;gap:12px;padding:9px 12px;border-top:1px solid var(--lx-line-2,var(--bord))}
.ibx-aia-prow:first-child{border-top:0}
.ibx-aia-prow.psub{padding-left:28px;background:var(--lx-surface-2,var(--glass))}
.ibx-aia-prow .nm{font-size:14.5px;font-weight:600}
.ibx-aia-prow.psub .nm{font-size:14px;font-weight:500}
.ibx-aia-prow .ct{margin-top:2px;font-size:13px;color:var(--lx-text-2,var(--mut))}
.ibx-aia-prow .ibx-aia-bar{width:100%}
.ibx-aia-prow .stt{font-size:13.5px}
.ibx-aia-prow .stt.ok{color:var(--lx-ok,var(--ok));font-weight:650}
.ibx-aia-prow .stt.held{color:var(--lx-bad,var(--bad));font-weight:650}
.ibx-aia-prow .stt.slow{color:var(--lx-warn,var(--warn))}
.ibx-aia-tech{margin-top:14px}
.ibx-aia-tech>summary{cursor:pointer;font-weight:600}
/* phones: a full-screen sheet; the tray of 3 + 2 buttons 48 px tall; short labels; the queue row scrolls sideways */
@media (max-width:640px){
  .overlay > .panel.ibx-aia-dlg,body.lumen .overlay > .panel.ibx-aia-dlg{display:flex;flex-direction:column;width:100vw !important;max-width:none !important;height:100dvh;max-height:none !important;overflow:hidden;border-radius:0 !important;padding:calc(6px + env(safe-area-inset-top)) 12px 0 !important}
  .ibx-aia-dlg .ibx-aia-dsub,.ibx-aia-dlg .ibx-aia-foot{display:none}
  .ibx-aia-dlg .ibx-aia-dh h3{margin:0 44px 2px 0 !important;font-size:16px;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ibx-aia-dlg .ibx-aia-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:none;gap:4px;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .ibx-aia-dlg .ibx-aia-tabs > .btn{flex:none}
  .ibx-aia-dlg #aia-msg:empty{min-height:0 !important;margin:2px 0 !important}
  .ibx-aia-dlg #aia-box{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
  .ibx-aia-queues{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;scrollbar-width:none;margin-bottom:8px}
  .ibx-aia-qbtn{padding:5px 10px}
  .ibx-aia-qbtn .qs,.ibx-aia-qbtn .opt,.ibx-aia-qbtn .long{display:none}
  .ibx-aia-qbtn .short{display:inline}
  .ibx-aia-qbtn .qt{font-size:13.5px;white-space:nowrap}
  .ibx-aia-strip{gap:8px;padding:5px 10px;font-size:13.5px}
  .ibx-aia-strip .ibx-aia-bar{flex-basis:46px}
  .ibx-aia-strip > span:not(.ibx-aia-bar):not(.left){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ibx-aia-strip .left{display:none}
  .ibx-aia-cgrid{grid-template-columns:minmax(0,1fr);gap:6px}
  .ibx-aia-bub{padding:9px 12px;font-size:15.5px}
  .ibx-aia-meta{margin-bottom:8px}
  .ibx-aia-ask,.ibx-aia-hint,.ibx-aia-gb kbd,.ibx-aia-trow .kbonly{display:none}
  .ibx-aia-pnote,.ibx-aia-restart{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
  .ibx-aia-pnote.open,.ibx-aia-restart.open{white-space:normal}
  .ibx-aia-gtray{margin:6px -12px 0;padding:6px 12px calc(8px + env(safe-area-inset-bottom))}
  .ibx-aia-trow{min-height:34px;margin-bottom:6px}
  .ibx-aia-trow .btn{min-height:34px}
  .ibx-aia-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .ibx-aia-grid .ibx-aia-gb{grid-column:span 2;min-height:48px;padding:6px 8px}
  .ibx-aia-grid .ibx-aia-gb:nth-child(4),.ibx-aia-grid .ibx-aia-gb:nth-child(5),.ibx-aia-grid.two .ibx-aia-gb{grid-column:span 3}
  .ibx-aia-gb .l{gap:5px;font-size:14px}
  .ibx-aia-gb .l .w{display:none}
  .ibx-aia-gb .s{display:inline}
  .ibx-aia-gb .b{font-size:11px}
  .ibx-aia-pend{gap:6px;padding:6px 6px 8px 10px;font-size:12.5px}
  .ibx-aia-pend .pt{overflow:hidden;cursor:pointer}
  .ibx-aia-pend .w1,.ibx-aia-pend .pt em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ibx-aia-pend.open .w1,.ibx-aia-pend.open .pt em{white-space:normal}
  .ibx-aia-pend button{flex:none;min-height:34px;padding:6px 9px}
  .ibx-aia-pend .nb .w{display:none}
  /* the open note box keeps the reply above it in view at 360 × 640: the grade buttons fold away while it is open (Undo changes the grade),
     one-line effect, a two-line textarea, the three buttons on one row */
  .ibx-aia-gtray:has(.ibx-aia-note) .ibx-aia-grid,.ibx-aia-gtray:has(.ibx-aia-note) .ibx-aia-hint{display:none}
  .ibx-aia-note{gap:5px;padding:7px 8px}
  .ibx-aia-note .nh{flex-wrap:nowrap}
  .ibx-aia-note label{font-size:14px;white-space:nowrap}
  .ibx-aia-note .nv{min-width:0;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ibx-aia-note .ne{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ibx-aia-note textarea{height:50px;min-height:50px;font-size:16px}
  .ibx-aia-note .nk{display:none}
  .ibx-aia-note .na .btn{flex:1 1 auto;min-height:40px;padding:6px 8px}
  .ibx-aia-prow{grid-template-columns:minmax(0,1fr);gap:4px}
}
/* Review Q12: the Bangla subtitles show at 400 px and wider (long-press shows them below) */
@media (max-width:399px){
  .ibx-aia-gb .b{display:none}
}
@media (prefers-reduced-motion:reduce){
  .ibx-aia-bar i,.ibx-aia-grid{transition:none}
}
.ibx-wrap .ibx-qfoot{margin-top:4px}
/* the three layouts — container queries on the inbox area */
@container ibx (min-width:1060px){
  .ibx-wrap .ibx-cards{grid-template-columns:minmax(0,1fr) minmax(360px,min(420px,32%))}
  .ibx-wrap .msgr-shell.ibx-shell{grid-template-columns:300px minmax(360px,1fr)}
}
@container ibx (min-width:700px) and (max-width:1059.98px){
  .ibx-wrap .ibx-cards{grid-template-columns:minmax(0,1fr)}
  .ibx-wrap .msgr-shell.ibx-shell{grid-template-columns:280px minmax(0,1fr)}
  .ibx-wrap .ibx-det{display:inline-flex}
  .ibx-wrap .ibx-panel{position:absolute;top:0;right:0;bottom:0;z-index:30;width:min(420px,92%);box-shadow:var(--ibx-shadow2);transform:translateX(calc(100% + 16px));visibility:hidden;transition:transform .2s ease,visibility .2s}
  .ibx-wrap.pan .ibx-panel{transform:none;visibility:visible}
  .ibx-wrap .ibx-phead{display:flex}
  .ibx-wrap.pan .ibx-scrim{display:block;position:absolute;inset:0;z-index:29;border-radius:12px;background:var(--ibx-scrim)}
}
@container ibx (max-width:699.98px){
  .ibx-wrap .ibx-in{padding:0}
  .ibx-wrap .ibx-cards{grid-template-columns:minmax(0,1fr);gap:0}
  .ibx-wrap .ibx-card{border-radius:0;border-left:0;border-right:0}
  .ibx-wrap .msgr-shell.ibx-shell{grid-template-columns:minmax(0,1fr)}
  .ibx-wrap .ibx-lcol{border-right:0}
  .ibx-wrap .ibx-shell .ibx-conv{display:none}
  .ibx-wrap .ibx-shell.conv .ibx-lcol{display:none}
  .ibx-wrap .msgr-shell.ibx-shell.conv .msgr-conv.ibx-conv{display:flex}
  .ibx-wrap.conv .ibx-tabrow{display:none}
  .ibx-wrap .ibx-backw{display:inline-flex}
  .ibx-wrap .ibx-hacts,.ibx-wrap .ibx-donly,.ibx-wrap .ibx-det{display:none}
  .ibx-wrap .ibx-mi.ibx-ponly{display:flex}
  .ibx-wrap .ibx-pdone{display:block}
  .ibx-wrap .msgr-conv-h.ibx-head{padding:8px 6px 8px 4px;gap:6px}
  .ibx-wrap .ibx-head .ibx-av{display:none}
  .ibx-wrap .ibx-ibtn{width:44px;height:44px}
  .ibx-wrap .ibx-back,.ibx-wrap .ibx-kebab .ibx-ibtn{border-color:transparent;background:transparent}
  .ibx-wrap .ibx-ibtn.sm{width:36px;height:36px}
  .ibx-wrap .ibx-btn{height:44px;padding:0 14px}
  .ibx-wrap .ibx-btn.sm{height:36px}
  .ibx-wrap .ibx-tab{height:44px}
  .ibx-wrap .ibx-chip{height:40px;min-height:40px}
  .ibx-wrap .ibx-sortsel{height:36px;min-height:36px}
  .ibx-wrap .ibx-ownsel{height:36px;min-height:36px}
  .ibx-wrap .ibx-tabs,.ibx-wrap .ibx-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 100%;min-width:0}
  .ibx-wrap .ibx-mi{min-height:44px}
  .ibx-wrap .ibx-qlink{min-height:44px}
  .ibx-wrap .ibx-hname{display:block;line-height:44px;min-height:44px;margin-bottom:-14px}
  .ibx-wrap .ibx-psub.ibx-ponly{display:flex;align-items:center;gap:4px;min-height:44px}
  .ibx-wrap .msgr-b{max-width:84%}
  .ibx-wrap .msgr-thread.ibx-thread{padding:8px 16px}
  .ibx-wrap .ibx-leadbar{margin:4px 16px 8px;padding:10px 10px 10px 14px;background:var(--ibx-sel);border-color:transparent;box-shadow:none;align-self:stretch;max-width:none}
  .ibx-wrap .ibx-cbox{border-radius:22px;padding:6px 6px 6px 14px}
  .ibx-wrap .msgr-reply{min-height:32px;padding-top:6px}
  .ibx-wrap .ibx-ctools .ibx-ibtn{width:44px;height:44px}
  .ibx-wrap .ibx-ctools .ibx-ibtn.ibx-aidb{width:44px;padding:0}
  .ibx-wrap .ibx-aidl{display:none}
  .ibx-wrap .ibx-aid{margin:0 0 6px}
  .ibx-wrap .ibx-aid-x{-webkit-line-clamp:2;line-clamp:2}
  .ibx-wrap .ibx-aid-b{flex-wrap:nowrap}
  .ibx-wrap .ibx-aid-b .ibx-btn{flex:1 1 0;min-width:0;height:44px;padding:0 6px}
  .ibx-wrap .ibx-aid-b .ibx-aid-lg{display:none}
  .ibx-wrap .ibx-aid-b .ibx-aid-sh{display:inline}
  .ibx-wrap .ibx-aid-more{min-height:44px}
  .ibx-wrap .ibx-aid .ibx-btn{height:44px}
  .ibx-wrap .ibx-aid.slim .ibx-aid-h .ibx-btn{height:44px}
  .ibx-wrap .ibx-aid.c1 .ibx-aid-h .ibx-btn{height:44px}
  .ibx-wrap .ibx-aid.c1 .ibx-aid-h,.ibx-wrap .ibx-aid.c1 .ibx-aid-cb{flex-wrap:wrap}
  .ibx-wrap .ibx-aid.c1 .ibx-aid-h .ibx-btn.ibx-aid-rx{width:44px}
  .ibx-wrap .ibx-aid-cb .ibx-aid-lg{display:none}
  .ibx-wrap .ibx-aid-cb .ibx-aid-sh{display:inline}
  .ibx-wrap .ibx-aid-n{height:44px;border-radius:22px}
  /* r6 (L1): the note box, the photo tick, the reason chips and Write again — 44 px targets, 16 px text (no zoom on focus), all wrapping */
  .ibx-wrap .ibx-aid-cuet{font-size:16px;min-height:64px}
  .ibx-wrap .ibx-aid-ph{min-height:44px}
  .ibx-wrap .ibx-aid-ph input{width:22px;height:22px}
  .ibx-wrap .ibx-aid-chips .ibx-btn{height:44px;padding:0 12px;flex:1 1 auto}
  .ibx-wrap .ibx-aid-whyo input{height:44px;font-size:16px}
  .ibx-wrap .ibx-aid-why .ibx-aid-b,.ibx-wrap .ibx-aid-cue .ibx-aid-b{flex-wrap:wrap}
  .ibx-wrap .ibx-aid-x0{min-width:44px}
  :is(#app,body) .ibx-wrap textarea.ibx-aid-cuet.ibx-aid-cuet{font-size:16px !important;line-height:22px !important}   /* over the Lumen skin's 13.5 px (lumen.css textarea !important), as .msgr-reply above */
  :is(#app,body) .ibx-wrap #ibx-aid-why{height:44px !important;min-height:44px !important;font-size:16px !important}
  /* build audit M4: the note box open — the strip may take up to 55vh and is not squeezed by the composer; the draft folds to one line
     ("Show draft" in its heading) and the photo row comes first, so the tick, the thumbnails, the warning and Write show at 360 × 640 */
  .ibx-wrap .msgr-draft.ibx-compose>.ibx-aid.cue-open{flex:0 0 auto;max-height:55vh}
  .ibx-wrap .ibx-aid.cue-open:not(.all)>.ibx-aid-x{-webkit-line-clamp:1;line-clamp:1;margin:2px 0 0}
  .ibx-wrap .ibx-aid.cue-open:not(.all)>:is(.ibx-aid-from,.ibx-aid-cn,.ibx-aid-seen,.ibx-aid-chk,.ibx-aid-st,.ibx-aid-np,.ibx-aid-b){display:none}
  .ibx-wrap .ibx-aid.cue-open .ibx-aid-cue{margin-top:6px;padding-top:6px}
  .ibx-wrap .ibx-aid.cue-open .ibx-aid-ph{margin-top:2px}
  .ibx-wrap .ibx-aid.cue-open .ibx-aid-warn{margin-top:2px;padding:2px 8px;line-height:1.3}
  .ibx-wrap .ibx-aid.cue-open .ibx-aid-cuei{margin-top:4px}
  .ibx-wrap .ibx-aid.cue-open .ibx-aid-cue .ibx-aid-b{margin-top:6px}
  .ibx-wrap:has(.ibx-aid.cue-open) .ibx-pdone{display:none}
  .ibx-wrap:has(.ibx-aid.cue-open) .msgr-thread.ibx-thread{min-height:48px}   /* the thread gives up its 96 px floor while the note box is open */
  .ibx-wrap .ibx-aid.cue-open:not(.all) :is(.ibx-aid-tsub,.ibx-aid-lang){display:none}   /* the folded draft's heading on one line: "AI draft · Show draft" */   /* "Done & next" never covers Write while the note box is open */
  :is(#app,body) .ibx-wrap .ibx-aid.cue-open textarea.ibx-aid-cuet.ibx-aid-cuet{min-height:52px !important}
  .ibx-wrap .ibx-aid:not(.all) .ibx-aid-from{display:none}
  .ibx-wrap .ibx-send{border-radius:22px;padding:0 18px}
  .ibx-wrap .ibx-panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:1000;height:85vh;max-height:100%;border-radius:16px 16px 0 0;box-shadow:var(--ibx-shadow2);transform:translateY(105%);visibility:hidden;transition:transform .22s ease,visibility .22s}
  .ibx-wrap.pan .ibx-panel{transform:none;visibility:visible}
  .ibx-wrap .ibx-phead{display:flex}
  .ibx-wrap.pan .ibx-scrim{display:block;position:fixed;inset:0;z-index:999;background:var(--ibx-scrim)}
  .ibx-wrap .ibx-qpop{position:fixed;top:auto;left:0;right:0;bottom:0;width:auto;max-width:none;z-index:1001;padding:12px 12px 20px;border-radius:16px 16px 0 0}
  .ibx-wrap .ibx-kmenu{min-width:220px}
}
/* … and the same layouts from the ResizeObserver's width class where container queries are unsupported */
@supports not (container-type:inline-size){
  .ibx-wrap.ibx-w3 .ibx-cards{grid-template-columns:minmax(0,1fr) minmax(360px,min(420px,32%))}
  .ibx-wrap.ibx-w3 .msgr-shell.ibx-shell{grid-template-columns:300px minmax(360px,1fr)}
  .ibx-wrap.ibx-w2 .ibx-cards{grid-template-columns:minmax(0,1fr)}
  .ibx-wrap.ibx-w2 .msgr-shell.ibx-shell{grid-template-columns:280px minmax(0,1fr)}
  .ibx-wrap.ibx-w2 .ibx-det{display:inline-flex}
  .ibx-wrap.ibx-w2 .ibx-panel{position:absolute;top:0;right:0;bottom:0;z-index:30;width:min(420px,92%);box-shadow:var(--ibx-shadow2);transform:translateX(calc(100% + 16px));visibility:hidden;transition:transform .2s ease,visibility .2s}
  .ibx-wrap.ibx-w2.pan .ibx-panel{transform:none;visibility:visible}
  .ibx-wrap.ibx-w2 .ibx-phead{display:flex}
  .ibx-wrap.ibx-w2.pan .ibx-scrim{display:block;position:absolute;inset:0;z-index:29;border-radius:12px;background:var(--ibx-scrim)}
  .ibx-wrap.ibx-w1 .ibx-in{padding:0}
  .ibx-wrap.ibx-w1 .ibx-cards{grid-template-columns:minmax(0,1fr);gap:0}
  .ibx-wrap.ibx-w1 .ibx-card{border-radius:0;border-left:0;border-right:0}
  .ibx-wrap.ibx-w1 .msgr-shell.ibx-shell{grid-template-columns:minmax(0,1fr)}
  .ibx-wrap.ibx-w1 .ibx-lcol{border-right:0}
  .ibx-wrap.ibx-w1 .ibx-shell .ibx-conv{display:none}
  .ibx-wrap.ibx-w1 .ibx-shell.conv .ibx-lcol{display:none}
  .ibx-wrap.ibx-w1 .msgr-shell.ibx-shell.conv .msgr-conv.ibx-conv{display:flex}
  .ibx-wrap.ibx-w1.conv .ibx-tabrow{display:none}
  .ibx-wrap.ibx-w1 .ibx-backw{display:inline-flex}
  .ibx-wrap.ibx-w1 .ibx-hacts,.ibx-wrap.ibx-w1 .ibx-donly,.ibx-wrap.ibx-w1 .ibx-det{display:none}
  .ibx-wrap.ibx-w1 .ibx-mi.ibx-ponly{display:flex}
  .ibx-wrap.ibx-w1 .ibx-pdone{display:block}
  .ibx-wrap.ibx-w1 .msgr-conv-h.ibx-head{padding:8px 6px 8px 4px;gap:6px}
  .ibx-wrap.ibx-w1 .ibx-head .ibx-av{display:none}
  .ibx-wrap.ibx-w1 .ibx-ibtn{width:44px;height:44px}
  .ibx-wrap.ibx-w1 .ibx-back,.ibx-wrap.ibx-w1 .ibx-kebab .ibx-ibtn{border-color:transparent;background:transparent}
  .ibx-wrap.ibx-w1 .ibx-ibtn.sm{width:36px;height:36px}
  .ibx-wrap.ibx-w1 .ibx-btn{height:44px;padding:0 14px}
  .ibx-wrap.ibx-w1 .ibx-btn.sm{height:36px}
  .ibx-wrap.ibx-w1 .ibx-tab{height:44px}
  .ibx-wrap.ibx-w1 .ibx-chip{height:40px;min-height:40px}
  .ibx-wrap.ibx-w1 .ibx-sortsel{height:36px;min-height:36px}
  .ibx-wrap.ibx-w1 .ibx-ownsel{height:36px;min-height:36px}
  .ibx-wrap.ibx-w1 .ibx-tabs,.ibx-wrap.ibx-w1 .ibx-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 100%;min-width:0}
  .ibx-wrap.ibx-w1 .ibx-mi{min-height:44px}
  .ibx-wrap.ibx-w1 .ibx-qlink{min-height:44px}
  .ibx-wrap.ibx-w1 .ibx-hname{display:block;line-height:44px;min-height:44px;margin-bottom:-14px}
  .ibx-wrap.ibx-w1 .ibx-psub.ibx-ponly{display:flex;align-items:center;gap:4px;min-height:44px}
  .ibx-wrap.ibx-w1 .msgr-b{max-width:84%}
  .ibx-wrap.ibx-w1 .msgr-thread.ibx-thread{padding:8px 16px}
  .ibx-wrap.ibx-w1 .ibx-leadbar{margin:4px 16px 8px;padding:10px 10px 10px 14px;background:var(--ibx-sel);border-color:transparent;box-shadow:none;align-self:stretch;max-width:none}
  .ibx-wrap.ibx-w1 .ibx-cbox{border-radius:22px;padding:6px 6px 6px 14px}
  .ibx-wrap.ibx-w1 .msgr-reply{min-height:32px;padding-top:6px}
  .ibx-wrap.ibx-w1 .ibx-ctools .ibx-ibtn{width:44px;height:44px}
  .ibx-wrap.ibx-w1 .ibx-ctools .ibx-ibtn.ibx-aidb{width:44px;padding:0}
  .ibx-wrap.ibx-w1 .ibx-aidl{display:none}
  .ibx-wrap.ibx-w1 .ibx-aid{margin:0 0 6px}
  .ibx-wrap.ibx-w1 .ibx-aid-x{-webkit-line-clamp:2;line-clamp:2}
  .ibx-wrap.ibx-w1 .ibx-aid-b{flex-wrap:nowrap}
  .ibx-wrap.ibx-w1 .ibx-aid-b .ibx-btn{flex:1 1 0;min-width:0;height:44px;padding:0 6px}
  .ibx-wrap.ibx-w1 .ibx-aid-b .ibx-aid-lg{display:none}
  .ibx-wrap.ibx-w1 .ibx-aid-b .ibx-aid-sh{display:inline}
  .ibx-wrap.ibx-w1 .ibx-aid-more{min-height:44px}
  .ibx-wrap.ibx-w1 .ibx-aid .ibx-btn{height:44px}
  .ibx-wrap.ibx-w1 .ibx-aid.slim .ibx-aid-h .ibx-btn{height:44px}
  .ibx-wrap.ibx-w1 .ibx-aid.c1 .ibx-aid-h .ibx-btn{height:44px}
  .ibx-wrap.ibx-w1 .ibx-aid.c1 .ibx-aid-h,.ibx-wrap.ibx-w1 .ibx-aid.c1 .ibx-aid-cb{flex-wrap:wrap}
  .ibx-wrap.ibx-w1 .ibx-aid.c1 .ibx-aid-h .ibx-btn.ibx-aid-rx{width:44px}
  .ibx-wrap.ibx-w1 .ibx-aid-cb .ibx-aid-lg{display:none}
  .ibx-wrap.ibx-w1 .ibx-aid-cb .ibx-aid-sh{display:inline}
  .ibx-wrap.ibx-w1 .ibx-aid-n{height:44px;border-radius:22px}
  .ibx-wrap.ibx-w1 .ibx-aid:not(.all) .ibx-aid-from{display:none}
  .ibx-wrap.ibx-w1 .ibx-send{border-radius:22px;padding:0 18px}
  .ibx-wrap.ibx-w1 .ibx-panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:1000;height:85vh;max-height:100%;border-radius:16px 16px 0 0;box-shadow:var(--ibx-shadow2);transform:translateY(105%);visibility:hidden;transition:transform .22s ease,visibility .22s}
  .ibx-wrap.ibx-w1.pan .ibx-panel{transform:none;visibility:visible}
  .ibx-wrap.ibx-w1 .ibx-phead{display:flex}
  .ibx-wrap.ibx-w1.pan .ibx-scrim{display:block;position:fixed;inset:0;z-index:999;background:var(--ibx-scrim)}
  .ibx-wrap.ibx-w1 .ibx-qpop{position:fixed;top:auto;left:0;right:0;bottom:0;width:auto;max-width:none;z-index:1001;padding:12px 12px 20px;border-radius:16px 16px 0 0}
  .ibx-wrap.ibx-w1 .ibx-kmenu{min-width:220px}
}
@media (max-width:380px){ .ibx-kp{grid-template-columns:max-content minmax(0,1fr)} }
.msgr-list{display:flex;flex-direction:column;gap:8px;max-height:70vh;overflow:auto;padding-right:2px}
.msgr-litem{text-align:left;background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:11px 12px;cursor:pointer;transition:border-color .12s,background .12s;color:inherit}
.msgr-litem:hover{border-color:rgba(34,211,238,.4)}
.msgr-litem.on{border-color:#22d3ee;background:var(--glass2)}
.msgr-li-top{display:flex;align-items:center;gap:9px}
.msgr-li-id{flex:1;min-width:0;line-height:1.2}
.msgr-li-id b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msgr-li-id span{font-size:11px;color:var(--mut)}
.msgr-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}
.msgr-li-snip{font-size:12px;color:var(--mut);margin:7px 0 8px;line-height:1.35}
.msgr-li-tags{display:flex;align-items:center;gap:7px}
.msgr-li-st{font-size:11px;font-weight:700;margin-left:auto}
.msgr-chip{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.msgr-av{width:34px;height:34px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:12.5px}
.msgr-conv{background:var(--glass);border:1px solid var(--glass2);border-radius:14px;padding:14px 16px;min-height:60vh}
.msgr-conv-h{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:1px solid var(--glass2);margin-bottom:12px}
.msgr-conv-id{flex:1;min-width:0}
.msgr-conv-id b{display:block;font-size:15px}
.msgr-conv-id span{font-size:12px;color:var(--mut)}
.msgr-conv-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.msgr-thread{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.msgr-b{max-width:78%}
.msgr-b.user{align-self:flex-start}
.msgr-b.agent{align-self:flex-end}
.msgr-bb{padding:9px 13px;border-radius:14px;font-size:13.5px;line-height:1.4}
.msgr-b.user .msgr-bb{background:rgba(148,163,184,.16);border-bottom-left-radius:4px}
.msgr-b.agent .msgr-bb{background:linear-gradient(135deg,rgba(34,211,238,.22),rgba(167,139,250,.22));border:1px solid rgba(34,211,238,.3);border-bottom-right-radius:4px}
.msgr-bt{font-size:10.5px;color:var(--mut);margin-top:3px}
.msgr-b.agent .msgr-bt{text-align:right}
.msgr-draft{background:var(--glass2);border:1px solid rgba(34,211,238,.25);border-radius:12px;padding:13px}
.msgr-draft-h{display:flex;align-items:center;gap:10px;font-weight:700;font-size:13px;margin-bottom:9px}
.msgr-conf{flex:1;height:6px;background:rgba(148,163,184,.2);border-radius:999px;overflow:hidden;max-width:160px}
.msgr-conf i{display:block;height:100%;border-radius:999px}
.msgr-reply{width:100%;box-sizing:border-box;background:var(--bg0);border:1px solid var(--glass2);border-radius:10px;padding:10px 12px;color:var(--txt);font:inherit;font-size:13.5px;line-height:1.45;resize:vertical}
.msgr-class{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:9px 0}
.msgr-phasenote{font-size:11.5px;color:var(--mut);margin-left:auto}
.msgr-lead{background:var(--glass);border:1px solid var(--glass2);border-radius:10px;padding:10px 12px;margin-bottom:11px}
.msgr-lead-h{display:flex;align-items:center;gap:8px;font-weight:700;font-size:12.5px;margin-bottom:8px}
.msgr-lr{font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:999px;margin-left:auto}
.msgr-lr.y{background:rgba(16,185,129,.16);color:#10b981}
.msgr-lr.n{background:rgba(148,163,184,.18);color:var(--mut)}
.msgr-lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.msgr-lead-grid label{display:block;font-size:10.5px;color:var(--mut);font-family:ui-monospace,Menlo,monospace;margin-bottom:2px}
.msgr-lead-grid span{font-size:13px;font-weight:600}
.msgr-urg{padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:700;text-transform:capitalize}
.msgr-urg.high{background:rgba(239,68,68,.16);color:#ef4444}
.msgr-urg.medium{background:rgba(245,158,11,.16);color:#f59e0b}
.msgr-urg.low{background:rgba(148,163,184,.18);color:var(--mut)}
.msgr-note{border-radius:10px;padding:9px 12px;font-size:12.5px;line-height:1.4;margin-bottom:10px}
.msgr-note.warn{background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3)}
.msgr-note.oos{background:rgba(139,92,246,.12);border:1px solid rgba(139,92,246,.3)}
.msgr-acts{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.msgr-push-note{font-size:11.5px;color:var(--mut)}
.btn.primary.danger{background:linear-gradient(135deg,#ef4444,#f59e0b);border:0;color:#fff}
.msgr-esc-banner{background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);border-radius:10px;padding:11px 13px;font-size:13px;line-height:1.45}
.msgr-conf-note{color:var(--mut);font-size:12px}
.msgr-sent-banner{background:rgba(16,185,129,.1);border:1px solid rgba(16,185,129,.3);border-radius:10px;padding:10px 13px;font-size:13px;font-weight:600;color:#10b981}
.msgr-lead-ok{margin-top:10px;background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.3);border-radius:10px;padding:10px 13px;font-size:12.5px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msgr-lead-ok.oos{background:rgba(139,92,246,.1);border-color:rgba(139,92,246,.3)}
@media(max-width:860px){.msgr-stats{grid-template-columns:repeat(3,1fr)}.msgr-shell{grid-template-columns:1fr}.msgr-list{max-height:none}}

/* ================= Student "Your gap" plan card (bet #8) ================= */
.sgap{border:1px solid rgba(34,211,238,.28)}
.sgap-top{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.sgap-hd{flex:1;min-width:200px}
.sgap-title{font-weight:800;font-size:16px}
.sgap-sub{color:var(--mut);font-size:13px;margin-top:3px}
.sgap-sub b{color:var(--txt)}
.sgap-nums{display:flex;align-items:center;gap:10px}
.sgap-band{display:flex;flex-direction:column;align-items:center;background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:6px 14px;min-width:56px}
.sgap-band span{font-size:24px;font-weight:800;line-height:1}
.sgap-band small{font-size:10px;color:var(--mut);text-transform:uppercase;letter-spacing:.5px;margin-top:2px}
.sgap-band.tgt{border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.1)}
.sgap-band.tgt span{color:rgb(var(--accent))}
.sgap-arrow{color:var(--mut);font-size:18px;font-weight:700}
.sgap-day{margin:12px 0 10px;font-size:13px;color:var(--mut)}
.sgap-day b{color:var(--txt);font-size:15px}
.sgap-tasks{display:flex;flex-direction:column;gap:8px}
.sgap-task{display:flex;align-items:center;gap:11px;text-align:left;background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:11px 13px;cursor:pointer;color:inherit;transition:border-color .12s,background .12s;font:inherit}
.sgap-task:hover{border-color:rgba(34,211,238,.45);background:var(--glass2)}
.sgap-task-n{width:22px;height:22px;flex:0 0 auto;border-radius:50%;background:rgba(34,211,238,.16);color:rgb(var(--accent));font-weight:800;font-size:12px;display:grid;place-items:center}
.sgap-task-ic{font-size:19px;flex:0 0 auto}
.sgap-task-b{flex:1;min-width:0;line-height:1.3}
.sgap-task-b b{display:block;font-size:13.5px}
.sgap-task-b small{color:var(--mut);font-size:11.5px}
.sgap-task-go{color:var(--mut);font-size:18px;flex:0 0 auto}
.sgap-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:11px;border-top:1px solid var(--glass2)}
.sgap-foot-t{font-size:12.5px;color:var(--mut)}

/* ============ Writing-eval comment bank (criterion-grouped + personal snippets) ============ */
.rbank{display:flex;flex-direction:column;gap:7px;margin-top:9px}
.rbank-grp{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.rbank-cat{font-size:11px;font-weight:800;color:var(--mut);min-width:78px;text-transform:uppercase;letter-spacing:.3px}
.rbank-mine{padding-top:7px;border-top:1px dashed var(--glass2);margin-top:2px}
.remark-chip.mine{background:rgba(34,211,238,.1);border-color:rgba(34,211,238,.32);color:#8fe6f5}
.remark-chip.mine:hover{border-color:#22d3ee;color:#bff1fb}
.rbank-empty{font-size:11.5px;color:var(--mut);font-style:italic}
.rbank-save{margin-left:4px;padding:3px 10px;font-size:11px}

/* ============ Teacher batch-health one-pager ============ */
.bh-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.bh-card{background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:11px 13px}
.bh-h{font-weight:700;font-size:13px;margin-bottom:9px;display:flex;justify-content:space-between;align-items:center}
.bh-h b{color:rgb(var(--accent));font-size:13px}
.bh-sub{font-size:11px;color:var(--mut);margin-top:7px}
.bh-spark{display:flex;align-items:flex-end;gap:4px;height:52px}
.bh-bar{flex:1;min-width:5px;border-radius:3px 3px 0 0;align-self:flex-end}
.bh-dist{display:flex;align-items:center;gap:8px;margin:4px 0;font-size:12px}
.bh-dl{width:44px;color:var(--mut);flex:0 0 auto}
.bh-dbar{flex:1;height:8px;background:rgba(148,163,184,.18);border-radius:999px;overflow:hidden}
.bh-dbar i{display:block;height:100%;background:linear-gradient(90deg,#22d3ee,var(--viol));border-radius:999px}
.bh-dist b{width:18px;text-align:right;flex:0 0 auto}
.bh-risk-h{font-weight:700;font-size:12.5px;margin:4px 0 8px;color:var(--warn)}
.bh-risk{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--glass);border:1px solid var(--glass2);border-radius:10px;padding:9px 12px;margin-bottom:7px}
.bh-risk-l{min-width:0}
.bh-risk-l b{font-size:13px}
.bh-risk-l small{display:block;color:var(--mut);font-size:11px}
.bh-risk-a{font-size:11.5px;font-weight:700;color:var(--info-2);white-space:nowrap;flex:0 0 auto}

/* ============ Marketing "seats needing spend" strip ============ */
.mkt-seats{margin-top:12px}
.mkt-seats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.mkt-seat{background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:10px 12px}
.mkt-seat-n{font-weight:800;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mkt-seat-m{font-size:11px;color:var(--mut);margin:2px 0 8px}
.mkt-seat-bar{height:7px;background:rgba(148,163,184,.18);border-radius:999px;overflow:hidden}
.mkt-seat-bar i{display:block;height:100%;border-radius:999px}
.mkt-seat-l{font-size:11.5px;color:var(--mut);margin-top:7px}
.mkt-seat-l b{color:var(--txt)}

/* ============ Sales rain-aware nudge ============ */
.crm-rain-card{display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,rgba(56,189,248,.14),rgba(129,140,248,.12));border:1px solid rgba(56,189,248,.32);border-radius:12px;padding:11px 14px;margin-bottom:12px}
.crm-rain-ic{font-size:24px;flex:0 0 auto}
.crm-rain-b{flex:1;min-width:0;line-height:1.4}
.crm-rain-b b{display:block;font-size:13.5px}
.crm-rain-b span{font-size:12px;color:var(--mut)}
.crm-rain-go{flex:0 0 auto;white-space:nowrap}

/* ============ Shared rain-aware slots (sales widget · topbar chip · finance/marketing notes) ============ */
.rain-slot:empty{display:none}
.rain-mini{display:flex;align-items:center;gap:9px;background:rgba(56,189,248,.12);border:1px solid rgba(56,189,248,.3);border-radius:10px;padding:8px 11px;margin:10px 0 0}
.rain-mini-ic{font-size:18px;flex:0 0 auto}
.rain-mini-t{flex:1;min-width:0;font-size:12px;line-height:1.35;color:var(--mut)}
.rain-mini-t b{color:var(--txt)}
.rain-mini-go{flex:0 0 auto;white-space:nowrap}
.rain-note{background:rgba(56,189,248,.1);border:1px solid rgba(56,189,248,.28);border-radius:10px;padding:9px 13px;font-size:12.5px;line-height:1.4;color:var(--mut);margin:12px 0}
.rain-note b{color:var(--txt)}
.rain-chip{display:inline-flex;align-items:center;gap:5px;background:rgba(56,189,248,.16);border:1px solid rgba(56,189,248,.35);color:var(--info-2);font-size:12.5px;font-weight:700;padding:0 14px;height:38px;box-sizing:border-box;border-radius:999px;white-space:nowrap;cursor:default;align-self:center}

/* rain-nudge "learned" micro-pill */
.rain-learn{display:inline-block;font-size:10px;font-weight:800;color:var(--info);background:rgba(56,189,248,.16);border:1px solid rgba(56,189,248,.3);border-radius:999px;padding:0 6px;vertical-align:middle;white-space:nowrap}

/* ============ Student-facing study-abroad file tracker (read-only) ============ */
.smig{border:1px solid rgba(56,189,248,.28)}
.smig-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.smig-t{font-weight:800;font-size:16px}
.smig-s{color:var(--mut);font-size:12.5px;margin-top:3px}
.smig-s b{color:var(--txt)}
.smig-track{display:flex;align-items:center;gap:0;margin:4px 0 16px;overflow-x:auto}
.smig-step{display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 auto;min-width:58px}
.smig-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:15px;border:2px solid var(--glass2);background:var(--glass);color:var(--mut)}
.smig-lb{font-size:10.5px;color:var(--mut);white-space:nowrap}
.smig-line{flex:1 1 auto;height:2px;background:var(--glass2);min-width:12px;margin-top:-18px}
.smig-step.done .smig-dot{background:#34d39922;border-color:var(--ok);color:var(--ok)}
.smig-step.done .smig-lb{color:var(--txt)}
.smig-step.now .smig-dot{background:linear-gradient(135deg,#22d3ee,var(--viol));border-color:#22d3ee;color:#0b1120;box-shadow:0 0 0 4px rgba(34,211,238,.15)}
.smig-step.now .smig-lb{color:rgb(var(--accent));font-weight:800}
.smig-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.smig-docs,.smig-next{background:var(--glass);border:1px solid var(--glass2);border-radius:12px;padding:11px 13px}
.smig-docs-h,.smig-next-h{font-size:12px;color:var(--mut);margin-bottom:8px}
.smig-docs-h b{color:var(--txt);font-size:13.5px}
.smig-docs-bar{height:8px;background:rgba(148,163,184,.18);border-radius:999px;overflow:hidden}
.smig-docs-bar i{display:block;height:100%;border-radius:999px}
.smig-next-b{font-size:13px;line-height:1.4}
.smig-foot{margin-top:12px;padding-top:11px;border-top:1px solid var(--glass2);font-size:12px;color:var(--mut)}
.smig-foot b{color:var(--txt)}
@media(max-width:640px){.smig-grid{grid-template-columns:1fr}}

/* ===== SOP & Protocol in-app guide ===== */
.sop-principle{background:linear-gradient(135deg,rgba(59,130,246,.14),rgba(139,92,246,.10));border:1px solid rgba(99,102,241,.35);border-radius:14px;padding:16px 18px;margin:14px 0 6px}
.sop-principle-h{font-weight:800;font-size:15px;margin-bottom:6px}
.sop-principle-b{color:var(--muted);font-size:13.5px;line-height:1.6}
.sop-sec-h{font-weight:800;font-size:15px;margin:22px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--bord)}
.sop-role{background:var(--card);border:1px solid var(--bord);border-radius:14px;padding:16px 18px;margin-bottom:14px}
.sop-role-me{border-color:rgba(99,102,241,.55);box-shadow:0 0 0 1px rgba(99,102,241,.35),0 8px 30px rgba(59,130,246,.12)}
.sop-role-h{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.sop-role-ic{font-size:26px}
.sop-role-name{font-weight:800;font-size:15px}
.sop-role-portal{color:var(--muted);font-size:12px}
.sop-you{background:#6366f1;color:#fff;font-size:10px;font-weight:800;padding:1px 7px;border-radius:20px;vertical-align:middle;margin-left:6px}
.sop-purpose{color:var(--fg);font-size:13.5px;line-height:1.55;margin-bottom:12px}
.sop-sub{font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:10px 0 5px}
.sop-ul{margin:0;padding-left:18px}
.sop-ul li{font-size:13px;line-height:1.6;color:var(--fg)}
.sop-txt{font-size:13px;line-height:1.6;color:var(--fg)}
.sop-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sop-cadence{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.sop-cadence span{background:var(--chip,var(--glass));border:1px solid var(--bord);border-radius:10px;padding:7px 11px;font-size:12.5px;flex:1 1 200px;line-height:1.5}
.sop-cadence b{color:#8b5cf6;margin-right:5px}
.sop-esc{margin-top:12px;background:rgba(245,158,11,.10);border:1px solid rgba(245,158,11,.30);border-radius:10px;padding:9px 12px;font-size:12.5px;line-height:1.55}
.sop-note{margin-top:8px;background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.25);border-radius:10px;padding:9px 12px;font-size:12.5px;color:var(--fg)}
.sop-tablewrap{overflow-x:auto;border:1px solid var(--bord);border-radius:12px}
.sop-table{width:100%;border-collapse:collapse;font-size:12.5px}
.sop-table th{background:rgba(31,58,95,.55);color:#e6eefc;text-align:left;padding:9px 12px;font-weight:700;white-space:nowrap}
.sop-table td{padding:8px 12px;border-top:1px solid var(--bord);line-height:1.5}
.sop-table tr:nth-child(even) td{background:rgba(255,255,255,.02)}
.sop-ok{color:#10b981;font-weight:600}
.sop-need{color:#f59e0b;font-weight:600}
.sop-rb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.sop-rb{background:var(--card);border:1px solid var(--bord);border-radius:12px;padding:12px 14px}
.sop-rb-me{border-color:rgba(99,102,241,.5)}
.sop-rb-h{font-weight:700;font-size:13px;margin-bottom:6px}
.sop-rb-id{background:#1f3a5f;color:#cfe0f5;font-size:10px;font-weight:800;padding:1px 6px;border-radius:6px;margin-right:5px}
.sop-rb-role{color:var(--muted);font-size:11px;font-weight:600;float:right}
.sop-rb-steps{font-size:12px;color:var(--muted);line-height:1.55}
.sop-rb-done{font-size:12px;color:#10b981;margin-top:6px}
.sop-details{margin-top:16px;border:1px solid var(--bord);border-radius:12px;padding:12px 14px;background:var(--card)}
.sop-details summary{cursor:pointer;font-weight:700;font-size:13.5px}
.sop-roles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
.sop-foot{margin-top:20px;color:var(--muted);font-size:12px;line-height:1.6;border-top:1px solid var(--bord);padding-top:12px}
@media(max-width:640px){.sop-grid2{grid-template-columns:1fr}}

/* ===== Ops exceptions tiles (control-tower model) ===== */
.cc-tile-exc{position:relative;border-color:rgba(245,158,11,.35)!important}
.cc-tile-exc .cc-tile-why{display:block;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#f59e0b;margin-top:3px;opacity:.9}
.cc-tile-exc:hover{border-color:rgba(245,158,11,.6)!important}

/* Exception deep-link focus banner — target view opens pre-filtered from a cc tile */
.cc-focus-banner{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;padding:10px 14px;border:1px solid rgba(245,158,11,.4);border-left:3px solid #f59e0b;border-radius:12px;background:rgba(245,158,11,.08);color:var(--txt);font-size:13px}
.cc-focus-banner b{color:#f59e0b}
.cc-focus-banner .btn{margin-left:auto}
.cc-focus-links{display:flex;flex-wrap:wrap;gap:6px;margin-left:4px}
.cc-focus-links .btn{margin-left:0}

/* ===== Admin commission editor ===== */
.comm-in{width:82px;padding:6px 8px;background:var(--card,#0f1720);border:1px solid var(--bord);border-radius:8px;color:var(--txt,#e8eef6);font-family:inherit;font-size:13px;text-align:right}
.comm-in:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 2px rgba(99,102,241,.25)}
.comm-pctmark{margin-left:4px;color:var(--mut,#8aa);font-size:12px}
.comm-src{display:inline-block;margin-left:6px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:1px 6px;border-radius:10px}
.comm-src-employee{background:rgba(99,102,241,.18);color:var(--viol-3)}
.comm-src-department{background:rgba(16,185,129,.15);color:var(--ok-2)}
.comm-src-model{background:rgba(148,163,184,.15);color:var(--mut-7)}

/* ===== Front Desk dashboard ===== */
.fd-hero{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:22px 24px}
.fd-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px;align-items:start}
.fd-grid .sf-card{margin:0}
.fd-job{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--bord)}
.fd-job:last-of-type{border-bottom:0}
.fd-job-m{flex:1;min-width:0}
.fd-job .btn{flex:none;margin-top:2px}
.ann-item{padding:9px 0;border-bottom:1px solid var(--bord)}
.ann-item:last-child{border-bottom:0}
.ann-txt{font-size:13.5px;line-height:1.45;white-space:pre-wrap}
.ann-meta{font-size:11.5px;color:var(--mut);margin-top:3px;display:flex;align-items:center;gap:8px}
.ann-meta .btn{padding:0 7px;line-height:18px;font-size:10.5px}
.fd-dir{max-height:264px;overflow-y:auto;display:flex;flex-direction:column}
.fd-dir-row{display:flex;align-items:center;gap:10px;padding:7px 2px;border-bottom:1px solid var(--bord)}
.fd-dir-row:last-child{border-bottom:0}
.fd-dir-row .av{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:800;flex:none;background:rgba(56,189,248,.14);color:var(--info-2);border:1px solid rgba(56,189,248,.35)}
.fd-dir-row[data-dircontact]{cursor:pointer;transition:background .12s;border-radius:8px}
.fd-dir-row[data-dircontact]:hover{background:var(--glass-05)}
.fd-c-av{width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;flex:none;background:rgba(56,189,248,.14);color:var(--info-2);border:1px solid rgba(56,189,248,.35)}
@media(max-width:820px){.fd-grid{grid-template-columns:1fr}.fd-hero{padding:18px}}

/* ============================================================================
   IELTS exam-mode — full-mock onboarding screens + CD-IELTS in-test chrome.
   Everything here is scoped to .ex-* / .player.ex-mode so it can't leak into
   the rest of the app.
   ============================================================================ */
.ex-page{ position:fixed; inset:0; z-index:70; background:#ebeff0; display:flex; flex-direction:column;
  font-family:Arial,Helvetica,sans-serif; color:#333; }
.ex-page.instr{ background:#fff; }
/* v1.078 — the exam chrome is WHITE, matching the authentic CD-IELTS player.
   The bar keeps its 46px height; only colour changed. A hairline bottom border
   separates it from the white card area beneath (the real product has one). */
.ex-topbar{ height:46px; flex:0 0 46px; background:#fff; border-bottom:1px solid #8a949c;
  display:flex; align-items:center; gap:14px; padding:0 16px; }
.ex-topbar .ex-brand{ color:#e2231a; font-weight:800; font-size:20px; letter-spacing:.5px; }
.ex-topbar .ex-user{ color:#1c1c1c; font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:8px; }
.ex-topbar .ex-user svg{ width:16px; height:16px; stroke:#1c1c1c; fill:none; stroke-width:1.8; }
.ex-body{ flex:1; overflow:auto; display:flex; align-items:flex-start; justify-content:center; padding:56px 20px 40px; }
.ex-card{ background:#fff; border-radius:8px; box-shadow:0 2px 10px rgba(28,28,28,.14); max-width:640px; width:100%;
  padding:38px 44px; text-align:center; }
.ex-card h2{ font-size:22px; margin:0 0 22px; color:#1c1c1c; font-weight:700; }
.ex-card .ex-p{ font-size:14.5px; line-height:1.6; margin:0 0 22px; color:#333; }
.ex-avatar{ width:64px; height:64px; border-radius:50%; background:#4279a6; color:#fff; font-weight:700; font-size:22px;
  display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.ex-rows{ text-align:left; border:1px solid #e2e6e9; border-radius:6px; margin:0 0 26px; }
.ex-row{ display:flex; justify-content:space-between; gap:18px; padding:12px 16px; font-size:14px; border-bottom:1px solid #eef1f3; }
.ex-row:last-child{ border-bottom:none; }
.ex-row span{ color:#66707a; }
.ex-row b{ color:#1c1c1c; }
.ex-btn{ display:inline-block; background:#4279a6; color:#fff; border:none; border-radius:4px; min-height:3em;
  padding:0 34px; font-size:15px; font-weight:600; cursor:pointer; font-family:inherit; }
.ex-btn:hover{ background:#275378; }
.ex-btn.ghost{ background:#fff; color:#1c1c1c; border:1.5px solid #9aa4ad; }
.ex-btn.ghost:hover{ background:#eef1f3; }
.ex-mut{ font-size:12.5px; color:#7a838b; margin-top:16px; line-height:1.5; }
.ex-sc-btns{ display:flex; gap:12px; justify-content:center; margin-bottom:20px; }
.ex-vol{ display:flex; align-items:center; gap:10px; justify-content:center; margin-bottom:8px; }
.ex-vol input{ width:220px; accent-color:#4279a6; }
.ex-card .ex-mut + .ex-btn{ margin-top:20px; }
.ex-instr{ max-width:760px; width:100%; text-align:left; color:#333; }
.ex-instr h1{ font-size:26px; color:#1c1c1c; margin:6px 0 6px; font-weight:800; }
.ex-instr .ex-time{ font-weight:700; font-size:15px; margin-bottom:28px; color:#1c1c1c; }
.ex-block{ margin-bottom:24px; }
.ex-block h3{ font-size:15px; font-weight:700; color:#1c1c1c; margin-bottom:6px; }
.ex-block p{ font-size:14.5px; line-height:1.7; margin:0; }
.ex-instr .ex-btn{ margin-top:16px; }
.ex-ended{ padding:0; overflow:hidden; text-align:left; max-width:560px; }
.ex-ended-head{ background:linear-gradient(180deg,#4a5b6e,#1f2b38); color:#fff; font-weight:700; font-size:15px; padding:11px 18px; }
.ex-ended-body{ padding:22px 26px 26px; }
.ex-ended-body p{ font-size:14.5px; margin:0 0 12px; border-bottom:1px solid #eef1f3; padding-bottom:12px; color:#333; }
.ex-ended-body .ex-btn{ margin-top:10px; }

/* --- in-test chrome: WHITE bar, near-black candidate line, big centred near-black timer.
   v1.078 (owner ask 2026-08-02): "make all full mock test, partial, section-wise, and
   question-wise test header white like the authentic test." This ONE header serves all four
   kinds — full mocks go through exRunFullMock, partials AND drills (section-wise +
   question-wise) through exRunPartial, and both call exDressPlayer(), which adds .ex-mode.
   This SUPERSEDES the old "owner prefers the black chrome" note that used to sit here.
   Colour only — the bar is still 46px and nothing moved. --- */
.player.ex-mode .p-head{ background:#fff; border-bottom:1px solid #8a949c; position:relative; min-height:46px; padding:4px 14px; color:#1c1c1c; }
/* The red IELTS logo stays visible DURING the test too — it was display:none here, so it
   appeared on the onboarding screens (confirm details / sound check / instructions / test
   ended) and then vanished the moment the test began. Now it is constant throughout, on
   every section (listening, reading, writing) and every part. !important so no theme or
   later rule can hide it again. */
.player.ex-mode .p-head .ielts{ display:block !important; color:#e2231a; margin-right:14px; flex:0 0 auto;
  font-weight:900; font-size:23px; letter-spacing:.6px; line-height:1; }
/* HIGH-CONTRAST THEMES. The bar is white by DEFAULT now, so theme-wb / theme-yb must pull it
   back to black — otherwise a white header would sit above a black content pane, which is worse
   than the old behaviour and defeats the point of a low-light mode. Every foreground the default
   turned near-black has to flip back here too; that is the whole reason this block exists. */
.player.ex-mode.theme-wb .p-head,.player.ex-mode.theme-yb .p-head{ background:#000; border-bottom-color:#666; }
.player.ex-mode.theme-wb .p-head{ color:#fff; }
.player.ex-mode.theme-yb .p-head{ color:#ffe14d; }
.player.ex-mode.theme-wb .p-head .ielts,.player.ex-mode.theme-yb .p-head .ielts{ color:#e2231a; }
.player.ex-mode .p-head .who .tid{ color:#1c1c1c; font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:8px; }
.player.ex-mode .p-head .who .tid svg{ width:15px; height:15px; stroke:#1c1c1c; fill:none; stroke-width:1.8; flex:none; }
/* v1.079 — the skill label ("Reading") sits BELOW the name, so it must start where the NAME starts,
   not where the person icon starts. `.tid` is inline-flex with a 15px icon + 8px gap, so the name
   begins 23px in while `.status` began at 0 — a visible ragged left edge under the icon.
   Indent by exactly that, so the two lines share one left edge. */
.player.ex-mode .p-head .who .status{ color:#4a545c; padding-left:23px; }
.player.ex-mode.theme-wb .p-head .who .tid{ color:#fff; }
.player.ex-mode.theme-wb .p-head .who .tid svg{ stroke:#fff; }
.player.ex-mode.theme-wb .p-head .who .status{ color:#d0d0d0; }
.player.ex-mode.theme-yb .p-head .who .tid{ color:#ffe14d; }
.player.ex-mode.theme-yb .p-head .who .tid svg{ stroke:#ffe14d; }
.player.ex-mode.theme-yb .p-head .who .status{ color:#e0c94a; }
.player.ex-mode #p-timer{ display:none; }   /* source of truth stays live but hidden; the mirror displays it */
.player.ex-mode .ex-timer{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:inline-flex;
  align-items:center; gap:8px; color:#1c1c1c; white-space:nowrap; }
.player.ex-mode .ex-timer svg{ width:17px; height:17px; stroke:#1c1c1c; fill:none; stroke-width:1.8; flex:none; }
.player.ex-mode .ex-timer .ex-t-txt{ font-size:12.5px; font-weight:600; }
.player.ex-mode .ex-timer .ex-t-txt b{ font-size:19px; font-weight:800; margin-right:5px; font-variant-numeric:tabular-nums; }
/* The low-time red is DARKENED for the white bar — #ff3333 is only 3.6:1 on white, which fails
   AA for the 12.5px "N minutes left" text beside the digits. #c8102e measures 5.88:1. */
.player.ex-mode .ex-timer.red{ color:#c8102e; }
.player.ex-mode .ex-timer.red svg{ stroke:#c8102e; }
.player.ex-mode.theme-wb .ex-timer,.player.ex-mode.theme-wb .ex-timer svg{ color:#fff; stroke:#fff; }
.player.ex-mode.theme-yb .ex-timer,.player.ex-mode.theme-yb .ex-timer svg{ color:#ffe14d; stroke:#ffe14d; }
.player.ex-mode.theme-wb .ex-timer.red,.player.ex-mode.theme-yb .ex-timer.red{ color:#ff5c5c; }
.player.ex-mode.theme-wb .ex-timer.red svg,.player.ex-mode.theme-yb .ex-timer.red svg{ stroke:#ff5c5c; }
.player.ex-mode .ex-timer.blink{ animation:ex-blink 1s steps(2,start) infinite; }
/* v1.324 code review X-08 — the exam-mode mirror timer blinks too; no blink for a reduced-motion preference (the red colour still shows) */
@media (prefers-reduced-motion: reduce){ .player.ex-mode .ex-timer.blink{ animation:none; } }
/* v1.478 (ANik 18 Oct, "same as AC behaves") — the 2:00 change must SHOW on every PC. The blink alone vanished under
   prefers-reduced-motion (Windows "Animation effects" off), so from 2:00 the time also turns red, in both cases; the blink stays
   only where motion is allowed (the rule above). :not(.p-lastmin) leaves the 1:00 bar (white time on the red bar) exactly as it was. */
.player.ex-mode:not(.p-lastmin) .ex-timer.blink{ color:#c8102e; }
.player.ex-mode:not(.p-lastmin) .ex-timer.blink svg{ stroke:#c8102e; }
.player.ex-mode.theme-wb:not(.p-lastmin) .ex-timer.blink,.player.ex-mode.theme-yb:not(.p-lastmin) .ex-timer.blink{ color:#ff5c5c; }
.player.ex-mode.theme-wb:not(.p-lastmin) .ex-timer.blink svg,.player.ex-mode.theme-yb:not(.p-lastmin) .ex-timer.blink svg{ stroke:#ff5c5c; }
/* Hide/Show timer toggle (ex-mode). Digits hidden via visibility so the centred bar keeps its
   width and never shifts; the clock icon + button stay put so the timer can be restored. */
/* NB: the toggle class is "tmroff", NOT "hidden" — a global .hidden{display:none!important} would
   nuke the whole timer (icon + Show button) so it could never be restored. */
.player.ex-mode .ex-timer.tmroff .ex-t-txt{ visibility:hidden; }
/* The old rgba(255,255,255,…) border and hover were INVISIBLE on a white bar — dark equivalents. */
.player.ex-mode .ex-hide{ margin-left:9px; background:transparent; border:1px solid #8a949c;
  color:#1c1c1c; font-size:11px; font-weight:600; padding:2px 9px; border-radius:6px; cursor:pointer; line-height:1.45; }
.player.ex-mode .ex-hide:hover{ background:rgba(0,0,0,.07); }
.player.ex-mode.theme-wb .ex-hide{ border-color:#bbb; color:#fff; }
.player.ex-mode.theme-yb .ex-hide{ border-color:#bbb; color:#ffe14d; }
.player.ex-mode.theme-wb .ex-hide:hover,.player.ex-mode.theme-yb .ex-hide:hover{ background:rgba(255,255,255,.16); }
@keyframes ex-blink{ to{ visibility:hidden; } }
/* The icon buttons were a near-white tile on a black bar; on white that tile disappears, so they
   take a visible border instead. The glyph itself was already #1c1c1c and stays. */
.player.ex-mode .icon-btn{ background:#f0f3f5; border:1px solid #8a949c; border-radius:4px; width:32px; height:26px; }
.player.ex-mode .icon-btn:hover{ background:#e2e7eb; }
.player.ex-mode .icon-btn svg{ stroke:#1c1c1c; }
.player.ex-mode.theme-wb .icon-btn,.player.ex-mode.theme-yb .icon-btn{ background:#111; border-color:#bbb; }
.player.ex-mode.theme-wb .icon-btn:hover,.player.ex-mode.theme-yb .icon-btn:hover{ background:#2a2a2a; }
.player.ex-mode.theme-wb .icon-btn svg{ stroke:#fff; }
.player.ex-mode.theme-yb .icon-btn svg{ stroke:#ffe14d; }
.player.ex-mode .p-volwrap{ color:#1c1c1c; }
.player.ex-mode .p-volwrap input{ accent-color:#4279a6; }
.player.ex-mode.theme-wb .p-volwrap{ color:#fff; }
.player.ex-mode.theme-wb .p-volwrap input{ accent-color:#fff; }
.player.ex-mode.theme-yb .p-volwrap{ color:#ffe14d; }
.player.ex-mode.theme-yb .p-volwrap input{ accent-color:#ffe14d; }
/* v1.377 — the live CD-IELTS bar (ANik 3 Oct, from the teachers' 30 Sep sitting; DECISIONS §139): a TALLER bar, the IELTS logo first and
   the time in words right after it, sitting on the logo's bottom line (both flex-end; the timer's line box is pulled down by the font's
   descent so the letters, not the box, sit on that line; the padding, not min-height, makes the height). The icons moved to the footer (.p-tools). */
.player.ex-mode .p-head{ padding:18px 32px; box-sizing:border-box; min-height:72px; }   /* 72px, as on the approval sheet (ANik: "like you suggested in the PDF") */
/* the logo is the current official IELTS wordmark (images/ielts-logo-red.svg, from ielts.org), painted through a mask in currentColor so the
   last-minute bar turns it white with the rest; the "IELTS" text stays in the DOM for screen readers (font-size 0). 261.68 × 75.1 → 30px high. */
.player.ex-mode .p-head .ielts{ width:105px; height:30px; font-size:0; color:#e31837; background:currentColor; margin-right:0; align-self:flex-end;
  -webkit-mask:url(images/ielts-logo-red.svg?v=1377) center/contain no-repeat; mask:url(images/ielts-logo-red.svg?v=1377) center/contain no-repeat; }
.player.ex-mode .ex-timer{ position:static; transform:none; align-self:flex-end; align-items:baseline; line-height:1; margin:0 36px -4px 22px; }
.player.ex-mode .ex-timer svg{ align-self:center; }
.player.ex-mode .ex-timer:has(.ex-t-txt:empty){ visibility:hidden; }   /* no lone clock icon while the Listening intro plays (the tape clock starts with the recording) */
.player.ex-mode .ex-timer .ex-t-txt b{ font-size:15px; font-weight:700; margin-right:0; }
.player.ex-mode .p-head .who .status{ padding-left:0; }   /* the person icon above it is gone, so no indent */
.player.ex-mode .p-head .who .tid{ font-size:15px; font-weight:700; }   /* ANik 3 Oct: the candidate number matches the time (15px bold) */
.player.ex-mode .p-head .who{ min-height:36px; display:flex; flex-direction:column; justify-content:flex-end; align-self:flex-end; margin-bottom:-3px; }   /* Listening: "Audio is Playing" sits on the time's line (ANik 3 Oct), the number above it */
.player.ex-mode .p-head .who .status{ line-height:1.1; }
/* Reading/Writing: nothing under the number, so it sits on the time's line (ANik 3 Oct) — same flex-end + descent pull as .ex-timer */
.player.ex-mode .p-head .who:has(.status:empty){ min-height:0; align-self:flex-end; margin-bottom:-2px; }
.player.ex-mode .p-head .who:has(.status:empty) .tid{ line-height:1; }
.player.ex-mode .p-head .who .status:empty{ display:none; }
/* last minute, every skill: the bar turns pinkish-red; logo, time, candidate line and the Hide button go white (whatever the theme) */
.player.ex-mode.p-lastmin .p-head{ background:#cf3f58; border-bottom-color:#cf3f58; color:#fff; }   /* darker (ANik 3 Oct; was #e2546a) */
.player.ex-mode.p-lastmin .p-head .ielts, .player.ex-mode.p-lastmin .ex-timer, .player.ex-mode.p-lastmin .p-head .who .tid,
.player.ex-mode.p-lastmin .p-head .who .status, .player.ex-mode.p-lastmin .ex-hide{ color:#fff; border-color:#fff; }
.player.ex-mode.p-lastmin .ex-timer svg, .player.ex-mode.p-lastmin .p-head .who .tid svg{ stroke:#fff; }

/* Voucher module — dialog action row (Cancel / primary), right-aligned. */
.dlg-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}
.dlg-actions .btn{min-width:96px}

/* ── Bank reconciliation (statement import + auto-match) ───────────────────────── */
/* Tab status dot: grey = no statement loaded · green = ties to ৳0 · red = difference */
.rec-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-left:5px;vertical-align:middle}
.rec-dot.ok{background:var(--ok);box-shadow:0 0 0 2px rgba(52,211,153,.2)}
.rec-dot.bad{background:var(--bad);box-shadow:0 0 0 2px rgba(251,113,133,.2)}
.rec-dot.none{background:var(--mut-6)}
/* Statement rows — unmatched (in the bank, missing from the books) must be impossible to miss */
tr.rec-off td{background:rgba(251,113,133,.07)}
tr.rec-off td:first-child{box-shadow:inset 3px 0 0 var(--bad)}
tr.rec-on td{opacity:.72}
/* Revenue-head mapping selects sit inside table cells */
.rev-sel{width:100%;min-width:190px}

/* ── Invoice builder: product is now a DROPDOWN (A&F: BDM must choose, price auto-fills) ── */
/* The name cell holds the select plus an optional custom-line input stacked beneath it. */
.ivb-namew{display:flex;flex-direction:column;min-width:0}
.ivb-namew .ivb-name{width:100%;min-width:0}
.ivb-namew .ivb-custom{width:100%;min-width:0}
.ivb-head,.ivb-row{align-items:start}
.ivb-row .ivb-price,.ivb-row .ivb-qty,.ivb-row .ivb-disc-amt,.ivb-row .ivb-disc-pct,.ivb-row .ivb-lt,.ivb-row .ivb-rm{margin-top:0}

/* ═══ A&F Update-3 — Finance portal additions ═══════════════════════════════════ */

/* Toolbar row that mixes tabs, date pickers and buttons */
.fin-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* Budget / depreciation progress bars — red once over 100% */
.bud-bar{height:6px;border-radius:99px;background:var(--glass3);overflow:hidden;min-width:60px;margin:0 auto 3px}
.bud-bar span{display:block;height:100%;border-radius:99px;transition:width .3s}

/* Salary sheet: an overridden TDS is visibly NOT the computed one */
.ss-in.ss-ov{border-color:rgba(167,139,250,.7);background:rgba(167,139,250,.1);color:var(--viol-2);font-weight:700}

/* Clickable summary KPIs (invoiced / collected / due → drilldown) */
.mba-kpi-btn{cursor:pointer;text-align:left;font-family:inherit;width:100%;border:1px solid var(--bord);transition:transform .12s,border-color .12s}
.mba-kpi-btn:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.mba-kpi-btn:hover .mba-kpi-go{opacity:1;transform:translateX(3px)}
.mba-kpi-go{opacity:.45;display:inline-block;transition:transform .12s,opacity .12s;font-weight:800}

/* Sales target vs actual — 6-month column chart */
.tgt-chart{display:flex;gap:10px;align-items:flex-end;height:150px;padding:6px 0}
.tgt-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}
.tgt-bars{flex:1;display:flex;gap:3px;align-items:flex-end;width:100%;justify-content:center}
.tgt-b{width:14px;border-radius:3px 3px 0 0;min-height:2px}
.tgt-b.tgt-t{background:var(--bord2)}
.tgt-lb{font-size:10.5px;color:var(--mut);white-space:nowrap}
.tgt-pc{font-size:11px;font-weight:800}
.tgt-key{display:inline-block;width:9px;height:9px;border-radius:2px;vertical-align:middle}
.tgt-key.tgt-t{background:rgba(255,255,255,.25)}

/* ═══ MigrationCloud — client tracker fields (schema-driven) ═══════════════════ */
/* Multi-select as chips: comma-joined on the record, tappable in the UI */
.emf-multi{display:flex;flex-wrap:wrap;gap:6px}
.emf-chk{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid var(--bord);
  border-radius:99px;font-size:12.5px;cursor:pointer;user-select:none;transition:all .12s;background:var(--glass-03)}
.emf-chk:hover{border-color:rgba(255,255,255,.3)}
.emf-chk.on{background:rgba(167,139,250,.18);border-color:rgba(167,139,250,.6);color:var(--viol-2);font-weight:600}
.emf-chk input{margin:0;accent-color:var(--viol)}
/* Import mapping table */
.em-map{width:100%;min-width:0}

/* ═══ GT Reading — the 12 source "images" rebuilt as native HTML ══════════════════
   Every one was text rendered as a bitmap (ads, notices, timetables, flow-charts).
   As HTML they are crisp at any zoom, selectable, screen-readable and printable —
   and the flow-chart gaps are real input boxes instead of un-typeable dotted lines. */

/* Advertisements / notices — the boxed artifacts of a GT Section 1 */
.gt-ads{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}
.gt-ad{position:relative;border:1px solid #111;background:#fff;color:#111;padding:14px 16px 12px}
.gt-ad:last-child{grid-column:1/-1;max-width:60%;margin:0 auto}
.gt-ad-l{position:absolute;top:-11px;left:12px;background:#fff;padding:0 6px;font-weight:800;font-size:15px}
.gt-ad-b{text-align:center;font-size:13.5px;line-height:1.5}
.gt-ad-b h3{margin:4px 0;font-size:16px;font-weight:800}
.gt-ad-b h4{margin:2px 0;font-size:15px;font-weight:700}
.gt-ad-b p{margin:5px 0}
.gt-ad-b ul{display:inline-block;text-align:left;margin:4px 0}
.gt-sm{font-size:12px;color:#444}
.gt-big{font-size:22px;font-weight:800;margin:6px 0}
.gt-script{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:22px;border-bottom:2px solid #111;display:inline-block;padding-bottom:2px}
.gt-t2{width:100%;border-collapse:collapse;font-size:12.5px;margin:8px 0}
.gt-t2 th,.gt-t2 td{border:1px solid #111;padding:5px 7px;text-align:center}

/* A plain framed notice (payment instructions, hospital catering, walk instructions) */
.gt-notice{border:1px solid #111;background:#fff;color:#111;padding:14px 18px;margin:12px 0;font-size:13.5px;line-height:1.6}
.gt-notice h3{margin:0 0 4px;text-align:center;font-size:16px;font-weight:800}
.gt-notice .gt-sub{text-align:center;font-weight:700;font-size:13px;margin:0 0 10px}
.gt-notice p{margin:7px 0}
.gt-indent{margin-left:22px}
.gt-addr{margin-left:60px;line-height:1.5}
.gt-box{border:1px solid #111;padding:12px 14px}

/* Letter (Walk for Charity) */
.gt-letter{border:1px solid #111;background:#fff;color:#111;padding:16px 20px;margin:12px 0;font-size:13.5px;line-height:1.6}
.gt-letter h3{margin:0 0 12px;text-align:center;font-size:19px;font-weight:800;letter-spacing:.5px}
.gt-letter p{margin:9px 0}

/* Data tables — phone plans, ferry timetable, activity grid */
.gt-tbl{width:100%;border-collapse:collapse;font-size:13px;background:#fff;color:#111;margin:12px 0;line-height:1.5}
.gt-tbl th,.gt-tbl td{border:1px solid #111;padding:6px 9px;text-align:left;vertical-align:top}
.gt-tbl th{background:#e8eef4;font-weight:700}
.gt-tbl .gt-hd{background:#111;color:#fff;text-align:left;font-size:14px}
.gt-tbl .gt-sec{background:#d7dee6;font-weight:700}
.gt-tbl.gt-plain th,.gt-tbl.gt-plain td{border:0;padding:3px 26px 3px 0}
.gt-tbl.gt-plain th{background:transparent}
.gt-grid2 td{width:50%}

/* The ONE genuine diagram — Set 10's walking routes, redrawn as SVG (was a blurry raster) */
.gt-map{background:#fff;border:1px solid #111;padding:12px;margin:12px 0}
.gt-map svg{width:100%;height:auto;display:block}
.gt-key{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:10px;font-size:12.5px;color:#111;font-weight:700}
.gt-key span{display:inline-flex;align-items:center;gap:6px}
.gt-key i{width:30px;height:3px;display:inline-block;border-radius:2px}
.gt-key-c{display:inline-flex;align-items:center;justify-content:center;width:26px;height:17px;border:1.5px solid #111;border-radius:50%;font-size:11px}

@media (max-width:720px){ .gt-ads{grid-template-columns:1fr} .gt-ad:last-child{max-width:100%} }

/* ============================================================================
   NATIVE DROPDOWN READABILITY  (sales-team feedback #1, BDM)
   Every <select> across the platform opened a WHITE popup with near-white text, so the
   options were unreadable. Two causes, both confirmed by reading the computed styles:

     1. the dark select styling sets `color:var(--txt)` but never sets `color-scheme`, so the
        select inherited `color-scheme:light` — and the browser then draws the NATIVE popup
        list white no matter what the CSS says.
     2. the option background was `rgba(255,255,255,.05)` — a TRANSPARENT white, set with
        !important. The OS popup composites that onto its own white, so it stays white.
        An option background must be OPAQUE to have any effect at all.

   The rules being corrected are `.overlay .panel select option { … !important }`, which
   outranks a bare `select option` even when that is also !important — so the dark rules below
   have to MATCH that specificity, and sit later in the file, to win. Verified by reading
   getComputedStyle on every select in SalesCloud, FinanceCloud and MigrationCloud.
   ============================================================================ */
select{ color-scheme: dark !important; }
select option, select optgroup,
.overlay .panel select option, .overlay .panel select optgroup,
.tw-panel select option, .cx-log select option, .lp-form select option, .mkt-form select option{
  background:#1b1d33 !important; color:#eef2f8 !important; }
select option:checked, .overlay .panel select option:checked{ background:#2a2d4a !important; color:#fff !important; }
select option:disabled, .overlay .panel select option:disabled{ color:#7f88a3 !important; }

/* Surfaces that really ARE light — keep their popups light, dark text on white. */
#player select, .head-select, .ask-panel select, .ask-panel .ask-cc{ color-scheme: light !important; }
#player select option, .head-select option, .ask-panel select option, .ask-panel .ask-cc option{
  background:#fff !important; color:#111 !important; }

/* ── LEAD PRIORITY: manual mark (sales feedback #5) ────────────────────────────────────────
   The BDM can now overrule the auto score. A marked lead carries a 📌 pin so the team can see
   at a glance which priorities were set by a human and which the algorithm guessed. */
button.cx-temp{border:1px solid transparent;cursor:pointer;font-family:inherit;line-height:1.4;transition:filter .12s,box-shadow .12s}
button.cx-temp:hover{filter:brightness(1.18);box-shadow:0 0 0 3px var(--glass-07)}
.cx-temp-m{border-style:solid;border-color:currentColor}
.cx-temp-pin{margin-left:4px;font-size:9px;opacity:.9;vertical-align:1px}

/* the popover that hangs off a chip */
.tmp-menu{position:fixed;z-index:120;min-width:246px;background:var(--card,#151832);border:1px solid var(--bord2,#2c3154);
  border-radius:13px;padding:8px;box-shadow:0 18px 44px rgba(0,0,0,.5)}
.tmp-h{font-size:11px;font-weight:700;color:var(--mut-2);padding:3px 6px 7px}
.tmp-h b{color:var(--txt)}
.tmp-f{font-size:10.5px;color:var(--mut-2);padding:7px 6px 2px;margin-top:5px;border-top:1px solid var(--bord2,#2c3154)}
.tmp-o{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:9px;
  background:transparent;color:var(--txt);font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}
.tmp-o:hover{background:var(--glass-06)}
.tmp-o .tmp-e{font-size:15px;line-height:1}
.tmp-o .tmp-l{flex:1}
.tmp-o .tmp-l small{display:block;font-weight:500;font-size:10.5px;color:var(--mut-2);margin-top:1px}
.tmp-tick{font-size:12px;color:var(--ok)}
.tmp-o.on{background:var(--glass-07);border-color:var(--bord2,#2c3154)}
.tmp-o.tmp-Hot.on{border-color:rgba(251,113,133,.6);background:rgba(251,113,133,.14)}
.tmp-o.tmp-Warm.on{border-color:rgba(251,191,36,.6);background:rgba(251,191,36,.14)}
.tmp-o.tmp-Cold.on{border-color:rgba(148,163,184,.6);background:rgba(148,163,184,.14)}
.tmp-o.tmp-auto.on{border-color:rgba(125,211,252,.55);background:rgba(125,211,252,.12)}

/* the row of choices in the Add-lead form and the bulk dialog */
.tmp-pick,.tmp-bulk{display:flex;gap:7px;flex-wrap:wrap;margin-top:5px}
.tmp-pick .tmp-o,.tmp-bulk .tmp-o{width:auto;flex:1 1 96px;justify-content:center;text-align:center;
  border-color:var(--bord2,#2c3154);background:var(--glass)}
.tmp-pick .tmp-o .tmp-l,.tmp-bulk .tmp-o .tmp-l{flex:0 0 auto}
.tmp-bulk .tmp-o{padding:13px 10px;flex:1 1 110px}

/* build number beside the logo — one glance tells you whether you're on the newest copy */
.build-tag{margin-left:8px;padding:2px 7px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.03em;
  color:var(--mut-2);background:var(--glass-06);border:1px solid var(--bord2,#2c3154);vertical-align:middle;cursor:help}

/* ── My Invoices (sales feedback #6) ─────────────────────────────────────────────────────── */
.inv-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0 18px}
@media(max-width:560px){.inv-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}   /* v1.356 (portal audit 30 Sep) — four full-width tiles filled a whole phone screen before the first invoice */
.inv-tile{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:14px;text-align:left;
  background:var(--card,#151832);border:1px solid var(--bord2,#2c3154);font-family:inherit;cursor:pointer;transition:transform .12s,border-color .12s}
.inv-tile:hover{transform:translateY(-2px);border-color:#4b5480}
.inv-tile-ic{font-size:15px}
.inv-tile-v{font-size:22px;font-weight:800;color:var(--txt);letter-spacing:-.01em}
.inv-tile-l{font-size:12px;font-weight:700;color:var(--mut-2)}
.inv-tile-s{font-size:11px;color:var(--mut-2);opacity:.75;margin-top:2px}
.inv-tile-warn{border-color:rgba(251,191,36,.42)}.inv-tile-warn .inv-tile-v{color:var(--warn)}
.inv-tile-bad{border-color:rgba(251,113,133,.38)}.inv-tile-bad .inv-tile-v{color:var(--bad)}
.inv-no{font-family:ui-monospace,monospace;font-size:13px}
.inv-num{text-align:right}
.inv-tbl th.inv-num{text-align:right}
.inv-fin{display:inline-block;padding:3px 10px;border-radius:999px;border:1px solid;font-size:11.5px;font-weight:800;white-space:nowrap}

/* ── student password reset (sales feedback #8) ──────────────────────────────────────────── */
.pf-ab-key .pf-ab-ic{background:rgba(251,191,36,.16)}
.pw-warn{background:rgba(251,191,36,.11);border:1px solid rgba(251,191,36,.4);border-radius:10px;
  padding:10px 13px;font-size:12.5px;line-height:1.6;color:var(--txt)}
.pw-card{background:rgba(52,211,153,.08);border:1px solid rgba(52,211,153,.4);border-radius:12px;padding:6px 14px}
.pw-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0}
.pw-row+.pw-row{border-top:1px dashed rgba(52,211,153,.28)}
.pw-k{font-size:12px;font-weight:700;color:var(--mut-2)}
.pw-v{font-family:ui-monospace,monospace;font-size:16px;color:var(--txt);letter-spacing:.04em}
.pw-v.pw-big{font-size:21px;font-weight:800;color:var(--ok);letter-spacing:.08em}
.pw-note{font-size:11.5px;color:var(--mut-2);margin-top:9px}

/* ── GPA converter: NCTB / O-A Level scale switch (sales feedback #9) ─────────────────────── */
.gpa-tabs{display:flex;gap:8px;margin-top:14px}
.gpa-tab{display:flex;align-items:center;gap:7px;padding:9px 16px;border-radius:11px;font-family:inherit;font-size:13px;font-weight:700;
  color:var(--mut-2);background:var(--card,#151832);border:1px solid var(--bord2,#2c3154);cursor:pointer;transition:all .12s}
.gpa-tab:hover{color:var(--txt);border-color:#4b5480}
.gpa-tab.on{color:#0b1020;background:linear-gradient(135deg,var(--info),var(--viol));border-color:transparent}
.sf-card-hs{font-weight:500;font-size:11.5px;color:var(--mut-2);margin-left:8px}
.gpa-steps{display:flex;gap:10px;flex-wrap:wrap}
.gpa-st{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:11px;background:var(--glass);border:1px solid var(--bord2,#2c3154)}
.gpa-st-g{min-width:26px;text-align:center;font-weight:800;font-size:13px;padding:2px 6px;border-radius:6px}
.gpa-g-As{background:rgba(52,211,153,.18);color:var(--ok)}.gpa-g-A{background:rgba(52,211,153,.13);color:var(--ok-2)}
.gpa-g-B{background:rgba(125,211,252,.14);color:var(--info-2)}.gpa-g-C{background:rgba(251,191,36,.14);color:var(--warn)}
.gpa-g-D{background:rgba(251,146,60,.14);color:#fb923c}.gpa-g-E{background:rgba(251,113,133,.14);color:var(--bad)}
.gpa-st b{min-width:20px;text-align:center;font-size:15px;color:var(--txt)}
.gpa-st-b{width:24px;height:24px;border-radius:7px;border:1px solid var(--bord2,#2c3154);background:transparent;color:var(--txt);
  font-family:inherit;font-size:13px;line-height:1;cursor:pointer}
.gpa-st-b:hover{background:var(--glass3)}
.gpa-thresh{margin-top:13px;padding:11px 14px;border-radius:11px;font-size:13px;line-height:1.6;border:1px solid}
.gpa-thresh.ok{background:rgba(52,211,153,.09);border-color:rgba(52,211,153,.38)}
.gpa-thresh.no{background:rgba(251,191,36,.09);border-color:rgba(251,191,36,.4)}
.gpa-thresh-s{font-size:11.5px;color:var(--mut-2);margin-top:4px}
.gpa-al{min-width:78px}
.cx-deal-warn{color:var(--warn)}

/* demo-data card in Settings */
.demo-card{border-color:rgba(167,139,250,.42)}
.demo-warn{margin-top:10px;padding:9px 12px;border-radius:9px;background:rgba(251,113,133,.10);
  border:1px solid rgba(251,113,133,.36);font-size:12.5px;line-height:1.6;color:var(--txt)}

/* bulk bar: leads in the selection that this BDM does not own (audit fix, 2026-07-13) */
.lz-bulk-lock{margin-left:10px;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;
  color:var(--warn);background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.38)}

/* ── ADMIN → ANSWER KEYS (audit, 2026-07-13) ─────────────────────────────────────────────── */
.ak-note{margin-top:12px;padding:10px 14px;border-radius:10px;font-size:13px;
  background:rgba(167,139,250,.10);border:1px solid rgba(167,139,250,.40);color:var(--txt)}
.ak-sec{margin-top:16px}
.ak-sec-h{font-size:13px;font-weight:800;color:var(--txt);margin-bottom:6px}
.ak-sec-h span{font-weight:500;font-size:11.5px;color:var(--mut-2);margin-left:8px}
.ak-tbl td{vertical-align:middle}
.ak-type{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:700;
  background:var(--glass-06);color:var(--mut-2);border:1px solid var(--bord2,#2c3154)}
.ak-key{font-family:ui-monospace,monospace;font-size:12.5px;color:var(--info-2)}
.ak-badge{margin-left:8px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:700;
  color:var(--viol);background:rgba(167,139,250,.14);border:1px solid rgba(167,139,250,.42)}
.ak-over{background:rgba(167,139,250,.06)}
/* the editor: passage on the left, key on the right */
.ak-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;margin-top:10px}
.ak-pass{border:1px solid var(--bord2,#2c3154);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.ak-pass-h{padding:9px 13px;font-size:12px;font-weight:800;color:var(--mut-2);background:var(--glass);
  border-bottom:1px solid var(--bord2,#2c3154)}
.ak-pass-b{padding:13px;max-height:430px;overflow:auto;font-size:13px;line-height:1.68;color:var(--txt)}
.ak-pass-b p{margin:0 0 9px}
.ak-edit{display:flex;flex-direction:column}
.ak-qh{padding:11px 13px;border-radius:11px;background:var(--glass);border:1px solid var(--bord2,#2c3154)}
.ak-intro{font-size:11.5px;color:var(--mut-2);margin-bottom:6px}
.ak-stem{font-size:14px;font-weight:700;color:var(--txt);line-height:1.5}
.ak-choices{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ak-choices-col{flex-direction:column}
.ak-ch{padding:10px 14px;border-radius:10px;border:1px solid var(--bord2,#2c3154);background:var(--glass);
  color:var(--txt);font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}
.ak-ch:hover{background:var(--glass-08)}
.ak-ch.on{background:rgba(52,211,153,.16);border-color:rgba(52,211,153,.6);color:var(--ok)}
.ak-ch b{margin-right:7px;color:var(--mut-2)}
.ak-ch.on b{color:var(--ok)}
.ak-lab{display:block;margin-top:12px;font-size:12px;font-weight:700;color:var(--mut-2)}
.ak-hint{font-size:11.5px;color:var(--mut-2);margin-top:7px;line-height:1.55}
.ak-orig{margin-top:13px;padding:9px 12px;border-radius:9px;background:var(--glass);
  font-size:12px;color:var(--mut-2);border:1px solid var(--bord2,#2c3154)}
.ak-orig b{color:var(--txt);font-family:ui-monospace,monospace}
.ak-orig-s{margin-top:4px;font-size:11px;color:var(--viol)}
.ak-warn{margin-top:10px;padding:9px 12px;border-radius:9px;font-size:12px;line-height:1.55;
  background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.38);color:var(--txt)}
.ak-btns{display:flex;align-items:center;gap:8px;margin-top:14px}

/* ── PAPER VIEWER (v1.127) ───────────────────────────────────────────────────────────────────
   The read-only staff screen (app.js paperViewerView). The paper itself renders through the REAL
   exam renderer, so it must sit inside a `.player` ancestor — ~154 renderer-critical rules are
   scoped under `.player` and the markup renders NAKED without it.

   ⚠ `.player` is a FULLSCREEN TAKEOVER (position:fixed; inset:0; z-index:50). `.pv-inline` is the
   one override that neutralises exactly that, so the exam skin renders as a block inside the admin
   column instead of covering the app. It is safe because `.player` self-contains its own palette
   (--ink/--grey/--line + white background), so the paper reads as a white exam page with dark ink
   even inside the dark admin theme — which is the fidelity we want. None of the shell chrome
   (.p-head/.p-content/#p-foot) is reused, so their viewport-height flex rules never apply. */
.player.pv-inline{position:static;inset:auto;height:auto;max-height:none;z-index:auto;display:block;
  border:1px solid var(--bord2,#2c3154);border-radius:12px;padding:20px 24px;overflow:visible}
.pv-idbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:10px 14px;
  border-radius:11px;background:var(--glass);border:1px solid var(--bord2,#2c3154);font-size:12.5px;color:var(--mut-2)}
.pv-idbar b{font-family:ui-monospace,monospace;font-size:13.5px;color:var(--info-2)}
.pv-idbar span{color:var(--txt)}
.pv-idbar span.cx-mut{color:var(--mut-2)}
.pv-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.pv-tab{padding:8px 16px;border-radius:999px;border:1px solid var(--bord2,#2c3154);background:var(--glass);
  color:var(--mut-2);font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.pv-tab:hover{background:var(--glass-08);color:var(--txt)}
.pv-tab.on{background:rgba(96,165,250,.16);border-color:rgba(96,165,250,.6);color:var(--info-2)}
.pv-tog{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--mut-2);cursor:pointer}
.pv-part{margin-top:18px}
.pv-part-h{display:flex;align-items:baseline;gap:10px;font-size:14px;font-weight:800;color:var(--txt);
  padding:9px 13px;border-radius:10px 10px 0 0;background:var(--glass);border:1px solid var(--bord2,#2c3154);border-bottom:0}
.pv-part-h span{font-weight:500;font-size:11.5px;color:var(--mut-2);margin-left:auto}
.pv-instr{padding:9px 13px;font-size:12.5px;line-height:1.6;color:var(--mut-2);
  background:var(--glass-06);border:1px solid var(--bord2,#2c3154);border-top:0;border-bottom:0}
.pv-part .player.pv-inline{border-radius:0 0 12px 12px;border-top-width:1px}
.pv-passage{margin-bottom:22px;padding-bottom:18px;border-bottom:2px dashed #d9d9d9}
.pv-audio{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:10px 14px;
  border-radius:11px;background:var(--glass);border:1px solid var(--bord2,#2c3154);font-size:12.5px;color:var(--mut-2)}
.pv-audio audio{height:34px;max-width:360px}
.pv-note{margin-top:10px;padding:9px 12px;border-radius:9px;font-size:12px;line-height:1.55;
  background:var(--glass-06);border:1px solid var(--bord2,#2c3154);color:var(--mut-2)}
.pv-keys{margin-top:14px}
.pv-keys-h{font-size:12.5px;font-weight:800;color:var(--txt);margin-bottom:6px}
.pv-keys-h span{font-weight:500;font-size:11.5px;color:var(--mut-2);margin-left:8px}
/* The stem is deliberately NOT truncated here — a reviewer checking a long notes/summary stem is
   exactly who this screen is for, and the 90-char slice on the Answer Keys screen is what stopped
   them. So it wraps instead of clipping. */
.pv-keys .pv-stem{white-space:normal;line-height:1.5;font-size:12.5px}
/* speaking */
.pv-spk-frame{margin-top:12px;padding:14px 17px;border-radius:12px;background:var(--glass);
  border:1px solid var(--bord2,#2c3154)}
.pv-spk-h{font-size:12.5px;font-weight:800;color:var(--info-2);margin-bottom:8px}
.pv-spk-topic{margin-top:10px;font-size:13px;font-weight:800;color:var(--txt)}
.pv-spk-q{margin:6px 0 0;padding-left:20px;font-size:13px;line-height:1.7;color:var(--txt)}
.pv-spk-cue{border-color:rgba(96,165,250,.42);background:rgba(96,165,250,.07)}
.pv-spk-t{font-size:15px;font-weight:800;color:var(--txt);line-height:1.45}
.pv-spk-lead{margin-top:9px;font-size:12.5px;color:var(--mut-2)}
.pv-spk-pts{margin:5px 0 0;padding-left:20px;font-size:13.5px;line-height:1.75;color:var(--txt)}
.pv-spk-why{margin-top:9px;font-size:13.5px;font-weight:700;color:var(--txt)}
/* Recent Test Attempts chips (v1.127) */
.tag.att-prev{background:rgba(167,139,250,.14);border:1px solid rgba(167,139,250,.42);color:var(--viol)}
.tag.att-blank{background:rgba(251,191,36,.12);border:1px solid rgba(251,191,36,.38);color:var(--warn)}
@media print{
  /* the white exam page prints as a page, not as a bordered card inside a dark app */
  html.printing .player.pv-inline{border:0;padding:0;border-radius:0}
  html.printing .pv-part-h,html.printing .pv-instr{border:0;background:transparent}
  html.printing .pv-part{break-inside:auto}
  html.printing .pv-keys{break-inside:avoid}
}

/* ── PAIN-POINT SALES ENGINE ─────────────────────────────────────────────────────────────────
   Speed clock · Runway · one-tap capture. Capture must feel like 3 taps, not a form. */
.lc-speed{display:flex;gap:11px;align-items:flex-start;margin:10px 0;padding:11px 13px;border-radius:12px;
  border:1px solid rgba(96,165,250,.35);background:linear-gradient(180deg,rgba(96,165,250,.12),rgba(96,165,250,.05))}
.lc-speed.br{border-color:rgba(251,113,133,.5);background:linear-gradient(180deg,rgba(251,113,133,.14),rgba(251,113,133,.05));
  animation:lcpulse 2s ease-in-out infinite}
@keyframes lcpulse{0%,100%{box-shadow:0 0 0 0 rgba(251,113,133,0)}50%{box-shadow:0 0 0 4px rgba(251,113,133,.12)}}
.lc-speed-ic{font-size:19px;line-height:1.2}
.lc-speed-h{font-size:13.5px;font-weight:800;color:#e8eef7}
.lc-speed.br .lc-speed-h{color:var(--bad-3)}
.lc-speed-b{font-size:11.5px;line-height:1.55;color:var(--mut);margin-top:2px}

.lc-nba-why{font-size:11.5px;line-height:1.55;color:var(--mut);margin-top:4px}
.lc-nba-say{font-size:12px;line-height:1.55;color:#a7f3d0;margin-top:6px;padding:7px 10px;border-radius:9px;
  background:rgba(52,211,153,.09);border:1px solid rgba(52,211,153,.24);font-style:italic}

.lc-runway{margin:12px 0;padding:12px 13px;border-radius:13px;border:1px solid var(--bord);background:var(--glass-03)}
.lc-rw-h{font-size:12.5px;font-weight:800;color:#e8eef7;margin-bottom:9px}
.lc-rw-h span{font-weight:500;color:var(--mut);font-size:11px}
.lc-rw-in{display:flex;gap:10px;flex-wrap:wrap}
/* v639: each field grows to fill the row (min 132px) instead of flex-shrinking; the input
   fills its label. Fixes the "Runway textbox too narrow" clamp — .overlay .panel input's
   max-width:100% was capping a fixed-width input at the shrunk label width (~88px). */
.lc-rw-in label{display:flex;flex-direction:column;gap:4px;font-size:10.5px;font-weight:700;color:var(--mut);
  text-transform:uppercase;letter-spacing:.04em;flex:1 1 132px;min-width:132px}
.rw-in{width:100%;box-sizing:border-box;padding:7px 9px;border-radius:9px;border:1px solid var(--bord2);background:var(--glass-05);
  color:var(--txt);font-family:inherit;font-size:13px;font-weight:600}
.rw-in:focus{outline:none;border-color:#60a5fa;background:rgba(96,165,250,.10)}
.rw-in.rw-dt{width:100%}
.lc-rw-out{margin-top:10px;padding:9px 11px;border-radius:10px;border:1px solid var(--bord);background:var(--glass-03)}
.lc-rw-v{font-size:14px;font-weight:800}
.lc-rw-w{font-size:11.5px;line-height:1.6;color:var(--mut);margin-top:3px}
.lc-rw-cliff{margin-top:9px;padding:8px 11px;border-radius:10px;font-size:11.5px;line-height:1.55;color:var(--warn-2);
  background:rgba(251,191,36,.09);border:1px solid rgba(251,191,36,.3)}
.lc-rw-block{margin-top:9px;padding:8px 11px;border-radius:10px;font-size:11.5px;line-height:1.55;color:var(--bad-3);
  background:rgba(251,113,133,.09);border:1px solid rgba(251,113,133,.32)}

.lc-cap{margin:12px 0;padding:12px 13px;border-radius:13px;border:1px solid var(--bord);background:var(--glass-03)}
.lc-cap-h{font-size:12.5px;font-weight:800;color:#e8eef7;margin-bottom:10px}
.lc-cap-h span{font-weight:500;color:var(--mut);font-size:11px}
.lc-cap-row{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px}
.lc-cap-l{flex:0 0 78px;font-size:10.5px;font-weight:800;color:var(--mut);text-transform:uppercase;
  letter-spacing:.04em;padding-top:6px}
.lc-cap-chips{display:flex;gap:6px;flex-wrap:wrap;flex:1}
.cap-chip{padding:5px 10px;border-radius:99px;border:1px solid var(--bord2);background:var(--glass);
  color:var(--mut);font-family:inherit;font-size:11.5px;font-weight:600;cursor:pointer;transition:.13s}
.cap-chip:hover{background:var(--glass3);color:var(--txt)}
.cap-chip.on{background:rgba(96,165,250,.18);border-color:#60a5fa;color:#dbeafe}
.cap-chip.cap-fear.on{background:rgba(251,113,133,.18);border-color:var(--bad);color:#fecdd3}
.cap-chip.cap-obj.on{background:rgba(251,191,36,.16);border-color:var(--warn);color:#fde68a}
.cap-q{flex:1;padding:7px 10px;border-radius:9px;border:1px solid var(--bord2);background:var(--glass-05);
  color:var(--txt);font-family:inherit;font-size:12.5px}
.cap-q:focus{outline:none;border-color:#60a5fa;background:rgba(96,165,250,.08)}
.lc-cap-hint{margin:2px 0 10px 88px;padding:8px 11px;border-radius:10px;font-size:11.5px;line-height:1.6;
  color:var(--mut);background:var(--glass-03);border:1px solid var(--bord)}
.lc-cap-hint b{color:var(--ink-hi3)}
.lc-cap-hint.fomu{color:#fecdd3;background:rgba(251,113,133,.08);border-color:rgba(251,113,133,.28)}
.lc-cap-hint.fomu b{color:var(--bad-3)}
.lc-cap-hint.fomo{color:#bfdbfe;background:rgba(96,165,250,.08);border-color:rgba(96,165,250,.28)}
.lc-cap-hint.fomo b{color:var(--info-3)}
.lc-cap-hint.warn{color:var(--warn-2);background:rgba(251,191,36,.08);border-color:rgba(251,191,36,.28)}
.lc-cap-hint.warn b{color:#fde68a}
@media(max-width:640px){.lc-cap-l{flex-basis:100%;padding-top:0}.lc-cap-row{flex-direction:column;gap:5px}
  .lc-cap-hint{margin-left:0}}

/* speed queue + scorecard */
.sq-row{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:11px;border:1px solid var(--bord);
  background:var(--glass-03);margin-bottom:6px}
.sq-row.br{border-color:rgba(251,113,133,.4);background:rgba(251,113,133,.07)}
.sq-clock{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;min-width:72px}
.sc-bar{height:6px;border-radius:99px;background:var(--glass-08);overflow:hidden;margin-top:4px}
.sc-bar span{display:block;height:100%;border-radius:99px}

/* Speed queue inside the "Do next" action board — never-called leads, and the SLA badge. */
.ab-grp.cd{color:var(--mut-5)}
.ab-row.ab-cd{border-left-color:var(--mut-6);opacity:.9}
.ab-ava-cd{background:rgba(148,163,184,.16);color:var(--mut-7)}
.ab-chip-cd{background:rgba(148,163,184,.14);color:var(--mut-5)}
.ab-sla{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:99px;font-size:9.5px;
  font-weight:800;letter-spacing:.02em;background:rgba(251,113,133,.18);color:var(--bad);
  border:1px solid rgba(251,113,133,.35);text-transform:none}

/* Salary sheet — the "why does Net payable differ from the sheet?" affordance */
.ss-var{display:block;margin-top:3px;background:none;border:none;padding:0;cursor:pointer;
  font-family:inherit;font-size:10.5px;font-weight:700;text-align:right;width:100%;
  text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px}
.ss-var:hover{filter:brightness(1.25)}
.fin-pl-strong{font-weight:700}
.fin-pl-total{border-top:1px solid var(--bord);margin-top:4px;padding-top:6px;font-size:14px}

/* Six KPI cards must actually FIT. Shrink the value + icon so ৳32,59,600 stops overflowing. */
.fin-kpis.k4{grid-template-columns:repeat(4,minmax(0,1fr))}
.fin-kpis.k4 .mba-kpi{min-width:0}
.fin-kpis.k6 .mba-kpi{padding:12px 12px;gap:9px}
.fin-kpis.k6 .mba-kpi-ic{width:34px;height:34px;font-size:17px;border-radius:10px}
.fin-kpis.k6 .mba-kpi-v{font-size:17.5px;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis}
.fin-kpis.k6 .mba-kpi-l{font-size:10.5px;line-height:1.35}
.fin-kpis.k6 > div{overflow:hidden}
.fin-kpis.k6 .mba-kpi > div{min-width:0}
@media(max-width:1250px){ .fin-kpis.k6{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media(max-width:820px){ .fin-kpis.k6,.fin-kpis.k4{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* Finance: inline filter bar + amount-as-link (drilldowns Finance asked for) */
.fin-flt{display:inline-flex;gap:10px;align-items:center;flex-wrap:wrap;margin-right:auto}
.fin-flt label{display:inline-flex;gap:5px;align-items:center;font-size:11.5px;font-weight:700;color:var(--mut)}
.fin-flt .fin-in,.fin-flt .stu-sel{padding:6px 9px;font-size:12.5px;border-radius:8px}
.fin-lnk{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;font-weight:800;
  color:var(--info-2);cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.fin-lnk:hover{color:var(--info-4)}
.fin-amt-lnk{background:none;border:none;padding:0;font-family:inherit;font-size:inherit;font-weight:inherit;
  color:inherit;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.fin-amt-lnk:hover{filter:brightness(1.3)}

/* ── E&M Sales (v578) — daily sales sparkline ───────────────────────────────── */
.em-spark{display:flex;align-items:flex-end;gap:3px;height:120px;padding:6px 2px 0}
.em-bar{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}
.em-bar>span{font-size:9px;color:var(--mut);margin-top:4px;line-height:1}
.em-bar-f{width:100%;min-height:2px;border-radius:3px 3px 0 0;
  background:linear-gradient(180deg,var(--info-2),#3b82f6);transition:opacity .15s}
.em-bar:hover .em-bar-f{opacity:.75}

/* ── SOP v2 (v581): start-here steps + screen-by-screen guide ───────────────── */
.sop-start{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.sop-step{display:flex;gap:11px;align-items:flex-start;background:var(--card);border:1px solid var(--bord);
  border-radius:10px;padding:11px 13px;font-size:13.5px;line-height:1.5}
.sop-step-n{flex:none;width:22px;height:22px;border-radius:50%;background:rgb(var(--accent));color:#fff;
  font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
.sop-scr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.sop-scr{background:var(--card);border:1px solid var(--bord);border-radius:12px;padding:13px 15px}
.sop-scr-h{display:flex;align-items:center;gap:8px;font-size:14.5px;margin-bottom:6px}
.sop-scr-ic{font-size:16px}
.sop-scr-what{color:var(--mut);font-size:13px;line-height:1.5;margin-bottom:9px}
.sop-scr-do,.sop-scr-warn{font-size:12.8px;line-height:1.55;padding:8px 10px;border-radius:8px;margin-top:7px}
.sop-scr-do{background:rgba(52,211,153,.08);border-left:3px solid var(--ok)}
.sop-scr-warn{background:rgba(251,113,133,.08);border-left:3px solid var(--bad)}
.sop-scr-lbl{display:block;font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:var(--mut);margin-bottom:3px}

/* a11y L-2: 44px touch targets for tap-critical controls on small screens ONLY.
   Desktop sizes untouched. min-width/min-height beat width/height regardless of
   specificity, so the ex-mode exam chrome (fixed 32x26 by design) is explicitly
   reset back — the exam player UI must not change. */
@media (max-width: 760px){
  .dlg-x, .icon-btn, .pw-toggle{ min-width: 44px; min-height: 44px; }
  .pw-field input{ padding-right: 52px; } /* keep text clear of the enlarged eye toggle */
  .player.ex-mode .icon-btn{ min-width: 0; min-height: 0; } /* exam UI: intentional fixed size */
}

/* ============================================================================
   LIGHT THEME (Phase 1 rails, v624). Dark stays the default — every :root block
   above is untouched. Light re-declares TOKENS ONLY; html[data-theme="light"]
   outranks every :root declaration (including the :root{--mut:…} patch) so it
   wins regardless of source order. The attribute is set BEFORE this stylesheet
   loads by the inline anti-flash script in index.html, and toggled at runtime
   by setTheme() in app.js. All light values are AA-checked against #f3f5fa/#fff.
   Scopes that are light-on-purpose in BOTH themes — the dialog system
   (.overlay .panel + --ds-* tokens), the exam player (.player/.ex-page) and
   print artifacts — use literal colors, not these tokens, so this block cannot
   double-invert them. Phase 2 (v626) converted the ~920 recurring dark literals
   in this file to tokens (status ramp, glass ladder, muted-text greys, topbar/menu
   surfaces) — dark values are byte-identical by construction. ~1.9k hexes remain:
   one-off accents, deliberately-dark surfaces (.cmdpal, .notif-panel, .sf-side/
   .sf-appbar chrome, tooltips, .login-hero), brand + light-artifact colors, and
   ~530 inline styles in app.js — those are Phase 3. */
html[data-theme="light"]{
  color-scheme: light;
  --bg0: #f3f5fa; --bg1: #f3f5fa; --txt: #16213a; --mut: #51607a; --faint: #5d6b86; /* v631: #67748f measured 4.31 on #f3f5fa; slate at 5.37/4.92 */
  --glass: #ffffff; --glass2: rgba(16,24,42,.055);
  --glass3: rgba(16,24,42,.09); --glass4: rgba(16,24,42,.14);
  --bord: rgba(16,24,42,.14); --bord2: rgba(16,24,42,.30);
  --shadow: 0 8px 24px rgba(23,32,55,.10);
  --overlay: rgba(23,32,55,.38);
  --topbar: #ffffff; --menu: #ffffff; --side: rgba(255,255,255,.75);
  --ok: #047857; --ok-2: #047857;     /* v631: -2 tints are used AS TEXT (e.g. .rv-quote-inline, .sf-cloud);
  the old light -2 values measured 3.45–4.31 on #f3f5fa. All four now ≥5.0 on both backdrops;
  the dark-chrome rescope below re-pins the bright dark literals where the -2s sit on dark. */
  --warn: #a16207; --warn-2: #92400e;
  --bad: #be123c; --bad-2: #be123c;
  --info: #0369a1; --info-2: #075985;
  --viol: #6d28d9; --viol-2: #7c3aed;
  /* Phase 2 additions (v626) — light counterparts, AA-checked against #f3f5fa/#fff */
  --bad-3: #9f1239;
  --glass-03: rgba(16,24,42,.03); --glass-045: rgba(16,24,42,.045);
  --glass-05: rgba(16,24,42,.05); --glass-06: rgba(16,24,42,.055);
  --glass-07: rgba(16,24,42,.06); --glass-08: rgba(16,24,42,.075);
  --glass-10: rgba(16,24,42,.09); --glass-12: rgba(16,24,42,.11);
  --mut-2: #5c6c88; --mut-3: #5b688f; --mut-4: #556579;
  /* Phase 3 additions (v627) — AA-checked against both light backdrops (all >= 5.5:1) */
  --mut-5: #566378; --mut-6: #475569; --mut-7: #445269; --mut-9: #566089; --mut-10: #4a5878;
  --info-3: #1d4ed8; --info-4: #075985; --viol-3: #4338ca;
  /* v628 — lead-score panel ink + points column (AA on #fff / #f3f5fa) */
  --ink-2: #16213a; --aqua-2: #0f766e;
  /* v628 — brand gradients re-pointed dark for LIGHT mode. Gradient-clipped text (the
     "I/O" wordmark, every .h1 .grad page title, .stat .v values, .band-big, .tgt-overall,
     .sc-overall .scv) used --grad = cyan→violet, which is built for a dark backdrop and
     washes out to near-invisible on white. A dark, AA-legible gradient fixes every clipped
     heading at once. Buttons/avatars that use --grad as a BACKGROUND carry white text, so a
     darker gradient only raises their contrast. Dark chrome (finance sidebar, login-hero)
     restores the bright pair just below, so its clipped text stays visible. */
  --grad: linear-gradient(120deg, var(--info), var(--viol));
  --grad2: linear-gradient(120deg, var(--viol), var(--info));
  /* v629 — the accent TRIPLETS darkened for light. Bright cyan #22d3ee is used as TEXT in
     ~67 rgb(var(--accent)) + ~20 var(--cyan)/var(--vio) sites and measured 1.74:1 on white
     ("Mock Bookings"); violet-as-text (--pink/rgb(var(--accent2))) measured ~2.6:1. Deep
     cyan-700 / violet-700 pass AA as text on both light backdrops (5.36/4.91 & 7.10/6.51)
     while staying clear accents for fills/borders; rgba(var(--accent),.x) washes only get
     gently deeper. Dark chrome (sidebars, login-hero, the weather widget card) re-pins the
     bright pair just below, so the vivid brand survives on dark surfaces. DARK is untouched. */
  --accent: 14,116,144;   /* cyan-700 #0e7490 */
  --accent2: 109,40,217;  /* violet-700 #6d28d9 */
}
/* v628 light-mode legibility fixes ─────────────────────────────────────────────────
   1) Topbar is a white surface in light mode → show the light-inked logo SVG, not the
      gold dark-surface variant (the swap was previously scoped to .login-brandrow only). */
html[data-theme="light"] .topbar .lum-logo .lum-img-dark{ display: none; }
html[data-theme="light"] .topbar .lum-logo .lum-img-light{ display: block; }
/* 2) Deliberately-dark chrome keeps the BRIGHT brand gradient so its clipped text/brand
      stays legible on the dark surface even while the rest of the app is light. v629: the
      accent triplets are now darkened globally in light, so the BRIGHT originals are pinned
      here too (34,211,238 / 167,139,250 = the exact dark values), which also restores the
      bright pair inside the --grad/--grad2 lines below. (.tw-widget joined this set in
      v629 and LEFT it in v632 — every weather/date card is now a normal LIGHT card in
      light mode, with dark ink applied per TEXT CLASS further below.) */
html[data-theme="light"] .sf-side, html[data-theme="light"] .sf-appbar,
html[data-theme="light"] .fin-side, html[data-theme="light"] .fin-side-brand,
html[data-theme="light"] .fin-side-logo, html[data-theme="light"] .login-hero,
html[data-theme="light"] .lum-on-dark{
  --accent: 34,211,238; --accent2: 167,139,250;
  --grad: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent2)));
  --grad2: linear-gradient(120deg, rgb(var(--accent2)), rgb(var(--accent)));
  /* v630: near-white ink stays light on dark chrome — re-pin the exact dark literals */
  --ink:#f1f5f9;
  --ink-hi:#eaf4ff; --ink-hi2:#e8f3ff; --ink-hi3:#dbe4ee; --ink-hi4:#e8eefc;
  --ink-hi5:#f1f5ff; --ink-hi6:#e5ecff; --ink-hi7:#eaf6ff; --ink-hi8:#e8f4ff;
  --ink-hi9:#dbe4f0; --ink-hi10:#e7eefb;
  /* v631: the status -2 tints darkened globally in light are text ON this dark chrome
     (.sf-cloud etc.) — re-pin the exact dark literals here. */
  --ok-2:#6ee7b7; --bad-2:#fca5a5; --info-2:#7dd3fc;
}
/* 3) Two headings hardcode a bright gradient (not --grad) — darken them for light too. */
html[data-theme="light"] .soon-h{ background: linear-gradient(120deg, var(--info), var(--viol)); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .fx-big .fx-num{ background: linear-gradient(100deg, var(--info), var(--viol-3) 50%, var(--viol)); -webkit-background-clip: text; background-clip: text; }
/* 4) Dynamic status/stage pills (data-cpill) + status-coloured text (data-cink). ~41 emit sites
      in app.js paint `background:<c>1a;color:<c>` from JS colour maps (EM stages, HR leave,
      finance/marketing statuses…) — mid-tone hues that pass on dark but fail AA on white
      (amber "App Submitted", orange "Tuition Deposit", pink "Offer Received", cyan "Tele-sales"
      measured 1.6–2.6:1 live). DARK keeps the original inline styling untouched; these
      light-only rules darken the text (55% of the hue toward black ⇒ every map colour ≥4.70:1
      on its own pale pill and ≥5.09:1 on #fff) and firm up the wash + border. The !important
      is required to beat the inline `color:`; --pc carries the JS colour. */
html[data-theme="light"] [data-cpill]{
  color: color-mix(in srgb, var(--pc, #64748b) 55%, #000) !important;
  background: color-mix(in srgb, var(--pc, #64748b) 15%, #fff) !important;
  border-color: color-mix(in srgb, var(--pc, #64748b) 45%, #fff) !important;
}
html[data-theme="light"] [data-cink]{
  color: color-mix(in srgb, var(--pc, #64748b) 55%, #000) !important;
}
/* 5) KPI values washed out in light: `body .sf-kpi-v{color:#f2f6fc}` (~L5172) outranks the
      token rule and painted near-white values on white cards (the "Total files" defect on
      E&M Analytics). Same-family pale literals fixed alongside. Dark untouched. */
html[data-theme="light"] body .sf-kpi-v{ color: var(--txt); }
html[data-theme="light"] body .sf-kpi-l, html[data-theme="light"] body .fx-stat-l{ color: var(--mut); }
html[data-theme="light"] .ab-kpi-v{ color: var(--txt); }
html[data-theme="light"] body table.list th{ color: var(--mut); }
html[data-theme="light"] .row-sub{ color: var(--mut-6); } /* v629: --mut measured short on tinted/--glass2 rows; slate-600 clears 6.2:1 on every light backdrop */
html[data-theme="light"] body .fin-pl>span:first-child{ color: var(--mut); }
html[data-theme="light"] body .bt-note, html[data-theme="light"] .vl-meta{ color: var(--mut); }
html[data-theme="light"] .acd-p, html[data-theme="light"] .acd-ul{ color: var(--txt); }
html[data-theme="light"] body .cust-dsec{ color: var(--info); }
/* 6) Lead-card capture / runway / speed blocks + button hover: hardcoded near-white headings
      and pale chip inks (#e8eef7, #dbeafe, #fecdd3, #fde68a, #a7f3d0, #86efac, #e8f4ff) are
      invisible on white. Light re-inks them with the AA status tokens; dark untouched. */
html[data-theme="light"] .lc-speed-h, html[data-theme="light"] .lc-rw-h,
html[data-theme="light"] .lc-cap-h{ color: var(--txt); }
html[data-theme="light"] .lc-cap-hint b, html[data-theme="light"] .lc-cap-hint.fomu b,
html[data-theme="light"] .lc-cap-hint.fomo b, html[data-theme="light"] .lc-cap-hint.warn b{ color: var(--txt); }
html[data-theme="light"] .lc-cap-hint.fomu{ color: var(--bad); }
html[data-theme="light"] .lc-cap-hint.fomo{ color: var(--info); }
html[data-theme="light"] .lc-nba-say{ color: var(--ok); }
html[data-theme="light"] .cap-chip.on{ color: var(--info); }
html[data-theme="light"] .cap-chip.cap-fear.on{ color: var(--bad); }
html[data-theme="light"] .cap-chip.cap-obj.on{ color: var(--warn); }
html[data-theme="light"] body .btn:not(.primary):not(.danger-line):hover{ color: var(--txt); }
html[data-theme="light"] .btn.share-wa, html[data-theme="light"] a.btn[href^="https://wa.me"]{ color: var(--ok); }
/* v629 light-mode legibility fixes ─────────────────────────────────────────────────
   A) (v629's vivid-dark .tw-widget rescope REMOVED in v632 — the widget is a normal light
      card now; its text classes are re-inked dark in the v632 block at the end of file.) */
/* "Today's performance" heading sits on the pale dash-hero (NOT the widget) — white fails there. */
html[data-theme="light"] .th-perf-t{ color: var(--txt); }
/* C) Topbar: white bar reads as part of the page — separate it with a soft edge, and keep
      the badge ring matching the bar instead of the dark-mode #0a0f1c. Rain chip text
      measured 3.62:1 (#0284c7 on its pale wash) — deep --info + a firmer wash clears 5.2:1
      on the chip and 5.9:1 on white. (.role-chip already resolves to #1d4ed8 = 5.2:1 on its
      chip via the light --info-3; the search placeholder --mut = 6.4:1 — both pass as-is.) */
html[data-theme="light"] .topbar{ border-bottom-color: rgba(16,24,42,.10); box-shadow: 0 2px 10px rgba(23,32,55,.06); }
html[data-theme="light"] .tb-badge{ border-color: var(--topbar); }
html[data-theme="light"] .rain-chip{ color: var(--info); background: rgba(2,105,161,.10); border-color: rgba(2,105,161,.35); }
/* D) White glyph/initials on mid-tone inline backgrounds (.ret-idx-ic ⚠ 2.5:1, .rv-av /
      .srv-av / .ret-av initials 1.9–3.5:1 on the amber/sky/teal palette). The bg colour is
      inline JS, so light mode deepens it with a black overlay (background-image layers over
      the inline background-color; !important beats the inline shorthand's image:none) —
      white content then clears 5.1:1 on the worst colour (#f59e0b→#986207). Dark untouched. */
html[data-theme="light"] .ret-idx-ic, html[data-theme="light"] .ret-av,
html[data-theme="light"] .rv-av, html[data-theme="light"] .srv-av,
html[data-theme="light"] .msgr-av{
  background-image: linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)) !important;
}
/* D) Belt-and-braces for the data-cpill/data-cink ladder (e.g. .ret-idx-badge "Healthy"):
      the emit sites ARE tagged and the color-mix rules above yield ≥4.7:1, but an engine
      without color-mix() would drop those declarations and fall back to the raw inline
      pair (green-on-green ≈ 1:1). Guarantee a legible neutral pill there. */
@supports not (color: color-mix(in srgb, #000 50%, #fff)){
  html[data-theme="light"] [data-cpill]{ color: var(--txt) !important; background: var(--glass2) !important; border-color: var(--bord2) !important; }
  html[data-theme="light"] [data-cink]{ color: var(--txt) !important; }
}
/* v629 — body-level overlays (render OUTSIDE #app, so the earlier scoped audits missed them).
   The command palette and global-search results are hardcoded DARK cards — kept dark in light
   mode as Spotlight-style search overlays, with light-on-dark token values SCOPED in so every
   child is legible. (v632: .user-menu and .notif-panel LEFT this set by owner preference — they
   are WHITE cards in light mode now, styled in the v632 block at the end of the file.)
   DARK mode untouched (these are html[data-theme="light"] only). Contrast on the dark panels:
   --txt #f1f5f9 ≈15:1, --mut #cbd5e1 ≈11:1, --faint ≈6:1; hover-accent stays bright cyan. */
html[data-theme="light"] .cmdpal,
html[data-theme="light"] .gsearch-results{
  --txt:#f1f5f9; --mut:#cbd5e1; --faint:#94a3b8;
  --bord:rgba(255,255,255,.14); --bord2:rgba(255,255,255,.24);
  --glass:rgba(255,255,255,.06); --glass2:rgba(255,255,255,.08);
  --glass-05:rgba(255,255,255,.06); --glass-06:rgba(255,255,255,.09);
  --glass-07:rgba(255,255,255,.11); --glass-08:rgba(255,255,255,.13); --glass-10:rgba(255,255,255,.16);
  --accent:34,211,238; --accent2:167,139,250;   /* keep hover/brand accents bright on the dark panel */
  --info-2:#7dd3fc; --info-3:#93c5fd; --bad:#fb7185; --bad-3:#fda4af;
  /* v630: the panels' near-white text now rides the ink tokens — re-pin the dark literals */
  --ink:#f1f5f9;
  --ink-hi:#eaf4ff; --ink-hi2:#e8f3ff; --ink-hi3:#dbe4ee; --ink-hi4:#e8eefc;
  --ink-hi5:#f1f5ff; --ink-hi6:#e5ecff; --ink-hi7:#eaf6ff; --ink-hi8:#e8f4ff;
  --ink-hi9:#dbe4f0; --ink-hi10:#e7eefb;
  --ok-2:#6ee7b7; --bad-2:#fca5a5; --info-2:#7dd3fc; /* v631: -2 tints darkened in light — re-pin dark literals on the dark panels */
}
/* v630 — PORTAL-WIDE dark-first content fix ─────────────────────────────────────────
   A live body-level contrast scan (SalesCloud dashboard) proved the portal content cards
   were built dark-first: near-white text (#eaf4ff family, 1.02–1.16:1 on white) and pale
   slate-blue "muted" text (#9fb0d8 family, 2.0–3.3:1) never got re-themed. Fixes below are
   LIGHT-ONLY; dark resolves every token to its historical literal. */
/* 0) All high-ink tokens become dark ink in light. --ink (used as var(--ink,<fallback>) by
   the weather/date widgets, fin hero clock, E&M inputs) is defined here for the first time —
   dark keeps using the per-site fallbacks, untouched. */
html[data-theme="light"]{
  --ink: #16213a;
  --ink-hi: #16213a; --ink-hi2: #16213a; --ink-hi3: #16213a; --ink-hi4: #16213a;
  --ink-hi5: #16213a; --ink-hi6: #16213a; --ink-hi7: #16213a; --ink-hi8: #16213a;
  --ink-hi9: #16213a; --ink-hi10: #16213a;
}
/* A) (v630's vivid-dark .sh-wxbox/.sh-weathercard rescope REMOVED in v632 — there were
   MORE container variants than rescopes, so per-container darkening kept missing cards.
   Every weather/date card is a normal LIGHT card now; the text classes themselves are
   re-inked dark — container-independent — in the v632 block at the end of the file. */
/* B) Dark-first MUTED text on light content cards → the AA muted ink (#51607a: 5.6/5.1).
   Sales dashboard (.ab-quote 2.1:1, .ab-sub 3.3:1, .srv-quote 1.4:1), HR FutureX (.fx-*),
   Messenger AI (.msn-*), teacher lesson wizard + attendance (body .lw-*/.att-m), review
   primers (.rv-*), profile/leave panels, marketing strips, mock-builder hint. */
html[data-theme="light"] .ab-quote, html[data-theme="light"] .ab-sub,
html[data-theme="light"] .ab-pf-of, html[data-theme="light"] .ab-pf-proj,
html[data-theme="light"] .srv-quote, html[data-theme="light"] .ab-dl,
html[data-theme="light"] .fx-sent, html[data-theme="light"] .fx-act-t small,
html[data-theme="light"] .fxr-name, html[data-theme="light"] .fxr-grp-h,
html[data-theme="light"] .msn-gap-l, html[data-theme="light"] .msn-chip,
html[data-theme="light"] .msn-noexam, html[data-theme="light"] .lp-qa summary,
html[data-theme="light"] .lv-insight, html[data-theme="light"] .ivb-bchip,
html[data-theme="light"] .rv-primer p, html[data-theme="light"] .rv-syn,
html[data-theme="light"] .mkt-sug-t small, html[data-theme="light"] .mb-hint,
html[data-theme="light"] .cust-sell-pr .pr-old,
html[data-theme="light"] body .lw-sub, html[data-theme="light"] body .lw-none,
html[data-theme="light"] body .lw-date, html[data-theme="light"] body .lw-batch span,
html[data-theme="light"] body .att-m:not(.on):not(:hover){ color: var(--mut); } /* idle only — .on/hover states keep their own inks */
/* Uppercase card/section headers hardcoded pale (#9fb0d8, 2.2:1) across sf-cards, HR and
   marketing — includes the "Lead sources" card header from the live scan. */
html[data-theme="light"] body .sf-card-h, html[data-theme="light"] body .bento-h,
html[data-theme="light"] .fx2 .sf-card-h, html[data-theme="light"] .fx2 .bento-h,
html[data-theme="light"] .fx-moves-h, html[data-theme="light"] .hrw-t,
html[data-theme="light"] .prof-sec-h, html[data-theme="light"] .mkt-strip-h{ color: var(--mut); }
/* C) Near-white / white PRIMARY text one-offs on light surfaces → dark ink. */
html[data-theme="light"] .bc-grid .num-ov{ color: var(--txt); }               /* BD-calendar overall count 1.07:1 */
html[data-theme="light"] .bc-grid .flag{ color: var(--warn-2); }              /* amber count on pale amber wash */
html[data-theme="light"] .fx-sent b{ color: var(--txt); }                     /* white bolds in the HR hero sentence */
html[data-theme="light"] .fx-scen-b.on{ color: #fff; }                        /* v633: the L4438 restyle made the .on bg a vivid #2563eb→#7c3aed gradient (dark in light too) — white clears 5.2/7.1 on its stops; the v630 --txt ink was invisible on it */
html[data-theme="light"] .fx-act:hover .fx-act-go{ color: var(--txt); }       /* white hover arrow on pale glass */
html[data-theme="light"] .gsearch-input{ color: var(--txt); }                 /* white typing on the light dashboard */
html[data-theme="light"] .gsearch-input::placeholder{ color: rgba(22,33,58,.70); } /* v631: .5 measured 3.13 on the page tint */
html[data-theme="light"] ::selection{ color: currentColor; }                  /* white selection ink on pale cyan highlight */
html[data-theme="light"] .sop-table th{ background: #1f3a5f; }                /* solid header: its #e6eefc ink reads again (55%-alpha wash went pale) */
/* Status-blue text that measured sub-AA on the light hero/cards → deep --info (5.1:1). */
html[data-theme="light"] .ab-eyebrow, html[data-theme="light"] .ab-perf-mo,
html[data-theme="light"] .ab-sub-jump, html[data-theme="light"] .sh-dtline,
html[data-theme="light"] .srv-copy, html[data-theme="light"] .ab-grp.nw{ color: var(--info); }
/* D) White SVG icons emitted inline from app.js (fill="#fff") that sit on PALE buttons in
   light: the Do-next call icon (.nm-row-ic, glass bg) and the WhatsApp share icon on the
   transparent .share-wa button (its text is already re-inked --ok in light). CSS `fill`
   outranks the presentation attribute; dark untouched. */
html[data-theme="light"] .nm-row-ic svg{ fill: var(--txt); }
html[data-theme="light"] .btn.share-wa svg, html[data-theme="light"] a.btn[href^="https://wa.me"] svg{ fill: var(--ok); }
/* E) Residual pale STATUS-TINT text (mint/pink/amber/indigo ~1.1–1.7:1) on pale washes over
   light cards — re-inked with the AA status tokens. Grep-driven portal sweep; the enumerated
   dark surfaces (player, sf-side chrome, toasts/undobar, dark selects, SOP id chips) keep
   their literals. */
html[data-theme="light"] .note{ color: var(--warn-2); }                        /* amber note box */
html[data-theme="light"] .alertbar{ color: var(--info); }
html[data-theme="light"] .cx-st-New{ color: var(--info); }
html[data-theme="light"] .cx-st-Contacted{ color: var(--info); }
html[data-theme="light"] .cx-deal{ color: var(--ok); }                         /* lead-card deal box */
html[data-theme="light"] .sh-cell.r .v{ color: var(--info); }                  /* sales hero cell value 1.64:1 */
html[data-theme="light"] .sh-cell.r .l{ color: var(--mut); }
html[data-theme="light"] .sd-q.ok{ color: var(--ok); }
html[data-theme="light"] .note-danger, html[data-theme="light"] .th-sla-bar.overdue{ color: var(--bad); }
html[data-theme="light"] .t-rep{ color: var(--info); }
html[data-theme="light"] .ph-hint-dup b{ color: var(--bad); }                  /* duplicate-phone name 1.45:1 */
html[data-theme="light"] .fx-tm-g.gem{ color: var(--ok); }
html[data-theme="light"] .ab-q-t2 b{ color: var(--txt); }                      /* Do-next fresh-result row 1.11:1 */
html[data-theme="light"] .acx-badge{ color: var(--warn-2); }
html[data-theme="light"] body .btn.danger-line:hover{ color: var(--bad-3); }
html[data-theme="light"] .qt-go:hover{ color: var(--info); }
html[data-theme="light"] .ab-dl.soon{ color: var(--warn-2); }                  /* keeps deadline urgency over the .ab-dl --mut rule above */
html[data-theme="light"] .ap-note.ok{ color: var(--ok); }
html[data-theme="light"] .stu-hc-act.act-wa{ color: var(--ok); }
html[data-theme="light"] .stu-hc-chip:hover{ color: var(--ok); }
html[data-theme="light"] .mb-tab.on, html[data-theme="light"] .mb-upload{ color: var(--viol); }
html[data-theme="light"] .mkt-allclear{ color: var(--ok); }
html[data-theme="light"] .em-qual-o.on{ color: var(--ok); }
html[data-theme="light"] .remark-chip.mine{ color: var(--info); }
/* v631 — static-auditor sweep (harness/theme-audit.js). Every rule below is LIGHT-ONLY;
   the dark values are the untouched base rules. Grouped: residual near-white/pale text
   on light content cards, decorative tracks/glyphs that vanish on white, translucent
   bright backgrounds that wash out over the light page, and placeholder inks. */
/* rating stars: empty-star glyphs were rgba(255,255,255,.25) — invisible on white */
html[data-theme="light"] .stars .star{ color: rgba(16,24,42,.5); }           /* non-text glyph: ≥3:1, still reads "empty" next to the amber filled star */
html[data-theme="light"] .rv-st-e{ color: rgba(16,24,42,.5); }               /* empty review stars (both .rv-stars variants), same ≥3:1 state contrast */
html[data-theme="light"] .rv-quote{ color: var(--ok); }                      /* teacher-review quote: #c7f0dd 1.24:1 */
html[data-theme="light"] .rv-syn-pair{ color: var(--viol); }                 /* synonym chip: #d5c8f7 1.56:1 */
html[data-theme="light"] .ca.wa{ color: var(--ok); }                        /* WhatsApp contact chip: #3ddc84 1.78:1 */
html[data-theme="light"] .ram-chip{ color: var(--ok); }                      /* referral bonus chip: #5eead4 1.48:1 */
html[data-theme="light"] .qt-go{ color: var(--mut); }                        /* quick-tool arrow idle: #9cc0ff 1.84:1 (hover already --info) */
html[data-theme="light"] .remark-chip.mine:hover{ color: var(--info); }      /* hover ink was #bff1fb 1.22:1 */
/* v1.003 — the .bkx-slotwrap speaking-button grid is gone (the times are a select now), so its
   light-theme contrast fix went with it. */
html[data-theme="light"] .bkx-sslc{ color: var(--ok); }                      /* sandbox note: #a7f3d0 1.28:1 */
html[data-theme="light"] .buy-preset.on small{ color: var(--ok); }           /* mock-pack price: #a7f3d0 1.28:1 */
html[data-theme="light"] .fx-stat-l{ color: var(--mut); }                    /* HR FutureX stat label: #c7d2ea 1.52:1 (body-scoped variant already fixed) */
/* white .on text over ~50%-alpha gradients that wash out on the light page → opaque AA pair */
html[data-theme="light"] body .lz-seg.on, html[data-theme="light"] body .fin-tg.on{
  background: linear-gradient(135deg,#2563eb,#7c3aed); }
/* the primary button restyle (~L5166) uses 90%-alpha bright sky/indigo — near-white text measured
   <2.5:1 over the light page. Opaque deep pair; white/#f4faff text clears ≥5.9 on both stops. */
html[data-theme="light"] body .btn.primary{
  background: linear-gradient(135deg,var(--info),var(--viol-3));
  border-color: rgba(3,105,161,.55); }
/* placeholders: rgba(167,178,198,.55) composited 1.48:1 on white */
html[data-theme="light"] .stu-search::placeholder, html[data-theme="light"] .cx-f input::placeholder,
html[data-theme="light"] .cust-fi::placeholder, html[data-theme="light"] .field input::placeholder{
  color: rgba(22,33,58,.70); }
/* decorative ring tracks drawn white-alpha — invisible over white cards */
html[data-theme="light"] .mba-rt{ stroke: rgba(16,24,42,.12); }
html[data-theme="light"] .rv-ring-bg{ stroke: rgba(16,24,42,.12); }

/* v632 — DEFINITIVE light-mode pass (live-scan driven) ───────────────────────────────
   Strategy change for the recurring weather-card misses: stop darkening CONTAINERS
   (.tw-widget/.sh-wxbox/.sh-weathercard rescopes removed above) and re-ink the TEXT
   CLASSES themselves, so legibility no longer depends on which wrapper a card uses. */
/* 1) Weather / date / clock / mini-calendar text — dark ink, container-independent.
   Primary values (clock, temp, day, dates, city, calendar numbers) → --txt (#16213a,
   14.9/13.4 on #fff/#f3f5fa); secondary (cond, forecast lo/day, dow, loading) → --mut
   (#51607a, 6.36/5.83, and 4.56 on the .tw-widget's pale-blue gradient — its worst
   backdrop); the AM/PM accents use --info-2 (#075985: 7.56/6.93, 5.42 on the widget
   gradient — the darkened --accent #0e7490 measured 3.84 there, so info-2 it is);
   UV chip → --warn-2 (#92400e, 6.58 on its pale amber wash). */
html[data-theme="light"] .tw-time, html[data-theme="light"] .tw-day,
html[data-theme="light"] .tw-w-temp, html[data-theme="light"] .tw-w-city,
html[data-theme="light"] .tw-fc-t b, html[data-theme="light"] .tw-cal-title,
html[data-theme="light"] .tw-cal-nav, html[data-theme="light"] .tw-cal-grid > span,
html[data-theme="light"] .sh-dt-time, html[data-theme="light"] .sh-dt-day,
html[data-theme="light"] .sh-dt-date{ color: var(--txt); }
html[data-theme="light"] .tw-fulldate, html[data-theme="light"] .tw-wload,
html[data-theme="light"] .tw-w-top, html[data-theme="light"] .tw-w-cond,
html[data-theme="light"] .tw-fc-d, html[data-theme="light"] .tw-fc-lo,
html[data-theme="light"] .tw-cal-grid .tw-dow{ color: var(--mut); }
html[data-theme="light"] .tw-time .tw-ap, html[data-theme="light"] .sh-dt-ap{ color: var(--info-2); }
html[data-theme="light"] .tw-w-uv{ color: var(--warn-2); }
/* the selected/today calendar pill keeps --grad (dark in light) — white stays legible,
   re-asserted because the >span rule above is more specific than the base .tw-today */
html[data-theme="light"] .tw-cal-grid .tw-today{ color: #fff; }
html[data-theme="light"] .tw-cal-nav:hover{ color: #fff; } /* hover bg var(--cyan) = light accent #0e7490 (white 5.36) */
/* 2) BUTTON REGRESSION: on-accent DARK text (#04121f family) sat on backgrounds that the
   v628/629 accent-darkening turned DARK in light mode (--grad, var(--info), var(--cyan))
   → invisible primary CTAs ("+New Lead"). Rule: dark gradient/accent bg ⇒ WHITE text.
   White ≥4.5 on every light stop: --info #0369a1 5.86, --viol #6d28d9 7.06, --viol-3
   #4338ca 8.11, accent #0e7490 5.36. Dark mode untouched (bright grad + dark text). */
html[data-theme="light"] .sf-new, html[data-theme="light"] .sf-qbtn.primary,
html[data-theme="light"] .cx-chip.on, html[data-theme="light"] .sf-fu-av,
html[data-theme="light"] .bb-chip.on, html[data-theme="light"] .gpa-tab.on,
html[data-theme="light"] .ap-step.on .ap-step-dot{ color: #fff; }
/* inside the deliberately-dark sales sidebar the BRIGHT grad is re-pinned — keep the
   original dark ink there (the regression was only where the bg went dark) */
html[data-theme="light"] .sf-side .sf-new{ color: #04121f; }
/* CTAs whose light bg mixes a bright literal stop with a darkened token stop — replace
   the whole bg with the opaque deep pair so white text passes on BOTH stops */
html[data-theme="light"] .fin-cockpit-cta{ background: linear-gradient(135deg, var(--info), var(--viol)); color: #fff; }
html[data-theme="light"] .stu-handler-av{ background: linear-gradient(135deg, var(--info), var(--viol-3)); color: #fff; }
/* owner-hue initials disc: --own is a per-owner token (several are darkened status tokens
   in light, several are bright pastels) — 45%-hue + 55%-black guarantees white ≥6.13 on
   the worst pastel (#86efac; 55%-hue only reached 4.45) */
html[data-theme="light"] .cx-own .cx-own-i{ background: color-mix(in srgb, var(--own, #64748b) 45%, #000); color: #fff; }
/* dialog-panel on-grad controls: the panel restyle (~L3988) forces color:var(--txt)
   !important (near-white in dark, DARK ink in light) onto var(--grad) backgrounds —
   white them in light, matching importance */
html[data-theme="light"] .overlay .panel .qchip.active,
html[data-theme="light"] .overlay .panel .md2-act,
html[data-theme="light"] .overlay .panel .cx-chip.on,
html[data-theme="light"] .overlay .panel .cx-flow .cx-sp.on,
html[data-theme="light"] .overlay .panel .lc-next button[data-lnext].on,
html[data-theme="light"] .overlay .panel .lc-next button[data-lnext]:hover,
html[data-theme="light"] .overlay .panel .mb-fchip.on{ color: #fff !important; }
/* speaking-day presence chip: solid #059669 only gives white 3.7 — deepen one step */
html[data-theme="light"] .overlay .panel .ci-pres.on{ background: #047857 !important; color: #fff !important; }
/* 3) Quotes / ratings: amber rating figures + stars measured borderline on tinted cards —
   one step deeper (--warn-2 #92400e: 6.35/5.71). Quote bodies (.srv-quote/.ab-quote/
   .rv-quote) were already re-inked in the v630 sweep above. */
html[data-theme="light"] .srv-rate, html[data-theme="light"] .rv-st,
html[data-theme="light"] .stars .star.on, html[data-theme="light"] .ab-lb-rank{ color: var(--warn-2); }
/* 4) Dashboard faint text + the retention pill */
html[data-theme="light"] .mkt-hd-note, html[data-theme="light"] .mkt-hd-note span{ color: var(--mut); }
html[data-theme="light"] .ret-link{ color: var(--info) !important; } /* base is #60a5fa!important (1.9:1) */
/* direct override for the Dropout-Risk pills — belt-and-braces on top of the generic
   [data-cpill] ladder so no future higher-specificity rule can strand the raw inline
   green-on-green pair (the live scan's "Healthy" 1.0) */
html[data-theme="light"] .ret-idx-badge[data-cpill], html[data-theme="light"] .ret-pill[data-cpill]{
  color: color-mix(in srgb, var(--pc, #64748b) 55%, #000) !important;
  background: color-mix(in srgb, var(--pc, #64748b) 15%, #fff) !important;
}
/* 5) Profile dropdown + notification panel are WHITE cards in light mode (owner
   preference; removed from the dark-overlay rescope above, so --txt/--mut/--ink-hi
   resolve to their normal dark-ink light values). .cmdpal/.gsearch-results stay dark. */
html[data-theme="light"] .user-menu{
  background: #fff; border-color: var(--bord);
  box-shadow: 0 20px 52px rgba(23,32,55,.20);
}
html[data-theme="light"] .notif-panel{
  background: #fff; border-color: var(--bord);
  box-shadow: 0 22px 60px rgba(23,32,55,.20);
}
html[data-theme="light"] .notif-it{ color: var(--txt); }               /* base #eaf4ff-family via --ink-hi */
html[data-theme="light"] .notif-it{ border-top-color: var(--bord); }   /* white-alpha divider on white */

/* v633 — ADDENDUM v2 pass: dark modals → light, gradient/dark-translucent surfaces
   resolved, dark sub-page headers lightened (all LIGHT-ONLY; dark byte-identical).
   Driven by the upgraded harness/theme-audit.js (checks the light-resolved bg of
   every dialog/gradient/sticky surface and the text against its WORST gradient stop). */
/* 1) THE DIALOG SYSTEM IS A LIGHT SURFACE IN LIGHT MODE (§A). The dark redesign
   (L3900 #0e1526 + L4622 rgba(13,18,38,.88) glass) stays for dark; in light every
   dialog() modal — Change password/username, Switch account, New claim, Report an
   issue, the CRM/MigrateCloud lead-detail modal, the exam-slot day modal, student
   profile — becomes a white card. All inner text already rides var(--txt)/var(--mut)
   (dark ink in light); inputs keep their rgba(255,255,255,.05) washes (≈white on
   white) with the light var(--bord2) borders. */
html[data-theme="light"] .overlay{ background: var(--overlay); }
html[data-theme="light"] body .overlay .panel{
  background: #fff;
  border: 1px solid var(--bord);
  box-shadow: 0 24px 70px rgba(23,32,55,.22);
}
/* panel residuals that hardcode light-on-dark literals (audited on the white panel) */
html[data-theme="light"] .overlay .panel .note{ color: var(--warn-2) !important; }
html[data-theme="light"] .overlay .panel .md2-lab-cap{ color: var(--warn-2); }
html[data-theme="light"] .overlay .panel .md2-pendline{ color: var(--warn-2) !important; }
html[data-theme="light"] .overlay .panel .mb-pill.mb-pend{ color: var(--warn-2) !important; }
html[data-theme="light"] .overlay .panel .mc2-pend{ color: var(--warn-2) !important; }
html[data-theme="light"] .overlay .panel .md2-ok{ color: var(--ok) !important; border-color: rgba(4,120,87,.45) !important; }
html[data-theme="light"] .overlay .panel .md2-no{ color: var(--bad) !important; border-color: rgba(190,18,60,.4) !important; }
html[data-theme="light"] .overlay .panel .md2-seats.md2-full,
html[data-theme="light"] .overlay .panel .md2-slot-block .md2-seats{ color: var(--bad) !important; }
html[data-theme="light"] .overlay .panel .spk-score-note{ color: var(--mut); }
html[data-theme="light"] .overlay .panel .cx-deal,
html[data-theme="light"] .overlay .panel .cx-deal b,
html[data-theme="light"] .overlay .panel .cx-deal .g,
html[data-theme="light"] .overlay .panel .cx-deal .cx-deal-r,
html[data-theme="light"] .overlay .panel .lc-dealcard .cx-deal-r,
html[data-theme="light"] .overlay .panel .lc-dealcard b,
html[data-theme="light"] .overlay .panel .lc-dealcard .g,
html[data-theme="light"] .overlay .panel .cx-pd-paid,
html[data-theme="light"] .overlay .panel .cust-paid,
html[data-theme="light"] .overlay .panel .cx-earn .g,
html[data-theme="light"] .overlay .panel .lc-suggest-a{ color: var(--ok) !important; }
html[data-theme="light"] .overlay .panel .lc-suggest-w,
html[data-theme="light"] .overlay .panel .lc-suggest-facts .lsf-due{ color: var(--warn-2) !important; }
html[data-theme="light"] .overlay .panel .lc-ro-banner{ color: var(--warn-2) !important; }
/* the dialog primary CTA sits on var(--grad) (dark in light) while the panel restyle
   forces color:var(--txt)!important → invisible "Update password"/"Save" buttons.
   White clears ≥5.8 on both light stops (--info #0369a1 / --viol #6d28d9). */
html[data-theme="light"] .overlay .panel .btn.primary{ color: #fff !important; }
/* v637 — DISABLED PRIMARY CTAs were invisible in light mode. The enabled primary button
   is white text on a DARK gradient (legible); but .btn:disabled{opacity:.45} washed that
   gradient to near-white AND faded the white text to ~45% → an unreadable ghost button
   ("Submit claim", "Submit", "Update password", "Request change", "Generate invoice",
   "Log activity" — every CTA whose form is still empty). Give the disabled state a solid
   light-grey fill with muted-but-readable ink instead of a faded dark gradient. */
/* ROOT CAUSE (found via live DOM inspect): a dark-mode glass rule
   `.overlay .panel .btn … {background:rgba(255,255,255,.05)!important}` also matches
   `.btn.primary`. Its !important background shorthand KILLS the dark gradient, so in
   light mode every ENABLED dialog CTA became white text (rule above) on a near-white
   translucent fill over the white panel = invisible ("Submit request", "Update password",
   "Submit claim", "Generate invoice", "Log activity"). Restore the dark gradient with a
   higher-specificity !important rule; white text then reads ≥5.8:1. */
html[data-theme="light"] .overlay .panel .btn.primary:not(:disabled):not([disabled]){
  background: linear-gradient(135deg,var(--info),var(--viol-3)) !important;
  color: #fff !important;
  border: 0 !important;
}
/* DISABLED dialog CTAs (empty form) get a solid light-grey fill with readable ink instead
   of the .45-opacity wash that turned them into ghosts. */
html[data-theme="light"] .btn.primary:disabled,
html[data-theme="light"] .btn.primary[disabled],
html[data-theme="light"] .overlay .panel .btn.primary:disabled,
html[data-theme="light"] .overlay .panel .btn.primary[disabled]{
  opacity: 1 !important;
  background: #e7ebf2 !important;
  color: #5a6577 !important;          /* 4.8:1 on #e7ebf2 — clearly readable, still reads "off" */
  border: 1px solid #d5dbe6 !important;
  box-shadow: none !important;
}
/* 2) FINANCE/HR COCKPIT (§B): the hero's right card was rgba(8,12,30,.42) — a mid-dark
   glass over the light page where the thmc-darkened verdict ink failed. It becomes a
   white card; the ring's inner disc (#0b1226) and the Messenger ring follow. Faint
   hero/action/stat sub-text darkens; the blurred colour orbs calm down so card
   backdrops stay predictably light. */
html[data-theme="light"] .fx-hero-r{ background: #fff; border-color: var(--bord); }
html[data-theme="light"] .fx-ring-in{ background: #fff; }
html[data-theme="light"] .msn-ring-in{ background: #fff; }
html[data-theme="light"] .fx-sent{ color: var(--txt); }
html[data-theme="light"] .fx-act-t small, html[data-theme="light"] .fx-act-t em,
html[data-theme="light"] .fx-stat-sub, html[data-theme="light"] .fx-eyebrow{ color: var(--mut-6); }
html[data-theme="light"] .fx-orbs i{ opacity: .16; }
/* 3) DARK SUB-PAGE HEADERS (§C): the My Leave / Time-Off full-page bar hid its back
   button (--txt ink on rgba(10,15,28,.92)). Light bar, visible controls. The sticky
   accounts-matrix column header had the same disease. */
html[data-theme="light"] .lp-bar{ background: rgba(255,255,255,.92); border-bottom-color: var(--bord); }
html[data-theme="light"] table.acc-table thead th{ background: #f3f5fa !important; }
/* 4) remaining hardcoded dark widgets → light surfaces (carousel arrows, native
   select option popups, Messenger phase chips / student-migration step dots whose
   half-bright half-dark gradient defeats any single ink). */
html[data-theme="light"] .car-btn{ background: #fff; border: 1px solid var(--bord); }
html[data-theme="light"] .car-btn:hover{ color: #fff; }               /* hover bg is var(--grad), dark in light */
/* native select popups were forced dark (#1b1d33/#eef2f8 !important) for every select —
   in light they become white with dark ink (matching the light selects around them) */
html[data-theme="light"] select option, html[data-theme="light"] select optgroup,
html[data-theme="light"] .overlay .panel select option, html[data-theme="light"] .overlay .panel select optgroup{
  background: #fff !important; color: var(--txt) !important; }
html[data-theme="light"] select option:checked, html[data-theme="light"] .overlay .panel select option:checked{
  background: #e8f6fe !important; color: var(--txt) !important; }
html[data-theme="light"] select option:disabled, html[data-theme="light"] .overlay .panel select option:disabled{
  color: var(--mut) !important; }
/* dialog-panel content that was re-inked PALE for the dark panel (lead modal call/WhatsApp/
   email buttons, Hot/Warm/Cold chip, leave warning, requested-state button) → AA status inks */
html[data-theme="light"] .overlay .panel .lv-warn{ color: var(--warn-2); }
html[data-theme="light"] .overlay .panel .cx-cbtn-call .cx-cbtn-1l,
html[data-theme="light"] .overlay .panel .cx-cbtn-call .cx-cbtn-1l small{ color: var(--info) !important; }
html[data-theme="light"] .overlay .panel .cx-cbtn-wa .cx-cbtn-1l,
html[data-theme="light"] .overlay .panel .cx-cbtn-wa .cx-cbtn-1l small{ color: var(--ok) !important; }
html[data-theme="light"] .overlay .panel .cx-cbtn-email .cx-cbtn-1l,
html[data-theme="light"] .overlay .panel .cx-cbtn-email .cx-cbtn-1l small{ color: var(--viol) !important; }
html[data-theme="light"] .overlay .panel .cx-name-row .cx-temp.cx-Hot{ color: var(--bad) !important; }
html[data-theme="light"] .overlay .panel .cx-name-row .cx-temp.cx-Warm{ color: var(--warn-2) !important; }
html[data-theme="light"] .overlay .panel .cx-name-row .cx-temp.cx-Cold{ color: var(--info) !important; }
html[data-theme="light"] .overlay .panel .btn.sqx-req[disabled],
html[data-theme="light"] .btn.sqx-req[disabled]{ color: var(--ok) !important; }
/* stage pill / email action keep their solid brand backgrounds — white ink (4.6/6.3:1) */
html[data-theme="light"] .overlay .panel .cx-sp.on{ color: #fff !important; }
html[data-theme="light"] .overlay .panel .cx-act.email{ background: #4f46e5 !important; color: #fff !important; }
html[data-theme="light"] .msgr-phase-b.on,
html[data-theme="light"] .smig-step.now .smig-dot{ background: linear-gradient(135deg, var(--info), var(--viol)); color: #fff; }
html[data-theme="light"] .demo-accounts .crm-login-grid{ color: var(--info) !important; }
/* 5) greeting/quote lines (§D): one step darker so they hold on gradient/orb heroes */
html[data-theme="light"] .ab-quote, html[data-theme="light"] .dash-tagline{ color: var(--mut-6); }
html[data-theme="light"] .user-menu .switch .slider{ background: #fff; border-color: var(--bord2); box-shadow: 0 2px 10px rgba(23,32,55,.12); }

/* ═══════════ v636 PERFORMANCE — kill backdrop-filter on high-count repeated elements ═══════════
   Every backdrop-filter forces its own compositing layer + a re-blur of everything behind it on
   each paint. On views with hundreds of cards/chips/buttons this was the dominant paint cost.
   ONLY the blur-of-content-behind is removed — every translucent background COLOR is untouched,
   so both themes render the same hues (the blur is barely visible on these near-opaque surfaces).
   KEPT (large, transient, one-per-screen, where blur is cheap polish): .overlay + .overlay .panel,
   .cmdpal-ov, .lp-bar, .login-card, .user-menu, .um-scrim, .toast, .under-bar. */
body .btn, body .tag, body .chip, body .lz-seg, body .fin-tg,
.card, body .card, .sf-card, body .sf-card, .fx2 .bento, .fx2 .sf-card,
body .kpi, body .stat, body .mba-kpi, body .sh-wxbox, body .ab-perf, body .ab-queue,
body .spk-card, body .sg-booking, body .sg-today, body .att-row, body .cust-card,
body .lead-card, body .fin-bank-card,
.sf-kpi, .stu-glass .sf-kpi, .fx-hero, .fx-stat, .fx-card, .fx-act,
.fx2 .fin-qa-b, .fx2 .fin-ratio, .fxr, .stg, .slot,
.stu-glass .card, .stu-glass .fin-side, .stu-glass .stu-hc-line, .stu-glass .stu-hc-chip,
.stu-glass .buy-preset, .stu-glass .stu-hc-act, .stu-glass .slot, .stu-glass .fin-sitem.on,
body .stu-search, body .stu-sel, body .fin-in, body .field input, body .field select,
body textarea.stu-search,
body .sidenav, body .side, .fin-side{
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* v640 — the v632 muted-text override block was being DROPPED by the CSS parser (verified
   via live styleSheets enumeration: the rule object simply wasn't present), so .srv-quote
   (the sales-dashboard review quotes) and its siblings kept the dark-mode pale ink
   (#cdd9e5 ≈ 1.4:1) and were illegible on white. .fx-sent / .ab-quote were separately
   patched later; the rest were orphaned. Re-declared here at EOF — a location that parses —
   so the AA muted ink (#51607a ≈ 6.4:1) actually lands. */
html[data-theme="light"] .srv-quote,
html[data-theme="light"] .ab-dl,
html[data-theme="light"] .ab-pf-of, html[data-theme="light"] .ab-pf-proj,
html[data-theme="light"] .fxr-name, html[data-theme="light"] .fxr-grp-h,
html[data-theme="light"] .msn-gap-l, html[data-theme="light"] .msn-chip,
html[data-theme="light"] .msn-noexam, html[data-theme="light"] .lp-qa summary,
html[data-theme="light"] .lv-insight, html[data-theme="light"] .ivb-bchip,
html[data-theme="light"] .rv-primer p, html[data-theme="light"] .rv-syn,
html[data-theme="light"] .mkt-sug-t small, html[data-theme="light"] .mb-hint,
html[data-theme="light"] .cust-sell-pr .pr-old,
html[data-theme="light"] body .lw-sub, html[data-theme="light"] body .lw-none,
html[data-theme="light"] body .lw-date, html[data-theme="light"] body .lw-batch span,
html[data-theme="light"] body .att-m:not(.on):not(:hover){ color: var(--mut) !important; }

/* ===== v654 · Business Summary (Chairman) + Chairman's Capital ==============================
   Built on theme VARIABLES only, so dark and light both resolve from the existing rails; the
   handful of rgba accents get explicit light overrides at the bottom of this block. */
.bs-seg{ display:inline-flex; background:var(--glass); border:1px solid var(--bord); border-radius:10px; overflow:hidden; }
.bs-seg button{ border:0; background:transparent; padding:7px 14px; font:600 12.5px var(--font-ui); color:var(--mut); cursor:pointer; }
.bs-seg button.on{ background:var(--grad); color:#04101f; }
.bs-verdict{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; padding:20px 22px;
  background:linear-gradient(120deg, rgba(var(--accent),.10), rgba(var(--accent2),.10));
  border:1px solid var(--bord); border-radius:18px; }
.bs-verdict .bs-big{ font:800 21px/1.25 var(--font-display); letter-spacing:-.02em; color:var(--txt); }
.bs-kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.bs-kpi{ background:var(--glass); border:1px solid var(--bord); border-radius:14px; padding:16px 18px; }
.bs-kpi .lbl{ font-size:12px; color:var(--mut); font-weight:600; }
.bs-kpi .val{ font:800 24px/1.2 var(--font-display); letter-spacing:-.02em; margin:6px 0 2px; color:var(--txt); }
.bs-kpi .sub{ font-size:12px; color:var(--mut); }
.bs-grid2{ display:grid; grid-template-columns:1.5fr 1fr; gap:14px; }
.bs-bars{ display:flex; align-items:flex-end; gap:6px; height:150px; }
.bs-bars .col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; justify-content:flex-end; height:100%; }
.bs-bars .bar{ width:70%; border-radius:6px 6px 3px 3px; min-height:2px;
  background:linear-gradient(180deg, rgb(var(--accent)), rgba(var(--accent),.55)); }
.bs-bars .mlbl{ font-size:10px; color:var(--mut); }
.bs-crow{ display:flex; align-items:center; gap:10px; margin:12px 0; }
.bs-crow .cname{ width:96px; font-size:12.5px; color:var(--mut); }
.bs-crow .track{ flex:1; height:14px; background:var(--glass2); border-radius:8px; overflow:hidden; }
.bs-crow .fill{ height:100%; border-radius:8px; background:var(--grad); }
.bs-crow .camt{ width:90px; text-align:right; font-weight:700; font-size:13px; color:var(--txt); }
.bs-stat{ padding:14px 16px; border-radius:14px; background:var(--glass); border:1px solid var(--bord); }
.bs-stat.g{ background:rgba(251,191,36,.10); border-color:rgba(251,191,36,.28); }
.bs-stat .k{ font-size:12px; color:var(--mut); font-weight:600; }
.bs-stat .v{ font:800 20px/1.2 var(--font-display); margin-top:3px; color:var(--txt); }
.bs-stat .n{ font-size:11.5px; color:var(--mut); margin-top:2px; }
.bs-tl .item{ display:flex; gap:12px; padding:11px 0; border-top:1px solid var(--bord); }
.bs-tl .item:first-child{ border-top:0; }
.bs-tl .when{ width:78px; font-size:12px; color:var(--mut); flex-shrink:0; }
.bs-tl .amt{ font-weight:800; font-size:14px; color:var(--txt); }
.bs-tl .desc{ font-size:12px; color:var(--mut); }
.bs-tag{ font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:6px; }
.bs-tag.rep{ background:rgba(52,211,153,.14); color:var(--ok); }
.bs-tag.out{ background:rgba(251,191,36,.14); color:var(--warn); }
.bs-req{ border-left:4px solid var(--warn); }
.bs-req .amt{ font:800 28px/1.1 var(--font-display); color:var(--warn); }
.bs-todo .t{ display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--bord); }
.bs-todo .t:first-child{ border-top:0; }
.bs-todo .num{ width:26px; height:26px; border-radius:8px; background:var(--grad); color:#04101f; font-size:13px;
  font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.bs-pill{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:11.5px; font-weight:700; }
.bs-pill.ok{ background:rgba(52,211,153,.14); color:var(--ok); }
.bs-pill.warn{ background:rgba(251,191,36,.14); color:var(--warn); }
.bs-pill.bad{ background:rgba(251,113,133,.14); color:var(--bad); }
@media(max-width:900px){ .bs-kpis{ grid-template-columns:repeat(2,1fr); } .bs-grid2{ grid-template-columns:1fr !important; } }
/* light-theme overrides — the rgba accent chips need darker ink on a white page */
html[data-theme="light"] .bs-tag.rep{ color:#047857; }
html[data-theme="light"] .bs-tag.out{ color:#a16207; }
html[data-theme="light"] .bs-pill.ok{ color:#047857; }
html[data-theme="light"] .bs-pill.warn{ color:#a16207; }
html[data-theme="light"] .bs-pill.bad{ color:#be123c; }
html[data-theme="light"] .bs-seg button.on{ color:#fff; }
html[data-theme="light"] .bs-todo .num{ color:#fff; }
html[data-theme="light"] .bs-stat.g{ background:rgba(251,191,36,.14); }

/* ============ v657 — gamification polish: streak ring · weekly chart · nudge ============ */
/* streak ring: one lap = 7 days; ring fill animates dashoffset full→value on mount
   (600ms, 150ms delay — "backwards" holds it empty through the delay). Keyframe start
   value = circumference for r=26 (163.4) — keep in sync with stuStreakRing(). */
.stk-ring{display:flex;flex-direction:column;align-items:center;gap:2px;flex:none}
.stk-ring svg{width:72px;height:72px;overflow:visible}
.stk-ring-fg{animation:stkFill .6s cubic-bezier(.22,1,.36,1) .15s backwards}
@keyframes stkFill{from{stroke-dashoffset:163.4}}
.stk-l{font:600 9.5px/1.2 'Inter',sans-serif;letter-spacing:.5px;text-transform:uppercase;color:var(--mut-3)}
/* flame: one earned-moment overshoot pulse after the ring settles (milestones only) */
.stk-flame{transform-box:fill-box;transform-origin:center}
.stk-milestone .stk-flame{animation:flamePulse .45s cubic-bezier(.34,1.56,.64,1) .8s 1 both}
@keyframes flamePulse{0%{transform:scale(1)}50%{transform:scale(1.15)}100%{transform:scale(1)}}
/* milestone glow tiers — 7 / 14 / 30 days */
.stk-milestone .stk-ring-fg{filter:drop-shadow(0 0 5px rgba(251,146,60,.65))}
.stk-m14 .stk-ring-fg{filter:drop-shadow(0 0 7px rgba(251,146,60,.8))}
.stk-m30 .stk-ring-fg{filter:drop-shadow(0 0 9px rgba(245,158,11,.95))}
/* weekly practice chart: bars grow from the baseline, 60ms stagger; today pulses subtly */
.wk-chart{width:100%}
.wk-bar{transform-box:fill-box;transform-origin:center bottom;animation:wkGrow .42s cubic-bezier(.22,1,.36,1) backwards}
@keyframes wkGrow{from{transform:scaleY(0)}}
.wk-bar-today{animation:wkGrow .42s cubic-bezier(.22,1,.36,1) backwards,wkPulse 2.4s ease-in-out 1.2s infinite}
@keyframes wkPulse{0%,100%{opacity:1}50%{opacity:.74}}
/* daily nudge chip — invitation blue, never alarm red */
.nudge-chip{background:rgba(56,189,248,.10);border-color:rgba(56,189,248,.30);color:#7dd3fc}
/* light-theme overrides */
html[data-theme="light"] .nudge-chip{background:rgba(2,132,199,.08);border-color:rgba(2,132,199,.25);color:#0369a1}
html[data-theme="light"] .stk-milestone .stk-ring-fg{filter:drop-shadow(0 0 5px rgba(234,88,12,.5))}
html[data-theme="light"] .stk-m14 .stk-ring-fg{filter:drop-shadow(0 0 7px rgba(234,88,12,.6))}
html[data-theme="light"] .stk-m30 .stk-ring-fg{filter:drop-shadow(0 0 9px rgba(217,119,6,.7))}
/* reduced motion — ring/bars snap to final attribute values, flame static, pulse off
   (also listed in the shared reduced-motion block further up) */
@media(prefers-reduced-motion:reduce){
  .stk-ring-fg,.stk-flame,.wk-bar,.wk-bar-today{animation:none!important}
  .stk-milestone .stk-ring-fg{filter:drop-shadow(0 0 4px rgba(251,146,60,.5))}
}

/* ============ v659 — Phase G2: Daily Drill & Leaderboard ============ */
/* the hero card: live dot + countdown chip; amber "event" accent, invitation not alarm */
.dd-card{border-color:rgba(251,191,36,.32)}
.dd-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dd-eyebrow{font:800 11px/1 'Inter',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#fbbf24}
.dd-live-dot{width:8px;height:8px;border-radius:50%;background:#34d399;flex:none;animation:ddTick 1.6s ease-out infinite}
@keyframes ddTick{0%{box-shadow:0 0 0 0 rgba(52,211,153,.45)}70%{box-shadow:0 0 0 7px rgba(52,211,153,0)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}}
.dd-count{margin-left:auto;font:700 12px/1 'Inter',sans-serif;color:#7dd3fc;background:rgba(56,189,248,.10);border:1px solid rgba(56,189,248,.30);border-radius:999px;padding:4px 10px;white-space:nowrap}
.dd-title{font-size:19px;font-weight:800;margin:8px 0 2px}
.dd-sub{color:var(--mut);font-size:12.5px;margin-bottom:10px}
.dd-rank{font-size:15px;font-weight:700;margin:4px 0 10px}
.dd-actions{display:flex;gap:8px;flex-wrap:wrap}
/* slim banner atop the Question-wise view */
.dd-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid rgba(251,191,36,.30);background:rgba(251,191,36,.07);border-radius:12px;padding:10px 14px;margin:10px 0 14px;font-size:13px}
.dd-banner .dd-count{margin-left:0}
/* leaderboard rows: stagger-in (delays set inline, capped at 8 steps), own row pulses ONCE */
.lb-tabs{display:flex;gap:8px;align-items:center;margin:6px 0 4px}
.lb-tabs .dd-count{margin-left:auto}
.lb-list{display:flex;flex-direction:column;gap:6px;margin:10px 0;max-height:46vh;overflow:auto;padding:2px}
.lb-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--bord);border-radius:10px;animation:lbIn .35s cubic-bezier(.22,1,.36,1) backwards}
@keyframes lbIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.lb-rank{width:38px;font-weight:800;flex:none}
.lb-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-yq{color:#60a5fa}
.lb-band{font-weight:800;color:#34d399;white-space:nowrap}
.lb-time{color:var(--mut);font-size:12px;width:64px;text-align:right;flex:none}
.lb-you{border-color:rgba(96,165,250,.55);background:rgba(96,165,250,.10);animation:lbIn .35s cubic-bezier(.22,1,.36,1) backwards,lbPulse 1.1s ease-out .5s 1}
@keyframes lbPulse{0%{box-shadow:0 0 0 0 rgba(96,165,250,.45)}100%{box-shadow:0 0 0 10px rgba(96,165,250,0)}}
.lb-anon{color:var(--mut);font-style:italic}
.lb-anon-tog{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--mut);margin-top:8px;cursor:pointer}
.lb-foot{font-size:11.5px;color:var(--mut);margin-top:8px;border-top:1px solid var(--bord);padding-top:8px}
/* light-theme overrides */
html[data-theme="light"] .dd-eyebrow{color:#b45309}
html[data-theme="light"] .dd-card{border-color:rgba(217,119,6,.30)}
html[data-theme="light"] .dd-count{background:rgba(2,132,199,.08);border-color:rgba(2,132,199,.25);color:#0369a1}
html[data-theme="light"] .dd-banner{background:rgba(217,119,6,.06);border-color:rgba(217,119,6,.28)}
html[data-theme="light"] .lb-band{color:#047857}
html[data-theme="light"] .lb-yq{color:#1d4ed8}
html[data-theme="light"] .lb-you{background:rgba(37,99,235,.08);border-color:rgba(37,99,235,.40)}
/* reduced motion — dot static, rows appear in place, no pulse */
@media(prefers-reduced-motion:reduce){
  .dd-live-dot,.lb-row,.lb-you{animation:none!important}
}

/* ═══ v660 — Phase V: Vocabulary layer (tap-to-define + Starred Words deck) ═══════════════════ */
/* tappable word — a quiet dotted underline that never fights passage readability */
.vb-w{border-bottom:1px dotted rgba(148,163,184,.55);cursor:pointer;transition:background .12s ease}
.vb-w:hover,.vb-w:active{background:rgba(96,165,250,.16);border-radius:3px}
/* key-vocabulary chips atop the passage panel */
.vb-keychips{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:2px 0 12px}
.vb-keychips-h{font-size:12px;font-weight:700;color:var(--mut);margin-right:2px}
.vb-keychip{border-bottom:none;background:rgba(96,165,250,.14);border:1px solid rgba(96,165,250,.3);color:var(--txt);border-radius:999px;padding:3px 11px;font-size:12.5px;font-weight:600}
.vb-keychip:hover{background:rgba(96,165,250,.24)}
/* collapsible "Read the passage again" panel in review */
.rv-passage{margin:4px 0 14px;border:1px solid var(--bord);border-radius:12px;background:var(--glass2);overflow:hidden}
.rv-passage>summary{cursor:pointer;padding:11px 14px;font-weight:700;font-size:13.5px;list-style:none;user-select:none}
.rv-passage>summary::-webkit-details-marker{display:none}
.rv-passage[open]>summary{border-bottom:1px solid var(--bord)}
.rv-passage-t{font-weight:800;font-size:16px;margin:12px 14px 4px}
.rv-passage-body{padding:2px 14px 14px}
.rv-passage-p{font-size:13.6px;line-height:1.62;margin:8px 0;color:var(--txt)}
/* R3 (v1.670) — the Listening tapescript in the review */
.rv-tsp-body{padding:4px 14px 14px;max-height:60vh;overflow-y:auto}
.rv-tsp-note{font-size:12.5px;color:var(--mut);margin:8px 0}
.rv-tsl{font-size:13.6px;line-height:1.6;margin:4px 0;padding:2px 6px;border-radius:6px;color:var(--txt)}
.rv-tsl-q{background:rgba(52,211,153,.08)}
.rv-tsl.on{outline:2px solid rgba(var(--accent),.75);outline-offset:0}
.rv-tsq{display:inline-block;margin-right:6px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;background:rgba(52,211,153,.18);vertical-align:1px}
.rv-tsq.no{background:rgba(251,113,133,.2)}
.rv-tsl .am-play{margin-right:6px;vertical-align:1px}
.vb-keychips{padding:12px 14px 0}
/* definition popover — one at a time, opens on pointerdown, dismiss on outside tap / Esc */
.vb-pop{position:fixed;z-index:9999;background:var(--menu);border:1px solid var(--bord);border-radius:12px;padding:12px 14px;box-shadow:0 14px 40px rgba(0,0,0,.45);opacity:0;transform:translateY(6px);transition:opacity .18s ease-out,transform .18s ease-out}
.vb-pop.in{opacity:1;transform:none}
.vb-pop-hd{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.vb-pop-w{font-weight:800;font-size:16px;color:var(--txt)}
.vb-pop-ipa{font-size:13px;color:var(--info);font-style:italic}
.vb-pop-pos{display:inline-block;font-size:11px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;margin-top:3px}
.vb-pop-gl{font-size:13.5px;line-height:1.5;color:var(--txt);margin:5px 0 10px}
.vb-pop-miss{color:var(--mut);font-style:italic}
.vb-star{width:100%;border:1px solid rgba(245,158,11,.4);background:rgba(245,158,11,.12);color:var(--txt);border-radius:9px;padding:7px 10px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;transition:transform .1s ease}
.vb-star:active{transform:scale(.97)}
.vb-star.on{background:rgba(245,158,11,.22);border-color:rgba(245,158,11,.6)}
/* nav due-count badge */
.vb-nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:auto;background:#f59e0b;color:#1b1205;border-radius:999px;font-size:11px;font-weight:800;line-height:1}
/* Starred Words deck — stats */
.fc-stats{display:flex;gap:10px;margin:16px 0}
.fc-stat{flex:1;text-align:center;border:1px solid var(--bord);border-radius:12px;padding:12px 6px;background:var(--glass2)}
.fc-stat-v{font-size:24px;font-weight:800;color:var(--txt)}
.fc-stat-l{font-size:11.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.03em;margin-top:2px}
.fc-actions{margin:4px 0 16px}
.fc-start{font-size:15px}
.fc-allclear{border:1px solid rgba(16,185,129,.35);background:rgba(16,185,129,.08);border-radius:12px;padding:12px 14px;font-size:13.5px;color:var(--txt)}
/* deck list */
.fc-list{display:flex;flex-direction:column;gap:8px}
.fc-li{display:flex;align-items:center;gap:10px;border:1px solid var(--bord);border-radius:10px;padding:9px 12px;background:var(--card)}
.fc-li-main{flex:1;min-width:0;display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.fc-li-w{font-weight:800;font-size:14.5px;color:var(--txt)}
.fc-li-box{font-size:10.5px;font-weight:700;color:var(--mut);background:rgba(148,163,184,.16);border-radius:999px;padding:2px 8px;text-transform:uppercase;letter-spacing:.03em}
.fc-li-box.mastered{color:#047857;background:rgba(16,185,129,.16)}
.fc-li-gl{font-size:12.5px;color:var(--mut);flex-basis:100%}
.fc-li-x{flex:none;border:none;background:transparent;color:var(--mut);cursor:pointer;font-size:15px;padding:2px 6px;border-radius:6px}
.fc-li-x:hover{background:rgba(239,68,68,.14);color:#ef4444}
/* flashcard */
.fc-wrap{max-width:440px;margin:16px auto 0}
.fc-progress{text-align:center;font-size:12.5px;color:var(--mut);margin-bottom:10px}
.fc-card{position:relative;height:230px;perspective:1200px;cursor:pointer;user-select:none}
.fc-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .4s cubic-bezier(.4,.2,.2,1)}
.fc-card.flipped .fc-inner{transform:rotateY(180deg)}
.fc-front,.fc-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;border:1px solid var(--bord);border-radius:16px;background:var(--card);box-shadow:0 8px 26px rgba(0,0,0,.22)}
.fc-back{transform:rotateY(180deg)}
.fc-word{font-size:30px;font-weight:800;color:var(--txt)}
.fc-ipa{font-size:15px;color:var(--info);font-style:italic;margin-top:6px}
.fc-src{font-size:12px;color:var(--mut);margin-top:12px}
.fc-hint{position:absolute;bottom:12px;font-size:11px;color:var(--mut);opacity:.8}
.fc-pos{font-size:12px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
.fc-gloss{font-size:16px;line-height:1.5;color:var(--txt)}
.fc-grade{display:flex;gap:10px;margin-top:14px}
.fc-grade button{flex:1;border-radius:11px;padding:12px;font-size:14.5px;font-weight:700;cursor:pointer;font-family:inherit;transition:transform .1s ease}
.fc-grade button:active{transform:scale(.97)}
.fc-g-no{border:1px solid rgba(239,68,68,.4);background:rgba(239,68,68,.12);color:var(--txt)}
.fc-g-ok{border:1px solid rgba(16,185,129,.42);background:rgba(16,185,129,.14);color:var(--txt)}
.fc-quit{display:block;margin:14px auto 0}
/* empty / done state */
.fc-empty{text-align:center;border:1px dashed var(--bord);border-radius:16px;padding:34px 22px;margin-top:16px;background:var(--glass2)}
.fc-empty-em{font-size:38px}
.fc-empty-t{font-size:18px;font-weight:800;margin:8px 0 4px;color:var(--txt)}
.fc-empty-s{font-size:13.5px;line-height:1.6;color:var(--mut);max-width:460px;margin:0 auto}
.fc-empty .btn{margin-top:16px}
/* light-theme overrides — popover needs a solid surface; chips + boxes re-tint */
html[data-theme="light"] .vb-w{border-bottom-color:rgba(100,116,139,.6)}
html[data-theme="light"] .vb-w:hover,html[data-theme="light"] .vb-w:active{background:rgba(37,99,235,.12)}
html[data-theme="light"] .vb-keychip{background:rgba(37,99,235,.1);border-color:rgba(37,99,235,.3)}
html[data-theme="light"] .vb-pop{background:#fff;border-color:var(--bord2);box-shadow:0 14px 40px rgba(23,32,55,.18)}
html[data-theme="light"] .vb-pop-ipa{color:#1d4ed8}
html[data-theme="light"] .fc-front,html[data-theme="light"] .fc-back{box-shadow:0 8px 26px rgba(23,32,55,.12)}
html[data-theme="light"] .fc-ipa{color:#1d4ed8}
html[data-theme="light"] .fc-li-box.mastered{color:#047857;background:rgba(16,185,129,.12)}
html[data-theme="light"] .vb-nav-badge{color:#fff;background:#b45309}
/* reduced motion — popover fades only; flashcard flip becomes a 150ms crossfade */
@media(prefers-reduced-motion:reduce){
  .vb-pop{transition:opacity .1s linear;transform:none!important}
  .vb-pop.in{transform:none}
  .fc-inner{transition:none;transform:none!important}
  .fc-front,.fc-back{backface-visibility:visible;-webkit-backface-visibility:visible;transition:opacity .15s linear}
  .fc-card .fc-back{opacity:0;transform:none!important}
  .fc-card.flipped .fc-front{opacity:0}
  .fc-card.flipped .fc-back{opacity:1}
  .vb-star,.fc-grade button{transition:none}
}

/* ================= Phase W0 (v662) — AI writing estimate panel ================= */
.ai-panel{background:var(--glass2);border:1px solid var(--bord);border-radius:14px;padding:14px 16px;margin:14px 0}
.ai-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ai-title{font-weight:800;font-size:14px;color:var(--txt)}
.ai-src{font-size:10px;font-weight:800;letter-spacing:.5px;background:rgba(var(--accent),.18);color:var(--vio);padding:2px 7px;border-radius:20px;vertical-align:middle}
.ai-task{margin-left:auto;font-size:12px;font-weight:700;color:var(--mut)}
.ai-band-row{display:flex;align-items:baseline;gap:8px;margin:6px 0 10px}
.ai-approx{font-size:14px;font-weight:700;color:var(--mut)}
.ai-band{font-size:40px;font-weight:900;line-height:1;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.ai-crit-rows{display:flex;flex-direction:column;gap:7px;margin:4px 0 2px}
.ai-crit-row{display:flex;align-items:center;gap:10px}
.ai-crit-lab{flex:0 0 190px;font-size:12.5px;color:var(--mut)}
.ai-crit-track{flex:1;height:8px;border-radius:6px;background:var(--glass);overflow:hidden}
.ai-crit-bar{display:block;height:100%;border-radius:6px;background:var(--grad);transform-origin:left;animation:aiBarIn .5s ease-out backwards}
@keyframes aiBarIn{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.ai-crit-val{flex:0 0 30px;text-align:right;font-weight:800;font-size:13px;color:var(--txt)}
.ai-tips{margin-top:10px}
.ai-tips-h{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--mut);margin-bottom:5px}
.ai-tip{font-size:12.5px;line-height:1.5;color:var(--txt);padding:2px 0}
.ai-disclaim{margin-top:12px;background:rgba(251,191,36,.1);border:1px solid rgba(251,191,36,.45);border-left-width:4px;border-radius:10px;padding:9px 12px;font-size:11.5px;line-height:1.55;color:var(--amber)}
/* §178 (14 Oct 2026) — the Sonnet writing report (app.js aiReportBodyHTML / aiTeacherReportHTML) */
.air{margin-top:10px}
.air-wait{font-size:12.5px;color:var(--mut);padding:8px 0}
.air-checks{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.air-chk{font-size:12px;font-weight:700;padding:3px 9px;border-radius:20px;border:1px solid var(--bord);color:var(--txt);background:var(--glass)}
.air-ok{border-color:rgba(52,211,153,.55);background:rgba(52,211,153,.12)}
.air-no{border-color:rgba(248,113,113,.55);background:rgba(248,113,113,.12)}
.air-crits{display:flex;flex-direction:column;gap:6px;margin:4px 0 10px}
.air-crit{border:1px solid var(--bord);border-radius:10px;background:var(--glass);padding:0 12px}
.air-crit>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;cursor:pointer;list-style:none;font-weight:800;font-size:13.5px;color:var(--txt)}
.air-crit>summary::-webkit-details-marker{display:none}
.air-crit-b{font-variant-numeric:tabular-nums;background:rgba(var(--accent),.16);border-radius:8px;padding:1px 9px}
.air-sub{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--mut);margin:4px 0 3px}
.air-pts{margin:0 0 10px;padding-left:18px;display:flex;flex-direction:column;gap:5px}
.air-pts li{font-size:13px;line-height:1.5;color:var(--txt)}
.air-well::marker{color:var(--ok)}.air-held::marker{color:var(--bad)}
.air-quote{display:block;font-style:italic;color:var(--mut);font-size:12px;margin-top:2px}
.air-sec{margin:12px 0}
.air-h{font-size:11.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--mut);margin-bottom:6px}
details.air-sec>summary.air-h{cursor:pointer}
.air-essay{font-size:14px;line-height:1.75;color:var(--txt);background:var(--glass);border:1px solid var(--bord);border-radius:10px;padding:12px 14px;overflow-wrap:anywhere}
.air-err{background:rgba(248,113,113,.16);color:inherit;border-bottom:2px solid rgba(248,113,113,.8);border-radius:3px;padding:0 1px}
.air-err sup{font-size:10px;font-weight:800;color:var(--bad);margin-left:1px}
.air-fixes{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.air-fixes li{font-size:13px;line-height:1.5;color:var(--txt)}
.air-fix-n{display:inline-block;min-width:20px;font-weight:800;color:var(--bad)}
.air-fix-q{text-decoration:line-through;color:var(--mut)}
.air-fix-a{color:var(--txt)}
.air-fix-t{font-size:11px;color:var(--mut);margin-left:4px}
.air-tips{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.air-tips li{font-size:13px;line-height:1.5;color:var(--txt)}
.air-tip-c{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--vio);margin-right:6px}
.air-ex p{font-size:14px;line-height:1.7;color:var(--txt);margin:0 0 10px}
.air-example{border:1px solid var(--bord);border-radius:10px;padding:10px 12px;background:var(--glass)}
.air-ask{border:1px dashed var(--bord);border-radius:10px;padding:10px 12px}
.air-ask-t{font-size:13px;color:var(--mut);margin-bottom:8px;line-height:1.5}
.air-ask-err{font-size:12.5px;color:var(--bad);margin-top:6px}
.air-teacher{border:1px solid var(--bord);border-radius:12px;padding:10px 12px;margin-bottom:12px;background:var(--glass2)}
.air-teacher:empty{display:none}
.air-tbands{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.air-tb{display:flex;flex-direction:column;align-items:center;min-width:56px;border:1px solid var(--bord);border-radius:8px;padding:4px 6px;font-size:10.5px;color:var(--mut)}
.air-tb b{font-size:15px;color:var(--txt)}
.air-tb-ov{border-color:rgba(var(--accent),.6)}
.air-note{font-size:12.5px;line-height:1.55;color:var(--txt);background:var(--glass);border-left:3px solid rgba(var(--accent),.7);padding:7px 10px;border-radius:6px;margin:6px 0}
@media (max-width:480px){.air-essay{font-size:13.5px;padding:10px 11px}.air-crit{padding:0 10px}}
.ai-superseded{margin:8px 0 14px;border:1px solid var(--bord);border-radius:12px;background:var(--glass);color:var(--mut)}
.ai-superseded summary{cursor:pointer;font-size:12.5px;font-weight:600;padding:9px 13px;list-style:none}
.ai-superseded summary::-webkit-details-marker{display:none}
.ai-superseded[open] summary{border-bottom:1px solid var(--bord)}
.ai-sup-body{padding:11px 13px}
.ai-sup-note{font-size:12.5px;line-height:1.55;margin-bottom:8px}
.ai-superseded .ai-crit-bar{animation:none}
@media(max-width:560px){.ai-crit-lab{flex-basis:118px;font-size:11.5px}}
html[data-theme="light"] .ai-disclaim{background:rgba(217,119,6,.08);border-color:rgba(217,119,6,.4);color:#92400e}
html[data-theme="light"] .ai-crit-track{background:rgba(23,32,55,.08)}
@media(prefers-reduced-motion:reduce){.ai-crit-bar{animation:none}}

/* ================= Phase SP (v664) — Speaking practice v1 ================= */
.spk-rec{margin-top:12px;border-top:1px dashed var(--bord);padding-top:12px}
.spk-rec-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.spk-rec-btn{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.spk-dot{width:10px;height:10px;border-radius:50%;background:#f43f5e;display:inline-block;flex:0 0 auto}
.spk-rec-btn.rec .spk-dot{animation:spkPulse 1.2s infinite}   /* plPulse pattern, red */
@keyframes spkPulse{0%{box-shadow:0 0 0 0 rgba(244,63,94,.55)}70%{box-shadow:0 0 0 7px rgba(244,63,94,0)}100%{box-shadow:0 0 0 0 rgba(244,63,94,0)}}
.spk-rec-st{font-size:12.5px;color:var(--mut);line-height:1.5;max-width:520px}
.spk-rec-st.on{color:#f43f5e;font-weight:700}
.spk-wave{width:100%;max-width:640px;height:56px;margin-top:10px;border:1px solid var(--bord);border-radius:10px;background:var(--glass);display:block}
.spk-wave[hidden]{display:none}   /* v1.300 V-17 — display:block was beating the hidden attribute */
.spk-play{width:100%;max-width:640px;margin-top:10px;display:block}
.spk-fluency{margin-top:12px;background:var(--glass2);border:1px solid var(--bord);border-radius:12px;padding:12px 14px}
.spk-fl-h{font-weight:800;font-size:13.5px;color:var(--txt)}
.spk-fl-sub{font-size:11px;font-weight:400;color:var(--mut)}
.spk-mets{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.spk-met{min-width:86px;background:var(--glass);border:1px solid var(--bord);border-radius:10px;padding:8px 10px;text-align:center}
.spk-met-v{font-size:18px;font-weight:900;color:var(--txt)}
.spk-met-l{font-size:10.5px;color:var(--mut);margin-top:2px}
.spk-trans{margin-top:12px;background:var(--glass2);border:1px solid var(--bord);border-radius:12px;padding:12px 14px}
.spk-trans-h{font-weight:800;font-size:13.5px;margin-bottom:6px;color:var(--txt)}
.spk-trans-body{font-size:13px;line-height:1.6;color:var(--txt);max-height:180px;overflow:auto}
.spk-trans-none{color:var(--mut);font-size:12.5px}
.spk-ai-cta{margin-top:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.spk-pron-note{flex:1;font-size:12px;color:var(--mut);font-style:italic}
.spk-check-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:10px}
.spk-check-crit{font-weight:800;font-size:12.5px;margin-bottom:6px;color:var(--vio)}
.spk-check-it{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.5;color:var(--txt);padding:3px 0;cursor:pointer}
.spk-check-it input{margin-top:2px;accent-color:#34d399}
html[data-theme="light"] .spk-wave{background:rgba(23,32,55,.04)}
html[data-theme="light"] .spk-met{background:rgba(23,32,55,.04)}
html[data-theme="light"] .spk-rec-st.on{color:#be123c}
html[data-theme="light"] .spk-rec-btn.rec .spk-dot{animation-name:spkPulse}
@media(prefers-reduced-motion:reduce){
  .spk-rec-btn.rec .spk-dot{animation:none;box-shadow:0 0 0 3px rgba(244,63,94,.35)}   /* static red dot */
  .spk-wave{display:none}                                                              /* waveform hidden */
}

/* Student cleanup dialog rows */
.stu-clean-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--bord);border-radius:9px;cursor:pointer;background:var(--glass-045)}
.stu-clean-row:hover{border-color:rgba(var(--accent),.4)}
.stu-clean-row .scr-name{font-weight:700;color:var(--txt);min-width:130px}
.stu-clean-row .scr-meta{font-size:12px;color:var(--mut);margin-left:auto;text-align:right}
.stu-clean-row .scr-flag{color:var(--warn);font-weight:700;margin-left:4px}

/* ===== Student social sign-up card (premium redesign, v693) ===== */
.sp2{ margin:-2px 0 0 }
.sp2-hd{ text-align:center; padding:2px 4px 18px }
.sp2-badge{ width:54px; height:54px; margin:0 auto 13px; border-radius:17px; display:flex; align-items:center; justify-content:center; font-size:27px;
  background:linear-gradient(135deg, rgba(var(--accent),.20), rgba(var(--accent),.05)); border:1px solid rgba(var(--accent),.28) }
.sp2-title{ font-size:20px; font-weight:800; letter-spacing:-.35px; color:var(--txt) }
.sp2-sub{ font-size:13.5px; color:var(--mut); margin-top:5px }
.sp2-body{ display:flex; flex-direction:column; gap:15px }
.sp2-field{ display:flex; flex-direction:column; gap:7px }
.sp2-lbl{ font-size:12.5px; font-weight:700; color:var(--txt); display:flex; align-items:center; gap:6px }
.sp2-in{ width:100%; box-sizing:border-box; height:46px; padding:0 14px; border-radius:12px; border:1.5px solid var(--bord2);
  background:var(--glass-045); color:var(--txt); font-size:15px; font-family:inherit; transition:border-color .15s ease, box-shadow .15s ease }
.sp2-in::placeholder{ color:var(--mut) }
.sp2-in:focus{ outline:none; border-color:rgba(var(--accent),.9); box-shadow:0 0 0 4px rgba(var(--accent),.13) }
.sp2-phone{ display:flex; gap:8px }
/* scoped under .overlay .panel to out-specify the app's generic `.overlay .panel select` sizing rules */
.overlay .panel .sp2-phone .sp2-cc{ height:46px; flex:0 0 132px; width:132px; min-width:132px; max-width:132px; box-sizing:border-box;
  -webkit-appearance:none; appearance:none;
  background:rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
  background-size:11px 11px !important;
  padding:0 32px 0 12px; border-radius:12px; border:1.5px solid var(--bord2);
  color:var(--txt); font-size:14px; font-family:inherit; cursor:pointer }
.overlay .panel .sp2-phone .sp2-in{ flex:1 1 auto; width:auto; min-width:0 }
.sp2-hint{ font-size:12px; color:var(--mut) }
.sp2-chan{ display:grid; grid-template-columns:1fr 1fr; gap:9px }
.sp2-chan-b{ display:flex; align-items:center; justify-content:center; gap:7px; padding:11px 10px; border-radius:12px;
  border:1.5px solid var(--bord2); background:var(--glass-045); color:var(--txt); font-weight:700; font-size:13.5px;
  font-family:inherit; cursor:pointer; transition:border-color .15s ease, background .15s ease }
.sp2-chan-b small{ font-size:9.5px; font-weight:800; color:var(--mut); background:rgba(148,163,184,.20);
  padding:1px 6px; border-radius:6px; text-transform:uppercase; letter-spacing:.05em }
.sp2-chan-b:hover:not(:disabled){ border-color:rgba(var(--accent),.5) }
.sp2-chan-b.active{ border-color:rgba(var(--accent),.9); background:rgba(var(--accent),.10) }
.sp2-chan-b:disabled{ opacity:.5; cursor:not-allowed }
.sp2-otprow{ display:flex; gap:8px }
.sp2-code{ letter-spacing:.42em; text-align:center; font-weight:700; font-size:16px }
.sp2-verify{ flex:0 0 auto; height:46px; padding:0 20px; border-radius:12px; border:1.5px solid rgba(var(--accent),.5);
  background:rgba(var(--accent),.10); color:var(--txt); font-weight:700; font-size:14px; font-family:inherit; cursor:pointer; transition:background .15s ease }
.sp2-verify:hover{ background:rgba(var(--accent),.18) }
.sp2-resend{ flex:0 0 auto; height:46px; padding:0 14px; border-radius:12px; border:1.5px solid var(--bord2);
  background:transparent; color:var(--mut); font-weight:700; font-size:13px; font-family:inherit; cursor:pointer; transition:.15s ease }
.sp2-resend:hover:not(:disabled){ color:var(--txt); border-color:var(--faint) }
.sp2-resend:disabled{ opacity:.5; cursor:not-allowed }
.sp2-seg{ display:grid; grid-template-columns:1fr 1fr; gap:9px }
.sp2-opt{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:11px 14px; border-radius:13px; border:1.5px solid var(--bord2);
  background:var(--glass-045); cursor:pointer; font-family:inherit; text-align:left; transition:border-color .15s ease, background .15s ease }
.sp2-opt b{ font-size:14px; color:var(--txt); font-weight:700 }
.sp2-opt small{ font-size:11px; color:var(--mut) }
.sp2-opt:hover{ border-color:rgba(var(--accent),.5) }
.sp2-opt.active{ border-color:rgba(var(--accent),.9); background:rgba(var(--accent),.10) }
.sp2-err{ font-size:13px; color:var(--bad); background:rgba(244,63,94,.09); border:1px solid rgba(244,63,94,.28); border-radius:11px; padding:9px 13px }
.sp2-okmsg{ font-size:13px; font-weight:700; color:var(--ok); display:flex; align-items:center; gap:6px }
.sp2-foot{ display:flex; gap:10px; margin-top:20px }
.sp2-send{ flex:0 0 auto; height:48px; padding:0 20px; border-radius:12px; border:1.5px solid var(--bord2); background:transparent;
  color:var(--txt); font-weight:700; font-size:14px; font-family:inherit; cursor:pointer; transition:background .15s ease }
.sp2-send:hover{ background:var(--glass-07) }
.sp2-create{ flex:1; height:48px; border-radius:12px; border:0; background:var(--grad); color:#fff; font-weight:800; font-size:15px;
  font-family:inherit; letter-spacing:-.1px; cursor:pointer; transition:filter .15s ease; box-shadow:0 8px 22px rgba(var(--accent),.28) }
.sp2-create:hover:not(:disabled){ filter:brightness(1.06) }
.sp2-create:disabled{ opacity:.45; cursor:not-allowed; box-shadow:none }
.sp2-trust{ text-align:center; font-size:11.5px; color:var(--mut); margin-top:13px }
.sp2-2col{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.sp2-orshare{ display:flex; flex-direction:column; align-items:center; gap:9px; margin-top:16px;
  padding-top:16px; border-top:1px solid var(--bord2) }
.sp2-wa-share{ display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:12px;
  border:1.5px solid rgba(37,211,102,.5); background:rgba(37,211,102,.10); color:var(--txt);
  font-weight:700; font-size:13.5px; font-family:inherit; text-decoration:none; transition:background .15s ease }
.sp2-wa-share:hover{ background:rgba(37,211,102,.18) }
.sp2-keep{ flex:1; height:48px; border-radius:12px; border:1.5px solid var(--bord2); background:transparent;
  color:var(--txt); font-weight:700; font-size:14px; font-family:inherit; cursor:pointer; transition:background .15s ease }
.sp2-keep:hover{ background:var(--glass-07) }
.sp2-danger{ flex:1; height:48px; border-radius:12px; border:0; background:linear-gradient(120deg,#e11d48,#f43f5e);
  color:#fff; font-weight:800; font-size:14px; font-family:inherit; cursor:pointer; transition:filter .15s ease; box-shadow:0 8px 22px rgba(225,29,72,.28) }
.sp2-danger:hover:not(:disabled){ filter:brightness(1.06) }
.sp2-danger:disabled{ opacity:.55; cursor:not-allowed; box-shadow:none }
.um-item.um-danger{ color:#f43f5e }
.um-item.um-danger:hover{ background:rgba(244,63,94,.10) }
.sp2-area{ height:auto !important; min-height:64px; padding:11px 14px !important; resize:vertical; line-height:1.5 }
.sp2-reqcard{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px;
  border-radius:14px; border:1.5px solid var(--bord2); background:rgba(var(--accent),.06) }
.sp2-reqcard-t{ font-size:15px; color:var(--txt) }
.sp2-reqcard-t b{ font-weight:700 }
.sp2-reqcard-p{ font-size:18px; font-weight:800; color:var(--txt); white-space:nowrap }
/* ===== WhatsApp AI inbox ===== */
.wa-thread{ border:1px solid var(--bord2); border-radius:14px; padding:14px; margin-bottom:12px; background:var(--glass-045) }
.wa-th-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap }
.wa-th-who{ display:flex; align-items:center; gap:6px }
.wa-th-chips{ display:flex; gap:6px; flex-wrap:wrap }
.wa-chip{ font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; border:1px solid var(--bord2); color:var(--mut) }
.wa-chip.wa-int{ color:var(--txt); border-color:rgba(37,211,102,.4); background:rgba(37,211,102,.08) }
.wa-chip.wa-hi{ color:#f43f5e; border-color:rgba(244,63,94,.4); background:rgba(244,63,94,.10) }
.wa-chip.wa-ai{ color:var(--txt); border-color:rgba(var(--accent),.4); background:rgba(var(--accent),.10) }
.wa-th-in{ margin:10px 0; font-size:14px; color:var(--txt); background:rgba(127,127,127,.06); border-radius:10px; padding:9px 12px }
.wa-th-lbl{ font-size:11.5px; font-weight:700; color:var(--mut); margin-bottom:5px }
.wa-reply{ width:100%; box-sizing:border-box; resize:vertical; min-height:46px; margin-bottom:8px }
.wa-th-acts{ display:flex; gap:8px; flex-wrap:wrap }
.wa-th-done{ margin-top:8px; font-size:13px; font-weight:700; color:var(--ok) }

/* ===== Student dashboard — "clean & refined" professional pass (v705). Scoped to .stu-glass so the
   staff portals are untouched; cards stay flat (per the no-shadow preference), lifted via type,
   spacing and a stronger header band. ===== */
.stu-glass .dash-hero{ border-radius:22px; padding:26px 30px; }
.stu-glass .dash-eyebrow{ font-size:11.5px; font-weight:700; letter-spacing:1.6px; }
.stu-glass .dash-name{ font-size:33px; letter-spacing:-.7px; }
.stu-glass .dash-tagline{ font-size:14px; margin-top:8px; line-height:1.5; }
.stu-glass .card{ border-radius:18px; padding:22px; }
.stu-glass .card h3{ font-size:16px; font-weight:750; letter-spacing:-.2px; }
.stu-glass .card-sub{ font-size:13px; line-height:1.55; }
.stu-glass .h1{ letter-spacing:-.4px; }
.stu-glass .sub{ font-size:14px; color:var(--mut); line-height:1.5; }

/* ============================================================================
   FLAT SURFACES — no dark drop-shadow on any dashboard card / widget / tile,
   at rest OR on hover (user request: the navy box-shadow read as an ugly black
   smudge on the top edge of cards, especially in light theme). Hover feedback
   stays via transform + accent border. Floating overlays that genuinely need
   elevation (tooltips, dropdown menus, dialogs) are intentionally NOT included.
   Placed last so it wins the cascade in both themes.
   ============================================================================ */
.sf-card,.sf-card:hover,
.fx2 .sf-card,.fx2 .sf-card:hover,.fx2 .bento,.fx2 .bento:hover,
.fdb-linkcard,.fdb-linkcard:hover,
body .card,body .card:hover,body .sf-card,body .sf-card:hover,
.grid .card,.grid .card:hover,
.bb-card,.bb-card:hover,.tw-card,.tw-card:hover,
.rv-item,.rv-item:hover,.skill-btn,.skill-btn:hover,
.dash-glance,.dash-stat,.stat-link,.fin-bank-card,.fin-bank-card:hover{ box-shadow:none !important; }
/* chart SVGs inside cards had a soft glow filter that also read as a shadow */
body .sf-card svg path[stroke],body .sf-card svg circle[fill]{ filter:none !important; }

/* ============================================================================
   PROFILE-PHOTO CROPPER (.pc-*) — the openPhotoDialog modal (v731).
   A FIXED 280×280 viewport so the modal never resizes with the image; the
   circle is a guide for the round avatar (the full square is what's saved).
   Uses theme vars so it reads correctly in dark AND light.
   ============================================================================ */
.pc-wrap{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.pc-file{ display:flex; flex-direction:column; align-items:center; gap:7px; width:100%; }
.pc-file input[type="file"]{ display:none; }
.pc-file .btn{ flex:none; }
.pc-filename{ max-width:100%; font-size:12.5px; color:var(--mut); text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pc-view{ position:relative; width:280px; height:280px; flex:none;
  border-radius:16px; overflow:hidden; border:1px solid var(--bord2);
  background:var(--glass); touch-action:none; user-select:none; -webkit-user-select:none; }
.pc-view canvas{ display:block; width:100%; height:100%; cursor:grab; }
.pc-view.dragging canvas{ cursor:grabbing; }
.pc-guide{ position:absolute; inset:0; border-radius:50%; pointer-events:none;
  box-shadow:0 0 0 400px rgba(8,12,24,.45); }
.pc-guide::after{ content:""; position:absolute; inset:0; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.55); }
html[data-theme="light"] .pc-guide{ box-shadow:0 0 0 400px rgba(15,23,42,.30); }
html[data-theme="light"] .pc-guide::after{ border-color:rgba(255,255,255,.85); }
.pc-empty{ position:absolute; inset:0; display:flex; flex-direction:column; gap:10px;
  align-items:center; justify-content:center; text-align:center;
  color:var(--mut); font-size:12.5px; line-height:1.5; padding:0 26px; }
.pc-empty .lu{ opacity:.55; }
.pc-cur{ width:76px; height:76px; border-radius:50%; object-fit:cover;
  border:2px solid var(--bord2); }
.pc-empty[hidden],.pc-guide[hidden]{ display:none !important; }
.pc-zoom{ display:flex; align-items:center; gap:10px; width:280px; }
.pc-zbtn{ width:34px; height:34px; flex:none; padding:0;
  display:flex; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid var(--bord2); background:var(--glass2);
  color:var(--txt); cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease; }
.pc-zbtn:hover:not(:disabled){ background:var(--glass-12); }
.pc-zbtn:disabled{ opacity:.4; cursor:default; }
.pc-zoom input[type="range"]{ flex:1; height:4px; accent-color:#7c3aed; cursor:pointer; }
.pc-zoom input[type="range"]:disabled{ opacity:.4; cursor:default; }
.pc-actions{ display:flex; align-items:center; gap:8px; width:100%; flex-wrap:wrap; }
.pc-actions #pc-save{ margin-left:auto; }
.pc-actions .btn.ghost{ border:1px solid transparent; }
.pc-enh.on{ border-color:#7c3aed !important; color:var(--txt);
  box-shadow:inset 0 0 0 1px rgba(124,58,237,.35) !important; }
.pc-hint{ font-size:12px; color:var(--mut); text-align:center;
  display:flex; align-items:center; justify-content:center; gap:6px; }

/* ═══ v825 — Skill Builder (student portal): Overview hub, Typing Trainer, AI Feedback ═══════════ */
/* Overview landing */
.skh-prog{ display:flex; gap:12px; margin:12px 0 18px; flex-wrap:wrap; }
.skh-prog-item{ background:var(--card); border:1px solid var(--bord); border-radius:12px;
  padding:10px 18px; min-width:96px; text-align:center; }
.skh-prog-v{ display:block; font-size:22px; font-weight:800; color:rgb(var(--accent)); line-height:1.1; }
.skh-prog-l{ display:block; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--mut); margin-top:2px; }
.skh-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.skh-card{ display:flex; align-items:center; gap:14px; text-align:left; width:100%;
  background:var(--card); border:1px solid var(--bord); border-radius:14px; padding:16px;
  color:var(--txt); font-family:inherit; cursor:pointer; transition:transform .12s, border-color .12s, box-shadow .12s; }
.skh-card:hover{ transform:translateY(-2px); border-color:var(--bord2); box-shadow:var(--shadow); }
.skh-card.soon{ opacity:.62; cursor:default; }
.skh-card.soon:hover{ transform:none; border-color:var(--bord); box-shadow:none; }
.skh-ico{ font-size:26px; width:46px; height:46px; flex:0 0 46px; display:flex; align-items:center; justify-content:center;
  background:var(--glass2); border-radius:12px; }
.skh-body{ flex:1; min-width:0; }
.skh-title{ font-weight:700; font-size:15px; margin-bottom:3px; }
.skh-desc{ font-size:12.5px; color:var(--mut); line-height:1.4; }
.skh-badge{ font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--warn);
  border:1px solid rgba(251,191,36,.4); border-radius:6px; padding:1px 5px; margin-left:4px; }
.skh-cta{ font-size:12.5px; font-weight:700; color:rgb(var(--accent)); white-space:nowrap; }
.skh-card.soon .skh-cta{ color:var(--mut); }

/* Typing Trainer — premium/fluid re-skin (v826). Motion is transform/opacity only, through --typ-ease. */
.typ-shell, .typ-hero{ --typ-mono:"JetBrains Mono","SFMono-Regular",ui-monospace,Menlo,Consolas,monospace;
  --typ-ease:cubic-bezier(.22,1,.36,1); }
.typ-shell{ background:var(--card); border:1px solid var(--bord); border-radius:20px; padding:24px 26px 28px;
  box-shadow:var(--shadow); width:100%; max-width:880px; margin:12px auto 0; box-sizing:border-box; }
/* focus/dim while a run is live */
.typ-shell.run .typ-dim{ opacity:.22; }
.typ-shell.run .typ-dim-top{ opacity:.9; }   /* v1.300 V-25 — .55 put the segment labels at 3.33:1 dark / 2.31 light */
.typ-dim, .typ-dim-top{ transition:opacity .4s ease; }

/* topbar — segmented sliding-pill controls */
.typ-topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.typ-seg{ position:relative; display:inline-flex; gap:2px; padding:3px; border-radius:12px;
  background:var(--glass2); border:1px solid var(--bord); }
.typ-seg-pill{ position:absolute; top:3px; left:0; height:calc(100% - 6px); border-radius:9px;
  background:rgba(var(--accent),.14); border:1px solid rgba(var(--accent),.45); box-shadow:var(--glow);
  transform:translateX(0); width:0; transition:transform .26s var(--typ-ease), width .26s var(--typ-ease); z-index:0; }
.typ-seg-btn{ position:relative; z-index:1; background:transparent; border:0; cursor:pointer; color:var(--mut);
  font-family:inherit; font-size:13px; font-weight:600; padding:7px 15px; border-radius:9px; transition:color .2s ease; }
.typ-seg-btn.active{ color:rgb(var(--accent)); }
.typ-seg-btn:hover{ color:var(--txt); }

/* live stats dash — numbers on the shell, no boxes */
.typ-dash{ display:flex; align-items:flex-end; gap:26px; flex-wrap:wrap; margin-bottom:20px; position:relative; }
.typ-stat{ text-align:center; }
.typ-stat-v{ font-family:Sora,Inter,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.01em;
  color:var(--txt); font-size:24px; font-weight:700; line-height:1.05; }
.typ-stat-v.sm{ font-size:24px; }
.typ-stat-v.dim{ color:var(--mut); font-weight:600; }
.typ-stat.hero .typ-stat-v{ font-size:40px; font-weight:800; color:rgb(var(--accent)); text-shadow:0 0 24px rgba(var(--accent),.35); }
.typ-stat-v.bump{ animation:typBump .14s ease; }
@keyframes typBump{ 0%{transform:scale(1)} 45%{transform:scale(1.035)} 100%{transform:scale(1)} }
.typ-stat-l{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mut); margin-top:4px; }
/* accuracy ring */
.typ-ring-wrap{ position:relative; width:46px; height:46px; margin:0 auto; display:flex; align-items:center; justify-content:center; }
.typ-ring{ position:absolute; inset:0; width:46px; height:46px; transform:rotate(-90deg); }
.typ-ring-bg{ fill:none; stroke:var(--bord2); stroke-width:3.5; }
.typ-ring-fg{ fill:none; stroke:rgb(var(--accent)); stroke-width:3.5; stroke-linecap:round; transition:stroke-dashoffset .3s ease-out, stroke .3s ease; }
.typ-ring-wrap.ok .typ-ring-fg{ stroke:var(--ok); } .typ-ring-wrap.warn .typ-ring-fg{ stroke:var(--warn); } .typ-ring-wrap.bad .typ-ring-fg{ stroke:var(--bad); }
.typ-ring-wrap .typ-stat-v{ font-size:15px; position:relative; z-index:1; }
/* live sparkline — fades in with the run */
.typ-spark-wrap{ flex:1; min-width:120px; align-self:center; }
.typ-spark{ width:100%; height:34px; opacity:0; transition:opacity .4s ease; }
.typ-shell.run .typ-spark{ opacity:.55; }
.typ-spark polyline{ fill:none; stroke:rgb(var(--accent)); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* typing arena */
.typ-area{ position:relative; }
.typ-window{ position:relative; height:calc(1.9em * 3); overflow:hidden; padding:2px;
  font:500 24px/1.9 var(--typ-mono);
  -webkit-mask-image:linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image:linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.typ-stream{ font:inherit; letter-spacing:0; color:var(--mut); cursor:text; user-select:none; outline:none;
  transition:transform .22s var(--typ-ease); will-change:transform; }
.typ-word{ display:inline-block; margin-right:2px; }
.typ-word.err{ text-decoration:underline; text-decoration-color:var(--bad); text-underline-offset:4px; }
.typ-word.done{ opacity:.9; }
.typ-ch{ color:var(--mut); transition:color .12s ease; }
.typ-ch.ok{ color:var(--txt); }
.typ-ch.bad{ color:var(--bad); background:rgba(251,113,133,.12); border-radius:3px; }
.typ-sp{ white-space:pre; }
.typ-at{ display:inline-block; width:0; height:1.35em; vertical-align:middle; }
.typ-caret{ position:absolute; top:0; left:0; width:2.5px; height:1.35em; border-radius:2px;
  background:var(--grad); box-shadow:0 0 8px rgba(var(--accent),.5);
  transform:translate(0,0); transition:transform .09s var(--typ-ease); pointer-events:none; }
.typ-caret.idle{ animation:typCaret 1.1s ease-in-out infinite; }
@keyframes typCaret{ 0%,100%{opacity:1} 50%{opacity:.15} }
.typ-hidden{ position:absolute; left:0; top:0; width:100%; height:100%; opacity:0; border:0; padding:0; margin:0;
  cursor:text; background:transparent; color:transparent; resize:none; }
.typ-hint{ font-size:12px; color:var(--mut); text-align:center; margin:12px 0 4px; }
.typ-hint b{ color:var(--txt); }

/* Exam mode */
.typ-exam-prompt{ font-size:15px; font-weight:600; color:var(--txt); background:var(--glass2);
  border:1px solid var(--bord); border-left:3px solid rgb(var(--accent)); border-radius:10px; padding:12px 14px; margin-bottom:10px; line-height:1.5; }
.typ-exam-ta{ width:100%; min-height:220px; resize:vertical; background:var(--glass); border:1px solid var(--bord);
  border-radius:12px; padding:14px; color:var(--txt); font-family:inherit; font-size:15px; line-height:1.6; }
.typ-exam-ta:focus{ outline:none; border-color:rgba(var(--accent),.5); }
.typ-exam-bar{ display:flex; justify-content:space-between; align-items:center; margin-top:8px; font-variant-numeric:tabular-nums; }
.typ-wordcount{ font-size:13px; font-weight:700; color:var(--mut); }
.typ-wordcount.ok{ color:var(--ok); }
.typ-exam-clock{ font-size:15px; font-weight:800; color:var(--txt); font-variant-numeric:tabular-nums; }

/* keyboard heatmap — real keycaps */
.typ-kb{ margin:18px 0 6px; }
.typ-heat-h{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--mut); margin-bottom:10px; text-align:center; }
.typ-krow{ display:flex; justify-content:center; gap:6px; margin-bottom:6px; }
.typ-krow:nth-child(3){ padding-left:14px; }
.typ-krow:nth-child(4){ padding-left:34px; }
.typ-key{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:9px;
  background:var(--glass2); border:1px solid var(--bord); box-shadow:inset 0 -2px 0 rgba(0,0,0,.18);
  font:600 12.5px var(--typ-mono); text-transform:uppercase; color:var(--mut);
  transition:transform .12s var(--typ-ease), background .12s ease, border-color .12s ease; }
.typ-key.fz-a{ background:rgba(var(--accent),.02); } .typ-key.fz-b{ background:rgba(var(--accent2),.02); }
.typ-key.h1{ background:rgba(251,191,36,.16); border-color:rgba(251,191,36,.38); color:var(--warn); }
.typ-key.h2{ background:rgba(251,191,36,.30); border-color:rgba(251,191,36,.5); color:var(--warn-2); }
.typ-key.h3{ background:rgba(251,113,133,.28); border-color:rgba(251,113,133,.55); color:var(--bad); }
.typ-key.press{ transform:translateY(1px) scale(.94); background:rgba(var(--accent),.2); border-color:rgba(var(--accent),.5); }
.typ-kb-legend{ display:flex; justify-content:flex-end; gap:14px; margin-top:8px; font-size:10.5px; color:var(--mut); }
.typ-kb-dot{ display:inline-flex; align-items:center; gap:5px; }
.typ-kb-dot::before{ content:""; width:9px; height:9px; border-radius:3px; }
.typ-kb-dot.d1::before{ background:rgba(251,191,36,.5); } .typ-kb-dot.d2::before{ background:rgba(251,191,36,.85); } .typ-kb-dot.d3::before{ background:var(--bad); }

/* recent runs */
.typ-histwrap{ margin-top:18px; border-top:1px solid var(--bord); padding-top:14px; }
.typ-hist-h{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--mut); margin-bottom:8px; }
.typ-hist-row{ display:flex; align-items:center; gap:12px; font-size:13px; padding:6px 0; border-bottom:1px solid var(--bord); }
.typ-hist-row b{ color:rgb(var(--accent)); }
.typ-hist-m{ text-transform:capitalize; color:var(--mut); min-width:74px; }
.typ-hist-at{ margin-left:auto; color:var(--mut); font-size:12px; }
.typ-hist-empty{ font-size:13px; color:var(--mut); padding:8px 0; }

/* first-run hero */
.typ-hero{ max-width:880px; margin:14px auto 0; border:1px solid var(--bord); border-radius:18px; padding:22px 24px;
  background:linear-gradient(135deg, rgba(var(--accent),.08), rgba(var(--accent2),.08)); }
.typ-hero-head{ font:600 22px/1.25 var(--typ-mono); color:var(--txt); letter-spacing:-.01em; }
.typ-hero-body{ font-size:13.5px; color:var(--mut); line-height:1.55; margin-top:8px; max-width:560px; }
.typ-hero-cta{ margin-top:12px; font-size:12.5px; font-weight:700; color:rgb(var(--accent)); }
.typ-hero-arrow{ display:inline-block; margin-left:4px; animation:typHeroArrow 1.6s ease-in-out infinite; }
@keyframes typHeroArrow{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(3px)} }

/* results card — the beat-OnMock reveal */
.typ-results{ margin:6px 0 4px; }
.typ-res-in{ animation:typResIn .32s var(--typ-ease) both; }
@keyframes typResIn{ from{opacity:0; transform:scale(.965) translateY(8px)} to{opacity:1; transform:none} }
.typ-res-in > *{ animation:typResIn .32s var(--typ-ease) both; }
.typ-res-in > *:nth-child(1){ animation-delay:.04s } .typ-res-in > *:nth-child(2){ animation-delay:.08s }
.typ-res-in > *:nth-child(3){ animation-delay:.12s } .typ-res-in > *:nth-child(4){ animation-delay:.16s }
.typ-res-in > *:nth-child(5){ animation-delay:.20s } .typ-res-in > *:nth-child(6){ animation-delay:.24s }
.typ-res-hero{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.typ-res-main{ display:flex; align-items:center; gap:28px; flex:0 0 auto; }
.typ-res-side{ display:flex; gap:12px; flex:1 1 380px; }
.typ-res-side .typ-res-cell{ flex:1 1 0; }
.typ-res-acc-cell.ok .typ-res-cell-v{ color:var(--ok); }
.typ-res-acc-cell.warn .typ-res-cell-v{ color:var(--warn); }
.typ-res-acc-cell.bad .typ-res-cell-v{ color:var(--bad); }
.typ-res-wpm{ display:flex; align-items:baseline; gap:8px; }
.typ-res-wpm-v{ font-family:Sora,Inter,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.02em;
  font-size:56px; font-weight:800; color:rgb(var(--accent)); line-height:1; text-shadow:0 0 28px rgba(var(--accent),.3); }
.typ-res-wpm-l{ font-size:14px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mut); }
.typ-res-accwrap{ position:relative; width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.typ-res-ring{ position:absolute; inset:0; width:64px; height:64px; transform:rotate(-90deg); }
.typ-res-ring-bg{ fill:none; stroke:var(--bord2); stroke-width:4; }
.typ-res-ring-fg{ fill:none; stroke:rgb(var(--accent)); stroke-width:4; stroke-linecap:round; transition:stroke-dashoffset .5s var(--typ-ease); }
.typ-res-ring.ok .typ-res-ring-fg{ stroke:var(--ok); } .typ-res-ring.warn .typ-res-ring-fg{ stroke:var(--warn); } .typ-res-ring.bad .typ-res-ring-fg{ stroke:var(--bad); }
.typ-res-acc{ position:relative; z-index:1; text-align:center; line-height:1; }
.typ-res-acc b{ font-family:Sora,Inter,sans-serif; font-size:16px; font-weight:800; color:var(--txt); }
.typ-res-acc span{ display:block; font-size:8.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--mut); margin-top:2px; }
.typ-res-pb{ margin-top:14px; font-size:13.5px; font-weight:700; color:rgb(var(--accent)); text-align:center;
  background:rgba(var(--accent),.10); border:1px solid rgba(var(--accent),.4); border-radius:12px; padding:10px 14px;
  box-shadow:var(--glow); animation:typPbPulse 1.8s ease-in-out infinite; }
@keyframes typPbPulse{ 0%,100%{box-shadow:var(--glow)} 50%{box-shadow:0 0 0 4px rgba(var(--accent),.10), var(--glow)} }
.typ-res-spark{ margin-top:16px; }
.typ-res-sparksvg{ width:100%; height:64px; display:block; }
.typ-res-fill{ fill:rgba(var(--accent),.12); stroke:none; }
.typ-res-line{ fill:none; stroke:rgb(var(--accent)); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.typ-res-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
.typ-res-cell{ background:var(--glass); border:1px solid var(--bord); border-radius:12px; padding:12px 10px; text-align:center; }
.typ-res-cell-v{ font-family:Sora,Inter,sans-serif; font-variant-numeric:tabular-nums; font-size:22px; font-weight:700; color:var(--txt); }
.typ-res-cell-l{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mut); margin-top:4px; }
.typ-res-keys{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.typ-res-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; flex-wrap:wrap; }
.typ-res-foot .typ-res-keys{ margin-top:0; flex:1 1 auto; }
.typ-res-retry{ flex:none; padding:6px 22px!important; font-size:13.5px!important; height:34px; line-height:1; border-radius:9px!important; }
.typ-res-keys-l{ font-size:12.5px; font-weight:700; color:var(--mut); }
.typ-res-chip{ font:600 12.5px var(--typ-mono); color:var(--bad); background:rgba(251,113,133,.12);
  border:1px solid rgba(251,113,133,.35); border-radius:8px; padding:3px 10px; }
.typ-res-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.typ-res-actions .btn.ghost{ background:var(--glass2)!important; color:var(--txt)!important; border:1px solid var(--bord)!important; box-shadow:none!important; }

/* light-theme fixes */
html[data-theme="light"] .typ-ch.bad{ background:rgba(190,18,60,.08); }
html[data-theme="light"] .typ-key{ box-shadow:inset 0 -2px 0 rgba(16,24,42,.08); }
html[data-theme="light"] .typ-stat.hero .typ-stat-v{ text-shadow:none; }
html[data-theme="light"] .typ-res-wpm-v{ text-shadow:none; }

/* reduced motion — motion off, JS lerp collapses to direct assignment (see bindTyping) */
@media(prefers-reduced-motion:reduce){
  .typ-caret, .typ-stream, .typ-seg-pill, .typ-key, .typ-ring-fg, .typ-res-ring-fg, .typ-spark, .typ-dim, .typ-dim-top{ transition:none !important; }
  .typ-res-in, .typ-res-in > *, .typ-hero-arrow, .typ-res-pb{ animation:none !important; }
  .typ-stat-v.bump, .typ-caret.idle{ animation:none !important; }
}

/* ═══ Vocabulary Skill Builder (v863) — echoes the Typing Trainer / skill-hub tokens ═══ */
.vg-ring{ transform:rotate(-90deg); }
.vg-ring-bg{ fill:none; stroke:var(--bord2); stroke-width:3.5; }
.vg-ring-fg{ fill:none; stroke:rgb(var(--accent)); stroke-width:3.5; stroke-linecap:round; transition:stroke-dashoffset .6s cubic-bezier(.22,1,.36,1); }
.vg-ring.sm{ width:40px; height:40px; } .vg-ring.lg{ width:56px; height:56px; } .vg-ring.big{ width:64px; height:64px; }
.vg-ring.ok .vg-ring-fg{ stroke:var(--ok); } .vg-ring.warn .vg-ring-fg{ stroke:var(--warn); } .vg-ring.bad .vg-ring-fg{ stroke:var(--bad); }

/* progress strip */
.vg-prog{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; background:var(--card); border:1px solid var(--bord);
  border-radius:18px; padding:16px 20px; box-shadow:var(--shadow); margin:14px 0 4px; }
.vg-prog-lvl{ display:flex; align-items:center; gap:12px; }
.vg-prog-lvlring{ position:relative; width:56px; height:56px; display:flex; align-items:center; justify-content:center; }
.vg-prog-lvlring .vg-ring{ position:absolute; inset:0; }
.vg-prog-lvln{ position:relative; z-index:1; font:800 20px 'Sora',sans-serif; color:rgb(var(--accent)); }
.vg-prog-lvll{ font:700 14px 'Sora',sans-serif; color:var(--txt); }
.vg-prog-lvlx{ font-size:11.5px; color:var(--mut); margin-top:2px; }
.vg-prog-stats{ display:flex; gap:22px; }
.vg-prog-stat{ text-align:center; }
.vg-prog-v{ font:800 22px 'Sora',sans-serif; color:var(--txt); font-variant-numeric:tabular-nums; }
.vg-prog-l{ font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--mut); margin-top:3px; }
.vg-goal{ flex:1; min-width:180px; }
.vg-goal-head{ display:flex; justify-content:space-between; font-size:12px; font-weight:700; color:var(--mut); margin-bottom:6px; }
.vg-goal-n{ color:rgb(var(--accent)); }
.vg-goalbar{ height:8px; border-radius:99px; background:var(--glass2); border:1px solid var(--bord); overflow:hidden; }
.vg-goalbar i{ display:block; height:100%; background:var(--grad); border-radius:99px; transition:width .5s cubic-bezier(.22,1,.36,1); }
.vg-goal-seg{ display:flex; gap:6px; margin-top:8px; }
.vg-goalbtn{ flex:1; padding:5px 0; border-radius:8px; background:var(--glass2); border:1px solid var(--bord); color:var(--mut);
  font:600 12px inherit; cursor:pointer; transition:all .15s; }
.vg-goalbtn.on{ background:rgba(var(--accent),.14); border-color:rgba(var(--accent),.45); color:rgb(var(--accent)); }

/* due-review strip */
.vg-due{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; margin:12px 0; padding:12px 16px; border-radius:14px;
  background:linear-gradient(135deg,rgba(251,191,36,.10),rgba(var(--accent),.08)); border:1px solid rgba(251,191,36,.35);
  color:var(--txt); font-family:inherit; cursor:pointer; transition:transform .12s,box-shadow .12s; }
.vg-due:hover{ transform:translateY(-1px); box-shadow:var(--shadow); }
.vg-due.done{ cursor:default; background:var(--glass); border-color:var(--bord); }
.vg-due.done:hover{ transform:none; box-shadow:none; }
.vg-due-ic{ font-size:20px; } .vg-due-t{ flex:1; font-size:13.5px; } .vg-due-t b{ color:rgb(var(--accent)); }
.vg-due-cta{ font-weight:700; font-size:13px; color:rgb(var(--accent)); }

/* topic cards */
.vg-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; margin-top:6px; }
.vg-card{ display:flex; flex-direction:column; gap:8px; text-align:left; background:var(--card); border:1px solid var(--bord);
  border-radius:16px; padding:16px; color:var(--txt); font-family:inherit; cursor:pointer; transition:transform .12s,border-color .12s,box-shadow .12s; }
.vg-card:hover{ transform:translateY(-3px); border-color:var(--bord2); box-shadow:var(--shadow); }
.vg-card-top{ display:flex; align-items:center; justify-content:space-between; }
.vg-card-ico{ font-size:26px; width:46px; height:46px; display:flex; align-items:center; justify-content:center; background:var(--glass2); border-radius:12px; }
.vg-card-ring{ position:relative; width:40px; height:40px; display:flex; align-items:center; justify-content:center; }
.vg-card-ring .vg-ring{ position:absolute; inset:0; }
.vg-card-ringn{ position:relative; z-index:1; font:800 12px 'Sora',sans-serif; color:var(--txt); } .vg-card-ringn i{ font-style:normal; font-size:8px; color:var(--mut); }
.vg-card-name{ font-weight:700; font-size:15.5px; }
.vg-card-blurb{ font-size:12px; color:var(--mut); line-height:1.45; flex:1; }
.vg-card-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
.vg-chip-lvl{ font-size:10px; font-weight:700; letter-spacing:.05em; color:var(--mut); border:1px solid var(--bord); border-radius:6px; padding:1px 6px; }
.vg-card-cta{ font-size:12.5px; font-weight:700; color:rgb(var(--accent)); }

/* topic detail */
.vg-back{ background:none; border:0; color:var(--mut); font:600 13px inherit; cursor:pointer; padding:4px 0; margin-bottom:6px; }
.vg-back:hover{ color:var(--txt); }
.vg-thead{ display:flex; align-items:center; gap:16px; margin:6px 0 16px; flex-wrap:wrap; }
.vg-thead-ico{ font-size:34px; width:60px; height:60px; display:flex; align-items:center; justify-content:center; background:var(--glass2); border-radius:16px; }
.vg-thead-meta{ flex:1; min-width:200px; }
.vg-thead-ring{ position:relative; display:flex; flex-direction:column; align-items:center; gap:7px; }
.vg-thead-ringc{ position:relative; width:56px; height:56px; display:flex; align-items:center; justify-content:center; }
.vg-thead-ringc .vg-ring{ position:absolute; inset:0; }
.vg-thead-ringn{ position:relative; z-index:1; font:800 15px 'Sora',sans-serif; color:var(--txt); } .vg-thead-ringn i{ font-style:normal; font-size:9px; color:var(--mut); }
.vg-thead-ringl{ font-size:9.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mut); }
/* v873 — sets as a vertical NUMBERED PATH (sequential flow): a framed rail with 1..N step badges */
.vg-sets{ display:flex; flex-direction:column; margin-top:6px;
  border:1px solid rgba(var(--vg-tint,var(--accent)),.28); border-radius:18px; overflow:hidden;
  background:linear-gradient(180deg, rgba(var(--vg-tint,var(--accent)),.05), var(--card) 40%); }
.vg-set{ display:grid; grid-template-columns:40px 46px 1fr auto; align-items:center; gap:15px; padding:15px 18px;
  background:transparent; border:0; border-top:1px solid var(--bord); text-align:left; cursor:pointer;
  font-family:inherit; color:var(--txt); width:100%; }
.vg-set:first-child{ border-top:0; }
.vg-set:hover:not(.locked){ background:rgba(var(--vg-tint,var(--accent)),.06); }
.vg-set.reco{ background:rgba(var(--vg-tint,var(--accent)),.05); }
/* numbered rail */
.vg-step{ position:relative; align-self:stretch; display:flex; align-items:center; justify-content:center; }
.vg-step::before{ content:""; position:absolute; left:50%; transform:translateX(-50%); top:0; bottom:0; width:2px; background:var(--bord); }
.vg-set:first-child .vg-step::before{ top:50%; }
.vg-set:last-child .vg-step::before{ bottom:50%; }
.vg-step-n{ position:relative; z-index:1; width:28px; height:28px; border-radius:50%; background:var(--card);
  border:2px solid var(--bord2); display:flex; align-items:center; justify-content:center; font:800 12px 'Sora',sans-serif; color:var(--mut); }
.vg-set:not(.locked) .vg-step-n{ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
.vg-set.done .vg-step-n{ background:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); color:#fff; }
/* icon tile */
.vg-set-ic{ font-size:21px; width:46px; height:46px; display:flex; align-items:center; justify-content:center;
  background:rgba(var(--vg-tint,var(--accent)),.14); border-radius:12px; }
/* body */
.vg-set-body{ min-width:0; }
.vg-set-name{ font-weight:700; font-size:15.5px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vg-set-meta{ font-size:12px; color:var(--mut); margin-top:2px; }
.vg-set-lockmsg{ font-size:11.5px; font-weight:600; color:var(--mut); margin-top:3px; display:inline-flex; align-items:center; gap:5px; line-height:1.35; }
.vg-set-reco{ font-size:9.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent))));
  border:1px dashed rgba(var(--vg-tint,var(--accent)),.5); background:rgba(var(--vg-tint,var(--accent)),.10); border-radius:6px; padding:1px 6px; }
/* end: ring + CTA (unlocked) or lock glyph (locked) */
.vg-set-end{ display:flex; align-items:center; gap:14px; }
.vg-set-ring{ position:relative; width:38px; height:38px; display:flex; align-items:center; justify-content:center; }
.vg-set-ring .vg-ring{ position:absolute; inset:0; }
.vg-set-ringn{ position:relative; z-index:1; font:800 11px 'Sora',sans-serif; color:var(--txt); }
.vg-set-ringn i{ font-style:normal; font-size:7px; color:var(--mut); }
.vg-set-cta{ font-size:12.5px; font-weight:700; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.vg-set-lockic{ font-size:16px; opacity:.5; }
/* locked */
.vg-set.locked{ cursor:default; }
.vg-set.locked .vg-set-ic{ filter:grayscale(1); opacity:.5; }
.vg-set.locked .vg-set-name{ color:var(--mut); }   /* v1.300 V-22 — was opacity:.62 on name + meta (meta 2.66:1) */

/* round shell */
.vg-shell{ background:linear-gradient(180deg, var(--glass2), var(--glass) 55%); border:1px solid var(--bord2);
  border-radius:22px; padding:20px 24px 26px; box-shadow:0 18px 44px rgba(2,8,23,.45), inset 0 1px 0 rgba(255,255,255,.05);
  max-width:760px; margin:12px auto 0; position:relative; overflow:hidden; }
.vg-top{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px; margin-bottom:18px; }
.vg-top-back{ width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:11px;
  background:var(--glass2); border:1px solid var(--bord); color:var(--mut); font:600 15px inherit; cursor:pointer; transition:all .14s; }
.vg-top-back:hover{ color:var(--txt); border-color:var(--bord2); background:var(--glass3); }
.vg-top-back:active{ transform:scale(.94); }
.vg-top-mid{ min-width:0; }
.vg-top-set{ font:700 14px 'Sora',sans-serif; color:var(--txt); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vg-dots{ display:flex; gap:5px; margin-top:8px; flex-wrap:nowrap; height:7px; }
.vg-dot{ flex:1 1 0; min-width:0; height:7px; border-radius:99px; border:0;
  background:var(--glass2); box-shadow:inset 0 1px 2px rgba(2,8,23,.35);
  transition:background .25s, box-shadow .25s; position:relative; overflow:hidden; }
.vg-dot.done{ background:linear-gradient(90deg, rgba(var(--vg-tint,var(--accent)),.85), rgb(var(--vg-tint,var(--accent))));
  box-shadow:0 0 8px rgba(var(--vg-tint,var(--accent)),.35); }
.vg-dot.cur{ background:rgba(var(--vg-tint,var(--accent)),.22); }
.vg-dot.cur::after{ content:""; position:absolute; inset:0; border-radius:99px;
  background:linear-gradient(90deg, transparent, rgba(var(--vg-tint,var(--accent)),.55), transparent);
  background-size:200% 100%; }
.vg-top-right{ display:flex; align-items:center; gap:10px; }
.vg-combo,.vg-xp{ display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border-radius:11px; font:700 12.5px 'Sora',sans-serif; }
.vg-combo{ color:var(--warn); background:rgba(251,191,36,.10); border:1px solid rgba(251,191,36,.3); transition:opacity .2s; }
.vg-xp{ color:rgb(var(--accent)); background:rgba(var(--accent),.10); border:1px solid rgba(var(--accent),.3); }
.vg-combo b,.vg-xp b{ font-size:14px; }
.vg-stage{ min-height:240px; display:flex; flex-direction:column; justify-content:center; }
.vg-prompt{ font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
  color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.vg-prompt::before{ content:""; width:18px; height:2px; border-radius:2px; background:rgb(var(--vg-tint,var(--accent))); }
.vg-q{ font:600 21px/1.6 'Sora',sans-serif; letter-spacing:-.01em; color:var(--txt); margin-bottom:22px; }
.vg-blank{ display:inline-flex; align-items:center; justify-content:center; min-width:58px; padding:1px 14px; margin:0 2px;
  border-radius:10px; font:700 17px 'Sora',sans-serif; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent))));
  background:rgba(var(--vg-tint,var(--accent)),.13); border:1.5px dashed rgba(var(--vg-tint,var(--accent)),.5);
  box-shadow:inset 0 1px 3px rgba(2,8,23,.25); }
.vg-u{ text-decoration:none; background:rgba(var(--vg-tint,var(--accent)),.14); border-bottom:2px solid rgb(var(--vg-tint,var(--accent)));
  border-radius:6px 6px 0 0; padding:0 4px; font-weight:700; }

/* options (mcq/replace) */
.vg-opts{ display:flex; flex-direction:column; gap:12px; }
.vg-opt{ display:flex; align-items:center; gap:14px; text-align:left; min-height:56px;
  background:linear-gradient(180deg, var(--glass2), var(--glass));
  border:1px solid var(--bord2); border-radius:15px; padding:14px 16px;
  color:var(--txt); font:600 15px inherit; cursor:pointer;
  box-shadow:0 3px 0 rgba(2,8,23,.5), inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .1s, border-color .14s, background .14s, box-shadow .14s; }
.vg-opt:hover:not(:disabled){ border-color:rgba(var(--vg-tint,var(--accent)),.55);
  background:linear-gradient(180deg, rgba(var(--vg-tint,var(--accent)),.10), var(--glass));
  transform:translateY(-1px);
  box-shadow:0 4px 0 rgba(2,8,23,.5), 0 6px 18px rgba(var(--vg-tint,var(--accent)),.14); }
.vg-opt:active:not(:disabled){ transform:translateY(2px); box-shadow:0 1px 0 rgba(2,8,23,.5); }
.vg-opt:disabled{ cursor:default; }
.vg-opt-k{ flex:0 0 30px; height:30px; display:flex; align-items:center; justify-content:center;
  border-radius:9px; background:rgba(var(--vg-tint,var(--accent)),.12);
  border:1px solid rgba(var(--vg-tint,var(--accent)),.35);
  font:700 13px 'Sora',sans-serif; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); transition:all .14s; }
.vg-opt-txt{ flex:1; line-height:1.4; }
.vg-opt.correct, .lrws-opts li.ok .lrws-opt, .lrws-opts li.was .lrws-opt{ border-color:var(--ok); background:rgba(52,211,153,.14); box-shadow:0 3px 0 rgba(16,102,66,.55); }
.vg-opt.correct .vg-opt-k, .lrws-opts li.ok .lrws-opt .vg-opt-k{ background:var(--ok); border-color:var(--ok); color:#04210f; }
.vg-opt.wrong, .lrws-opts li.bad .lrws-opt{ border-color:var(--bad); background:rgba(251,113,133,.12); box-shadow:0 3px 0 rgba(136,32,49,.5); animation:vgShake .34s; }
.vg-opt.wrong .vg-opt-k, .lrws-opts li.bad .lrws-opt .vg-opt-k{ background:rgba(251,113,133,.2); border-color:var(--bad); color:var(--bad); }
@keyframes vgShake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* bank fill */
.vg-gap{ display:inline-block; }
.vg-gap-inp, .lrws-in.lrws-gap, .lrws-ord, .lrws-in[type=text]{ width:140px; text-align:center; background:rgba(var(--vg-tint,var(--accent)),.13); border:1.5px dashed rgba(var(--vg-tint,var(--accent)),.5);
  color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); font:700 17px 'Sora',sans-serif; padding:2px 6px; border-radius:10px; }
.vg-gap-inp:focus, .lrws-in[type=text]:focus{ outline:none; border-style:solid; border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
.vg-gap.filled .vg-gap-inp, .lrws-in.ok{ color:var(--ok); border-style:solid; border-color:var(--ok); background:rgba(52,211,153,.14); }
.vg-gap.wrong .vg-gap-inp, .lrws-in.bad{ color:var(--bad); border-style:solid; border-color:var(--bad); background:rgba(251,113,133,.12); }
.vg-gap.over .vg-gap-inp{ border-style:solid; border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); background:rgba(var(--vg-tint,var(--accent)),.2); }
.vg-bank{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.vg-chip{ min-height:44px; padding:10px 16px; border-radius:12px; background:linear-gradient(180deg,var(--glass2),var(--glass));
  border:1px solid var(--bord2); box-shadow:0 2px 0 rgba(2,8,23,.45); color:var(--txt);
  font:600 14px inherit; cursor:pointer; transition:transform .1s,border-color .12s,background .12s,box-shadow .12s; animation:vgChipIn .25s cubic-bezier(.22,1,.36,1) both; }
@keyframes vgChipIn{ from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none} }
.vg-chip:hover:not(:disabled){ border-color:rgba(var(--vg-tint,var(--accent)),.55); transform:translateY(-1px); }
.vg-chip:active:not(:disabled){ transform:translateY(1px); box-shadow:none; }
.vg-chip.used{ opacity:.4; }
.vg-chip.reveal{ border-color:var(--ok); background:rgba(52,211,153,.14); color:var(--ok); }
.vg-chip:disabled{ cursor:default; }

/* type-in */
.vg-typein{ display:flex; gap:10px; }
.vg-type-inp{ flex:1; min-height:52px; border-radius:14px; font:600 17px inherit; padding:12px 16px; color:var(--txt);
  background:var(--glass2); border:1.5px solid var(--bord2); box-shadow:inset 0 2px 6px rgba(2,8,23,.3); }
.vg-type-inp:focus{ outline:none; border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); box-shadow:inset 0 2px 6px rgba(2,8,23,.3), 0 0 0 3px rgba(var(--vg-tint,var(--accent)),.15); }
.vg-type-inp.ok{ border-color:var(--ok); background:rgba(52,211,153,.10); box-shadow:0 0 0 3px rgba(52,211,153,.15); }
.vg-type-inp.bad{ border-color:var(--bad); background:rgba(251,113,133,.10); box-shadow:0 0 0 3px rgba(251,113,133,.15); }
.vg-typein .btn{ min-height:52px; padding:0 22px; border-radius:14px; }
/* --- dictation stage (v1.1xx — type what you hear) --- */
.vg-dict-row{ display:flex; align-items:center; gap:14px; margin:4px 0 16px; min-height:48px; }
.vg-dict-row .am-play{ margin-left:0; min-height:46px; padding:10px 20px; font-size:17px; border-radius:14px; }
/* the first tap is the gesture (autoplay is blocked without one) — pulse until it happens */
.vg-dict-row .am-play:not(.on){ animation:vgDictPulse 1.7s ease-in-out infinite; }
@keyframes vgDictPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(var(--vg-tint,var(--accent)),.35); }
  55%{ box-shadow:0 0 0 8px rgba(var(--vg-tint,var(--accent)),0); } }
@media (prefers-reduced-motion:reduce){ .vg-dict-row .am-play:not(.on){ animation:none; } }
.vg-dict-plays{ font-size:12px; color:var(--mut); font-variant-numeric:tabular-nums; }
.vg-dict-hint{ letter-spacing:.14em; font-variant-numeric:tabular-nums; }
.vg-dict-hintn{ font-size:12px; color:var(--mut); margin-left:10px; }
/* quiet by design: this is the accessibility/failure path, not an easy-mode button */
.vg-dict-alt{ display:block; margin-top:12px; background:none; border:none; padding:2px 0;
  font:500 12.5px inherit; color:var(--mut); text-decoration:underline; text-underline-offset:3px;
  cursor:pointer; }
.vg-dict-alt:hover{ color:var(--txt); }

/* sentence-match */
.vg-sm{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.vg-sm-col{ display:flex; flex-direction:column; gap:10px; }
.vg-sm-t{ text-align:left; min-height:56px; background:linear-gradient(180deg,var(--glass2),var(--glass)); border:1px solid var(--bord2); border-radius:14px; padding:12px 14px; color:var(--txt);
  font:500 13.5px inherit; line-height:1.4; cursor:pointer; box-shadow:0 2px 0 rgba(2,8,23,.45); transition:transform .1s,border-color .12s,background .12s,box-shadow .12s; }
.vg-sm-t:hover:not(.paired){ border-color:var(--bord2); }
.vg-sm-t.sel{ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); background:rgba(var(--vg-tint,var(--accent)),.14); box-shadow:0 0 0 3px rgba(var(--vg-tint,var(--accent)),.15); }
.vg-sm-t.paired{ border-color:var(--ok); background:rgba(52,211,153,.12); color:var(--mut); cursor:default; box-shadow:none; }
.vg-sm-t.miss{ animation:vgShake .34s; border-color:var(--bad); }
.vg-sm-t.nudge{ animation:vgShake .3s; }

/* match board */
.vg-match-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.vg-tile{ min-height:56px; text-align:left; background:linear-gradient(180deg,var(--glass2),var(--glass)); border:1px solid var(--bord2); border-radius:14px; padding:11px 13px;
  color:var(--txt); font:500 13.5px inherit; line-height:1.35; cursor:pointer; box-shadow:0 2px 0 rgba(2,8,23,.45); transition:transform .1s,border-color .12s,background .12s,box-shadow .12s; }
.vg-tile.term{ font:700 15px 'Sora',sans-serif; }
.vg-tile:hover:not(.paired){ border-color:var(--bord2); transform:translateY(-1px); }
.vg-tile.sel{ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); background:rgba(var(--vg-tint,var(--accent)),.14); box-shadow:0 0 0 3px rgba(var(--vg-tint,var(--accent)),.15); }
.vg-tile.paired{ opacity:.45; border-color:var(--ok); background:rgba(52,211,153,.10); cursor:default; box-shadow:none; }
.vg-tile.miss{ animation:vgShake .34s; border-color:var(--bad); background:rgba(251,113,133,.12); }

/* word search */
.vg-ws-wrap{ display:flex; gap:16px; flex-wrap:wrap; align-items:flex-start; }
.vg-ws-grid{ display:grid; gap:4px; padding:10px; border-radius:14px; background:rgba(2,8,23,.25); border:1px solid var(--bord); touch-action:none; user-select:none; flex:0 0 auto; }
.vg-ws-cell{ width:34px; height:34px; min-width:34px; display:flex; align-items:center; justify-content:center; background:var(--glass2);
  border:1px solid var(--bord); border-radius:8px; box-shadow:inset 0 -1px 0 rgba(2,8,23,.3); color:var(--txt); font:700 14px 'JetBrains Mono',monospace; text-transform:uppercase; cursor:pointer; transition:transform .1s,background .12s,border-color .12s; }
.vg-ws-cell.sel{ background:rgba(var(--vg-tint,var(--accent)),.3); border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); transform:scale(1.06); }
.vg-ws-cell.found{ background:rgba(52,211,153,.22); border-color:var(--ok); color:var(--ok); box-shadow:0 0 8px rgba(52,211,153,.25); cursor:default; }
.vg-ws-clues{ flex:1; min-width:180px; display:flex; flex-direction:column; gap:7px; }
.vg-ws-clue{ font-size:12.5px; color:var(--txt); background:var(--glass2); border:1px solid var(--bord); border-radius:11px; padding:9px 12px; transition:opacity .2s; }
.vg-ws-clue b{ text-transform:uppercase; letter-spacing:.04em; font-size:11px; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); margin-right:6px; }
.vg-ws-clue span{ color:var(--mut); }
.vg-ws-clue.found{ opacity:.5; text-decoration:line-through; }
.vg-ws-clue.found b{ color:var(--ok); }

/* feedback strip */
.vg-explain{ min-height:24px; margin-top:18px; border-radius:13px; display:flex; align-items:center; gap:10px; font:600 13.5px/1.45 inherit; padding:0; transition:padding .15s; }
.vg-explain.ok,.vg-explain.bad{ padding:12px 15px; }
.vg-explain.ok{ background:rgba(52,211,153,.12); border:1px solid rgba(52,211,153,.35); color:var(--ok-2); }
.vg-explain.bad{ background:rgba(251,113,133,.10); border:1px solid rgba(251,113,133,.32); color:var(--bad-3); }
.vg-explain-ic{ width:22px; height:22px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:50%; font-weight:800; font-size:12px; }
.vg-explain.ok .vg-explain-ic{ background:var(--ok); color:#04210f; }
.vg-explain.bad .vg-explain-ic{ background:var(--bad); color:#2b060d; }

/* results */
.vg-results{ max-width:640px; margin:10px auto 0; }
.vg-res-in{ animation:vgResIn .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes vgResIn{ from{opacity:0; transform:scale(.965) translateY(8px)} to{opacity:1; transform:none} }
.vg-res-in > *{ animation:vgResIn .32s cubic-bezier(.22,1,.36,1) both; }
.vg-res-in > *:nth-child(2){ animation-delay:.06s } .vg-res-in > *:nth-child(3){ animation-delay:.10s }
.vg-res-in > *:nth-child(4){ animation-delay:.14s } .vg-res-in > *:nth-child(5){ animation-delay:.18s }
.vg-res-hero{ display:flex; align-items:center; gap:34px; flex-wrap:wrap; justify-content:center; }
.vg-res-xp{ text-align:center; }
.vg-res-xp-v{ font:800 54px 'Sora',sans-serif; color:rgb(var(--accent)); line-height:1; font-variant-numeric:tabular-nums; text-shadow:0 0 28px rgba(var(--accent),.3); }
.vg-res-xp-l{ font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mut); margin-top:6px; }
.vg-res-accwrap{ position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; }
.vg-res-accring{ position:relative; width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.vg-res-accring .vg-ring{ position:absolute; inset:0; }
.vg-res-accn{ position:relative; z-index:1; font:800 17px 'Sora',sans-serif; color:var(--txt); }
.vg-res-accn i{ font-style:normal; font-size:10px; color:var(--mut); }
.vg-res-accl{ font-size:9.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mut); }
.vg-res-pb,.vg-res-goal{ margin-top:14px; text-align:center; font-size:13.5px; font-weight:700; color:rgb(var(--accent));
  background:rgba(var(--accent),.10); border:1px solid rgba(var(--accent),.4); border-radius:12px; padding:10px 14px; }
.vg-res-goal{ color:var(--warn); background:rgba(251,191,36,.10); border-color:rgba(251,191,36,.4); }
.vg-res-badges{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:14px; }
.vg-badge{ font-size:12.5px; font-weight:700; color:rgb(var(--accent)); background:rgba(var(--accent),.12);
  border:1px solid rgba(var(--accent),.4); border-radius:99px; padding:5px 12px; }
.vg-res-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.vg-res-cell{ background:linear-gradient(180deg, var(--glass2), var(--glass)); border:1px solid var(--bord2); border-radius:12px; padding:12px 8px; text-align:center; box-shadow:0 2px 0 rgba(2,8,23,.4); }
.vg-res-cell-v{ font:700 20px 'Sora',sans-serif; color:var(--txt); font-variant-numeric:tabular-nums; }
.vg-res-cell-l{ font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mut); margin-top:4px; }
/* v878 — long-game progress line (results root has no .vg-t-* → ink chain falls to --accent, AA in both themes) */
.vg-res-prog{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; font-size:13px; font-weight:600; color:var(--txt); background:rgba(var(--accent),.08); border:1px solid rgba(var(--accent),.25); border-radius:10px; padding:8px 12px; }
.vg-res-prog b{ color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); font-variant-numeric:tabular-nums; }
.vg-res-hint{ margin-top:8px; text-align:center; font-size:11.5px; color:var(--mut); }
.vg-res-keys{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; justify-content:center; }
.vg-res-keys-l{ font-size:12.5px; font-weight:700; color:var(--mut); }
.vg-res-chip{ font:600 12.5px 'JetBrains Mono',monospace; color:var(--warn); background:rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.35); border-radius:8px; padding:3px 10px; }
.vg-res-actions{ display:flex; gap:12px; margin-top:18px; }
.vg-res-actions .btn{ flex:1 1 0; min-height:46px; white-space:nowrap; padding-left:8px; padding-right:8px; }
.vg-res-actions .btn.ghost{ background:var(--glass2)!important; color:var(--txt)!important; border:1px solid var(--bord)!important; box-shadow:none!important; border-radius:13px; }

@media(max-width:700px){
  .vg-grid{ grid-template-columns:1fr 1fr; }
  .vg-prog{ gap:14px; } .vg-prog-stats{ gap:14px; }
  .vg-sm{ grid-template-columns:1fr; } .vg-match-grid{ grid-template-columns:1fr; }
  .vg-ws-cell{ width:30px; height:30px; min-width:30px; }
  .vg-dots{ gap:3px; }
  .vg-q{ font-size:18px; }
  .vg-combo,.vg-xp{ padding:5px 8px; }
}
@media(max-width:440px){ .vg-grid{ grid-template-columns:minmax(0,1fr); } }   /* v1.300 V-23 (1fr = minmax(auto,1fr) sized to card min-content) */
@media(prefers-reduced-motion:reduce){
  .vg-ring-fg,.vg-goalbar i{ transition:none !important; }
  .vg-opt.wrong,.vg-tile.miss,.vg-sm-t.miss,.vg-sm-t.nudge,.vg-chip,.vg-res-in,.vg-res-in > *{ animation:none !important; }
  /* v864 — kill the premium-redesign motion */
  .vg-grid .vg-card,.vg-cta-arr,.vg-shell .vg-opt,.vg-sets .vg-set,.vg-hero,.vg-badge::after,.vg-xp b,.vg-combo{ transition:none !important; animation:none !important; }
  .vg-card.mastered .vg-card-ico,.vg-page::after{ animation:none !important; }
  /* v865 — kill the round/results redesign motion */
  .vg-dot,.vg-dot.cur::after,.vg-opt,.vg-opt.correct,.vg-chip,.vg-tile,.vg-sm-t,.vg-ws-cell,.vg-explain{ transition:none !important; animation:none !important; }
}

/* ═══ Vocabulary Builder — PREMIUM "glow" redesign (v864) — APPEARANCE-ONLY ═══ */
/* --- page glow wrapper + aurora sheen --- */
.vg-page{ position:relative; z-index:0; }
.vg-page::before, .lrws-page.unit::before{ content:""; position:absolute; inset:-60px -24px 0; z-index:-1; pointer-events:none; opacity:1;
  background:
    radial-gradient(560px 320px at 12% -4%, rgba(var(--accent),.13), transparent 62%),
    radial-gradient(520px 300px at 88% 6%, rgba(var(--accent2),.10), transparent 62%),
    radial-gradient(680px 420px at 50% 112%, rgba(var(--accent),.06), transparent 70%); }
.vg-page::after{ content:""; position:absolute; inset:-60px -24px 0; z-index:-1; pointer-events:none; opacity:.5;
  background:conic-gradient(from 210deg at 30% 12%, transparent 0deg, rgba(var(--accent),.05) 90deg, transparent 200deg, rgba(var(--accent2),.05) 300deg, transparent 360deg); }

/* --- per-topic accent tints --- */
.vg-t-edu{ --vg-tint:96,165,250; }   .vg-t-env{ --vg-tint:52,211,153; }
.vg-t-health{ --vg-tint:244,114,182; } .vg-t-work{ --vg-tint:251,191,36; }
.vg-t-travel{ --vg-tint:251,146,60; } .vg-t-tech{ --vg-tint:167,139,250; }
.vg-t-crime{ --vg-tint:248,113,113; } .vg-t-food{ --vg-tint:132,204,22; }
.vg-t-media{ --vg-tint:56,189,248; } .vg-t-money{ --vg-tint:45,212,191; }
.vg-t-sport{ --vg-tint:129,140,248; } .vg-t-art{ --vg-tint:232,121,249; }
.vg-t-family{ --vg-tint:244,63,94; } .vg-t-transport{ --vg-tint:250,204,21; }
.vg-t-housing{ --vg-tint:34,197,94; } .vg-t-business{ --vg-tint:100,116,139; }
.vg-t-language{ --vg-tint:168,85,247; } .vg-t-weather{ --vg-tint:125,211,252; }
.vg-t-society{ --vg-tint:96,165,250; } .vg-t-shopping{ --vg-tint:236,72,153; } .vg-t-nature{ --vg-tint:74,222,128; }
.vg-t-lspell{ --vg-tint:45,212,191; }

/* --- ring extras --- */
.vg-ring.xl{ width:74px; height:74px; }
.vg-ring.glowring{ border-radius:50%; box-shadow:0 0 12px rgba(var(--vg-tint,var(--accent)),.3); }
.vg-ring.glowring .vg-ring-fg{ filter:none; } /* v866: circular glow via wrapper box-shadow — the SVG drop-shadow bled a square on the rotated ring */
.vg-t-edu .vg-ring-fg,.vg-t-env .vg-ring-fg,.vg-t-health .vg-ring-fg,.vg-t-work .vg-ring-fg,.vg-t-travel .vg-ring-fg,.vg-t-tech .vg-ring-fg,.vg-t-crime .vg-ring-fg,.vg-t-food .vg-ring-fg,.vg-t-media .vg-ring-fg,.vg-t-money .vg-ring-fg,.vg-t-sport .vg-ring-fg,.vg-t-art .vg-ring-fg,.vg-t-family .vg-ring-fg,.vg-t-transport .vg-ring-fg,.vg-t-housing .vg-ring-fg,.vg-t-business .vg-ring-fg,.vg-t-language .vg-ring-fg,.vg-t-weather .vg-ring-fg,.vg-t-society .vg-ring-fg,.vg-t-shopping .vg-ring-fg,.vg-t-nature .vg-ring-fg,.vg-t-lspell .vg-ring-fg{ stroke:rgb(var(--vg-ink,var(--vg-tint))); }
/* v868 — per-topic INK: a darkened, AA-legible tint used ONLY as text/stroke in LIGHT theme (dark theme keeps the bright tint via the var fallback) */
html[data-theme="light"] .vg-t-edu{ --vg-ink:29,78,216; }    html[data-theme="light"] .vg-t-env{ --vg-ink:4,120,87; }
html[data-theme="light"] .vg-t-health{ --vg-ink:190,24,93; } html[data-theme="light"] .vg-t-work{ --vg-ink:161,98,7; }
html[data-theme="light"] .vg-t-travel{ --vg-ink:194,65,12; } html[data-theme="light"] .vg-t-tech{ --vg-ink:109,40,217; }
html[data-theme="light"] .vg-t-crime{ --vg-ink:185,28,28; } html[data-theme="light"] .vg-t-food{ --vg-ink:77,124,15; }
html[data-theme="light"] .vg-t-media{ --vg-ink:3,105,161; } html[data-theme="light"] .vg-t-money{ --vg-ink:15,118,110; }
html[data-theme="light"] .vg-t-sport{ --vg-ink:67,56,202; } html[data-theme="light"] .vg-t-art{ --vg-ink:162,28,175; }
html[data-theme="light"] .vg-t-family{ --vg-ink:159,18,57; } html[data-theme="light"] .vg-t-transport{ --vg-ink:133,77,14; }
html[data-theme="light"] .vg-t-housing{ --vg-ink:21,128,61; } html[data-theme="light"] .vg-t-business{ --vg-ink:51,65,85; }
html[data-theme="light"] .vg-t-language{ --vg-ink:107,33,168; } html[data-theme="light"] .vg-t-weather{ --vg-ink:3,105,161; }
html[data-theme="light"] .vg-t-society{ --vg-ink:30,64,175; } html[data-theme="light"] .vg-t-shopping{ --vg-ink:157,23,77; }
html[data-theme="light"] .vg-t-nature{ --vg-ink:22,101,52; }
html[data-theme="light"] .vg-t-lspell{ --vg-ink:15,118,110; }
.vg-card .vg-ring-fg{ filter:none; }
.vg-card.lit .vg-ring-fg,.vg-card.mastered .vg-ring-fg{ filter:drop-shadow(0 0 5px rgba(var(--vg-tint),.7)); }

/* --- glowing hero stat-header --- */
.vg-hero{ position:relative; display:flex; align-items:center; gap:24px; flex-wrap:wrap; overflow:hidden;
  background:linear-gradient(135deg, rgba(var(--accent),.10), rgba(255,255,255,.03) 42%, rgba(var(--accent2),.08));
  border:1px solid rgba(var(--accent),.22); border-radius:20px; padding:18px 22px; margin:14px 0 6px;
  box-shadow:var(--glow), inset 0 1px 0 rgba(255,255,255,.06); }
.vg-hero::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(360px 180px at 88% -20%, rgba(var(--accent2),.14), transparent 70%); }
.vg-hero > *{ position:relative; z-index:1; }
.vg-hero-lvl{ display:flex; align-items:center; gap:14px; }
.vg-hero-lvlring{ position:relative; width:74px; height:74px; flex:none; display:flex; align-items:center; justify-content:center; }
.vg-hero-lvlring .vg-ring{ position:absolute; inset:0; }
.vg-hero-lvln{ position:relative; z-index:1; font:800 26px 'Sora',sans-serif; color:rgb(var(--accent)); text-shadow:0 0 22px rgba(var(--accent),.45); }
.vg-hero-lvll{ font:700 15px 'Sora',sans-serif; color:var(--txt); }
.vg-hero-lvlx{ font-size:11.5px; color:var(--mut); margin-top:3px; max-width:150px; line-height:1.4; }
.vg-hero-stats{ display:flex; gap:12px; flex:1; min-width:210px; }
.vg-hero-stat{ display:flex; align-items:center; gap:10px; flex:1; background:rgba(255,255,255,.03);
  border:1px solid var(--bord); border-radius:14px; padding:11px 13px; }
.vg-hero-ic{ width:34px; height:34px; flex:none; display:flex; align-items:center; justify-content:center;
  border-radius:10px; font-size:16px; color:#04141a; box-shadow:0 3px 12px rgba(2,8,23,.3); }
.vg-hero-ic.teal{ background:linear-gradient(135deg, rgb(var(--accent)), rgba(var(--accent),.6)); box-shadow:0 3px 14px rgba(var(--accent),.4); }
.vg-hero-ic.amber{ background:linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow:0 3px 14px rgba(251,191,36,.4); }
.vg-hero-ic.violet{ background:linear-gradient(135deg, rgb(var(--accent2)), rgba(var(--accent2),.6)); color:#fff; box-shadow:0 3px 14px rgba(var(--accent2),.4); }
.vg-hero-ic .lu{ stroke-width:2; }
.vg-hero-v{ font:800 21px 'Sora',sans-serif; color:var(--txt); font-variant-numeric:tabular-nums; line-height:1; }
.vg-hero-l{ font-size:9.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--mut); margin-top:3px; }
.vg-hero .vg-goal{ flex:1; min-width:180px; }
.vg-hero .vg-goalbtn.on{ background:var(--grad); border-color:transparent; color:#04141a; box-shadow:0 3px 12px rgba(var(--accent),.35); }

/* --- premium topic cards (tinted, gradient icon tile, hover lift+glow) --- */
.vg-grid .vg-card{ position:relative; overflow:hidden;
  background:linear-gradient(160deg, rgba(var(--vg-tint),.09), var(--card) 46%);
  border:1px solid rgba(var(--vg-tint),.28); border-radius:18px; box-shadow:0 6px 20px rgba(2,8,23,.34);
  transition:transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, border-color .18s; }
.vg-grid .vg-card::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(240px 120px at 84% -10%, rgba(var(--vg-tint),.18), transparent 68%); }
.vg-grid .vg-card > *{ position:relative; z-index:1; }
.vg-grid .vg-card:hover{ transform:translateY(-4px); border-color:rgba(var(--vg-tint),.55);
  box-shadow:0 14px 34px rgba(var(--vg-tint),.20), var(--glow); }
.vg-grid .vg-card:active{ transform:translateY(-1px) scale(.985); }
.vg-card-ico{ font-size:0; width:48px; height:48px; border-radius:13px; color:#fff;
  background:linear-gradient(135deg, rgba(var(--vg-tint),.95), rgba(var(--vg-tint),.55));
  box-shadow:0 4px 16px rgba(var(--vg-tint),.4), inset 0 1px 0 rgba(255,255,255,.25); }
.vg-card-ico .lu{ stroke-width:2; }
.vg-chip-lvl{ border-color:rgba(var(--vg-tint),.4); color:rgb(var(--vg-ink,var(--vg-tint))); background:rgba(var(--vg-tint),.08); }
.vg-card-cta{ color:rgb(var(--vg-ink,var(--vg-tint))); display:inline-flex; align-items:center; gap:5px; }
.vg-cta-arr{ display:inline-block; transition:transform .18s cubic-bezier(.22,1,.36,1); }
.vg-grid .vg-card:hover .vg-cta-arr{ transform:translateX(4px); }
.vg-card.mastered .vg-card-ico{ box-shadow:0 4px 22px rgba(var(--vg-tint),.6), inset 0 1px 0 rgba(255,255,255,.3); }

/* --- topic detail (tinted head + sets) --- */
.vg-thead-ico{ font-size:0; width:60px; height:60px; border-radius:16px; color:#fff;
  background:linear-gradient(135deg, rgba(var(--vg-tint),.95), rgba(var(--vg-tint),.55));
  box-shadow:0 5px 20px rgba(var(--vg-tint),.4), inset 0 1px 0 rgba(255,255,255,.25); }
.vg-thead-ico .lu{ stroke-width:2; }
.vg-sets .vg-set{ transition:background .16s; }
.vg-sets .vg-set:hover:not(.locked) .vg-cta-arr{ transform:translateX(4px); }

/* --- due strip glow --- */
.vg-due:hover{ box-shadow:0 10px 26px rgba(251,191,36,.18); }

/* --- round shell inherits topic tint (dots/options now owned by the v865 base rules) --- */
.vg-shell::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(420px 200px at 50% -30%, rgba(var(--vg-tint,var(--accent)),.12), transparent 68%); }
.vg-shell > *{ position:relative; z-index:1; }
.vg-combo{ text-shadow:0 0 14px rgba(251,191,36,.45); }
.vg-xp{ text-shadow:0 0 14px rgba(var(--accent),.4); }
.vg-xp b{ display:inline-block; }

/* --- results polish --- */
.vg-res-hero{ position:relative; overflow:hidden;
  background:linear-gradient(135deg, rgba(var(--accent),.10), rgba(255,255,255,.03) 45%, rgba(var(--accent2),.09));
  border:1px solid rgba(var(--accent),.22); border-radius:20px; padding:26px 22px;
  box-shadow:var(--glow), inset 0 1px 0 rgba(255,255,255,.06); }
.vg-res-hero::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(360px 180px at 20% -20%, rgba(var(--accent),.16), transparent 70%); }
.vg-res-hero > *{ position:relative; z-index:1; }
.vg-res-xp-v{ text-shadow:0 0 34px rgba(var(--accent),.5); }
.vg-res-pb{ box-shadow:0 6px 20px rgba(var(--accent),.18); }
.vg-badge{ position:relative; overflow:hidden; }
.vg-badge::after{ content:""; position:absolute; top:0; left:-60%; width:50%; height:100%; pointer-events:none;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); }

/* --- motion set (ALL gated) --- */
@media(prefers-reduced-motion:no-preference){
  .vg-page::after{ animation:vgAurora 26s ease-in-out infinite; }
  .vg-hero{ animation:vgBreathe 14s ease-in-out infinite; }
  .vg-grid .vg-card{ animation:vgCardIn .5s cubic-bezier(.22,1,.36,1) both; }
  .vg-grid .vg-card:nth-child(2){ animation-delay:.05s } .vg-grid .vg-card:nth-child(3){ animation-delay:.10s }
  .vg-grid .vg-card:nth-child(4){ animation-delay:.15s } .vg-grid .vg-card:nth-child(5){ animation-delay:.20s }
  .vg-grid .vg-card:nth-child(6){ animation-delay:.25s }
  .vg-sets .vg-set{ animation:vgCardIn .5s cubic-bezier(.22,1,.36,1) both; }
  .vg-sets .vg-set:nth-child(2){ animation-delay:.05s } .vg-sets .vg-set:nth-child(3){ animation-delay:.10s }
  .vg-sets .vg-set:nth-child(4){ animation-delay:.15s } .vg-sets .vg-set:nth-child(5){ animation-delay:.20s }
  .vg-card.mastered .vg-card-ico{ animation:vgIcoBreathe 3.2s ease-in-out infinite; }
  .vg-combo{ animation:vgFlame 1.6s ease-in-out infinite; }
  .vg-xp b.pop{ animation:vgXpPop .34s cubic-bezier(.22,1,.36,1); }
  .vg-res-hero{ animation:vgGlowIn .6s cubic-bezier(.22,1,.36,1) both; }
  .vg-badge::after{ animation:vgShimmer 1.4s ease-in-out .3s 2; }
  @keyframes vgAurora{ 0%,100%{ transform:translateX(0) rotate(0deg); opacity:.5 } 50%{ transform:translateX(18px) rotate(4deg); opacity:.72 } }
  @keyframes vgBreathe{ 0%,100%{ box-shadow:var(--glow), inset 0 1px 0 rgba(255,255,255,.06) } 50%{ box-shadow:0 12px 40px rgba(var(--accent),.24), inset 0 1px 0 rgba(255,255,255,.08) } }
  @keyframes vgCardIn{ from{ opacity:0; transform:translateY(14px) } to{ opacity:1; transform:none } }
  @keyframes vgIcoBreathe{ 0%,100%{ box-shadow:0 4px 20px rgba(var(--vg-tint),.5), inset 0 1px 0 rgba(255,255,255,.3) } 50%{ box-shadow:0 4px 32px rgba(var(--vg-tint),.9), inset 0 1px 0 rgba(255,255,255,.35) } }
  @keyframes vgFlame{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-1.5px) } }
  @keyframes vgXpPop{ 0%{ transform:scale(1) } 35%{ transform:scale(1.4); color:var(--warn-2) } 100%{ transform:scale(1) } }
  @keyframes vgGlowIn{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }
  @keyframes vgShimmer{ from{ left:-60% } to{ left:130% } }
  /* v865 round/results motion */
  .vg-dot.cur::after{ animation:vgSegSweep 1.6s ease-in-out infinite; }
  .vg-opt.correct{ animation:vgPop .3s cubic-bezier(.22,1,.36,1); }
  .vg-explain.ok,.vg-explain.bad{ animation:vgExpIn .28s ease both; }
  @keyframes vgSegSweep{ 0%{ background-position:120% 0 } 100%{ background-position:-120% 0 } }
  @keyframes vgPop{ 0%{transform:scale(1)} 40%{transform:scale(1.02)} 100%{transform:scale(1)} }
  @keyframes vgExpIn{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }
}

/* --- light-theme softening --- */
html[data-theme="light"] .vg-page::before, html[data-theme="light"] .lrws-page.unit::before{ opacity:.45; }
html[data-theme="light"] .vg-page::after{ opacity:.3; }
html[data-theme="light"] .vg-hero-lvln,
html[data-theme="light"] .vg-xp,
html[data-theme="light"] .vg-combo,
html[data-theme="light"] .vg-res-xp-v{ text-shadow:none; }
/* v865 — soften round/results key-edges + word-search tray in light */
html[data-theme="light"] .vg-opt,
html[data-theme="light"] .vg-chip,
html[data-theme="light"] .vg-tile,
html[data-theme="light"] .vg-sm-t,
html[data-theme="light"] .vg-res-cell{ box-shadow:0 2px 0 rgba(16,24,42,.12); }
html[data-theme="light"] .vg-ws-grid{ background:rgba(16,24,42,.05); }
/* v866 — light-theme --grad is a DARK blue→violet, so the selected goal chip needs white ink (dark theme's bright gradient keeps the dark #04141a) */
html[data-theme="light"] .vg-hero .vg-goalbtn.on{ color:#fff; }
/* v874 — LIGHT-theme quiz legibility: the bright --vg-tint washes out on white, so drive the TOPIC accents from the darker per-topic --vg-ink (chain inlined so it resolves inside the .vg-t-* shell, not at :root); and strengthen the SEMANTIC correct/wrong fills (kept green/red, NOT the topic colour). */
html[data-theme="light"] .vg-dot.done{ background:linear-gradient(90deg, rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.78), rgb(var(--vg-ink,var(--vg-tint,var(--accent))))); box-shadow:none; }
html[data-theme="light"] .vg-prompt::before{ background:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
html[data-theme="light"] .vg-blank{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.10); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.55); }
html[data-theme="light"] .vg-u{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.12); border-bottom-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
html[data-theme="light"] .vg-opt{ background:var(--glass); border-width:1.5px; }
html[data-theme="light"] .vg-opt:hover:not(:disabled){ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent))));
  background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.07); box-shadow:0 2px 0 rgba(16,24,42,.12), 0 0 0 3px rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.12); }
html[data-theme="light"] .vg-opt-k{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.10); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.32); }
html[data-theme="light"] .vg-chip:hover:not(.used){ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.08); }
html[data-theme="light"] .vg-gap-inp, html[data-theme="light"] .lrws-in[type=text]{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.08); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.5); }
html[data-theme="light"] .vg-sm-t.sel, html[data-theme="light"] .vg-tile.sel{ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent))));
  background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.10); box-shadow:0 0 0 3px rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.12); }
html[data-theme="light"] .vg-ws-cell.sel{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.24); border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
html[data-theme="light"] .vg-ws-clue b{ color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
/* semantic states → stronger green / red literals (topic-independent), legible badge/icon text */
html[data-theme="light"] .vg-opt.correct, html[data-theme="light"] .lrws-opts li.ok .lrws-opt, html[data-theme="light"] .lrws-opts li.was .lrws-opt{ background:rgba(4,120,87,.11); }
html[data-theme="light"] .vg-opt.correct .vg-opt-k, html[data-theme="light"] .lrws-opts li.ok .lrws-opt .vg-opt-k{ color:#fff; }
html[data-theme="light"] .vg-opt.wrong, html[data-theme="light"] .lrws-opts li.bad .lrws-opt{ background:rgba(190,18,60,.09); }
html[data-theme="light"] .vg-explain.ok{ background:rgba(4,120,87,.10); border-color:rgba(4,120,87,.34); }
html[data-theme="light"] .vg-explain.bad{ background:rgba(190,18,60,.09); border-color:rgba(190,18,60,.32); }
html[data-theme="light"] .vg-explain.ok .vg-explain-ic{ color:#fff; }
html[data-theme="light"] .vg-explain.bad .vg-explain-ic{ color:#fff; }
html[data-theme="light"] .vg-gap.filled .vg-gap-inp, html[data-theme="light"] .lrws-in.ok{ background:rgba(4,120,87,.12); border-color:var(--ok); }

/* ═══ v875 — STAFF student-vocab progress (view "vocabprog"). Tinted text/bars use the v868/v874
   INK chain rgb(var(--vg-ink,var(--vg-tint,var(--accent)))) so per-topic .vg-t-* rows read in light
   theme (accent fallback where no topic tint). Reduced-motion + light-theme safe. ═══ */
.vp-toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 8px; }
.vp-table td{ vertical-align:middle; }
.vp-th{ cursor:pointer; user-select:none; white-space:nowrap; }
.vp-th.on{ color:rgb(var(--accent)); }
.vp-row{ cursor:pointer; transition:background .12s ease; }
.vp-row:hover{ background:rgba(var(--accent),.06); }
.vp-sub{ font-size:11.5px; color:var(--mut); margin-top:2px; }
.vp-lvl{ display:inline-block; font:800 11px 'Sora',sans-serif; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent))));
  background:rgba(var(--vg-tint,var(--accent)),.12); border-radius:8px; padding:2px 8px; }
.vp-bar{ display:inline-block; vertical-align:middle; width:88px; height:8px; border-radius:99px; background:var(--glass2); overflow:hidden; }
.vp-bar i{ display:block; height:100%; border-radius:99px; background:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); transition:width .5s cubic-bezier(.22,1,.36,1); }
.vp-barn{ font-size:11.5px; font-weight:700; color:var(--mut); margin-left:7px; }
.vp-empty{ text-align:center; color:var(--mut); padding:22px; }
/* detail */
.vp-detail{ margin-top:6px; }
.vp-head{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:12px 0 8px; }
.vp-head-ringc{ position:relative; width:56px; height:56px; display:flex; align-items:center; justify-content:center; flex:none; }
.vp-head-ringc .vg-ring{ position:absolute; inset:0; }
.vp-head-id{ min-width:0; }
.vp-head-lvl{ position:relative; z-index:1; font:800 15px 'Sora',sans-serif; color:rgb(var(--accent)); }
.vp-head-name{ font:800 20px 'Sora',sans-serif; }
.vp-head-chips{ display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.vp-chip{ font-size:11.5px; font-weight:600; color:var(--mut); background:var(--glass2); border:1px solid var(--bord); border-radius:99px; padding:2px 10px; }
.vp-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:10px 0 12px; }
.vp-stat{ background:var(--card); border:1px solid var(--bord); border-radius:14px; padding:12px 14px; text-align:center; }
.vp-stat-v{ font:800 20px 'Sora',sans-serif; }
.vp-stat-l{ font-size:11.5px; color:var(--mut); margin-top:2px; }
.vp-badges{ display:flex; gap:7px; flex-wrap:wrap; margin:2px 0 12px; }
.vp-badge{ font-size:11.5px; font-weight:700; background:rgba(var(--accent),.10); border:1px solid rgba(var(--accent),.3); border-radius:99px; padding:3px 10px; }
.vp-sxwrap{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.vp-sx{ background:var(--card); border:1px solid var(--bord); border-radius:14px; padding:12px 14px; }
.vp-sx-h{ font-weight:800; font-size:13px; margin-bottom:8px; }
.vp-topics-h{ font-weight:800; font-size:13px; margin:4px 0 8px; }
.vp-topics{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:8px 16px; }
.vp-topic{ display:flex; align-items:center; gap:9px; padding:5px 0; }
.vp-topic-ic{ display:flex; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); flex:none; }
.vp-topic-n{ font-size:13px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vp-topic .vp-bar{ width:74px; }
@media(max-width:700px){ .vp-stats{ grid-template-columns:repeat(2,1fr); } .vp-sxwrap{ grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce){ .vp-bar i, .vp-row{ transition:none !important; } }

/* ── Section-wise Tests: one button per part (v0.968) ───────────────────────────
   Replaces the partial-mock row's `⏱ N min | Start → | --` cell. Styled `btn primary` so it is the
   SAME solid blue with white text as that row's "Start →" — a part button is the row's action, and the
   two tabs should not look like different products. Two lines (label over a Q-range / word count) keeps
   the row height matching a partial-mock row. A completed part stays blue, exactly as a done partial
   mock still shows a blue "Run it back ↻"; the ✓ and the score carry the state instead of a colour. */
.btn.sd-part{ min-width:76px; padding:5px 9px; display:inline-flex; flex-direction:column;
  align-items:center; justify-content:center; gap:1px; line-height:1.25; white-space:nowrap; }
.btn.sd-part .sd-part-n{ font-size:12.5px; font-weight:800; }
.btn.sd-part .sd-part-s{ font-size:10.5px; font-weight:700; color:rgba(255,255,255,.92); }   /* v1.300 V-04 (was .78 = 2.86:1) */
@media(max-width:860px){ .btn.sd-part{ min-width:64px; padding:5px 6px } }

/* ── v1.119 · teacher evaluation queue: candidate search + date window ──────────────────────────
   Asked for by the IELTS teachers (11 Aug): "It will be easier to search the names of the
   candidates" and "seperating the candidates on the basis of dates will be helpful". Reuses the
   existing .tq-toggle segmented control so the date buttons match the All/Mine pair above them. */
.tw-search{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.tw-search input[type="search"]{flex:1 1 280px;min-width:200px;padding:9px 12px;border:1px solid var(--bord);
  border-radius:9px;background:var(--glass2);color:var(--txt);font-size:14px;font-family:inherit}
.tw-search input[type="search"]:focus{outline:none;border-color:rgb(var(--accent));
  box-shadow:0 0 0 3px rgba(var(--accent),.16)}
.tw-when{flex:0 0 auto}

/* ══ v1.132 · question-type INVENTORY (.pv-types) + PERFORMANCE (.qtp-*) ══════════════════════
   Item C renders the inventory on the Paper Viewer; item D renders the per-attempt breakdown on
   the report card and, condensed, at the top of the section review. ONE row renderer feeds both
   performance surfaces, so they can never drift apart.
   ⚠ Colour is REDUNDANT everywhere here — every chip and row carries its type LABEL in text, so a
   colour-blind reader loses nothing. */
.qtp-card{ margin:18px 0; }
.qtp-card-h{ font-weight:800; font-size:15.5px; letter-spacing:.2px; }
.qtp-card-sub{ color:var(--mut); font-size:12.3px; margin:4px 0 12px; line-height:1.5; }
.qtp-block + .qtp-block{ margin-top:16px; padding-top:14px; border-top:1px solid var(--bord); }
.qtp-h{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:13.5px; margin-bottom:8px; }
.qtp-h span{ margin-left:auto; color:var(--mut); font-weight:500; font-size:11.5px; }
.qtp-h .skill-ico{ opacity:.85; }
.qtp-strip{ margin:14px 0 16px; padding:12px 14px; border:1px solid var(--bord);
  border-radius:12px; background:var(--glass2); }
.qtp-strip-h{ display:flex; align-items:center; font-weight:700; font-size:13px; margin-bottom:8px; }
.qtp-strip-h span{ margin-left:auto; color:var(--mut); font-weight:500; font-size:11.5px; }
.qtp-rows{ display:flex; flex-direction:column; gap:7px; }
.qtp-row{ display:grid; grid-template-columns:minmax(140px,1.5fr) minmax(60px,1fr) 62px; gap:8px 12px;
  align-items:center; padding:7px 9px; border-radius:9px; background:var(--glass2);
  border:1px solid transparent; }
.qtp-row.qtp-focus{ border-color:rgba(251,113,133,.45); background:rgba(251,113,133,.07); }
.qtp-row.qtp-small{ opacity:.72; }
.qtp-lab{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:13px; font-weight:600; min-width:0; }
.qtp-name{ overflow:hidden; text-overflow:ellipsis; }
.qtp-dot{ width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
.qtp-tag{ font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px;
  background:rgba(251,113,133,.16); color:var(--bad); white-space:nowrap; }
.qtp-note{ font-size:10.5px; font-weight:600; padding:1px 7px; border-radius:999px;
  background:var(--glass3,rgba(148,163,184,.14)); color:var(--mut); white-space:nowrap; cursor:help; }
.qtp-bar{ height:7px; border-radius:99px; background:rgba(148,163,184,.22); overflow:hidden; }
.qtp-bar span{ display:block; height:100%; border-radius:99px; }
.qtp-sc{ text-align:right; font-size:13px; white-space:nowrap; }
.qtp-sc b{ font-size:15px; }
.qtp-sc span{ color:var(--mut); font-size:11.5px; margin-left:2px; }
.qtp-wrong{ grid-column:1 / -1; display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.qtp-wl{ font-size:11px; color:var(--mut); margin-right:2px; }
.qtp-allok{ font-size:11px; color:var(--ok); }
.qtp-q{ font-size:11.5px; font-weight:700; min-width:24px; padding:2px 6px; border-radius:6px;
  border:1px solid var(--bord); background:var(--glass2); color:var(--txt); font-family:inherit; }
button.qtp-q{ cursor:pointer; }
button.qtp-q:hover{ border-color:rgb(var(--accent)); color:rgb(var(--accent)); }
.qtp-q-flat{ cursor:default; opacity:.85; }
.qtp-more{ font-size:11px; color:var(--mut); }
@media (max-width:640px){ .qtp-row{ grid-template-columns:1fr 56px; } .qtp-bar{ grid-column:1 / -1; } }

/* Paper Viewer inventory strip (item C's own surface) */
.pv-types{ margin:0 0 16px; padding:13px 15px; border:1px solid var(--bord);
  border-radius:12px; background:var(--glass2); }
.pv-types-h{ display:flex; align-items:center; font-weight:700; font-size:13.5px; margin-bottom:10px; }
.pv-types-h span{ margin-left:auto; color:var(--mut); font-weight:500; font-size:11.5px; }
.pv-types-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(232px,1fr)); gap:9px; }
.pv-type-chip{ padding:9px 11px; border-radius:10px; border:1px solid var(--bord);
  border-left:3px solid var(--qtc,var(--bord)); background:var(--glass); }
.pv-type-t{ display:flex; align-items:center; gap:7px; font-size:12.8px; }
.pv-type-t b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-type-n{ margin-left:auto; font-weight:800; font-size:14px; }
.pv-type-r{ margin-top:4px; font-size:11.5px; color:var(--txt); opacity:.9; }
.pv-type-p{ margin-top:2px; font-size:11px; color:var(--mut); }
.rep-seen{ color:var(--mut); font-size:11.5px; }

/* ===== per-answer audio replay ▶ (v1.153) — listening review cards =========================
   Deliberately NOT an <audio controls>: no seek bar, no timeline, no file duration. The only
   time shown is the clip's own length. See specs/answer-marks/PLAYER-CONSTRAINT.md. */
.am-play{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-left:8px;
  padding:8px 14px 8px 12px;min-height:36px;
  border:1px solid var(--bord2);border-radius:999px;background:var(--glass-03);
  color:var(--txt);font:inherit;font-size:.82rem;font-weight:600;line-height:1;
  cursor:pointer;vertical-align:middle;white-space:nowrap;
  transition:background .15s,border-color .15s,transform .08s}
.am-play span{font-weight:500;color:var(--mut);font-variant-numeric:tabular-nums}
.am-play:hover{border-color:rgba(var(--accent),.55);background:rgba(var(--accent),.10)}
.am-play:active{transform:scale(.96)}
.am-play:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px}
.am-play.on{background:rgba(var(--accent),.18);border-color:rgba(var(--accent),.75);color:var(--cyan)}
.am-play.on span{color:var(--cyan);opacity:.85}
/* Light theme pins --accent to cyan-700, which over an 18% tint on white measures ~4.2:1 at
   13px/600 — just under AA. Deepen the active label there; dark theme already reads ~9:1. */
html[data-theme="light"] .am-play.on{color:#0b5566}
html[data-theme="light"] .am-play.on span{color:#0b5566}
@media (prefers-reduced-motion:reduce){.am-play{transition:none}.am-play:active{transform:none}}

/* The browser check measured this button at 50x23px — comfortably under the 44px minimum touch
   target, and most students review on a phone. Unit tests cannot see this; only a rendered page can.
   Coarse pointers get a full 44px box while the mouse keeps the tighter 36px pill. */
@media (pointer: coarse){
  .am-play{min-height:44px;min-width:64px;padding:10px 16px;font-size:.88rem}
}


/* ── FIGURE ZOOM (v1.167) ─────────────────────────────────────────────────────────────────────
   A Task 1 figure is a scan of a printed chart, shown beside the editor at roughly half its real
   size. Rather than redraw it — which is how invented data gets in front of a student — it opens
   full-screen at native resolution. Theme tokens only, so it is correct in light, dark and all
   five accent themes. */
.figzoom{ position:fixed; inset:0; z-index:9999; display:grid; place-items:center;
  background:rgba(2,6,23,.86); backdrop-filter:blur(3px); padding:24px; cursor:zoom-out; }
.figzoom img{ max-width:96vw; max-height:92vh; width:auto; height:auto;
  background:#fff; border-radius:10px; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.figzoom-x{ position:fixed; top:14px; right:16px; width:40px; height:40px; border-radius:999px;
  border:1px solid var(--bord2, rgba(255,255,255,.18)); background:var(--glass2, rgba(255,255,255,.10));
  color:#fff; font-size:17px; line-height:1; cursor:pointer; }
.figzoom-x:hover{ background:rgba(255,255,255,.20); }
/* the affordance: a figure that has more detail than it is showing says so */
.ex-page img[src*="images/"], .wr-wrap img[src*="images/"]{ cursor:zoom-in; }
@media (prefers-reduced-motion: reduce){ .figzoom{ backdrop-filter:none; } }

/* A flow-chart row carrying TWO cells is a FORK — fm2 Q7-10 splits one stage into two parallel
   outcomes. The house rule zeroes the last row's bottom margin, which on a forked row makes the two
   boxes' borders touch in a 2px seam. Give the second cell its own top margin so the pair reads as
   siblings rather than one mis-drawn box. */
.player .qc-flowchart .gap-table tr:last-child td + td{ margin-top:14px; }

/* ═══════ CD figure overlays — answer controls positioned ON the artwork ═══════
   The computer-delivered test puts the response control at the numbered position on the figure,
   never in a list beside it: the official engine overlays `overlayContainer` divs on an SVG and
   drops a textEntryInteraction or a drop zone inside each. See specs/cd-ielts-figure-standard.md.
   ⚠ PERCENTAGES, NOT PIXELS. The real player pins overlays in absolute px and refuses to scale
   (it tears below ~1024px rather than reflowing). Percentages are geometrically identical at full
   size and degrade instead of desynchronising — a deliberate divergence, recorded in the composer. */
/* ⚠ DELIVERY RULE: 1:1 AND SCROLL — NEVER SCALE TO FIT. Measured from the shipped Inspera 3.60.0
   player: under the IELTS `fjord` theme the overlay-interaction image carries `max-width:none
   !important` (`body.fjord-theme .svg-interactions-container img`, and the Type A path likewise),
   the question side is `.DisplayTypeContainer__sectionContent{flex:1; overflow-x:auto}`, and the
   divider will let a candidate drag the question pane down to ~34px with no minimum. The real player
   therefore has NO fit-to-pane behaviour at all: it renders the canvas at its authored pixel size and
   lets the pane scroll. `width:100%` here did the opposite — it shrank the figure with the pane, so
   the artwork rendered at a different scale for every candidate and every divider position, which is
   the whole point of a fixed measured canvas thrown away. A shrunk figure also drags its own type
   under the §1.6 floor: the eight 1180px typed figures rendered ~0.61x inside the 720px `.q-group`
   cap, putting their 12.5px labels at ~7.6px.
   ⚠ 99999px IS A SENTINEL, NOT A SIZE, and it is deliberately not a real number. The authored
   `deliverWidth` exists in exactly one place in the shipped markup — the wrapper's inline
   `max-width` (640px on the six drag figures, 1180px on the eight typed ones still to be re-cut) —
   and `width` may not be allowed to resolve smaller than it. Asking for an unreachable width and
   letting the authored max-width clamp it is how the box takes ITS OWN authored width without this
   stylesheet ever naming one; a figure authored at any other width follows automatically, and one
   that ships with no max-width at all fails loudly instead of silently rendering at some fraction.
   `width:max-content` was tried first and is wrong: the img/svg inside carries an inline
   `width:100%`, so the intrinsic contribution comes from the replaced element — 600px for fm40's
   SVG viewBox against a wrapper authored at 640, i.e. the drift the manifest percentages are
   registered against. Do not "simplify" this to a pixel value; that is the min-width:150px incident. */
.cd-figure{ position:relative; width:99999px; }
/* The scroll belongs to the figure's own container, mirroring `overflow-x:auto` on the player's
   question pane: the parent of a `.cd-figure` becomes the scroller, so a figure wider than the pane
   scrolls under its own rubric instead of pushing the page sideways. Written as `:has(> .cd-figure)`
   rather than naming `.map-box`/`.q-intro` because the two render paths put the figure in different
   parents (player.js:1447 vs the typed figures concatenated into `intro`), and a third would
   otherwise silently miss out. `overflow-y` is left to compute to `auto`: these parents are
   auto-height blocks, so nothing ever overflows vertically, and `hidden` would clip a focus ring. */
:has(> .cd-figure){ overflow-x:auto; }
.cd-figure img{ user-select:none; -webkit-user-drag:none; }
.cd-gap{ position:absolute; }
/* block flow, NOT flex: the prose has to run around its input the way a sentence does. Flex with
   wrap put the input on its own line and broke "two [35] made of bamboo" across two lines. */
/* ⚠ 15px FIXED, not the old clamp(11px,1.15vw,15px) — the same defect the `.gnum` rule below was
   already fixed for, on the other half of the CD figure path, and left here at the time for a
   reason that has since expired.
   WHY IT WAS A DEFECT. §1.5 forbids deriving any authoring decision from a column width — ours or
   theirs — and a vw unit is that, measured off the window instead. 1.15vw reaches the 15px ceiling
   only at a 1304.35px viewport, so the clamp delivered 14.72px at 1280, 11.78px at 1024 and the
   11px floor at 900 and below: UNDER the §1.6 no-zoom legibility floor of 14px on any window at or
   below ~1218px, on the candidate's own typed callouts. Measured, all eight typed figures, at
   1920/1440/1280/1024/900/700.
   WHY 15px AND NOT 14px. 14 is the FLOOR, not the target, and the whole corpus is already
   provisioned against 15: build_figure.py:72 reserves `22.5·L + 18` delivered px per typed
   callout, and 22.5 is `line-height:1.5 × 15px` — the clamp's CEILING, i.e. the value it only ever
   reached above a 1305px viewport. Setting 15 makes that constant TRUE at every viewport instead
   of only on wide ones, and every reserved rectangle in the tree is then exactly right rather than
   accidentally right on big screens and over-generous on small ones. Setting 14 would put the real
   line at 21px against manifests that reserve 22.5, i.e. eight figures' rectangles describing a
   box the browser no longer lays out — a second desync of the same kind that this change exists to
   remove, bought for nothing, since 15 clears the floor already.
   AND IT MAKES THE CALLOUT VIEWPORT-INVARIANT. `.cd-gap` widths are percentages of a figure pinned
   1:1 (see .cd-figure above), so with the font and the input width both fixed, a callout's WRAP is
   now identical at every viewport — the same line count and the same box height the composer
   provisioned against. Measured after: line count and border-box height byte-identical at all six
   widths, 36 typed callouts across the eight typed figures, empty and filled. */
.cd-gapbox{ display:block; padding:5px 9px; font-size:15px; line-height:1.5;
  background:#fff; color:#111; }
.cd-gapbox.boxed{ border:2px solid #111; border-radius:3px; }
/* the input must stay `input.q-input` — player.js:1570 binds by that selector and _isAnswerBox
   uses it to block passage text being dragged into an answer box. Only the sizing is ours. */
/* ⚠ 112px FIXED, not the old clamp(58px,7.5vw,112px), and 112 is not a taste: it is the number
   this input ALREADY renders at wherever the clamp is topped out (7.5vw reaches 112 at a 1493px
   viewport), which is the widest the box has ever been and therefore the TIGHTEST wrap any callout
   in the corpus has ever had to survive. Every reserved rectangle was composed, rebuilt and gated
   against that wrap. Pinning the ceiling keeps it and discards only the narrow-window variants that
   nothing was provisioned for — a vw width shrinks the answer box precisely when the font has
   already shrunk under it, so the two clamps compounded, and the pair is removed together.
   `min-width:58px` went with the clamp: against a fixed 112px width it can never bind, and it
   measured as a no-op at all six test viewports. A floor that cannot fire is a floor nobody can
   check, so it is deleted rather than kept.
   The width is the figure's own geometry and not the window's: the callout box it sits in is a
   percentage of a figure delivered 1:1, so the input is a fixed fraction of a fixed box at every
   viewport. It is not derived from the pane, which has no minimum at all (§1.5d). */
.cd-gap input.q-input{ display:inline-block; vertical-align:baseline;
  width:112px; padding:1px 4px;
  font-size:inherit; text-align:center; }
/* ⚠ min-width/min-height MUST be reset here, and this is not cosmetic. `.player .drop-gap`
   (line 3195) sets min-width:150px / min-height:38px for the inline heading and summary gaps,
   where a chip needs room to sit in running text. Our rule has EQUAL specificity and wins on
   width/height by source order — but it never touched the minimums, so every CD drop zone was
   being forced to 150px against an authored 98px. On a narrow figure that is ~42% of the width,
   which drives the zone straight through the artwork it is supposed to sit beside. The zone is
   positioned and sized by the manifest; nothing else may size it.
   BOTH minimums are pinned to 0, not just the horizontal one. A vertical floor looked harmless and
   was not: it made every zone taller than its manifest rectangle and pushed each one 8 px down the
   figure, measured at four viewport widths. The zone is sized by the manifest or it is not
   trustworthy. Hittability is solved by authoring the figure at the width it is ACTUALLY DISPLAYED
   at — see `deliverWidth` in specs/figures/*.json — not by a floor here.
   `margin:0` is the third reset and was the last 8 px of drift. The base `.drop-gap` rule carries a
   margin for inline use; `.player .gap-row .drop-gap{margin:0}` at line 3194 exists only to cancel
   it in one other place, which is the clue that led here. Measured, not reasoned: every zone sat
   exactly 8 px below its manifest rectangle at all four test widths until this line. */
/* ⚠ `height:100%` ON THE ZONE IS ONLY ALIVE BECAUSE OF THE `height:0` LINE BELOW, and that pairing
   is the whole height axis. The composer emits the manifest rectangle as `width:%` + `min-height:%`
   on `.cd-gap` (build_figure.py:213-217) — no `height` — so a percentage height on the child
   resolved against an auto-height parent and fell back to `auto`: the zone was CONTENT-sized, not
   manifest-sized (audit v1.185 finding 19). It measured 98x27 by coincidence — 13px number line box
   + the inherited 4px padding + 2px borders — and drifted to 38px the moment a chip with the base
   chip's 7px vertical padding landed in it. `height:0` on the container lets `min-height` clamp back
   up, which makes the container's used height EXACTLY the manifest percentage and therefore definite,
   so the child's `height:100%` resolves. Zone size now comes from the manifest in both states and
   from nothing else; a chip cannot push it. Scoped with `:has(> .drop-gap)` because a TYPED CD gap
   (`.cd-gapbox`) is sized by its own prose and must keep growing past its min-height.
   Measured after: 98.00x27.00 empty AND filled, 30/30 drag zones, at 1280/1440/1920 — and, since the
   figure now delivers 1:1 and scrolls instead of shrinking (see the `.cd-figure` note above), at 1024,
   900, 640, 480 and 320 as well. The render scale is always 1, so the zone IS the manifest rectangle
   rather than a fraction of it, and no `overflow:hidden` guard is needed on the zone: the chip's own
   clip does the work and a zone-level one measured as a no-op at every width tested. */
.cd-gap:has(> .drop-gap){ height:0; }
.cd-gap .drop-gap{ width:100%; height:100%; min-width:0; min-height:0; margin:0; padding:0;
  display:flex; align-items:center; justify-content:center;
  border:2px dashed #666; border-radius:3px; background:#fff; font-size:14px; }
/* ⚠ THE FILLED STATE NEEDS ITS OWN RULE, and it is a pure specificity fact, not decoration.
   `.player .drop-gap:has(.chip){ border-style:solid; border-color:#c4c4c4; padding:2px }`
   (line 3198) is (0,3,0); the block above is (0,2,0), so the inline word-bank's filled look —
   solid grey border, 2px padding — silently replaced the CD dashed outline and ate 4px of the
   zone's interior on every correct answer. This rule ties at (0,3,0) and wins on source order.
   The official player does NOT change the outline when the gap is filled (§1.3: "the player draws
   the dashed outline"), so the two states are declared identical here on purpose. */
.cd-gap .drop-gap:has(.chip){ padding:0; border:2px dashed #666; }
/* 14px, not the old clamp(11px,1.1vw,15px): a viewport-derived font is exactly the class of number
   §1.5 forbids (nothing on a CD figure may be derived from how wide the window is), and 1.1vw put
   the on-figure question number at 11px — under the §1.6 no-zoom legibility floor — on any viewport
   below 1000px. The floor is 14px and the zone is 27px tall, which holds a 14px line box with 7px
   to spare. The number needs its own declaration because `.player .drop-gap .gnum{font-size:13px}`
   (line 3196) is (0,3,0) and an inherited value never beats a declared one; measured 13px→14px. */
.cd-gap .drop-gap .gnum{ color:#555; font-weight:600; font-size:14px; }
/* filled: the official player REPLACES the number with the answer text, it does not show both */
.cd-gap .drop-gap:has(.chip) .gnum{ display:none; }
/* ⚠ THE DROPPED CHIP IS NOT THE BANK CHIP. `.player .chip` (line 3186) is a free-standing pill —
   `padding:7px 13px`, `font-size:14px`, `white-space:nowrap` — and (0,2,0), so the CD zone inherited
   all three: the chip laid out at its natural pill width (measured 118-325px against a 98px zone,
   worst case fm8 reading "Hours spent cleaning maintaining machinery" at 324.73px) with
   `background:transparent`, i.e. the candidate's own correct answer painted straight across the
   artwork, over captions and neighbouring zones (finding 6). This rule is (0,3,0) and beats it.
   The chip is now a BOX INSIDE THE ZONE: `max-width:100%` clamps it to the zone's interior, so the
   flex centring still centres a short answer and a long one fills the zone instead of escaping it.
   ⚠ THE FONT DOES NOT SHRINK TO FIT, and that is a decision, not an omission. The §1.6 floor is
   14px and it covers the candidate's own answer as much as the drawn labels; no font size exists
   that fits the long banks anyway (fitting fm8's 42-character chip into 98x27 needs ~5px over four
   lines). So the size stays at the floor and the overflow is ellipsised — a one-line answer at the
   attested label size, with a standard truncation signal, and the full text still readable in the
   token column the chip came from. The ellipsis clips at the END only: the line is left-aligned
   (initial `start`) inside a chip box that flexbox centres while it is narrower than the zone, so a
   short answer is centred and a long one is anchored — never clipped at BOTH ends, which is the
   exact defect logged against the inline word-bank gap in specs/cd-ielts-answer-widgets.md:127.
   `text-overflow` needs `white-space:nowrap`, and that comes from `.player .chip` — declaring it
   again here measured as a no-op, so it is not declared.
   The real fix for the three long-bank figures is authorial — the official Type B bank is short labels, and 98x27 is an absolute UI constant (§1.5b) that may
   not be grown to fit a 42-character chip. Long-chip behaviour in the official player is
   UNATTESTED (§4-class unknown): the one captured item's zones were measured empty. */
.cd-gap .drop-gap .chip{ max-width:100%; padding:0; font-weight:600;
  overflow:hidden; text-overflow:ellipsis; }
/* ⚠ THE ≤640px PADDING OVERRIDE IS GONE, and it was the third viewport-derived number on this
   path — the same §1.5 defect as the two clamps above, just wearing a media query instead of a vw
   unit. It shaved `.cd-gapbox` padding from 5px/9px to 2px/4px below a 640px window, which
   (a) made the composer's FLAT 18px of box chrome (build_figure.py:72 — 10px padding + 4px border +
   4px input line box) into 12px on exactly those windows, so `22.5·L + 18` stopped describing the
   box the browser lays out, and (b) handed the prose 10px more width, i.e. a wrap nothing was
   provisioned against. Measured before removal, fm43 at 640 and 480: padding 2px/4px, box 57px at
   L=2 against a 63px rectangle and 35px at L=1 against 41px — under-filling its own reserved space.
   Its original purpose died with the shrink-to-fit figure: the figure now delivers 1:1 and the pane
   scrolls (see .cd-figure above), so at 640 the callout is over artwork that is exactly as wide as
   it is at 1920, and 5px of padding costs nothing that scrolling was not already paying.
   Measured after removal, all eight typed figures at 640 and 480: font, input width, line count and
   border-box height identical to every other viewport, no rectangle breached. */

/* v1.200 — the student's own name and ID, under the greeting. Quiet by design: it is a
   verification line, not a headline, and it must never compete with the band gauges beside it.
   Tokens only (var(--mut)), so it holds in the light/dark/wb/yb themes like everything else. */
.dash-idstrip{ font-size:12.5px; color:var(--mut); margin:2px 0 6px; letter-spacing:.01em; }
.dash-idsep{ opacity:.55; padding:0 2px; }

/* v1.201 — the identity hard stop. A warm-grey wash rather than an alarm red: the student has done
   nothing wrong and is about to be asked to sign in again, so this must read as "wait a moment",
   not as a failure. */
.ex-page.ex-block .ex-card{ border-top:4px solid #d97706; }
.ex-page.ex-block h2{ color:#b45309; }

/* ═══ v1.202 — Skill Builder ▸ IELTS Skills (LRWS) ═══════════════════════════════════════════════
   A READING surface, not a game surface: the unit page is a single measured column at a book-like
   line length, because students are reading paragraphs of teaching prose here, not tapping tiles.
   Everything is drawn from the shared tokens (--txt / --mut / --bord / --glass), so light and dark
   both come for free and nothing needs a per-theme override. */
.lrws-page{ position:relative; }
.lrws-sk{ margin-top:18px; }
.lrws-sk-h{ font:800 15px 'Sora',sans-serif; color:var(--mut); letter-spacing:.02em; margin-bottom:8px; }
/* v1.204 — FOUR per row, fixed, not auto-fill. Every skill has exactly 8 units, so 4 columns lay
   them out as two even rows; the old auto-fill with a 220px floor fitted 7 across on a wide screen
   and stranded a single orphan card on the second row of every skill. The extra width also earns
   its keep on the titles: at 220px "Academic Writing Task 1 — Comparing and contrasting graphs and
   tables" wrapped to four lines. minmax(0,1fr) rather than 1fr so a long unbroken title cannot blow
   the column out — a bare 1fr floors at min-content and overflows the page. */
.lrws-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
@media (max-width:1240px){ .lrws-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:860px){  .lrws-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){  .lrws-grid{ grid-template-columns:minmax(0,1fr); } }
/* v1.204 — a column flexbox so the meta row and the progress bar sit on the CARD's baseline, not
   under whatever height the title happened to take. Grid already stretches every card in a row to
   the same height; without this the bar floats up under a one-line title and down under a two-line
   one ("Academic Writing Task 1 — Comparing and contrasting graphs and tables" wraps at every
   width), so a row of four read as four different cards rather than one row. */
.lrws-card{ text-align:left; cursor:pointer; font-family:inherit; color:var(--txt);
  display:flex; flex-direction:column;
  background:var(--glass); border:1px solid var(--bord); border-radius:var(--r2); padding:13px 14px; }
.lrws-card:hover{ border-color:rgba(var(--accent),.5); }
.lrws-card.lit{ border-color:rgba(var(--accent),.35); }
.lrws-card.done{ border-color:rgba(var(--accent),.6); }
.lrws-card-n{ font:700 11px 'Sora',sans-serif; color:rgb(var(--accent)); letter-spacing:.08em; text-transform:uppercase; }
.lrws-card-name{ font:700 15px 'Sora',sans-serif; margin:3px 0 9px; }
.lrws-card-foot{ display:flex; justify-content:space-between; font-size:12px; color:var(--mut); margin-bottom:6px; margin-top:auto; }
.lrws-bar{ height:5px; border-radius:3px; background:var(--bord); overflow:hidden; }
.lrws-bar i{ display:block; height:100%; background:var(--grad); }

.lrws-back{ margin-bottom:12px; }
.lrws-head{ max-width:760px; }
.lrws-head-k{ font:700 11px 'Sora',sans-serif; color:rgb(var(--accent)); letter-spacing:.08em; text-transform:uppercase; }
.lrws-prog{ display:flex; align-items:center; gap:10px; max-width:340px; font-size:12px; color:var(--mut); margin:8px 0 14px; }
.lrws-prog .lrws-bar{ flex:1; }
.lrws-goals{ background:var(--glass); border:1px solid var(--bord); border-radius:var(--r2); padding:11px 14px; font-size:13.5px; }
.lrws-goals ul{ margin:6px 0 0; padding-left:18px; }
.lrws-goals li{ margin:2px 0; }

.lrws-h{ font:800 17px 'Sora',sans-serif; margin:26px 0 10px; padding-bottom:6px; border-bottom:2px solid rgba(var(--accent),.35); max-width:760px; }
.lrws-teach{ max-width:760px; font-size:14.5px; line-height:1.62; }
.lrws-teach.boxed{ border:1px solid var(--bord2,var(--bord)); border-radius:var(--r2); padding:12px 16px; background:var(--glass); }
.lrws-teach p{ margin:.6em 0; }
.lrws-tip{ max-width:760px; border-left:4px solid rgb(var(--accent2)); background:var(--glass);
  border-radius:0 var(--r2) var(--r2) 0; padding:10px 14px; margin:14px 0; font-size:13.5px; line-height:1.55; }
.lrws-tip>b{ display:block; color:rgb(var(--accent2)); font:800 13px 'Sora',sans-serif; margin-bottom:3px; }
.lrws-fig{ margin:14px 0; }
.lrws-fig img{ width:100%; border:1px solid var(--bord); border-radius:var(--r2); background:#fff; }

/* ── v1.252 · PASSAGES AND RECORDING SCRIPTS ARE THEIR OWN THING ───────────────────────────────
   Until v1.251 a reading passage was drawn either as teaching prose (.lrws-teach.boxed), inside a
   gap-fill at line-height 2.2, or raw in an exercise HEADER row — so it read as part of a
   question. This gives it a panel of its own, visibly distinct from .lrws-teach.boxed, and gives a
   dependent exercise a collapsed COPY inside its own card so nobody has to scroll 2,600 px up. */
.lrws-passage{ max-width:760px; margin:16px 0; padding:14px 18px; border-radius:var(--r2);
  border:1px solid var(--bord2,var(--bord)); border-left:4px solid rgb(var(--accent));
  background:var(--glass); font-size:14.5px; line-height:1.68; }
.lrws-passage.script{ border-left-color:rgb(var(--accent2)); }
.lrws-passage-h{ display:flex; align-items:baseline; gap:8px; margin-bottom:6px; }
.lrws-passage-k{ font:800 11px 'Sora',sans-serif; letter-spacing:.08em; text-transform:uppercase;
  color:rgb(var(--accent)); }
.lrws-passage.script .lrws-passage-k{ color:rgb(var(--accent2)); }
.lrws-passage-id{ font:700 11px 'Sora',sans-serif; color:var(--mut); }
.lrws-passage-t{ font:800 16px 'Sora',sans-serif; margin:0 0 8px; }
.lrws-passage-b p{ margin:.62em 0; }
.lrws-passage-b p:first-child{ margin-top:0; }
.lrws-passage-s{ margin-top:9px; font-size:11.5px; color:var(--mut); }

.lrws-ref{ display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 2px; }
.lrws-ref .btn{ padding:5px 11px; font-size:12.5px; }
.lrws-ref-body{ margin:9px 0 2px; padding:11px 14px; border-radius:var(--r2);
  border:1px dashed var(--bord2,var(--bord)); background:var(--glass);
  font-size:14px; line-height:1.65; max-height:420px; overflow:auto; }
.lrws-ref-body p{ margin:.6em 0; }
.lrws-ref-body p:first-child{ margin-top:0; }

/* blockquote had ZERO rules anywhere in this stylesheet, so five passages authored inside an
   exercise prompt rendered as browser-default indented text between the question and its options.
   Scoped to the LRWS page — nothing else in the portal authors one. */
.lrws-page blockquote{ margin:.7em 0; padding:8px 14px; border-left:3px solid var(--bord2,var(--bord));
  background:var(--glass); border-radius:0 var(--r2) var(--r2) 0; font-size:14px; line-height:1.65; }
.lrws-page blockquote p{ margin:.5em 0; }
.lrws-page blockquote p:first-child{ margin-top:0; }
.lrws-page blockquote p:last-child{ margin-bottom:0; }

.lrws-ex{ max-width:760px; border:1px solid var(--bord); border-radius:var(--r2); padding:14px 16px; margin:16px 0; }
.lrws-ex.done{ border-color:rgba(var(--accent),.45); }
.lrws-ex-h{ display:flex; gap:9px; align-items:baseline; font-size:14.5px; line-height:1.5; }
.lrws-ex-n{ font:800 15px 'Sora',sans-serif; color:rgb(var(--accent)); flex:0 0 auto; }
.lrws-ex-p{ flex:1; }
.lrws-ex-p ol{ margin:.5em 0; padding-left:20px; }
.lrws-tick{ color:rgb(var(--accent)); font-weight:800; }
.lrws-bank{ background:var(--glass); border:1px solid var(--bord); border-radius:var(--r2); padding:10px 14px; margin:11px 0; font-size:13.5px; }
.lrws-bank-t{ font:800 13px 'Sora',sans-serif; margin-bottom:5px; }
.lrws-bank ul{ list-style:none; margin:0; padding:0; }
.lrws-bank li{ margin:3px 0; }
.lrws-bank li b{ color:rgb(var(--accent2)); margin-right:6px; }
.lrws-items{ list-style:none; margin:10px 0 0; padding:0; font-size:14px; }
.lrws-items li{ display:flex; align-items:center; gap:9px; padding:5px 0; flex-wrap:wrap; }
.lrws-il{ font-weight:800; min-width:16px; color:var(--mut); }
.lrws-it{ flex:1; min-width:180px; }
.lrws-opts{ margin:10px 0 0; padding-left:22px; font-size:14px; }
.lrws-opts li{ margin:5px 0; }
.lrws-opts label{ cursor:pointer; }
.lrws-in{ width:76px; padding:6px 8px; border-radius:8px; border:1px solid var(--bord2,var(--bord));
  background:var(--glass2,var(--glass)); color:var(--txt); font:inherit; font-size:14px; text-align:center; }
.lrws-in.lrws-gap{ width:130px; text-align:left; }
.lrws-gapbody{ font-size:14.5px; line-height:2.2; max-width:760px; }
.lrws-ta{ width:100%; margin-top:10px; padding:9px 11px; border-radius:var(--r2); border:1px solid var(--bord);
  background:var(--glass); color:var(--txt); font:inherit; font-size:14px; }
.lrws-todo{ margin-top:10px; font-size:13px; color:var(--mut); }
.lrws-foot{ display:flex; align-items:center; gap:11px; margin-top:13px; flex-wrap:wrap; }
.lrws-verdict{ font-size:13.5px; }
.lrws-verdict b.ok{ color:var(--green); }
.lrws-verdict b.part{ color:var(--amber,#f59e0b); }
.lrws-verdict b.bad{ color:var(--red); }
.lrws-mut{ color:var(--mut); }
.lrws-explain{ margin-top:11px; padding:10px 13px; border-radius:var(--r2); background:var(--glass);
  border:1px solid var(--bord); font-size:13.5px; line-height:1.55; }
.lrws-explain-t{ font:800 12px 'Sora',sans-serif; color:rgb(var(--accent2)); letter-spacing:.05em;
  text-transform:uppercase; margin-bottom:4px; }
.lrws-explain div b{ color:rgb(var(--accent)); margin-right:5px; }

/* --- contract 3 additions: audio, timers, tables, word banks, ordering, record checklists --- */
.lrws-audio{ display:flex; align-items:center; gap:10px; margin:10px 0; flex-wrap:wrap; }
.lrws-audio-t{ font:800 12px 'Sora',sans-serif; color:rgb(var(--accent2)); white-space:nowrap; }
.lrws-audio audio{ height:34px; max-width:100%; }
.lrws-timer{ display:flex; align-items:center; gap:10px; margin:10px 0; }
.lrws-timer-v{ font:800 15px 'Sora',sans-serif; color:rgb(var(--accent)); }
/* the table scrolls INSIDE its own box — a Listening table is wide and the page must never
   scroll sideways on a phone */
.lrws-tablewrap{ overflow-x:auto; margin:11px 0; border:1px solid var(--bord); border-radius:var(--r2); }
.lrws-table{ border-collapse:collapse; width:100%; min-width:560px; font-size:13.5px; }
.lrws-table th,.lrws-table td{ border:1px solid var(--bord); padding:8px 10px; vertical-align:top; text-align:left; line-height:1.9; }
.lrws-table th{ font:800 12.5px 'Sora',sans-serif; background:var(--glass); }
.lrws-bankrow{ display:flex; flex-wrap:wrap; gap:6px 16px; list-style:none; margin:0; padding:0; }
.lrws-bankrow li{ padding:2px 8px; border:1px solid var(--bord); border-radius:999px; }
.lrws-opts.bare{ list-style:none; padding-left:4px; }
.lrws-crit{ list-style:none; margin:10px 0 0; padding:0; font-size:14px; }
.lrws-crit li{ margin:5px 0; }
.lrws-crit label{ cursor:pointer; }

/* --- Speaking additions: video players, and `mark` (click-to-underline / click-to-chunk) --- */
.lrws-video video{ width:100%; max-width:520px; border-radius:var(--r2); border:1px solid var(--bord); background:#000; }
.lrws-marktext{ max-width:760px; font-size:15px; line-height:2.1; margin:12px 0; }
.lrws-tok{ cursor:pointer; padding:1px 2px; border-radius:4px; border-bottom:2px solid transparent; }
.lrws-tok:hover{ background:var(--glass2,var(--glass)); }
.lrws-tok.on{ border-bottom-color:rgb(var(--accent)); font-weight:700; }
.lrws-tok.ok{ border-bottom-color:var(--green); color:var(--green); font-weight:700; }
.lrws-tok.bad{ border-bottom-color:var(--red); color:var(--red); }
.lrws-tok.was{ border-bottom:2px dotted var(--mut); }
.lrws-marktext.brk .lrws-tokp{ padding:1px 1px; }
.lrws-brk{ cursor:pointer; color:transparent; padding:0 3px; border-radius:4px; user-select:none; }
.lrws-brk:hover{ color:var(--mut); background:var(--glass2,var(--glass)); }
.lrws-brk.on{ color:rgb(var(--accent)); font-weight:800; }
.lrws-brk.ok{ color:var(--green); font-weight:800; }
.lrws-brk.bad{ color:var(--red); font-weight:800; }
.lrws-brk.was{ color:var(--mut); }

/* ═══ v1.299 — LRWS VISUAL UPGRADE: the exercises speak Vocabulary's language ══════════════════
   Plan: specs/lrws-visual-upgrade-plan.md. RULE ZERO: every control COMPOSES a vg class
   (.vg-opt / .vg-opt-k / .vg-prompt / .vg-thead-ring) or is appended to a vg rule's selector list
   (correct/wrong option fills, the dashed .vg-gap-inp blank and its filled/wrong states) — no vg
   declaration is copied, so dark values are byte-identical by construction. Everything tinted
   reads rgba(var(--vg-tint,var(--accent))) and the light ink --vg-ink; the unit page carries a
   per-skill .vg-t-* class (L media/sky, R edu/blue, W work/amber, S health/pink).
   ⚠ Every data-* hook, id and the classes the harnesses read (.lrws-was, .lrws-verdict,
   .lrws-explain, .lrws-opts li.ok/bad/was, .lrws-in.ok/near/bad/blank) are unchanged. */

/* §3.1 phone containment. .fin-shell is align-items:flex-start, so at ≤860px .sf-main
   shrink-to-fits its MIN-CONTENT and any 560px table pushed the page to 684px (3 of 28 units).
   contain:inline-size zeroes the intrinsic width of every prose container that can carry an
   authored <table>; the table then scrolls INSIDE it. Do NOT put contain on .lrws-page itself —
   measured: it collapses the page to 0px wide. */
.lrws-tablewrap,.lrws-gapbody,.lrws-teach,.lrws-passage-b,.lrws-ref-body{ contain:inline-size; overflow-x:auto; }
.lrws-video video{ max-width:min(520px,100%); }
.lrws-ex-p{ min-width:0; }
.lrws-items li>*{ min-width:0; }
.lrws-page img{ max-width:100%; height:auto; }
.lrws-audio audio{ width:100%; max-width:420px; }
.lrws-gapbody ul,.lrws-gapbody ol{ margin:.5em 0; padding-left:22px; }
.lrws-marktext{ text-align:left; }

/* §3.2 the card — the .vg-shell family, lighter */
.lrws-ex{ background:linear-gradient(180deg,var(--glass2),var(--glass) 55%); border:1px solid var(--bord2);
  border-radius:18px; padding:18px 20px 16px; box-shadow:0 2px 0 rgba(2,8,23,.35); }
.lrws-ex.done{ border-color:rgba(var(--vg-tint,var(--accent)),.55); }
.lrws-kind{ margin-bottom:10px; font-size:10.5px; }
.lrws-ex-h{ align-items:flex-start; gap:12px; }
.lrws-ex-n{ min-width:34px; height:26px; padding:0 8px; border-radius:999px; display:inline-flex; align-items:center;
  justify-content:center; font:800 12px 'Sora',sans-serif; background:rgba(var(--vg-tint,var(--accent)),.12);
  border:1px solid rgba(var(--vg-tint,var(--accent)),.35); color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
.lrws-ex.done .lrws-ex-n{ background:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); border-color:transparent; color:#fff; }
.lrws-ex-p{ font-size:15px; line-height:1.55; }
.lrws-tick{ color:var(--ok); margin-top:3px; }
.lrws-foot .btn.secondary{ border-radius:12px; }
.lrws-ref .btn .lu,.lrws-timer .btn .lu{ margin-right:4px; }

/* §3.3 MCQ — a real input inside a .vg-opt label: lrwsCheck reads boxes[i].checked by index */
.lrws-opts{ list-style:none; padding:0; margin:12px 0 0; display:flex; flex-direction:column; gap:10px; }
.lrws-opts.bare{ padding-left:0; }
.lrws-opts li{ margin:0; }
.lrws-opt{ position:relative; min-height:50px; padding:11px 14px; }
.lrws-opt input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.lrws-opt:has(input:focus-visible){ outline:2px solid rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); outline-offset:2px; }
.lrws-opt:has(input:checked){ border-color:rgba(var(--vg-tint,var(--accent)),.7); background:rgba(var(--vg-tint,var(--accent)),.10); }
.lrws-opt:has(input:checked) .vg-opt-k{ background:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); color:#fff; }
.lrws-opts li.was .lrws-opt{ background:transparent; }                 /* "you missed this": outline only */
.lrws-opts li.was .lrws-opt .vg-opt-k{ border-color:var(--ok); color:var(--ok); background:rgba(52,211,153,.10); }
.lrws-opts.bare .vg-opt-k:empty{ display:none; }

/* §3.3 blanks — .vg-gap-inp look via the appended selector list; LRWS sizes + the two LRWS-only states */
.lrws-in{ min-height:34px; }
.lrws-in[type=text]{ font-size:15px; }
.lrws-in.lrws-gap{ width:150px; min-height:36px; text-align:left; padding:3px 9px; }
.lrws-in[type=text]:not(.lrws-gap):not(.lrws-ord){ width:64px; }
.lrws-in.lrws-ord{ width:52px; text-align:center; }
.lrws-in.near{ border-style:solid; border-color:var(--warn); background:rgba(251,191,36,.12); color:var(--warn); }
.lrws-in.blank{ border-color:var(--mut); background:transparent; }
.lrws-gapbody{ line-height:2.4; }
.lrws-table td{ line-height:2.2; }
.lrws-table .lrws-was{ margin:2px 0 0; line-height:1.55; }
select.lrws-in{ appearance:none; -webkit-appearance:none; cursor:pointer; min-height:36px; border-radius:10px;
  padding:4px 30px 4px 11px; text-align:left; font:600 14px inherit; color:var(--txt);
  border:1.5px solid rgba(var(--vg-tint,var(--accent)),.4);
  background:rgba(var(--vg-tint,var(--accent)),.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/12px; }
select.lrws-in:focus{ outline:none; border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
select.lrws-in option{ color:initial; background:initial; }
.lrws-in.lrws-wide{ width:auto; max-width:100%; }

/* the answer pill — the .vg-res-chip look a Vocabulary student already knows */
.lrws-was{ display:inline-block; margin-left:6px; padding:2px 9px; border-radius:10px; line-height:1.5; max-width:100%; overflow-wrap:anywhere;
  font:700 11.5px 'JetBrains Mono',monospace; color:var(--warn); background:rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.35); vertical-align:middle; }
.lrws-was::before{ content:"answer"; margin-right:6px; font:700 9.5px 'Sora',sans-serif; letter-spacing:.06em; text-transform:uppercase; opacity:.75; }

/* rows — a grid so the control never floats alone at the far right */
.lrws-items{ margin:12px 0 0; }
.lrws-items li{ display:grid; grid-template-columns:32px minmax(0,1fr) auto auto; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--bord); }
.lrws-items li:first-child{ border-top:0; }
.lrws-il{ width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font:800 12px 'Sora',sans-serif; color:var(--mut); border:1.5px solid var(--bord2); background:var(--card); }
.lrws-it{ min-width:0; }
.lrws-it:empty{ display:none; }                                         /* number-only match rows */
.lrws-items li:has(.lrws-it:empty){ grid-template-columns:32px auto auto 1fr; }
.lrws-items.lrws-order li{ grid-template-columns:auto minmax(0,1fr) auto; }   /* order prints its input first */
.lrws-items.lrws-order li>.lrws-in{ grid-column:1; grid-row:1; }   /* lrwsWasTag inserts the pill right after the input — place explicitly */
.lrws-items.lrws-order li>.lrws-it{ grid-column:2; grid-row:1; }
.lrws-items.lrws-order li>.lrws-was{ grid-column:3; grid-row:1; }
.lrws-items .lrws-was{ margin-left:0; justify-self:start; }
@media (max-width:560px){
  .lrws-items:not(.lrws-order) li{ grid-template-columns:32px minmax(0,1fr); row-gap:6px; }
  .lrws-items:not(.lrws-order) li>.lrws-in,.lrws-items:not(.lrws-order) li>.lrws-was{ grid-column:2; justify-self:start; }
  .lrws-items:not(.lrws-order) li:has(.lrws-it:empty){ grid-template-columns:32px auto minmax(0,1fr); }   /* number-only: the pill stays beside its box */
  .lrws-items:not(.lrws-order) li:has(.lrws-it:empty)>.lrws-in{ grid-column:2; grid-row:1; }
  .lrws-items:not(.lrws-order) li:has(.lrws-it:empty)>.lrws-was{ grid-column:3; grid-row:1; }
  .lrws-items.lrws-order li{ grid-template-columns:auto minmax(0,1fr); }
  .lrws-items.lrws-order li>.lrws-was{ grid-column:2; grid-row:2; }
}

/* banks */
.lrws-bank{ background:rgba(var(--vg-tint,var(--accent)),.05); border:1px dashed rgba(var(--vg-tint,var(--accent)),.35); border-radius:14px; padding:12px 14px; }
.lrws-bank ul:not(.lrws-bankrow){ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:4px 18px; }
.lrws-bank li{ display:flex; align-items:baseline; }
.lrws-bank li b{ flex:none; display:inline-flex; width:22px; height:22px; border-radius:7px; align-items:center; justify-content:center; align-self:flex-start;
  background:rgba(var(--vg-tint,var(--accent)),.12); border:1px solid rgba(var(--vg-tint,var(--accent)),.35);
  color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); font:700 12px 'Sora',sans-serif; margin-right:8px; }
.lrws-bankrow{ gap:8px; }
.lrws-bankrow li{ padding:5px 12px; border-radius:10px; background:var(--glass2); border:1px solid var(--bord2); font-weight:600; font-size:13.5px; }
.lrws-tok.on{ background:rgba(var(--vg-tint,var(--accent)),.14); border-radius:6px 6px 0 0; }

/* §3.4 verdict strip — only once lrwsCheck has written into it */
.lrws-foot{ gap:10px 12px; }
.lrws-verdict:not(:empty){ flex:1 1 100%; display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; padding:11px 14px; border-radius:13px; font-weight:600; font-size:13.5px; line-height:1.45; }
.lrws-verdict:has(b.ok){ background:rgba(52,211,153,.12); border:1px solid rgba(52,211,153,.35); }
.lrws-verdict:has(b.part){ background:rgba(251,191,36,.10); border:1px solid rgba(251,191,36,.35); }
.lrws-verdict:has(b.bad){ background:rgba(251,113,133,.10); border:1px solid rgba(251,113,133,.32); }
.lrws-verdict b{ display:inline-flex; align-items:center; }
.lrws-verdict b::before{ content:"✓"; display:inline-flex; width:22px; height:22px; border-radius:50%; align-items:center; justify-content:center;
  margin-right:8px; font-size:12px; font-weight:800; color:#04210f; background:var(--ok); }
.lrws-verdict b.part::before{ content:"~"; background:var(--warn); color:#2a1d00; }
.lrws-verdict b.bad::before{ content:"✕"; background:var(--bad); color:#2b060d; }
.lrws-verdict b.ok{ color:var(--ok); } .lrws-verdict b.part{ color:var(--warn); } .lrws-verdict b.bad{ color:var(--bad); }
.lrws-explain{ border-radius:14px; border-color:rgba(var(--vg-tint,var(--accent)),.25); background:rgba(var(--vg-tint,var(--accent)),.05); }
.lrws-explain div{ padding:3px 0; }
.lrws-explain-t{ color:rgb(var(--vg-ink,var(--vg-tint,var(--accent2)))); }
.lrws-explain div b{ color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
.lrws-audio,.lrws-timer{ padding:8px 12px; border-radius:12px; background:var(--glass2); border:1px solid var(--bord); }
.lrws-audio-t{ display:inline-flex; align-items:center; gap:6px; color:rgb(var(--vg-ink,var(--vg-tint,var(--accent2)))); }

/* §3.5 unit header — the .vg-thead shape: kicker · h1 · goals, ring at the right */
.lrws-page.unit{ position:relative; z-index:0; }
.lrws-head{ display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap; }
.lrws-head-main{ flex:1; min-width:240px; }
.lrws-head-k{ color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
.lrws-head .vg-thead-ring{ margin-top:6px; }
.lrws-head .lrws-goals{ margin-top:10px; }
.lrws-h{ border-bottom-color:rgba(var(--vg-tint,var(--accent)),.35); }

/* light theme — same literals as the vg light block (v874) */
html[data-theme="light"] .lrws-ex{ background:var(--glass); box-shadow:0 2px 0 rgba(16,24,42,.12); }
html[data-theme="light"] .lrws-opts li:not(.ok):not(.bad):not(.was) .lrws-opt:has(input:checked){ border-color:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.08); }
html[data-theme="light"] .lrws-opts li.was .lrws-opt{ background:transparent; }
html[data-theme="light"] .lrws-opts li.was .lrws-opt .vg-opt-k{ background:rgba(4,120,87,.10); }
html[data-theme="light"] .lrws-ex-n{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.10); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.32); }
html[data-theme="light"] .lrws-ex.done .lrws-ex-n{ background:rgb(var(--vg-ink,var(--vg-tint,var(--accent)))); }
html[data-theme="light"] .lrws-bank{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.04); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.4); }
html[data-theme="light"] .lrws-bank li b{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.10); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.32); }
html[data-theme="light"] select.lrws-in:not(.ok):not(.bad):not(.near):not(.blank){ background-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.06); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.45); }
html[data-theme="light"] .lrws-in.near{ border-color:var(--warn); background:rgba(161,98,7,.10); }
html[data-theme="light"] .lrws-in.bad{ border-color:var(--bad); background:rgba(190,18,60,.09); }
html[data-theme="light"] .lrws-in.blank{ border-color:var(--mut); background:transparent; }
html[data-theme="light"] .lrws-was{ background:rgba(161,98,7,.10); border-color:rgba(161,98,7,.34); }
html[data-theme="light"] .lrws-verdict:has(b.ok){ background:rgba(4,120,87,.10); border-color:rgba(4,120,87,.34); }
html[data-theme="light"] .lrws-verdict:has(b.part){ background:rgba(161,98,7,.10); border-color:rgba(161,98,7,.34); }
html[data-theme="light"] .lrws-verdict:has(b.bad){ background:rgba(190,18,60,.09); border-color:rgba(190,18,60,.32); }
html[data-theme="light"] .lrws-verdict b::before{ color:#fff; }
html[data-theme="light"] .lrws-verdict b.part::before{ color:#fff; }
html[data-theme="light"] .lrws-verdict b.bad::before{ color:#fff; }
html[data-theme="light"] .lrws-explain{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.04); border-color:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.25); }
html[data-theme="light"] .lrws-tok.on{ background:rgba(var(--vg-ink,var(--vg-tint,var(--accent))),.12); }

/* ═══ ➕ Add staff — the one guided page for creating a colleague (7 Sep 2026, DECISIONS 7 Sep item 14) ═══
   Three numbered steps on one card, big role tiles, one big button, then a handover panel with the
   username and the 4-digit code in large type. Every colour is a token so dark mode needs no override. */
.as-page{ max-width:860px; }
.as-lead{ color:var(--mut); font-size:14.5px; margin:0 0 16px; }
.as-card{ padding:22px 24px; }
.as-step{ display:flex; gap:16px; padding:6px 0 18px; border-bottom:1px dashed var(--bord); margin-bottom:18px; }
.as-step:last-of-type{ border-bottom:0; }
.as-stepn{ flex:0 0 34px; height:34px; border-radius:50%; background:var(--grad); color:#fff; font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); }
.as-step-body{ flex:1; min-width:0; }
.as-step-body h3{ font-size:17px; font-weight:800; margin:4px 0 12px; }
.as-hint{ font-size:12.5px; color:var(--mut); margin-top:5px; }
.as-err{ display:none; font-size:13px; font-weight:700; color:var(--red); margin-top:6px; }
.as-err.on{ display:block; }
.as-err-general{ margin-bottom:10px; }
.as-tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px; }
.as-tile{ position:relative; display:flex; gap:10px; align-items:flex-start; background:rgba(127,127,127,.06); border:2px solid var(--bord); border-radius:14px; padding:12px 14px; cursor:pointer; transition:border-color .12s ease, background .12s ease, transform .12s ease; }
.as-tile:hover{ border-color:rgba(var(--accent),.6); transform:translateY(-1px); }
.as-tile.on{ border-color:rgb(var(--accent)); background:rgba(var(--accent),.10); }
.as-tile input{ position:absolute; opacity:0; width:0; height:0; }
.as-tile input:disabled ~ .as-tile-body{ opacity:.55; }
.as-tile-ico{ font-size:24px; line-height:1; flex:0 0 auto; margin-top:2px; }
.as-tile-body{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.as-tile-body b{ font-size:15px; }
.as-tile-body small{ font-size:12.5px; color:var(--mut); line-height:1.35; }
.as-tile-caution{ font-style:normal; font-size:12px; color:var(--red); font-weight:700; line-height:1.35; margin-top:2px; }
.as-tile-warn.on{ border-color:var(--red); background:rgba(239,68,68,.08); }
.as-pw-note{ background:rgba(var(--accent),.08); border:1px solid rgba(var(--accent),.3); border-radius:12px; padding:11px 13px; font-size:13.5px; line-height:1.4; }
.as-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:6px; }
.as-actions-2{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--bord); }
.as-big{ font-size:16px; padding:13px 26px; font-weight:800; }
.as-hand{ text-align:left; }
.as-hand-row{ display:flex; flex-direction:column; gap:4px; padding:12px 16px; margin-bottom:10px; background:rgba(127,127,127,.06); border:1px solid var(--bord); border-radius:14px; }
.as-hand-row span{ font-size:11.5px; color:var(--mut); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.as-code{ font-family:var(--font-display); font-size:30px; font-weight:800; letter-spacing:.5px; color:var(--txt); word-break:break-all; }
.as-code-pin{ font-size:44px; letter-spacing:.35em; color:rgb(var(--accent)); }
.as-once{ font-size:13.5px; line-height:1.45; background:rgba(251,191,36,.10); border:1px solid rgba(251,191,36,.5); border-radius:12px; padding:11px 13px; margin:6px 0 14px; }
.as-wa{ background:#25d366; border-color:#1ea952; color:#fff; text-decoration:none; display:inline-flex; align-items:center; }
.as-wa:hover{ background:#1ebe5b; color:#fff; }

/* ── v1.279 · Student 360 (DECISIONS 59) ─────────────────────────────────────────────────────── */
/* v1.280 — the dialog keeps ONE height across tabs (the body scrolls), so switching tabs never jumps */
.s360{height:min(82vh,860px);display:flex;flex-direction:column;padding-right:4px}
.s360-head,.s360-tabs{flex:none}
.s360-body{flex:1 1 auto;min-height:0;overflow:auto;padding-right:6px}
.s360>div:last-child{flex:none}
.s360-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:8px}
.s360-id{font-family:ui-monospace,Menlo,monospace;font-size:12px;font-weight:600;color:var(--mut);margin-left:6px}
.s360-flags{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:46%}
.s360-flag{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--glass2);border:1px solid var(--bord);color:var(--txt);white-space:nowrap}
.s360-flag.warn{background:rgba(251,191,36,.14);border-color:rgba(251,191,36,.45);color:#b45309}
.s360-flag.bad{background:rgba(251,113,133,.13);border-color:rgba(251,113,133,.4);color:var(--bad)}
.s360-flag.ok{background:rgba(16,185,129,.12);border-color:rgba(16,185,129,.35);color:var(--ok)}
.s360-tabs{display:flex;gap:4px;align-items:center;border-bottom:1px solid var(--bord);margin:6px 0 12px;flex-wrap:wrap}
.s360-tab{background:transparent;border:0;border-bottom:2px solid transparent;color:var(--mut);font:inherit;font-weight:700;font-size:13px;padding:8px 10px;cursor:pointer}
.s360-tab.on{color:var(--txt);border-bottom-color:var(--accent,#22d3ee)}
.s360-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-bottom:12px}
.s360-tile{background:var(--glass2);border:1px solid var(--bord);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.s360-tile b{font-family:Sora,Inter,sans-serif;font-size:20px;font-weight:800;color:var(--txt);line-height:1.1}
.s360-tile span{font-size:11px;color:var(--mut)}
.s360-t{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0 10px}
.s360-t th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--mut);padding:6px 8px;border-bottom:1px solid var(--bord)}
.s360-t td{padding:7px 8px;border-bottom:1px solid var(--glass2);vertical-align:top;color:var(--txt)}
.s360-pill{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:rgba(34,211,238,.14);color:var(--txt);white-space:nowrap}
.s360-pill.ok{background:rgba(16,185,129,.14);color:var(--ok)} .s360-pill.warn{background:rgba(251,191,36,.16);color:#b45309} .s360-pill.mut{background:var(--glass2);color:var(--mut)}
.s360-pill.bad{background:rgba(244,63,94,.14);color:var(--bad,#be123c)}   /* v1.392 — a failed email on the Communication tab */
.s360-heat{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;max-width:520px;margin:6px 0 12px}
.s360-day{aspect-ratio:1;border-radius:4px;background:var(--glass2);border:1px solid var(--bord);position:relative}
.s360-day.lo{background:rgba(16,185,129,.25)} .s360-day.mid{background:rgba(16,185,129,.5)} .s360-day.hi{background:rgba(16,185,129,.85)}
.s360-day.drill::after{content:"";position:absolute;right:2px;bottom:2px;width:5px;height:5px;border-radius:50%;background:var(--txt);opacity:.75}
.s360-note{padding:8px 10px;border-radius:8px;background:var(--glass2);border:1px solid var(--bord);margin-bottom:6px;font-size:13px;color:var(--txt)}
.s360-tl{display:flex;flex-direction:column;gap:2px;max-height:360px;overflow:auto}
.s360-ev{display:flex;gap:10px;font-size:12.5px;padding:4px 0;border-bottom:1px solid var(--glass2);color:var(--txt)}
.s360-ev-t{color:var(--mut);white-space:nowrap;min-width:118px;font-family:ui-monospace,Menlo,monospace;font-size:11.5px}
.pl-row-link{cursor:pointer} .pl-row-link:hover{outline:1px solid var(--bord)}

/* v1.298 — light-theme contrast (theme-audit). Bright dark-theme inks read at ~1.5–3:1 on white; these
   are the AA-checked light twins. Dark theme is untouched. */
html[data-theme="light"] .lz-star:hover{color:#b45309}
html[data-theme="light"] .lz-star.on{color:#b45309;text-shadow:none}
html[data-theme="light"] .overlay .panel .lz-star.on{color:#b45309!important}
html[data-theme="light"] .stu-ic.wa{color:#15803d;border-color:rgba(21,128,61,.4)}
html[data-theme="light"] .bkx-pol a{color:#0369a1}
html[data-theme="light"] .vg-hero-ic.violet{background:linear-gradient(135deg,#6d28d9,#7c3aed);box-shadow:0 3px 14px rgba(109,40,217,.35)}
/* the zoom close button sits on the always-dark .figzoom backdrop; pin its own surface so the light-theme
   --glass2 (near-white) cannot turn the white × into a pale-on-pale chip */
.figzoom-x{background:rgba(15,23,42,.55);border-color:rgba(255,255,255,.28)}

/* ═══ v1.300 — student portal visual fixes (audit outputs/ui-audit-2026-09-23/visual-findings.md, V-01…V-25) ═══
   Reuses existing tokens; dark values that change use the pair light already ships (#0369a1→#4338ca).
   Every rule is tagged with its finding id. Log: outputs/ui-audit-2026-09-23/fix-log-visual.md */

/* V-11 — #user-menu-btn and #go-dash are <button>s now: strip UA button chrome so nothing moves */
button.tr-name{ background:transparent; color:inherit; font:inherit; text-align:left; margin:0; }
button.brand-block{ background:none; border:0; padding:0; margin:0; color:inherit; font:inherit; }
.tr-name .who-col{ display:flex; }

/* V-01 / V-02 — phone & tablet shell (≤860px) */
@media(max-width:860px){
  /* the column shell kept align-items:flex-start, so .sf-main shrank to its widest nowrap row */
  .fin-shell{ align-items:stretch; }
  .fin-shell .sf-wrap.sf-fin{ padding:18px 16px 64px; }
  /* student nav = one compact horizontal tab strip instead of a 200px column above the content */
  .stu-glass > .fin-side{ position:static; }
  .stu-glass .fin-side{ flex-wrap:nowrap; align-items:center; overflow-x:auto; overflow-y:hidden; gap:4px; padding:6px 12px; border-right:0; }
  .stu-glass .fin-side-brand, .stu-glass .fin-side > .fin-sgroup:not(.stu-collap){ display:none; }
  .stu-glass .fin-sitem{ flex:none; width:auto; white-space:nowrap; min-height:44px; margin:0; }   /* V-15: 38px -> 44px */
  .stu-glass .fin-sgroup.stu-collap{ flex:none; width:auto; min-height:44px; gap:6px; padding:0 12px; border:1px solid var(--bord); border-radius:10px; }   /* V-15: 23px -> 44px */
  .stu-glass .stu-megroup{ display:contents; }   /* inline display:none still wins while "More" is closed */
}
/* V-01 / V-06 — test rows ([data-trow], added in app.js; class stays exactly "card" because harness/speakingtab.js parses it) (Partial, Section-wise, Speaking, Question-wise sets, Full Mocks) wrap on phones:
   title + chips on line 1, time / action / score on line 2 (was fixed 124/78/196/162px cells beside nowrap titles) */
@media(max-width:600px){
  .card[data-trow], .fm-row{ flex-wrap:wrap; row-gap:10px; }
  .card[data-trow] > div:first-child, .fm-row > div:first-child{ flex:1 1 100% !important; flex-wrap:wrap; row-gap:6px; }
  .card[data-trow] > div:first-child > b, .fm-row > div:first-child > b{ white-space:normal !important; }
  .card[data-trow] > span:first-of-type, .fm-row > span:first-of-type{ margin-right:auto; }
  .card[data-trow] > div:nth-child(2){ margin-left:auto; }
}
/* v1.350 — student view headers: .sf-wrap is a flex column with a 24px gap, so on 11 tabs the grey subtitle floated 30px under its
   title while Vocabulary Builder, IELTS Skills and Full Mock Tests (own wrappers) sat it 6px under. One rule: title, 6px, subtitle,
   then the page's 24px gap (inline margin-bottoms of 14/28px on the subtitles made that 38–52px). */
.stu-glass .sf-wrap > .h1 + .sub{ margin-top:-24px !important; margin-bottom:0 !important; }
/* v1.350 — BC IELTS Ready Premium rows: the five part buttons are one width (Section-wise's buttons all read "Part N / Qa–b" so they
   line up by themselves; "Listening ✓ / Band 6.5" beside "Speaking / soon" did not); on phones they share the full row. */
.bcp-btns .btn.sd-part{ width:90px; }
@media(max-width:860px){ .bcp-btns .btn.sd-part{ width:78px; } }
@media(max-width:600px){ .card[data-trow] > .bcp-btns{ flex:1 1 100% !important; flex-wrap:nowrap !important; margin-left:0; }
  .bcp-btns .btn.sd-part{ flex:1 1 0; width:auto; min-width:0; padding:5px 2px; } .bcp-btns .sd-part-n{ font-size:11.5px; } }
/* V-01 / V-03 — topbar fits 375px (the 259px name chip pushed to x=471); menus open on-screen */
@media(max-width:480px){
  .topbar{ padding:8px 12px; gap:8px; }
  .topbar .tr-name .who-col{ display:none; }
  .top-left .user-menu, .user-menu, .notif-panel{ position:fixed; left:8px; right:8px; width:auto; top:calc(var(--topbar-h) + 4px);
    max-height:calc(100vh - var(--topbar-h) - 16px); overflow-y:auto; }
}
/* QA B3 (routing polish, 24 Oct 2026): with the Lumen bottom tab bar (≤760px: 60px + the safe area) the bell panel ran under it (panel to y=628,
   bar from y=580 at 360×640) and its last rows could not be tapped — the panel now ends above the bar and scrolls inside */
@media(max-width:760px){ body.lumen .notif-panel{ max-height:calc(100vh - var(--topbar-h) - 24px - 60px - env(safe-area-inset-bottom)); overflow-y:auto; overscroll-behavior:contain; } }
/* v1.357 (rulings 30 Sep, finance-6) — Classic look (no body.lumen) on a phone: .top-left was 549px wide at 390px, pushing the bell and account menu off-screen
   (every staff portal shares this bar). The "＋ Refer a client" / "↩ Exit to AdminCloud" label goes (icon only; the text's own "＋" is hidden with it, so the
   ::before glyph no longer doubles it) and the search label/⌘K stay hidden. Lumen has its own rules (lumen.css). */
@media(max-width:480px){
  body:not(.lumen) .topbar .tb-newlead{ font-size:0; padding:0 10px; margin:0; height:38px; min-width:38px; justify-content:center }
  body:not(.lumen) .topbar .tb-newlead::before{ content:"＋"; font-size:16px; line-height:1 }
  body:not(.lumen) .topbar .tb-newlead.tb-exitadmin::before{ content:"↩" }
  body:not(.lumen) .topbar .tb-search{ min-width:0; padding:9px 12px }
  body:not(.lumen) .topbar .tb-search>span, body:not(.lumen) .topbar .tb-search kbd{ display:none }
  body:not(.lumen) .topbar .top-left{ gap:6px; min-width:0 }
}

/* V-04 — Section-wise part sub-line on the (now deep) primary button: see the in-place edit at .sd-part-s */

/* V-05 — dark dialogs: the 130-selector !important ghost list (~L4749) flattened the primary CTA into Cancel.
   Restore it with the page primary's pair (V-04). Light already has its twin (~L8590), which outranks this. */
html:not([data-theme="light"]) .overlay .panel .btn.primary:not(:disabled):not([disabled]){
  background:linear-gradient(135deg,#0369a1,#4338ca) !important; color:#fff !important; border:0 !important; }

/* V-07 — CD-IELTS player header / navigator on phones (layout only; colours untouched) */
@media(max-width:600px){
  .player.ex-mode .p-head{ flex-wrap:wrap; gap:4px 8px; padding:4px 8px; }
  .player.ex-mode .p-head .ielts{ font-size:19px; margin-right:2px; }
  .player.ex-mode .p-head .who{ flex:1 1 0; min-width:0; }
  .player.ex-mode .p-head .who .tid{ font-size:12.5px; }
  .player.ex-mode .p-head .spacer{ display:none; }
  .player.ex-mode .ex-timer{ position:static; transform:none; order:10; flex:1 1 100%; justify-content:center; padding:2px 0 4px; }
  .player.ex-mode .ex-hide{ min-height:28px; padding:2px 12px; }
  .player.ex-mode .icon-btn{ width:36px; height:32px; min-width:32px; justify-content:center; }
  .player .p-foot .p-review input{ width:24px; height:24px; }
  .player .palette{ flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:4px; min-width:0; }
  .player .part-block{ min-width:0; border-right:0; padding-right:0; }
  .player .part-block .qbtns{ flex-wrap:nowrap; overflow-x:auto; min-width:0; scrollbar-width:thin; }
  .player .part-block .qbtn{ min-width:32px; height:32px; flex:none; }
  /* the absolute ←/→ pair (bottom:66px) sat on top of the taller phone navigator: make it a row between body and footer */
  .player .nav-arrows{ position:static; justify-content:flex-end; padding:6px 12px; align-self:stretch; border-top:1px solid #e2e2e2; }
  /* v1.377 audit 3 Oct — on a phone the Listening dock (volume + 4 icons + Exit) ran 423px wide and pushed Exit off-screen: let it wrap, shorter slider */
  .player .p-tools{ flex-wrap:wrap; row-gap:6px; } .player .p-tools .p-volwrap input{ width:70px; }
  /* v1.356 (portal audit 30 Sep) — Matching Features rows pinned the statement column at 340px (26 + 340 + box = ~450px), so on a 390px phone the
     letter box sat OFF-SCREEN to the right of every statement (reachable only by scrolling the question pane sideways, with nothing hinting it).
     Same grid, the statement column now takes what is left; the boxes still line up in one column. */
  .player .match-row{ grid-template-columns:26px minmax(0,1fr) max-content; }
  /* v1.356 (portal audit 30 Sep) — Listening form / note / table completions: every cell is nowrap (right on a desktop), so a 390px phone got a
     table 500–1,000px wide and the answer boxes ran off the right edge (only reachable by scrolling the pane sideways). Let the cells wrap on a phone. */
  .player .gap-table td, .player .gap-table th{ white-space:normal; padding:6px 10px; }
}
/* v1.356 (portal audit 30 Sep) — the practice-exit button wraps under Start on a phone and its inline margin-left:10px left it indented; stack it flush */
@media(max-width:600px){ #ex-page .ex-instr #ex-exit{ margin-left:0 !important; margin-top:10px; } }

/* V-08 — locked Full Mock row, light "LOCKED" chip ink (was 2.38:1 through the old opacity) */
.card.mk-locked .rate-chip{ color:var(--mut); }

/* V-09 — dark avatar initials: white on the bright accent gradient = 2.34:1 → dark ink (≥7:1 on every accent) */
.avatar, .um-ava, .rep-photo-ph{ color:#04121f; }   /* .rep-photo-ph = the report-page initials disc, same pattern (2.34:1) */
html[data-theme="light"] .avatar, html[data-theme="light"] .um-ava, html[data-theme="light"] .rep-photo-ph{ color:#fff; }   /* light = unchanged (white on the deep gradient, ≥5:1) */

/* V-10 — dark question-type chips: lift the hue toward white (light already darkens it toward black) */
html:not([data-theme="light"]) .pm-tchip{ color:color-mix(in srgb, var(--c) 55%, #fff); }

/* V-13 — Typing Trainer keyboard fits a phone (fixed 40px keys forced 564px) */
@media(max-width:600px){
  .typ-shell{ padding:18px 14px 22px; }
  .typ-krow{ gap:4px; }
  .typ-krow:nth-child(3){ padding-left:8px; } .typ-krow:nth-child(4){ padding-left:18px; }
  .typ-key{ width:auto; flex:1 1 0; min-width:0; max-width:40px; height:32px; font-size:11px; }
  .typ-kb-legend{ flex-wrap:wrap; justify-content:center; }
}

/* V-14 — light: small badges/labels under AA */
html[data-theme="light"] .tr-badge.pro{ color:#0b5f75; }
html[data-theme="light"] .stg-l{ color:var(--mut); }
html[data-theme="light"] .dcp-stat span{ color:#3f4b63; }
html[data-theme="light"] .dash-eyebrow{ color:#0b5f75; }
html[data-theme="light"] .shop-price{ color:#065f46; }
html[data-theme="light"] .fm-row .rate-chip.new{ color:#0b5f75; }
html[data-theme="light"] .stu-prof .pf-chip.pro{ color:#92400e; }
html[data-theme="light"] .stu-prof .pf-chip.ok{ color:#065f46; }

/* V-15 — tap targets ≥24px (44px where the audit asked) */
.login-forgot, #cp-forgot{ display:inline-block; padding:8px 0; }
.user-menu .um-acc .acc-sw{ width:24px !important; height:24px !important; }
.user-menu .um-acc .acc-swatches{ gap:4px; flex-wrap:wrap; justify-content:flex-end; }   /* six 24px swatches must fit the 282px menu */
@media(max-width:600px){
  .user-menu .um-acc .acc-sw{ width:28px !important; height:28px !important; }
  .stu-glass .sf-main input[type="checkbox"], .plan-it input, .spk-check-it input{ width:24px; height:24px; flex:none; }
  button.qtp-q{ min-height:28px; min-width:28px; }
}

/* V-18 — the empty "Where to focus" card no longer stretches to the row height */
#skills-card:has(> .skl-empty){ align-self:start; }

/* V-21 — light: the student sidebar is LIGHT glass, not the dark staff chrome — use the light accents
   (focus ring was #22d3ee ≈1.4:1; the --grad re-derives from these on the same element) */
html[data-theme="light"] .stu-glass .fin-side{ --accent:14,116,144; --accent2:109,40,217; }

/* V-22 — Vocabulary: level chips / Start CTA / XP pill a touch deeper in light, lifted in dark (slate 3.55:1) */
html[data-theme="light"] .vg-chip-lvl, html[data-theme="light"] .vg-card-cta{ color:color-mix(in srgb, rgb(var(--vg-ink,var(--vg-tint,var(--accent)))) 82%, #000); }
html[data-theme="light"] .vg-xp{ color:#0b5f75; }
html:not([data-theme="light"]) .vg-chip-lvl, html:not([data-theme="light"]) .vg-card-cta{ color:color-mix(in srgb, rgb(var(--vg-ink,var(--vg-tint,var(--accent)))) 70%, #fff); }

/* V-24 — CD-IELTS end screen: the disabled palette faded unanswered numbers to 2.57:1 */
.player .p-foot.disabled .qbtn{ opacity:.85; }

/* V-01 (cont.) — the remaining phone overflows found after the shell fix */
@media(max-width:600px){
  /* question-type chips: the 5-column grid shrank each track to ~56px and the nowrap chip text spilled out (Partial 446px) */
  .pm-tchips{ display:flex; flex-wrap:wrap; }
  .pm-tchip{ white-space:normal; max-width:100%; border-radius:12px; }   /* long Speaking topic chips wrap instead of running off-screen */
  /* Full Mocks voucher card: its wrapper kept a 430px basis / 260px floor beside a wrapped row (394px) */
  div:has(> .card > div > #mv-redeem-code){ flex:1 1 100% !important; min-width:0 !important; }
  .card:has(> div > #mv-redeem-code){ min-width:0; }
  /* My Results / drills tables: tighter cells, and scroll inside the card if a row is still too wide (472px) */
  .stu-glass .sf-main table.list{ display:block; max-width:100%; overflow-x:auto; }
  .stu-glass .sf-main table.list th, .stu-glass .sf-main table.list td{ padding:10px 8px; }
}
@media(max-width:860px){
  /* Vocabulary / IELTS Skills aurora bleeds 24px past the page; the phone gutter is 16px now */
  .vg-page::before, .vg-page::after, .lrws-page.unit::before{ left:-16px; right:-16px; }
  /* …and its ::after drifts (vgAurora: translateX(18px) rotate(4deg)) — clip the decoration horizontally only */
  .vg-page, .lrws-page.unit{ overflow-x:clip; }
}
@media(max-width:600px){
  /* Vocabulary XP hero: three icon+label stat tiles need ~354px — stack icon over label so they fit 343px (no clipping) */
  .vg-hero{ padding:16px 14px; gap:14px; }
  .vg-hero-stats{ min-width:0; gap:8px; flex:1 1 100%; }
  .vg-hero-stat{ flex-direction:column; gap:6px; padding:10px 6px; text-align:center; min-width:0; }
}

/* V-25 (cont.) — light: the ACTIVE segment (#0e7490 at the .9 run-dim) was 4.03:1 */
html[data-theme="light"] .typ-seg-btn.active{ color:#0b5f75; }
/* account menu section labels (menu touched by V-11/V-12): light 4.47:1 at 9.5px */
html[data-theme="light"] .user-menu .um-sec{ color:#46546d; }
/* V-14 (cont.) — two more light dashboard inks in the same family, seen once the student has a streak / a target gap:
   "N-day" streak #ea7317 = 2.26:1 and the amber "N to target" (inline var(--warn)) = 3.68:1 */
html[data-theme="light"] .dcp-streak-h b{ color:#92400e; }
html[data-theme="light"] .dcp-band-goal[style*="--warn"]{ color:#92400e !important; }

/* ═══ v1.300 — UX half (UX-01…UX-18, V-20, signup/voucher C7). Every rule tagged with its id. ═══ */
/* V-20 + UX-03 — the post-test survey is a dismissible bar at the bottom of the result, never a modal over it */
.mfb-bar{ position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:90; width:min(620px, calc(100vw - 32px));
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; border-radius:14px;
  background:#141a2e; color:#eef2ff; border:1px solid var(--bord2); box-shadow:0 10px 30px rgba(0,0,0,.35); }
html[data-theme="light"] .mfb-bar{ background:#ffffff; color:#10182a; box-shadow:0 10px 30px rgba(16,24,42,.18); }
.mfb-bar-t{ flex:1 1 240px; min-width:0; font-size:14px; line-height:1.4; }
.mfb-bar-t small{ display:block; opacity:.85; font-size:12px; }
.mfb-bar-b{ display:flex; gap:8px; flex:none; }
@media(max-width:480px){ .mfb-bar{ bottom:10px; padding:10px 12px; } .mfb-bar-b{ width:100%; } .mfb-bar-b .btn{ flex:1; min-height:36px; } }
/* UX-07 — a locked practice screen says so in the nav */
.fin-sitem-lock{ margin-left:auto; font-size:12px; line-height:1; }
/* C7 — "Create your student account" ran under the ✕ at phone width */
@media(max-width:420px){ .sp2-title, .sp2-sub{ padding-right:34px; } }
/* UX-06 — Where to focus now renders for returning students (it was always the empty state before), which
   exposed its chip inks: red 3.47:1 and amber 1.79:1 on light, red 4.07:1 on dark. Same hue, deeper/lighter ink. */
.qt-lg, .qt-tag{ color:color-mix(in srgb, var(--c) 62%, #fff); }
html[data-theme="light"] .qt-lg, html[data-theme="light"] .qt-tag{ color:color-mix(in srgb, var(--c) 55%, #000); }

/* ═══ code review 24 Sep (client3 batch) — exam player on phones / zoom, and one Front Desk picker. Desktop CD-IELTS layout untouched. ═══ */
/* UX-02 — phone header: the candidate line (.who) was squeezed to ~2px, so its text spilled over the volume icon.
   It gets a real basis and wraps inside itself; the palette's scrolling edge fades so the sideways scroll is visible. */
@media(max-width:600px){
  .player.ex-mode .p-head .who{ flex:1 1 150px; }
  .player.ex-mode .p-head .who .tid{ display:flex; min-width:0; overflow-wrap:anywhere; }
  .player .part-block .qbtns{ padding-right:22px;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 26px),transparent); mask-image:linear-gradient(to right,#000 calc(100% - 26px),transparent); }
}
/* X-02 — visible keyboard focus in the exam player (WCAG 2.4.7). The global input:focus{outline:none} and a 1.81:1 accent ring
   left nothing visible. Player-scoped, :focus-visible only, own colour (Lumen's --accent is not touched); text fields keep their
   blue-border focus; the chip/drop-gap rings keep 3px. */
.player :is(button,a[href],[tabindex],select,summary,input[type="checkbox"],input[type="radio"],input[type="range"]):focus-visible{ outline:2px solid #1f6fd6 !important; outline-offset:2px; }
.player :is(.chip,.mchip,.drop-gap,.mgap):focus-visible{ outline:3px solid #1f6fd6 !important; outline-offset:2px; }
/* X-07 — at 400% zoom (≈320×256 CSS px) the fixed header + footer left the question area 0px tall (measured). Below 420px of
   height (and narrow — a short desktop window keeps the fixed layout) the whole player scrolls as one page instead; the timer scrolls with
   the header (the 10/5-minute warnings are also announced). */
@media(max-height:420px) and (max-width:760px){
  .player{ overflow-y:auto; }
  .player .p-body{ flex:none; overflow:visible; }
  .player .p-content, .player .p-content.split{ flex:none; overflow:visible; }
  .player .pane{ overflow:visible; }
}
/* UX-04 — Front Desk "New walk-in" → Route to: the two long buttons overflowed a 390px dialog; stack them on narrow screens */
@media(max-width:420px){
  #rc-cloud{ flex-direction:column; }
  #rc-cloud .tmp-o{ flex:1 1 auto; width:100%; }
  #rc-cloud .tmp-o .tmp-l{ flex:1 1 auto; min-width:0; white-space:normal; }
}

/* ═══ v1.327 H2 · the student pop-up's decision view (app.js pfGlanceHTML / pfNextHTML) — "At a glance" strip + "What to do next" ═══ */
.overlay .panel .pf-head .pf-open360{ margin-left:auto; flex:0 0 auto; margin-right:34px; }
.overlay .panel .pf-gl{ border:1px solid #e6e9ee; border-radius:14px; background:#f8fafc; padding:12px 14px; margin:0 0 16px; }
.overlay .panel .pf-gl-h{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.overlay .panel .pf-gl-h span{ font-size:15px; font-weight:800; color:#111; }
.overlay .panel .pf-gl-h small{ font-size:11px; color:#64748b; font-weight:600; }
.overlay .panel .pf-gl-dnc{ background:#fef2f2; border:1px solid #fecaca; color:#991b1b; border-radius:10px; padding:8px 12px; font-size:12.5px; font-weight:700; margin-bottom:10px; }
.overlay .panel .pf-gl-g{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.overlay .panel .pf-gl-c{ background:#fff; border:1px solid #e6e9ee; border-radius:10px; padding:8px 10px; min-width:0; }
.overlay .panel .pf-gl-c.wide{ grid-column:span 2; }
.overlay .panel .pf-gl-l{ font-size:10.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; color:#64748b; margin-bottom:3px; }
.overlay .panel .pf-gl-v{ font-size:13.5px; font-weight:800; color:#111; overflow-wrap:anywhere; }
.overlay .panel .pf-gl-v small{ font-weight:600; color:#64748b; }
.overlay .panel .pf-gl-s{ font-size:11.5px; color:#475569; margin-top:2px; overflow-wrap:anywhere; }
.overlay .panel .pf-gl-due{ color:#b91c1c; }
.overlay .panel .pf-gaps{ display:flex; flex-wrap:wrap; gap:4px; margin-top:3px; }
.overlay .panel .pf-gap{ font-size:11.5px; font-weight:800; border-radius:999px; padding:2px 8px; border:1px solid #e2e8f0; background:#f1f5f9; color:#334155; white-space:nowrap; }
.overlay .panel .pf-gap small{ font-weight:700; }
.overlay .panel .pf-gap.ok{ background:#ecfdf5; border-color:#a7f3d0; color:#047857; }
.overlay .panel .pf-gap.warn{ background:#fffbeb; border-color:#fde68a; color:#92400e; }
.overlay .panel .pf-gap.bad{ background:#fef2f2; border-color:#fecaca; color:#b91c1c; }
.overlay .panel .pf-gap.na{ opacity:.6; }
.overlay .panel .pf-gl-2{ display:grid; grid-template-columns:3fr 2fr; gap:8px; margin-top:8px; }
.overlay .panel .pf-gl-box{ background:#fff; border:1px solid #e6e9ee; border-radius:10px; padding:8px 10px; min-width:0; }
.overlay .panel .pf-gl-cm{ display:flex; gap:8px; align-items:baseline; font-size:12.5px; color:#334155; padding:3px 0; border-top:1px dashed #eef2f6; min-width:0; }
.overlay .panel .pf-gl-cm:first-of-type{ border-top:0; }
.overlay .panel .pf-gl-cmd{ flex:0 0 auto; color:#64748b; font-size:11.5px; font-weight:700; }
.overlay .panel .pf-gl-cm b{ flex:0 0 auto; color:#0f172a; }
.overlay .panel .pf-gl-cmn{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.overlay .panel .pf-gl-nx{ font-size:13px; color:#334155; }
.overlay .panel .pf-nx{ padding:11px 13px; margin-bottom:10px; }
.overlay .panel .pf-nx-top{ display:flex; align-items:center; gap:8px; }
.overlay .panel .pf-nx-n{ flex:0 0 auto; width:20px; height:20px; border-radius:50%; background:#0f172a; color:#fff; font-size:11px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.overlay .panel .pf-nx-ic{ flex:0 0 auto; font-size:18px; }
.overlay .panel .pf-nx-t{ flex:1; min-width:0; font-size:14px; font-weight:800; color:#111; line-height:1.3; }
.overlay .panel .pf-nx-val{ flex:0 0 auto; font-size:13px; font-weight:800; color:#047857; background:#fff; border:1px solid #d1fae5; border-radius:8px; padding:2px 8px; white-space:nowrap; }
.overlay .panel .pf-nx-val small{ font-weight:600; color:#475569; }
.overlay .panel .pf-nx-why{ font-size:12.5px; color:#374151; margin:6px 0 0 28px; line-height:1.45; }
.overlay .panel .pf-nx .pf-rec-earn{ margin:8px 0 0 28px; }
.overlay .panel .pf-nx-acts{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0 28px; }
.overlay .panel .pf-nx-b{ font:inherit; font-size:12px; font-weight:700; border:1px solid #d0d6df; background:#fff; color:#1f2937; border-radius:8px; padding:5px 10px; cursor:pointer; }
.overlay .panel .pf-nx-b:hover{ filter:brightness(.97); }
.overlay .panel .pf-nx-b.wa{ background:#25d366; border-color:#25d366; color:#fff; }
.overlay .panel .pf-nx-task{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0 28px; }
.overlay .panel .pf-nx-task[hidden]{ display:none; }
.overlay .panel .pf-nx-task input{ font:inherit; font-size:12.5px; border:1px solid #d0d6df; border-radius:8px; padding:5px 8px; background:#fff; color:#111; min-width:0; }
.overlay .panel .pf-nx-task input[type=text]{ flex:1 1 160px; }
.overlay .panel .pf-rec.pay{ background:#fdf2f8; border-color:#fbcfe8; }
.overlay .panel .pf-msg-send{ display:flex; justify-content:flex-end; margin-top:8px; }
.overlay .panel .pf-send-wa{ background:#25d366; border-color:#25d366; color:#fff; display:inline-flex; align-items:center; gap:6px; }
.overlay .panel .pf-send-wa.pf-pulse{ box-shadow:0 0 0 3px rgba(37,211,102,.35); }
@media (max-width:760px){
  .overlay .panel .pf-gl-g{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .overlay .panel .pf-gl-2{ grid-template-columns:1fr; }
  .overlay .panel .pf-head{ flex-wrap:wrap; }
  .overlay .panel .pf-head .pf-open360{ margin:0; width:100%; }
  .overlay .panel .pf-nx-why, .overlay .panel .pf-nx-acts, .overlay .panel .pf-nx-task, .overlay .panel .pf-nx .pf-rec-earn{ margin-left:0; }
  .overlay .panel .pf-gl-cm{ flex-wrap:wrap; }
  .overlay .panel .pf-gl-cmn{ white-space:normal; flex-basis:100%; }
}
/* phone: "What to do next" straight after the glance strip, before the long academic column (the BDM's next move first) */
@media (max-width:700px){ .overlay .panel .pf-cols .pf-col-r{ order:-1; margin-bottom:12px; } }
/* v1.327 verify V327-C — DARK theme for the decision view: the strip and the "What to do next" titles were hard-coded light (#f8fafc boxes,
   #111 titles), so on the dark pop-up panel the suggestion titles and reasons were near-invisible (dark text on the dark .pf-rec card).
   Same tokens as the existing dark .pf-rec / .pf-acad-c treatment; the light theme is untouched. */
html:not([data-theme="light"]) .overlay .panel :is(.pf-gl,.pf-gl-c,.pf-gl-box){ background:rgba(255,255,255,.05); border-color:var(--bord2); }
html:not([data-theme="light"]) .overlay .panel :is(.pf-gl-h span,.pf-gl-v,.pf-nx-t,.pf-gl-cm,.pf-gl-cm b,.pf-gl-nx){ color:var(--txt); }
html:not([data-theme="light"]) .overlay .panel :is(.pf-gl-h small,.pf-gl-l,.pf-gl-v small,.pf-gl-s,.pf-gl-cmd,.pf-nx-why,.pf-nx-val small){ color:var(--mut); }
html:not([data-theme="light"]) .overlay .panel .pf-gl-cm{ border-top-color:var(--bord2); }
html:not([data-theme="light"]) .overlay .panel .pf-gl-due{ color:#f87171; }
html:not([data-theme="light"]) .overlay .panel .pf-nx-n{ background:rgba(255,255,255,.16); }
html:not([data-theme="light"]) .overlay .panel .pf-nx-val{ background:rgba(52,211,153,.12); border-color:rgba(52,211,153,.35); color:#34d399; }
html:not([data-theme="light"]) .overlay .panel .pf-nx-b:not(.wa){ background:rgba(255,255,255,.06); border-color:var(--bord2); color:var(--txt); }

/* v1.356 (portal audit 30 Sep) — the Task 1 figure in the marking workspace kept its 560px width on a phone and pushed the
   whole page sideways (document 616px wide at 390px). */
.eval-prompt img{max-width:100% !important;height:auto}   /* !important: the figure carries an inline max-width:560px */

/* v1.356 (portal audit 30 Sep) — the page-level ".soon" (coming-soon card: 44px padding, 40px margin, 24px radius) also
   matched the "under 24h" slot buttons in Speaking availability, so every grid row was 120px tall and the dialog showed
   two rows at a time. Keep those slots slot-sized. */
.overlay .panel .slot.soon{ margin:0; max-width:none; padding:9px 0; border-radius:10px; text-align:center; }

/* v1.356 (portal audit 30 Sep) — TeachCloud on a phone (390px):
   · attendance register: the four mark buttons ran off the row ("Makeup" cut, "Repeat" unreachable) — they now take a full-width row under the name;
   · marking workspace header: the title column (flex:1 = basis 0) never wrapped below the band cards, leaving the name and the paper one word per line. */
@media(max-width:520px){
  .att-row{flex-wrap:wrap}
  .att-marks{flex:1 1 100%}
  .att-marks .att-m{flex:1 1 0;min-height:40px;padding:8px 4px}
  .we-head-l{flex:1 1 100%}
}

/* v1.356 (portal audit 30 Sep) — the Writing / Evaluated / Speaking search + date-window row sat flush against the card's border
   (both themes); give it the card's own 20px gutter. */
.th-card > .tw-search{margin:12px 20px}

/* v1.356 (portal audit 30 Sep) — check-in code lookup failed: the chip keeps its "—" and says why it can be tapped */
.grp-code-chip b.ck-fail{cursor:pointer;color:var(--mut);letter-spacing:0}
.grp-code-chip b.ck-fail::after{content:" · couldn't load — tap to retry";font-weight:600;font-size:11.5px}

/* v1.356 (portal audit 30 Sep) — a long dialog title ("Assign a partial mock — IELTS-A", "Attendance — <batch>") ran under the round ✕ close button
   at the top-right of the panel on a phone; keep the title clear of it. */
.overlay .panel > .dlg-x + :is(.cx-dn,.h2,h2,h3,.att-head){ padding-right:44px; }

/* v1.357 (rulings 30 Sep, teach-8): phones get a one-line 'best on a tablet or laptop' note above the speaking form */
.spk-phone-note{ display:none; }
@media (max-width:700px){ .spk-phone-note{ display:block; } }

/* v1.357 (rulings 30 Sep, teach-9): the reviews strip shows ONE card per view under 520px (the arrows still step through them) */
@media(max-width:520px){.rv-carousel .rv-item:nth-child(n+2){display:none}.rv-carousel{gap:6px}}

/* ── v1.395 — STAFF PORTALS ON A TOUCH SCREEN (ANik 5 Oct: "i will give this ipad to front desk staff, i want them to enter walk-in data
   using this ipad. I need the front desk interface to work properly on this ipad" — iPad 9th gen, A2602, Safari). Measured on the
   rendered desk at 810x1080 / 1080x810 (outputs/ipad-frontdesk-2026-10-05/): every field was 13px, so Safari ZOOMS the page on each tap,
   and buttons were 28–32pt tall against Apple's 44pt minimum. Only touch screens (pointer: coarse) inside the staff shell (.fin-side is
   there) change — a desktop with a mouse and every student screen look exactly as before. !important: lumen.css sizes these controls
   with long selectors; this block must win on touch only. */
@media (pointer: coarse){
  html body:has(.fin-side) :is(#app, #dlg) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select, textarea){ font-size:16px !important; }
  html body:has(.fin-side) :is(#app, #dlg) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select){ min-height:44px !important; height:auto !important; }
  html body:has(.fin-side) :is(#app, #dlg) .btn:not(.small){ min-height:44px !important; height:auto !important; }
  html body:has(.fin-side) :is(#app, #dlg) .btn.small{ min-height:40px !important; height:auto !important; }
  html body:has(.fin-side) :is(#app, #dlg) .dlg-x{ width:44px !important; height:44px !important; }
  html body:has(.fin-side) #app .fin-side .fin-sitem{ min-height:44px !important; }
  html body:has(.fin-side) #app :is(.tb-icon, .tb-search){ min-width:44px !important; min-height:44px !important; }
  html body:has(.fin-side) :is(#app, #dlg) :is(input[type=checkbox], input[type=radio]){ width:22px; height:22px; }
  html body:has(.fin-side) #dlg [data-rccloud]{ min-height:44px !important; }
  html body:has(.fin-side) #dlg #rc-wa-same{ min-height:36px !important; padding:6px 12px !important; display:inline-flex; align-items:center; }
  html body:has(.fin-side) #app :is(#tb-refclient, #tb-cmd, #tb-bell, [aria-label="Collapse sidebar"], [aria-label="Switch theme"], [title="Collapse sidebar"], [title="Switch theme"]){ min-height:44px !important; min-width:44px !important; }
}

/* ── v1.396 — WALK-IN: what did they come for (ANik 5 Oct: "some buttons like course, exam registration, study abroad, then a drop down
   menu, and auto add the lead to counsellor claim pool"). Only the walk-in form (.rc-walk): the short lead line, three big service
   buttons + a "Which one" dropdown, WhatsApp / email / note folded under "More details", no Route to / Assign to. Refer a client is
   unchanged. */
#dlg .rc-lead-s{ display:none; }
#dlg:has(.rc-walk) .rc-lead-l{ display:none; }
#dlg:has(.rc-walk) .rc-lead-s{ display:block; }
#dlg .rc-walk .rc-route-f{ display:none !important; }
#dlg .rc-walk:not(.rc-more) .cx-f:has(#rc-wap), #dlg .rc-walk:not(.rc-more) .cx-f:has(#rc-e), #dlg .rc-walk:not(.rc-more) .cx-f:has(#rc-note){ display:none; }
#dlg .rc-svc{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
#dlg .rc-svc-b{ min-height:52px; padding:8px 6px; border:1.5px solid var(--bord2, #cfd6e0); border-radius:12px; background:var(--card, #fff); color:var(--txt);
  font:600 14px/1.2 inherit; cursor:pointer; text-align:center; }
#dlg .rc-svc-b.on{ border-color:var(--acc, #0e7490); background:rgba(14,116,144,.10); color:var(--acc, #0e7490); box-shadow:0 0 0 1px var(--acc, #0e7490) inset; }
#dlg .rc-more-b{ background:none; border:0; padding:6px 0; color:var(--acc, #0e7490); font:600 14px inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
@media (max-width: 600px){
  #dlg .rc-walk .cx-phone .flag-ico{ display:none; }
  html body #dlg .rc-walk .cx-phone select{ flex:0 0 122px !important; width:122px !important; max-width:122px !important; min-width:122px !important; padding-right:28px !important; }
  #dlg .rc-svc{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  #dlg .rc-svc-b{ min-height:52px; font-size:14px; padding:8px 6px; }
  #dlg:has(.rc-walk) .panel > div:last-child:has(#rc-send){ position:sticky; bottom:-1px; margin:14px -20px -20px; padding:12px 20px; background:var(--card, #fff);
    border-top:1px solid var(--bord, #e3e7ee); display:flex; gap:8px; justify-content:stretch; z-index:2; }
  #dlg:has(.rc-walk) .panel > div:last-child:has(#rc-send) .btn{ flex:1; }
}

/* ── v1.396 — THE FRONT DESK AS AN APP ON A PHONE (ANik 5 Oct: "it can look like an app. the dashboard can show several buttons, they
   enter relevant buttons to see other information"). Home = greeting + a grid of big buttons; a section button shows that one card
   full-screen with Back (app.js fdView sets data-fdview). Wider screens never show the grid. */
.lx-desk .fd-app, .lx-desk .fd-app-back{ display:none; }
/* 15 Oct 2026 — the Front Desk "Class routine" page: a Back button on phones (the side menu is a drawer there) */
.fd-rt-back{ display:none; margin:4px 0 12px; }
@media (max-width:760px){ .fd-rt-back{ display:block; } }
@media (max-width: 600px){
  .lx-desk .fd-app{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin:4px 0 20px; }
  .lx-desk:not([data-fdview]) > .lx-ph{ margin-bottom:8px !important; padding-bottom:0 !important; }
  .lx-desk .fd-app-b{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:96px; padding:12px 6px;
    border:1px solid var(--bord, #e3e7ee); border-radius:18px; background:var(--card, #fff); color:var(--txt); font:600 13px/1.25 inherit; text-align:center; cursor:pointer;
    box-shadow:0 1px 2px rgba(16,24,40,.05); }
  .lx-desk .fd-app-b svg{ color:var(--acc, #0e7490); }
  .lx-desk .fd-app-b:active{ transform:scale(.97); }
  .lx-desk .fd-app-n{ position:absolute; top:8px; right:8px; min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:#e11d48; color:#fff; font-size:12px;
    line-height:22px; text-align:center; }
  .lx-desk:not([data-fdview]) > :is(.lx-fd-acts, .lx-kpis, .lx-grid){ display:none !important; }
  .lx-desk[data-fdview] > :is(.lx-ph, .fd-app, .lx-fd-acts, .lx-kpis){ display:none !important; }
  .lx-desk[data-fdview] .fd-app-back{ display:block; margin:6px 0 12px; }
  .lx-desk[data-fdview] .lx-grid{ display:block !important; }
  .lx-desk[data-fdview] .lx-grid .lx-card:not(.fd-cur){ display:none !important; }
  .lx-desk[data-fdview] .lx-grid .lx-stackcol:not(:has(.fd-cur)){ display:none !important; }
}
/* v1.396 — no grey tap flash on the desk's big buttons (a touch screen leaves it behind the walk-in dialog) */
.fd-tile, .lx-desk .fd-app-b, #dlg .rc-svc-b{ -webkit-tap-highlight-color: transparent; }
@media (max-width: 600px){
  /* v1.396 — a section opened on its own screen keeps wide tables inside the card: they scroll sideways, never off the page */
  .lx-desk[data-fdview] .lx-card .lx-tablewrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .lx-desk[data-fdview] .lx-card table.list th, .lx-desk[data-fdview] .lx-card table.list td{ white-space:nowrap; padding-left:10px; padding-right:10px; }
}
@media (max-width: 600px){ .lx-desk #lx-fd-arrivals table.list tr > :nth-child(2){ display:none; } }   /* v1.396 — on a phone, Status matters more than the ID */

/* v1.396 — Switch account list (ANik 5 Oct: "previously the texts were aligned left"). Lumen's .btn rule (display:inline-flex +
   justify-content:center, both !important) centred every row and overrode the search filter's display:none; rows are .sw-item,
   left-aligned, wrap long names, and the filter sets [hidden]. */
body #dlg #switch-list{overflow-x:hidden}
body #dlg #switch-list .sw-item{display:flex !important;justify-content:flex-start !important;align-items:center !important;gap:4px;flex-wrap:wrap;height:auto !important;min-height:42px;text-align:left;width:100%;min-width:0;white-space:normal}
body #dlg #switch-list .sw-item[hidden]{display:none !important}

/* chat-agent Phase 1 (§3.1): names customers use, on the Pricing page */
.pr-sp{flex:1}
.pa-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.pa-add select,.pa-add input{background:var(--glass-06);border:1px solid var(--bord);border-radius:8px;padding:7px 10px;color:var(--txt);font:inherit;font-size:13px;min-height:36px}
.pa-add input{flex:1 1 220px;min-width:180px;width:auto}
.pa-add select{width:auto;flex:0 1 190px;max-width:100%}
.pa-add .btn{flex:0 0 auto}
.pa-list{max-height:52vh;overflow:auto;border-top:1px solid var(--glass2);padding-top:6px}
.pa-row{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--glass2);font-size:13px}
.pa-row>b{min-width:170px}
.pa-chips{display:flex;flex-wrap:wrap;gap:6px}
.pa-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 9px;border-radius:999px;background:var(--glass-06);border:1px solid var(--bord);font-size:12.5px}
.pa-x{border:0;background:transparent;color:var(--mut);cursor:pointer;font-size:11px;padding:2px 5px;border-radius:999px}
.pa-x:hover,.pa-x:focus-visible{color:var(--bad);background:rgba(251,113,133,.12)}
/* chat-agent Phase 1 (§3.6a item 2): a record's chats */
.rc-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.rc-row{padding:8px 10px;border:1px solid var(--bord);border-radius:10px;background:var(--glass-06);font-size:13px}
.rc-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.rc-top .btn{margin-left:auto}
.rc-snip{margin-top:4px;color:var(--mut);font-size:12.5px;overflow-wrap:anywhere}

/* WhatsApp W1a (specs/whatsapp-prod-plan.md §4.10) — the old WhatsApp screen: ticks, "from the phone" / "imported" tags, inline photos,
   failed files, imported rows dimmed, the Connection panel's rows and the template picker */
.wa-tick{font-size:11px;margin-left:4px;color:var(--mut)}
.wa-tick.read{color:#34b7f1}
.wa-tick.fail{color:#ef4444;font-weight:700}
.wa-tag{display:inline-block;font-size:10px;line-height:1.5;padding:0 6px;margin-right:4px;border-radius:999px;border:1px solid var(--line,#2a2a3a);color:var(--mut)}
.wa-img{display:block;max-width:220px;max-height:220px;margin-top:6px;border-radius:8px;object-fit:cover}
.wa-mfail{font-size:12px;color:var(--mut);margin-top:4px}
.msgr-b.wa-imp{opacity:.78}
.wa-conn>div{margin:0 0 10px;line-height:1.5}
.wa-conn ul{margin:6px 0 0 18px;padding:0;font-size:12px}
.wa-tpl{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line,#2a2a3a)}
.wa-tpl .sp2-in{display:block;width:100%;margin:6px 0}
/* xref (21 Oct 2026) — the cross-team hand-off: Study abroad tab, E&M "Sent to L&E" card, My referrals, Finance › Referral credit */
.xr-sa .cx-sec,.xr-em .cx-sec{margin-top:10px}
.xr-row{padding:7px 0;border-bottom:1px solid var(--line,rgba(255,255,255,.08));font-size:12.5px;line-height:1.5}
.xr-row:last-child{border-bottom:0}
.xr-row-h{color:var(--mut);font-size:11.5px}
.xr-row-b{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:2px}
.xr-chip{display:inline-block;font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--line,rgba(255,255,255,.15));white-space:nowrap}
.xr-lock{background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.45)}
.xr-none{background:rgba(148,163,184,.10)}
.xr-void{background:rgba(244,63,94,.08);border-color:rgba(244,63,94,.4)}
.xr-disp{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.45)}
.xr-manual{background:rgba(251,191,36,.08)}
.xr-conv{color:var(--ok,#22c55e);font-weight:600}
.xr-send{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.xr-em{margin:10px 0;padding:10px 12px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:10px}
.xr-in{margin-bottom:8px}
.xr-prev{min-height:1.2em}
.xr-mine-card summary{cursor:pointer;list-style:none}
.xr-tbl{display:flex;flex-direction:column;gap:2px}
.xr-tr{display:grid;grid-template-columns:1.2fr 1fr 1.4fr 1fr 1.6fr auto;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line,rgba(255,255,255,.08));font-size:12px}
@media(max-width:700px){.xr-tr{grid-template-columns:1fr 1fr}}
.overlay .panel .lc-chip-xr{background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.4)}

/* ═══ 25 Oct 2026 — DECISIONS 259 (build inbox-calllog; ANik 12:58 + 13:00 "go"): the full-screen inbox, the lead card in the right panel, the
   AI on / off toggle beside Suggest reply, a reply box that grows, and room between Call · WhatsApp · Edit. ═══ */
/* #1 full screen — desktop widths only (a phone / tablet is unchanged), and only while an inbox is on the page (:has) */
@media (min-width:1024px){
  body.ibx-fs:has(.ibx-wrap){overflow:hidden}
  html body.ibx-fs:has(.ibx-wrap) #app aside.fin-side,html body.ibx-fs:has(.ibx-wrap) #app .admin-side,html body.ibx-fs:has(.ibx-wrap) #app > .topbar,html body.ibx-fs:has(.ibx-wrap) .lx-sidefoot{display:none!important}
  body.ibx-fs.lumen.lx-sh:has(.ibx-wrap)::before{display:none!important}
  body.ibx-fs .ibx-wrap{position:fixed;inset:0;z-index:50;margin:0;border-radius:0}
  body.ibx-fs .ibx-wrap .ibx-cards{height:calc(100vh - 72px)!important;min-height:0}
  body.ibx-fs .ibx-wrap .ibx-fsbar{display:flex}
  html body.ibx-fs #app .ibx-fsgo,html body.ibx-fs .ibx-fsgo{display:none!important}   /* the page header's Full screen: Lumen styles every .btn under #app */
}
.ibx-wrap .ibx-fsbar{display:none;align-items:center;gap:8px;height:40px;margin:0 0 8px;padding:0 2px 0 6px;color:var(--ibx-tx)}
.ibx-wrap .ibx-fst{display:inline-flex;align-items:center;gap:8px;font-size:15px}
.ibx-wrap .ibx-fsro{min-width:0;margin-left:8px;padding:4px 10px;border:1px solid var(--ibx-amb-ln);border-radius:8px;background:var(--ibx-amb-bg);color:var(--ibx-tx);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* audit opus2 L3: the read-only notice is under the full-screen inbox otherwise */
.ibx-wrap .ibx-fsbell{position:relative;width:36px;height:36px}
.ibx-wrap .ibx-fsbadge{position:absolute;top:1px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--ibx-cnt,#c2271b);color:#fff;font-size:10.5px;font-weight:700;line-height:17px;text-align:center}
.ibx-wrap .ibx-fsbadge[hidden]{display:none}
.notif-panel.ibx-fsnotif{position:fixed!important;top:56px!important;right:12px!important;left:auto!important;z-index:6500}
.ibx-wrap .ibx-btn.ibx-fsb{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;margin-left:4px;font-weight:600;white-space:nowrap}
.ibx-fsgo{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ibx-wrap .ibx-btn.ibx-fsb.on{height:36px;padding:0 14px}   /* .ibx-btn.primary's colours */
@media (max-width:1023.98px){ .ibx-wrap .ibx-fsb,.ibx-fsgo{display:none!important} }
/* #2 the lead card: in the right panel where the panel is a column (>= 1060 px), above the reply box where it is a drawer / sheet */
.ibx-wrap .ibx-leadslot-s{display:flex;flex-direction:column;flex:0 0 auto;min-width:0}
@container ibx (min-width:1060px){ .ibx-wrap .ibx-conv .ibx-leadslot-s{display:none} }
@container ibx (max-width:1059.98px){ .ibx-wrap .ibx-panel .ibx-leadsec{display:none} }
@supports not (container-type:inline-size){
  .ibx-wrap.ibx-w3 .ibx-conv .ibx-leadslot-s{display:none}
  .ibx-wrap.ibx-w2 .ibx-panel .ibx-leadsec,.ibx-wrap.ibx-w1 .ibx-panel .ibx-leadsec{display:none}
}
.ibx-wrap .ibx-leadsec .ibx-leadbar{align-self:stretch;max-width:none;margin:0;padding:8px 10px;box-shadow:none;background:var(--ibx-tile);border-color:var(--ibx-line)}
.ibx-wrap .ibx-leadsec .ibx-leadbar.linked{padding:0;background:transparent;border:0}
.ibx-wrap .ibx-leadsec .ibx-leadline{display:flex;flex-direction:column;gap:6px;min-width:0}
.ibx-wrap .ibx-leadsec .ibx-link{align-items:center;row-gap:6px}
/* #3 the per-chat AI toggle in the reply bar, and the panel's LuminAI section */
.ibx-wrap .ibx-aiaw{display:inline-flex;align-items:center}
.ibx-wrap .ibx-aiaw[hidden],.ibx-wrap .ibx-aiasec[hidden]{display:none}
.ibx-wrap .ibx-ctools .ibx-ibtn.ibx-aiat{width:auto;height:28px;gap:4px;margin:0 2px;padding:0 9px;border:1px solid var(--ibx-line2);border-radius:999px;font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap}
.ibx-wrap .ibx-ctools .ibx-ibtn.ibx-aiat.on{color:var(--ibx-ok);border-color:currentColor}
.ibx-wrap .ibx-ctools .ibx-ibtn.ibx-aiat.off{color:var(--ibx-tx3)}
.ibx-wrap .ibx-aia-pt{font-size:12.5px;line-height:1.45;color:var(--ibx-tx2);overflow-wrap:anywhere}
.ibx-wrap .ibx-aiasec .ibx-aia-last{font-size:12.5px;color:var(--ibx-tx2)}
/* #4 the reply box grows to about 40% of the window, then scrolls; the tools are their own row under it and wrap rather than overlap */
.ibx-wrap .ibx-cbox textarea.msgr-reply{max-height:40vh;flex:0 0 auto}
.ibx-wrap .ibx-ctools{position:static;flex:0 0 auto;flex-wrap:wrap;row-gap:4px;min-width:0}
/* #6 the numbers on file: Call · WhatsApp · Edit are words — room between them, and they wrap under the number when narrow */
.ibx-wrap .ibx-panel .ct-blk .ct-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.ibx-wrap .ibx-panel .ct-blk .ct-acts .cx-mini{width:auto;min-width:34px;padding:0 10px;box-sizing:border-box}
/* ══ draft-strip (25 Oct 2026, DECISIONS 261 #1 / #6–#8): no AI strip above the reply box — the AI reply sits IN the box under "✦ AI reply" + a "check
   before sending" pill; the reply bar: attach · saved · emoji · ✕ Reject · ↻ Regenerate · [instruction box up to Send] · Send ══ */
.ibx-wrap .ibx-cbox>.ibx-ailab{flex-wrap:nowrap;overflow:hidden;padding:2px 2px 4px;min-width:0}   /* draft-strip: ONE line — the pills shrink with an ellipsis (their words in the tooltip), the words and the buttons never */
.ibx-wrap .ibx-cbox>.ibx-ailab>.ibx-ailab-t,.ibx-wrap .ibx-cbox>.ibx-ailab>.ibx-aid-more{flex:0 0 auto;white-space:nowrap}
.ibx-wrap .ibx-cbox>.ibx-ailab>.ibx-aipill{display:inline-block;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibx-wrap .ibx-ailab .ibx-aid-more{font-weight:600}
.ibx-wrap .ibx-aipill{display:inline-flex;align-items:center;max-width:100%;min-width:0;padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:18px;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:1px solid var(--ibx-line2);color:var(--ibx-tx2);background:var(--ibx-tile)}
.ibx-wrap .ibx-aipill.chk{color:var(--ibx-acc-ink);background:var(--ibx-acc-tint);border-color:transparent}
/* ai-draft-fast (26 Oct 2026): the AI reply being written into the box — dimmed until it is finished and checked (Send waits) */
.ibx-wrap .msgr-reply.ibx-aistream{opacity:.72;font-style:italic}
.ibx-wrap .ibx-aipill.amb{color:var(--ibx-amb);background:var(--ibx-amb-bg);border-color:var(--ibx-amb-ln)}
.ibx-wrap .ibx-aipill.bad{color:var(--ibx-red);background:var(--ibx-red-bg);border-color:var(--ibx-red-ln)}
.ibx-wrap .ibx-aidbw{display:inline-flex;align-items:center;gap:6px;margin-left:6px;min-width:0}
.ibx-wrap .ibx-aidbw:empty{display:none}
.ibx-wrap .ibx-aidbw .ibx-btn.sm{height:28px;padding:0 10px;font-size:12.5px}
.ibx-wrap .ibx-aidbw .ibx-aidrg.on{border-color:var(--ibx-amb-ln);background:var(--ibx-amb-bg);color:var(--ibx-amb)}
/* the instruction box: right of the buttons, as wide as the room up to Send (the spacer gives way) */
.ibx-wrap .ibx-ctools .ibx-aidbw.rg{flex:1 1 220px;min-width:min-content}   /* the "What should change?" box is ≥ 160 px: with less room the AI bar takes the next row (Send after it), the box stretching to Send */
.ibx-wrap .ibx-ctools .ibx-aidbw.rg+.ibx-sp{display:none}
/* while "What should change?" is open the photo / saved-reply / emoji icons step aside, so Reject · Regenerate · the box · Send share one row
   (ANik 20:30 "a textbox on the right side of the button, wide enough to reach close to send button"); Esc / Go brings them back */
.ibx-wrap .ibx-ctools:has(> .ibx-aidbw.rg) > :not(.ibx-aidbw):not(.ibx-send):not(.ibx-sp){display:none}
.ibx-wrap .ibx-ctools .ibx-aidbw.rg+.ibx-sp+.ibx-send{margin-left:6px}
.ibx-wrap .ibx-rg{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:160px;height:30px;padding:0 4px 0 10px;border:1px solid var(--ibx-amb-ln);border-radius:8px;background:var(--ibx-amb-bg)}
.ibx-wrap .ibx-rgi{flex:1 1 auto;width:0;min-width:60px;height:26px;border:0;outline:0;background:transparent;color:var(--ibx-tx);font:inherit;font-size:13px}
.ibx-wrap .ibx-rgi::placeholder{color:var(--ibx-tx3)}
.ibx-wrap .ibx-rg:focus-within{box-shadow:0 0 0 2px var(--ibx-ring)}
.ibx-wrap .ibx-rgph{display:inline-flex;align-items:center;gap:2px;font-size:13px;cursor:pointer}
.ibx-wrap .ibx-rggo{flex:0 0 auto}
@container ibx (max-width: 699px){ .ibx-wrap .ibx-ctools .ibx-aidbw.rg{margin-left:0} .ibx-wrap .ibx-aidbw .ibx-btn.sm{height:36px} }
/* ══ draft-strip (DECISIONS 261 #13): the redesigned right panel — compact, one screen at 1495 × 812 (More details ▸ closed) ══ */
.ibx-wrap .ibx-panel:has(.ibx-p2who){gap:10px;padding:14px 16px}
.ibx-wrap .ibx-p2who .ibx-wid{gap:3px}
.ibx-wrap .ibx-p2ph{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.ibx-wrap .ibx-p2ph .ibx-wph{font-variant-numeric:tabular-nums;color:var(--ibx-tx)}
.ibx-wrap .ibx-p2ph .ibx-btn.sm{height:24px;padding:0 8px;gap:4px;text-decoration:none}
.ibx-wrap .ibx-p2tags{display:flex;flex-wrap:wrap;gap:6px}
.ibx-wrap .ibx-ptag{display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:20px;background:var(--ibx-tile);color:var(--ibx-tx2);border:1px solid var(--ibx-line)}
.ibx-wrap .ibx-ptag.hot{background:var(--ibx-red-bg);color:var(--ibx-red);border-color:var(--ibx-red-ln)}
.ibx-wrap .ibx-p2ad{position:relative}
.ibx-wrap .ibx-p2adr{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.ibx-wrap .ibx-p2adb{max-width:100%;min-width:0;flex:1 1 140px;justify-content:flex-start}
.ibx-wrap .ibx-p2adt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibx-wrap .ibx-p2cost{flex:0 0 auto}
.ibx-wrap .ibx-ppop{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--ibx-line2);border-radius:10px;background:var(--ibx-card);box-shadow:var(--ibx-shadow2);font-size:13px;color:var(--ibx-tx)}
.ibx-wrap .ibx-ppoph{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.ibx-wrap .ibx-ppoph b{min-width:0;overflow-wrap:anywhere}
.ibx-wrap .ibx-ppop a{color:var(--ibx-link)}
.ibx-wrap .ibx-p2wt{font-size:13px;line-height:1.4;color:var(--ibx-tx);overflow-wrap:anywhere}
.ibx-wrap .ibx-p2own{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--ibx-tx2)}
.ibx-wrap .ibx-p2own.free{padding:8px 10px;border:1px solid var(--ibx-amb-ln);border-radius:10px;background:var(--ibx-amb-bg);color:var(--ibx-tx);justify-content:space-between}
.ibx-wrap .ibx-p2tb{display:flex;gap:8px}
.ibx-wrap .ibx-p2tb .ibx-btn{flex:1 1 0;height:38px;font-weight:600}
/* ibx-tnow-color (ANik 26 Oct 04:33 / 04:34): Talking NOW solid green, AA in both themes (light #fff on #15803d 5.02:1, hover #166534 7.13:1, active #14532d 9.11:1;
   dark #06281a on #34d399 8.24:1, hover #6ee7b7 10.39:1, active #10b981 6.24:1); No Answer neutral outlined; with no number both grey and unclickable — no opacity fade */
.ibx-wrap .ibx-tnow{border-color:var(--ibx-ok-solid);background:var(--ibx-ok-solid);color:var(--ibx-ok-on)}
.ibx-wrap .ibx-tnow:hover:not(:disabled){border-color:var(--ibx-ok-solid-h);background:var(--ibx-ok-solid-h)}
.ibx-wrap .ibx-tnow:active:not(:disabled){border-color:var(--ibx-ok-solid-a);background:var(--ibx-ok-solid-a)}
.ibx-wrap .ibx-tno{border-color:var(--ibx-line2);background:var(--ibx-card);color:var(--ibx-tx)}
.ibx-wrap .ibx-tno:hover:not(:disabled){border-color:var(--ibx-tx3);background:var(--ibx-tile)}
.ibx-wrap .ibx-tno:active:not(:disabled){background:var(--ibx-line)}
.ibx-wrap .ibx-tnow:focus-visible,.ibx-wrap .ibx-tno:focus-visible{outline:2px solid var(--ibx-acc);outline-offset:2px}
.ibx-wrap .ibx-tnow:disabled,.ibx-wrap .ibx-tno:disabled{opacity:1;border-color:var(--ibx-dis-ln);background:var(--ibx-dis-bg);color:var(--ibx-dis-tx);cursor:not-allowed;filter:grayscale(1)}
.ibx-wrap .ibx-p2nonum{margin:6px 0 0;font-size:12.5px;line-height:1.4;color:var(--ibx-tx2)}
.ibx-wrap .ibx-p2nonum .ibx-a{font-size:inherit;font-weight:600;text-decoration:underline}
.ibx-wrap .ibx-p2live{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--ibx-ok);border-radius:10px;background:color-mix(in srgb,var(--ibx-ok) 12%,transparent);font-size:13px;color:var(--ibx-tx)}
.ibx-wrap .ibx-p2live.other{border-color:var(--ibx-line2);background:var(--ibx-tile)}
/* talknow-unpicked (28 Oct 2026): "You are still on a call with …" over the open chat */
.ibx-wrap .ibx-talkbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px 10px;border-bottom:1px solid var(--ibx-ok);background:color-mix(in srgb,var(--ibx-ok) 14%,var(--ibx-card));font-size:13px;color:var(--ibx-tx)}
.ibx-wrap .ibx-p2opts{display:flex;flex-wrap:wrap;gap:6px}
.ibx-wrap .ibx-p2opts .ibx-btn.sm{height:28px}
.ibx-wrap .ibx-tnote{height:30px;padding:0 8px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit;font-size:13px;min-width:0}
.ibx-wrap .ibx-p2na{font-size:12.5px;color:var(--ibx-tx2)}
.ibx-wrap .ibx-p2q{padding:10px;border:1px solid var(--ibx-line);border-radius:10px;background:var(--ibx-tile)}
.ibx-wrap .ibx-p2qr{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:13px;color:var(--ibx-tx)}
.ibx-wrap .ibx-p2ql{flex:1 1 auto;min-width:0}
.ibx-wrap .ibx-p2qr b{font-size:15px}
.ibx-wrap .ibx-p2qd{font-size:12px;font-weight:600;color:var(--ibx-ok)}
.ibx-wrap .ibx-p2q .ibx-btn.sm{align-self:flex-start}
.ibx-wrap .ibx-p2seen{font-size:13px;color:var(--ibx-tx)}
.ibx-wrap .ibx-p2next{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--ibx-tx2)}
/* Communication log (29 Oct 2026; DECISIONS NEW 29 Oct): a compact timeline — icon · line (+ note) · Dhaka date and time */
.ibx-wrap .ibx-clog .ibx-sh{display:flex;align-items:baseline;gap:6px}
.ibx-wrap .ibx-lgc{font-size:12px;font-weight:500;color:var(--ibx-tx3)}
.ibx-wrap .ibx-lg{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none}
.ibx-wrap .ibx-lgi{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;column-gap:6px;padding:5px 0;border-top:1px solid var(--ibx-line);font-size:12.5px;line-height:1.35;color:var(--ibx-tx)}
.ibx-wrap .ibx-lgi:first-child{border-top:0;padding-top:0}
.ibx-wrap .ibx-lgic{font-size:13px;line-height:1.3;text-align:center}
.ibx-wrap .ibx-lgm{display:flex;flex-direction:column;gap:1px;min-width:0}
.ibx-wrap .ibx-lgt{overflow-wrap:anywhere}
.ibx-wrap .ibx-lgn{font-size:12px;color:var(--ibx-tx2);overflow-wrap:anywhere}
.ibx-wrap .ibx-lgw{font-size:11.5px;color:var(--ibx-tx2);white-space:nowrap;font-variant-numeric:tabular-nums}
.ibx-wrap .ibx-lgi.k-ai .ibx-lgt,.ibx-wrap .ibx-lgi.k-owner .ibx-lgt{color:var(--ibx-tx2)}
.ibx-wrap .ibx-lgall{align-self:flex-start;margin-top:4px;font-size:12.5px;font-weight:600}
.ibx-wrap .ibx-lgempty{font-size:12.5px}
.ibx-wrap .ibx-aioff{height:40px;width:100%;font-size:14px;font-weight:700;border-color:var(--ibx-red-ln);color:var(--ibx-red);background:var(--ibx-red-bg)}
.ibx-wrap .ibx-aioff.on{border-color:var(--ibx-ok);color:var(--ibx-ok);background:transparent}
.ibx-wrap .ibx-p2more{display:flex;flex-direction:column;gap:10px}
.ibx-wrap .ibx-p2more>#ibx-p2mbd{display:flex;flex-direction:column;gap:14px}
.ibx-wrap .ibx-p2more>#ibx-p2mbd[hidden]{display:none}
.ibx-wrap .ibx-p2mb{align-self:flex-start;font-weight:600}
.ibx-wrap .ibx-panel .ibx-notes textarea#ibx-note{min-height:36px}
/* the row's call chips */
.ibx-wrap .ibx-tag.ibx-ctalk{color:var(--ibx-ok);border-color:var(--ibx-ok)}
.ibx-wrap .ibx-tag.ibx-cna{color:var(--ibx-tx2)}
.ibx-wrap .ibx-tag.ibx-cnum{color:#fff;background:var(--ibx-red,#b91c1c);border-color:var(--ibx-red);font-weight:600}
html:not([data-theme="light"]) .ibx-wrap .ibx-tag.ibx-cnum,html[data-theme="dark"] .ibx-wrap .ibx-tag.ibx-cnum{color:#2a0710}
.ibx-wrap .ibx-rgph .ibx-aid-ths{display:inline-flex;gap:2px}
.ibx-wrap .ibx-rgph .ibx-aid-th{width:22px;height:22px;border-radius:4px;object-fit:cover}
.ibx-wrap .ibx-rgwarn{flex:0 0 auto;font-size:11.5px;font-weight:600;color:var(--ibx-amb);white-space:nowrap}
/* draft-strip (DECISIONS 261 #10): the new panel's note box is one line with Add beside it (taller while typing) — the panel fits 1495 × 812 */
.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-ncomp{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:6px;row-gap:6px}
.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-ncomp>textarea{grid-column:1;grid-row:1}
.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-ncomp>.ibx-nact{grid-column:2;grid-row:1}
.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-ncomp>#ibx-mentbox,.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-ncomp>.ibx-nchips,.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-ncomp>.ibx-vh{grid-column:1 / -1}
.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-notes textarea#ibx-note{height:36px;min-height:36px}
.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-notes textarea#ibx-note:focus,.ibx-wrap .ibx-panel:has(.ibx-p2who) .ibx-notes textarea#ibx-note:not(:placeholder-shown){height:64px}

/* ══ Phone messenger P1a (28 Oct 2026; specs/phone-messenger-p1a-contract.md; DECISIONS 28 Oct "Phone messenger"). body.ibx-pm is set by
   ibxPmApply() only while the inbox is the screen AND the window is < 700 px (the same edge as `@container ibx (max-width:699.98px)`), so
   every rule here is phone-only; the desktop inbox never matches one. The chat LIST fills the screen above the Lumen tab bar (still the
   navigation until P1b); an open CHAT covers the tab bar and sits on the VISUAL viewport (--pm-vvh / --pm-vvt from visualViewport), so the
   iOS keyboard never covers the composer. Safe areas: viewport-fit=cover is set by the same function, only while this class is on. ══ */
body.ibx-pm{overflow:hidden;overscroll-behavior:none}
body.ibx-pm .ibx-ph0,body.ibx-pm .ibx-ro{display:none}
body.ibx-pm .ibx-wrap{position:fixed;left:0;right:0;top:0;bottom:0;z-index:45;margin:0;border-radius:0;background:var(--ibx-card);padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}
body.ibx-pm.lumen .ibx-wrap{bottom:calc(60px + env(safe-area-inset-bottom))}
body.ibx-pm:not(.lumen) .ibx-wrap:not(.conv){top:var(--pm-top,0px)}   /* audit P1a MEDIUM-1: Lumen off — the classic top bar (dashboard logo, account menu) stays above the list */
body.ibx-pm:not(.lumen) .ibx-wrap:not(.conv) .ibx-tabrow{padding-top:4px}
/* … and the portal's nav (a whole page of links on a classic phone) becomes ONE swipeable row of its own items while the phone inbox shows */
body.ibx-pm:not(.lumen) #app .fin-side{position:static;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:2px;height:auto;padding:4px 8px;border-bottom:1px solid var(--bord)}
body.ibx-pm:not(.lumen) #app .fin-side::-webkit-scrollbar{display:none}
body.ibx-pm:not(.lumen) #app > .topbar{overflow-x:clip;overflow-y:visible;max-width:100%}   /* its account chip is a few px too wide at 390: never widen the phone page (the fixed inbox would follow it); clip sideways only, so the account menu / bell / status menus still drop down (audit p1a2 MEDIUM-1) */
body.ibx-pm:not(.lumen):not(:has(.ibx-wrap.conv)) #app > .topbar{z-index:46}   /* audit p1a2 MEDIUM-1: the list (fixed, z 45) starts under the top bar, so the bar's drop-downs (account menu: Lumen toggle, Log out) open OVER it; an open chat still covers the bar */
/* dev merge (v1.566 B2 status pill): the pill's dot + the account chip pushed the chip past 390 (centre 404 — clipped, untappable). On the phone
   inbox with Lumen off the bar is tightened so logo · ＋ · ⌘K · bell · status dot · avatar fit 375 (inbox-phone-browser X1/X5) */
body.ibx-pm:not(.lumen) #app > .topbar{padding-left:8px;padding-right:8px;gap:6px}
body.ibx-pm:not(.lumen) #app > .topbar .brand-block{zoom:.72;flex:0 0 auto}
body.ibx-pm:not(.lumen) #app > .topbar .build-tag{display:none}
body.ibx-pm:not(.lumen) #app > .topbar .top-left{gap:4px}
body.ibx-pm:not(.lumen) #app > .topbar .mys-wrap{margin-right:0}
body.ibx-pm:not(.lumen) #app > .topbar #user-menu-btn .caret{display:none}
body.ibx-pm:has(.ibx-wrap.conv) .toast{top:calc(64px + env(safe-area-inset-top)) !important;bottom:auto !important}   /* audit p1a2 LOW-2: in a chat the toast sits under the header, not over the chip row (Done & next, Saved replies) */
body.ibx-pm:not(.lumen) #app .fin-side>:not(.fin-sitem){display:none}
body.ibx-pm:not(.lumen) #app .fin-side>.fin-sitem{flex:0 0 auto;width:auto;min-height:44px;white-space:nowrap}
body.ibx-pm .ibx-wrap.conv{top:var(--pm-vvt,0px);bottom:auto;height:var(--pm-vvh,100dvh);z-index:60}
body.ibx-pm .ibx-wrap .ibx-in{height:100%;padding:0}
body.ibx-pm .ibx-wrap .ibx-cards{height:100%!important;min-height:0}
body.ibx-pm .ibx-wrap .ibx-card{border:0;border-radius:0}
/* P1a-polish (ANik 28 Oct 21:00 "It must be user friendly with clean design. Should maximise efficiency."): Messenger's calm — one header row,
   one composer row, 72 px list rows, 44 px tap targets with smaller pills drawn inside them (a ::before), existing --ibx-* tokens only (dark too). */
/* the list: the Page tabs as the title row, a round search, ONE swipeable row of chips (+ Sort / Assigned to as pills at its end), dense rows */
body.ibx-pm .ibx-wrap .ibx-tabrow{padding:calc(4px + env(safe-area-inset-top)) 8px 0 12px;border-bottom:0;gap:4px;align-items:center}
body.ibx-pm .ibx-wrap .ibx-tab{height:44px;padding:0 10px;border-radius:0;background:transparent;font-size:15px;color:var(--ibx-tx3);position:relative}
body.ibx-pm .ibx-wrap .ibx-tab.on{background:transparent;color:var(--ibx-tx);font-weight:700}
body.ibx-pm .ibx-wrap .ibx-tab.on::after{content:"";position:absolute;left:10px;right:10px;bottom:6px;height:3px;border-radius:2px;background:var(--ibx-acc)}
body.ibx-pm .ibx-wrap .ibx-tabrow .ibx-ibtn,body.ibx-pm .ibx-wrap .ibx-tabrow .ibx-btn{width:44px;height:44px;padding:0;border-color:transparent;background:transparent;color:var(--ibx-tx2)}
body.ibx-pm .ibx-wrap .ibx-lhead{padding:2px 12px 2px;gap:4px;border-bottom:0}
body.ibx-pm .ibx-wrap .ibx-search{height:40px;border-radius:20px;background:var(--ibx-tile);border-color:transparent;padding:0 14px}
body.ibx-pm .ibx-wrap .ibx-q{font-size:16px}
body.ibx-pm .ibx-wrap .ibx-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:6px;padding:0;margin:0 -12px;padding:0 12px;align-items:center}
body.ibx-pm .ibx-wrap .ibx-chips::-webkit-scrollbar{display:none}
body.ibx-pm .ibx-wrap .ibx-chip{position:relative;isolation:isolate;height:auto;min-height:44px;border-radius:17px;padding:0 13px;background:transparent;color:var(--ibx-tx2);flex:0 0 auto;gap:6px;font-size:14px;font-weight:500}
body.ibx-pm .ibx-wrap .ibx-chip::before{content:"";position:absolute;inset:5px 0;border-radius:17px;background:var(--ibx-tile);z-index:-1}
body.ibx-pm .ibx-wrap .ibx-chip.on{background:transparent;color:var(--ibx-acc-ink);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-chip.on::before{background:var(--ibx-acc-tint)}
body.ibx-pm .ibx-wrap .ibx-chip .ibx-cnt,body.ibx-pm .ibx-wrap .ibx-chip .ibx-badge{min-width:18px;height:18px;line-height:18px;font-size:11px;padding:0 5px}
/* Sort and Assigned to: one compact row of two pills under the chips (their own row: the owner pill keeps its .on tint and is never scrolled away) */
body.ibx-pm .ibx-wrap .ibx-lctl{display:flex;flex-wrap:nowrap;gap:8px;padding:2px 0 4px}
body.ibx-pm .ibx-wrap .ibx-lctl :is(.ibx-sort,.ibx-own){flex:1 1 0;min-width:0}
body.ibx-pm .ibx-wrap .ibx-lctl :is(.ibx-sortl,.ibx-ownl){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;min-width:0}
body.ibx-pm :is(#app,.overlay,body) .ibx-wrap .ibx-lctl select{height:44px!important;min-height:44px!important;padding:0 28px 0 14px!important;border:0!important;border-radius:22px!important;box-shadow:none!important;font-size:14px!important}
body.ibx-pm :is(#app,.overlay,body) .ibx-wrap .ibx-lctl select:not(.on){background-color:var(--ibx-tile)!important;color:var(--ibx-tx2)!important}
/* a row ≈ 72 px: avatar · name ……… time • / preview (one line) · small tags · owner */
body.ibx-pm .ibx-wrap .msgr-litem.ibx-item{grid-template-columns:52px minmax(0,1fr) auto auto;column-gap:12px;row-gap:2px;align-items:center;padding:10px 16px;border-left:0;min-height:72px}
body.ibx-pm .ibx-wrap .msgr-litem.ibx-item.on{background:transparent}
body.ibx-pm .ibx-wrap .msgr-litem.ibx-item:active{background:var(--ibx-sel)}
body.ibx-pm .ibx-wrap .ibx-item .ibx-av.r{grid-row:1 / span 2;align-self:center;width:52px;height:52px;font-size:17px}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-id{grid-column:2 / -1;grid-row:1;gap:6px;line-height:22px}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-id b{font-size:16px;font-weight:500;flex:0 1 auto}
body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-id b{font-weight:700}
body.ibx-pm .ibx-wrap .ibx-item .ibx-rt{margin-left:auto;font-size:12.5px}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-snip{grid-column:2;grid-row:2;font-size:14px;line-height:20px;margin:0}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-tags{grid-column:3;grid-row:2;flex-wrap:nowrap;overflow:hidden;max-width:40vw;gap:4px;justify-content:flex-end}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-own{grid-column:4;grid-row:2}
body.ibx-pm .ibx-wrap .ibx-item .ibx-tag{font-size:11px;line-height:18px;padding:0 6px;border-radius:9px;flex:0 0 auto}
body.ibx-pm .ibx-wrap .ibx-item .ibx-tag.ibx-pmun{border-color:transparent;background:var(--ibx-tile);color:var(--ibx-tx3)}
body.ibx-pm .ibx-wrap .ibx-rwo>.ibx-rowner{display:none}   /* the phone: the owner is a label (a tap opens the chat — no accidental filter); Assigned to is in the chip row */
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-own .ibx-rowner.sp{visibility:visible;height:20px;padding:0;border:0;background:transparent}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-own .cx-own{font-size:11px;line-height:16px}
body.ibx-pm .ibx-wrap .ibx-udot{width:10px;height:10px}
body.ibx-pm .ibx-wrap .ibx-list{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:12px}
/* the chat: ONE header row ≤ 64 px — ← · avatar · name over one status line · Call · ⓘ · ⋯ */
body.ibx-pm .ibx-wrap .msgr-conv-h.ibx-head{display:flex;align-items:center;flex-wrap:nowrap;gap:2px;min-height:56px;padding:calc(4px + env(safe-area-inset-top)) 4px 4px 2px;border-bottom:1px solid var(--ibx-line)}
body.ibx-pm .ibx-wrap .ibx-head .ibx-backw .ibx-ibtn{width:40px;height:44px;color:var(--ibx-acc)}
body.ibx-pm .ibx-wrap .ibx-head .ibx-av{display:inline-flex;flex:0 0 auto;width:36px;height:36px;font-size:13px;margin-right:8px}
body.ibx-pm .ibx-wrap .ibx-head .ibx-hid{position:relative;flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
body.ibx-pm .ibx-wrap .ibx-head .ibx-hname{display:block;max-width:100%;min-height:0;margin:0;padding:0;line-height:21px;font-size:16px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ibx-tx)}
body.ibx-pm .ibx-wrap .ibx-head .ibx-hname::after{content:"";position:absolute;inset:-6px 0}   /* the whole name + status block opens the lead sheet, as Messenger's */
body.ibx-pm .ibx-wrap .ibx-head .ibx-psub.ibx-pmst{display:block;min-height:0;max-width:100%;font-size:12.5px;line-height:17px;color:var(--ibx-tx3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ibx-pm .ibx-wrap .ibx-head .ibx-psub.ibx-pmst.free{color:var(--ibx-amb)}
body.ibx-pm .ibx-wrap .ibx-head :is(.ibx-pmcall,.ibx-pminfo,.ibx-kebab>.ibx-ibtn){flex:0 0 auto;width:44px;height:44px;border-color:transparent;background:transparent;color:var(--ibx-acc);display:inline-flex;align-items:center;justify-content:center}
body.ibx-pm .ibx-wrap .ibx-head .ibx-kebab>.ibx-ibtn{color:var(--ibx-tx2)}
body.ibx-pm .ibx-wrap .msgr-thread.ibx-thread{padding:8px 12px 6px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body.ibx-pm .ibx-wrap .msgr-b{max-width:78%;border-radius:18px;touch-action:pan-y}
body.ibx-pm .ibx-wrap .msgr-b.ibx-swing{transition:none}
body.ibx-pm .ibx-wrap .msgr-b:not(.ibx-swing){transition:transform .25s cubic-bezier(.2,.8,.2,1)}   /* behaviours §6: the spring back */
body.ibx-pm .ibx-wrap .msgr-b.ibx-swok .ibx-rbtn{opacity:1;color:var(--ibx-acc);border-color:var(--ibx-acc)}
body.ibx-pm .ibx-wrap .msgr-b .ibx-rbtn{right:auto;left:-34px;opacity:0;visibility:hidden}   /* the phone replies by swiping; the arrow shows while the bubble moves (and for a keyboard's focus) */
body.ibx-pm .ibx-wrap .msgr-b.ibx-swing .ibx-rbtn,body.ibx-pm .ibx-wrap .msgr-b .ibx-rbtn:focus-visible{opacity:.8;visibility:visible}
@media (prefers-reduced-motion:reduce){ body.ibx-pm .ibx-wrap .msgr-b:not(.ibx-swing){transition:transform .1s linear} }   /* behaviours §13: releases shorten to 100 ms */
/* the composer: Take this chat (only when nobody owns it) · the quick-action chips · [+] [the box, emoji inside] [send, only with text] */
body.ibx-pm .ibx-wrap .msgr-draft.ibx-compose{padding:4px 8px calc(6px + env(safe-area-inset-bottom));border-top:0;gap:0}
body.ibx-pm.ibx-pmkb .ibx-wrap .msgr-draft.ibx-compose{padding-bottom:6px}
body.ibx-pm .ibx-wrap .ibx-pmtake{display:flex;align-items:center;gap:10px;margin:2px 0 4px;padding:4px 4px 4px 14px;border:1px solid var(--ibx-amb-ln);border-radius:14px;background:var(--ibx-amb-bg);color:var(--ibx-tx);font-size:14px}
body.ibx-pm .ibx-wrap .ibx-pmtake .ibx-pmtk-t{flex:1 1 auto;min-width:0;font-weight:500}
body.ibx-pm .ibx-wrap .ibx-pmtake .ibx-pmtakeb{flex:0 0 auto;height:40px;padding:0 16px;border-radius:12px;font-size:14px;font-weight:600}
body.ibx-pm .ibx-wrap .ibx-pmacts{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0 -8px;padding:0 8px;overflow-x:auto;scrollbar-width:none}
body.ibx-pm .ibx-wrap .ibx-pmacts::-webkit-scrollbar{display:none}
body.ibx-pm .ibx-wrap .ibx-pmacts:has(.ibx-aidbw.rg){flex-wrap:wrap;overflow:visible}
body.ibx-pm .ibx-wrap .ibx-pmacts .ibx-aidbw{display:contents}
body.ibx-pm .ibx-wrap .ibx-pmacts .ibx-rg{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body.ibx-pm .ibx-wrap .ibx-pmacts .ibx-rg .ibx-rgi{flex:1 1 200px;height:40px;font-size:16px;border-radius:12px}
body.ibx-pm .ibx-wrap :is(.ibx-pmchip,.ibx-pmacts .ibx-aidbw>.ibx-btn){position:relative;isolation:isolate;flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:44px;min-height:44px;padding:0 12px;border:0;border-radius:16px;background:transparent;box-shadow:none;color:var(--ibx-tx2);font:inherit;font-size:13.5px;font-weight:500;white-space:nowrap;cursor:pointer}
body.ibx-pm .ibx-wrap :is(.ibx-pmchip,.ibx-pmacts .ibx-aidbw>.ibx-btn)::before{content:"";position:absolute;inset:6px 0;border-radius:16px;background:var(--ibx-tile);border:1px solid var(--ibx-line);z-index:-1}
body.ibx-pm .ibx-wrap .ibx-pmchip.ibx-pmdone{color:var(--ibx-acc-ink);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-pmchip.ibx-pmdone::before{background:var(--ibx-acc-tint);border-color:transparent}
body.ibx-pm .ibx-wrap :is(.ibx-pmchip,.ibx-pmacts .ibx-aidbw>.ibx-btn):disabled{opacity:.5;cursor:default}
body.ibx-pm .ibx-wrap .ibx-cbox.ibx-pmbox{display:flex;flex-direction:column;gap:4px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-ailab{padding:0 4px;font-size:12px}
body.ibx-pm .ibx-wrap .ibx-pmbox #ibx-rstrip:empty{display:none}
body.ibx-pm .ibx-wrap .ibx-cbox.ibx-pmbox{display:grid;grid-template-columns:40px minmax(0,1fr) 40px auto;grid-template-areas:"lab lab lab lab" "rs rs rs rs" "plus ta emo send" "sl sl sl sl";row-gap:0;column-gap:0;align-items:end}
body.ibx-pm .ibx-wrap .ibx-pmbox::before{content:"";grid-column:2 / 4;grid-row:3;align-self:stretch;min-height:44px;border-radius:22px;background:var(--ibx-in)}   /* the round field behind the box and the emoji */
body.ibx-pm .ibx-wrap .ibx-pmbox:has(#msgr-reply:focus)::before{box-shadow:0 0 0 1.5px var(--ibx-acc)}
body.ibx-pm .ibx-wrap .ibx-pmbox #ibx-ailab{grid-area:lab;margin-bottom:4px}
body.ibx-pm .ibx-wrap .ibx-pmbox #ibx-rstrip{grid-area:rs}
body.ibx-pm .ibx-wrap .ibx-pmbox #ibx-rstrip:not(:empty){margin-bottom:6px}
body.ibx-pm .ibx-wrap .ibx-pmbox #ibx-slashbox{grid-area:sl}
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-pmplus{grid-area:plus;width:40px;height:44px;border:0;background:transparent;color:var(--ibx-acc)}
body.ibx-pm .ibx-wrap .ibx-pmbox>.ibx-mhost{grid-area:emo;align-self:end}
body.ibx-pm .ibx-wrap .ibx-pmbox>.ibx-mhost>.ibx-ibtn{width:40px;height:44px;border:0;background:transparent;color:var(--ibx-tx3)}
:is(#app,body) .ibx-wrap .ibx-pmbox textarea.msgr-reply.msgr-reply.msgr-reply.msgr-reply{grid-area:ta;align-self:end;min-width:0;box-sizing:border-box;min-height:44px;padding:11px 0 11px 14px !important;font-size:16px !important;line-height:22px !important;background:transparent !important}
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-pmsend{grid-area:send;margin-left:2px;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:22px;background:transparent;color:var(--ibx-acc);display:inline-flex;align-items:center;justify-content:center}
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-pmsend:disabled{opacity:.45}
body.ibx-pm .ibx-wrap .ibx-pmbox:has(#msgr-reply:placeholder-shown) .ibx-pmsend{display:none}   /* send only with text, as Messenger */
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-emo{bottom:48px;top:auto;right:0;left:auto}
body.ibx-pm .ibx-wrap .msgr-reply{font-size:16px}
/* the lead card: the existing bottom sheet, inside the visual viewport and the safe area; Lead quality is its own row there */
body.ibx-pm .ibx-wrap .ibx-panel{max-height:calc(var(--pm-vvh,100dvh) - 24px);padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
body.ibx-pm .ibx-wrap .ibx-pmq{display:flex;align-items:center;justify-content:space-between;gap:10px}
body.ibx-pm .ibx-wrap .ibx-pmq .ibx-sh{margin:0}
body.ibx-pm .ibx-wrap .ibx-pmq .ibx-qbtn{min-height:44px;padding:0 14px;border-radius:22px}
/* calmer marks: the wait as coloured text, Unowned as plain grey text, a light "Load earlier messages" */
body.ibx-pm .ibx-wrap .ibx-item .ibx-tag.ibx-wchip{border-color:transparent;background:transparent;padding:0 2px;font-size:12px}
body.ibx-pm .ibx-wrap .ibx-item .ibx-tag.ibx-pmun{background:transparent;padding:0 2px;font-size:12px}
body.ibx-pm .ibx-wrap .ibx-histbar{min-height:44px;margin:2px auto 6px;padding:0;border:0;background:transparent}
body.ibx-pm .ibx-wrap .ibx-histbar .ibx-histbtn{min-height:36px;padding:0 14px;border:0;border-radius:18px;background:var(--ibx-tile);color:var(--ibx-tx2);font-size:13px;box-shadow:none}
body.ibx-pm .ibx-wrap .ibx-panel .ibx-sec.ibx-pmq{display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;gap:10px}
/* B2 (Arif 28 Oct 2026): the BDM's status in the top bar — Available · Busy · On break */
.mys-wrap{position:relative;display:inline-flex;align-items:center;margin-right:8px}
.mys-btn{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:999px;border:1px solid var(--bord2,#d0d7e2);background:var(--card,#fff);color:var(--txt,#0f172a);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.mys-btn:focus-visible{outline:2px solid #6366f1;outline-offset:2px}
.mys-btn.mys-busy{border-color:rgba(220,38,38,.45);background:rgba(220,38,38,.08);color:#b91c1c}
.mys-btn.mys-break{border-color:rgba(217,119,6,.45);background:rgba(217,119,6,.08);color:#b45309}
.mys-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#16a34a;flex:none}
.mys-busy .mys-dot,.mys-dot.mys-busy{background:#dc2626}
.mys-break .mys-dot,.mys-dot.mys-break{background:#d97706}
.mys-dot.mys-available{background:#16a34a}
.mys-car{font-size:10px;opacity:.7}
.mys-menu{position:absolute;z-index:80;top:calc(100% + 6px);right:0;min-width:250px;padding:6px;border-radius:12px;background:var(--card,#fff);border:1px solid var(--bord2,#d0d7e2);box-shadow:0 12px 32px rgba(15,23,42,.18);color:var(--txt,#0f172a)}
.mys-h{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;opacity:.65;padding:4px 8px}
.mys-sub{font-size:11px;font-weight:700;opacity:.55;padding:8px 8px 2px}
.mys-opt{display:flex;align-items:center;gap:8px;width:100%;padding:7px 8px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.mys-opt:hover,.mys-opt:focus-visible{background:rgba(99,102,241,.10);outline:none}
.mys-opt.on{font-weight:800}
.mys-foot{font-size:11px;opacity:.65;padding:8px 8px 4px;border-top:1px solid var(--bord2,#e2e8f0);margin-top:6px;line-height:1.45}
.mys-badge{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:700}
.mys-badge.mys-busy{background:rgba(220,38,38,.12);color:#b91c1c}
.mys-badge.mys-break{background:rgba(217,119,6,.12);color:#b45309}
/* arif-fixes pre-flight (28 Oct 2026): on a phone the status pill is the dot alone (its label is in the button's title / the menu) — the full
   "Available ▾" pill pushed the top bar past 375 px and the whole page scrolled sideways (lead-panel-ui M1/M3/M5, lumen L4-2, xref-ui P) */
@media (max-width:600px){ .mys-wrap{margin-right:4px} .mys-btn{padding:6px 8px;gap:0} .mys-btn .mys-t,.mys-btn .mys-car{display:none} .mys-menu{max-width:calc(100vw - 16px)} }
/* FB comments P1 (specs/fb-comments-inbox-plan.md r2 §1): the read-only Comments list and thread */
.ibx-cthread{padding:12px 14px;overflow:auto;height:100%;box-sizing:border-box}
.ibx-chead{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.ibx-ccap{font-size:13px;opacity:.8;margin-bottom:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.ibx-cmsg{border:1px solid rgba(127,127,127,.25);border-radius:10px;padding:8px 10px;margin:0 0 8px 24px}
.ibx-cmsg.top{margin-left:0}
.ibx-cmsg.page{background:rgba(59,130,246,.08)}
.ibx-cmsg.gone .ibx-cmb{opacity:.6;font-style:italic}
.ibx-cmh{font-size:12.5px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ibx-cmt{opacity:.7}
.ibx-cmb{margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
/* ══ Phone P1a3 (29 Oct 2026; ANik 00:48 "Is this the ui you were aiming for?" + 00:50 his Messenger screenshot: "make it look feel and behave like
   facebook messenger app"). body.ibx-pm only — the desktop never matches. A large title (the Page or "Chats") that opens the sheet · the filter icon ·
   a pill search · text chips (the chosen one a filled pill) · Messenger rows (the blue unread dot at the far left, a 56 px avatar, name over the
   preview, the time blue when unread, the owner as an initials dot on the avatar's corner) · the sheet (Page, Sort, Assigned to) · the inbox bar
   (Chats · My leads · Calls · Menu) in place of the Lumen tab bar. Dark: true black under the ERP's own dark theme only (it ignores the system theme; fix round: system dark + ERP light left cream callouts unreadable). ══ */
body.ibx-pm .ibx-wrap{--ibx-pmblue:#0866ff}
body.ibx-pm .ibx-wrap .ibx-tabrow{padding:calc(6px + env(safe-area-inset-top)) 4px 2px 16px;gap:0}
body.ibx-pm .ibx-wrap .ibx-pmtitle{margin:0;min-width:0;flex:0 1 auto;font-size:inherit;font-weight:inherit;line-height:inherit}
body.ibx-pm .ibx-wrap .ibx-pmpage{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:48px;cursor:pointer;color:var(--ibx-tx);font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
body.ibx-pm .ibx-wrap .ibx-pmpage>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.ibx-pm .ibx-wrap .ibx-pmpage>svg{flex:0 0 auto;color:var(--ibx-tx3)}
body.ibx-pm .ibx-wrap .ibx-pmpage:focus-visible{outline:2px solid var(--ibx-acc);outline-offset:2px;border-radius:6px}
body.ibx-pm .ibx-wrap .ibx-tabrow .ibx-pmfilt{position:relative;color:var(--ibx-tx)}
body.ibx-pm .ibx-wrap .ibx-pmfdot{position:absolute;top:9px;right:8px;width:9px;height:9px;border-radius:50%;background:var(--ibx-pmblue);box-shadow:0 0 0 2px var(--ibx-card)}
body.ibx-pm .ibx-wrap .ibx-lhead{padding:4px 16px 2px}
body.ibx-pm .ibx-wrap .ibx-search{height:40px;border-radius:20px}
/* text chips: plain words, the chosen one a filled pill; counts inside, quiet */
body.ibx-pm .ibx-wrap .ibx-chips{gap:2px;margin:0 -16px;padding:2px 12px 0}
body.ibx-pm .ibx-wrap .ibx-chip{padding:0 13px;font-size:15px;font-weight:500;color:var(--ibx-tx3);gap:5px}
body.ibx-pm .ibx-wrap .ibx-chip::before{background:transparent;inset:6px 0;border-radius:16px}
body.ibx-pm .ibx-wrap .ibx-chip.on{color:var(--ibx-tx);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-chip.on::before{background:var(--ibx-tile)}
body.ibx-pm .ibx-wrap .ibx-chip>svg{display:none}
body.ibx-pm .ibx-wrap .ibx-chip .ibx-chipn{min-width:0;height:auto;margin-left:0;padding:0;background:transparent;color:var(--ibx-pmblue);font-size:13px;font-weight:600;line-height:inherit}
/* Messenger rows */
body.ibx-pm .ibx-wrap .msgr-litem.ibx-item{position:relative;grid-template-columns:56px minmax(0,1fr);column-gap:12px;row-gap:1px;padding:8px 16px 8px 24px;min-height:76px}
body.ibx-pm .ibx-wrap .ibx-item .ibx-av.r{width:56px;height:56px;font-size:18px;grid-row:1 / span 2}
body.ibx-pm .ibx-wrap .ibx-item:has(.msgr-li-tags) .ibx-av.r{grid-row:1 / span 3}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-id{grid-column:2;align-items:baseline}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-id b{font-size:16.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-id b{font-weight:700}
body.ibx-pm .ibx-wrap .ibx-item .ibx-rt{font-size:13px;color:var(--ibx-tx3);flex:0 0 auto}
body.ibx-pm .ibx-wrap .ibx-item.un .ibx-rt{color:var(--ibx-pmblue);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-snip{grid-column:2;grid-row:2;min-width:0;font-size:15px;line-height:20px;color:var(--ibx-tx3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-snip{color:var(--ibx-tx);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-item .ibx-udot{position:absolute;left:8px;top:50%;margin:-4.5px 0 0;width:9px;height:9px;background:var(--ibx-pmblue)}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-tags{grid-column:2;grid-row:3;max-width:none;justify-content:flex-start;overflow:hidden;gap:8px}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-tags .ibx-tag{background:transparent;border:0;padding:0;font-size:12px;line-height:16px;color:var(--ibx-tx3)}
/* the sheet: Page · Sort · Assigned to (the same selects, labels shown) */
body.ibx-pm .ibx-wrap .ibx-pmfs{display:none}
body.ibx-pm .ibx-wrap .ibx-pmfs.on{display:block;position:fixed;inset:0;z-index:80}
body.ibx-pm .ibx-wrap .ibx-pmfs-scrim{position:absolute;inset:0;background:var(--ibx-scrim,rgba(0,0,0,.45))}
body.ibx-pm .ibx-wrap .ibx-pmfs-card{position:absolute;left:0;right:0;bottom:0;max-height:85%;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:4px 16px calc(18px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:var(--ibx-card);color:var(--ibx-tx);box-shadow:var(--ibx-shadow2)}
body.ibx-pm .ibx-wrap .ibx-pmfs-h{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;font-size:17px}
body.ibx-pm .ibx-wrap .ibx-pmfs-done{min-height:40px;padding:0 18px;border-radius:20px}
body.ibx-pm .ibx-wrap .ibx-pmfs :is(.ibx-pmfs-l,.ibx-sortl,.ibx-ownl){position:static;display:block;width:auto;height:auto;overflow:visible;clip:auto;margin:10px 0 6px;font-size:13px;font-weight:600;color:var(--ibx-tx3)}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-tabs{display:flex;flex-direction:column;gap:2px;overflow:visible}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-tab{display:flex;align-items:center;justify-content:space-between;width:100%;height:48px;padding:0 14px;border-radius:12px;background:transparent;color:var(--ibx-tx);font-size:16px;text-align:left}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-tab.on{background:var(--ibx-acc-tint);color:var(--ibx-acc-ink);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-tab.on::after{display:none}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-lctl{display:flex;flex-direction:column;gap:2px;padding:0}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-lctl select{width:100%}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-ownhelp{margin:8px 0 0;font-size:13px;color:var(--ibx-tx3)}
/* the inbox bar (Lumen on); the Lumen tab bar stays in the page (Menu opens its drawer) but is not drawn here */
.ibx-pmnav{display:none}
body.ibx-pm.lumen .lx-tabbar{display:none!important}
body.ibx-pm.lumen .ibx-pmnav{--n-bg:#ffffff;--n-ln:#e6e9ee;--n-tx:#65676b;--n-on:#0866ff;display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;box-sizing:border-box;height:calc(60px + env(safe-area-inset-bottom));padding:2px 8px env(safe-area-inset-bottom);background:var(--n-bg);border-top:1px solid var(--n-ln)}
body.ibx-pm.lumen:has(.ibx-pmfs.on) .ibx-pmnav{display:none}
body.ibx-pm .ibx-pmnav button{all:unset;box-sizing:border-box;position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11.5px;font-weight:500;color:var(--n-tx);cursor:pointer;border-radius:12px}
body.ibx-pm .ibx-pmnav button[aria-current="page"]{color:var(--n-on);font-weight:600}
body.ibx-pm .ibx-pmnav button:focus-visible{outline:2px solid var(--n-on);outline-offset:-2px}
body.ibx-pm .ibx-pmnav button:active{background:rgba(127,127,127,.12)}
body.ibx-pm .ibx-pmnav .ibx-pmnb{position:absolute;top:3px;left:calc(50% + 3px);min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#e41e3f;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--n-bg)}
/* dark: true black on the ERP's own dark theme only (html:not([data-theme="light"])), never the system's — the ERP default is light and its cream callouts are not redefined here */
html:not([data-theme="light"]) body.ibx-pm .ibx-wrap{--ibx-bg:#000;--ibx-card:#000;--ibx-line:rgba(255,255,255,.09);--ibx-line2:rgba(255,255,255,.16);--ibx-tx:#f2f3f5;--ibx-tx2:#c8cbd0;--ibx-tx3:#a3a7ad;--ibx-tile:#242526;--ibx-in:#242526;--ibx-sel:rgba(255,255,255,.07);--ibx-acc:#2f6bff;--ibx-acc-tint:rgba(70,130,255,.2);--ibx-acc-ink:#cfe0ff;--ibx-link:#8fb4ff;--ibx-pmblue:#3b82ff;--ibx-scrim:rgba(0,0,0,.6);color-scheme:dark}
html:not([data-theme="light"]) body.ibx-pm.lumen .ibx-pmnav{--n-bg:#0b0b0c;--n-ln:rgba(255,255,255,.08);--n-tx:#b0b3b8;--n-on:#4b8dff}
/* P1a3 round 2: the sheet's selects full width with their labels above; dark avatars; the owner dot where Messenger's active dot sits (the Page
   letter moves to the top corner); Messenger's thread (blue bubbles, grouped corners, time lines) and composer ("Aa", a quick action until you type) */
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-lctl :is(.ibx-sort,.ibx-own){display:block;flex:none;width:100%;position:static}
body.ibx-pm :is(#app,.overlay,body) .ibx-wrap .ibx-pmfs .ibx-lctl select{display:block;width:100%!important;max-width:none!important}
body.ibx-pm .ibx-wrap .ibx-item .ibx-av.r .ibx-pdot{top:-2px;bottom:auto;right:-2px;width:17px;height:17px;font-size:8.5px}
/* the thread */
body.ibx-pm .ibx-wrap .ibx-pmsep{align-self:center;margin:14px 0 6px;font-size:11.5px;font-weight:600;color:var(--ibx-tx3);text-align:center}
body.ibx-pm .ibx-wrap .msgr-b{gap:2px}
body.ibx-pm .ibx-wrap .msgr-b .msgr-bb{border-radius:20px;font-size:15.5px;line-height:1.35;padding:8px 13px}
body.ibx-pm .ibx-wrap .msgr-b.agent .msgr-bb{background:#0866ff;color:#fff;border-bottom-right-radius:20px}   /* a literal #0866ff in both themes: white on it is 4.6:1 (the dark token #3b82ff was 3.61 - p1a3 delta audit LOW-A); theme-audit check A reads a literal */
body.ibx-pm .ibx-wrap .msgr-b.bs .msgr-bb{outline:0}
body.ibx-pm .ibx-wrap .msgr-b.user .msgr-bb{background:var(--ibx-pmgrey);color:var(--ibx-tx);border-bottom-left-radius:20px}
body.ibx-pm .ibx-wrap .msgr-b.pm-g{margin-top:0;margin-bottom:0}
body.ibx-pm .ibx-wrap .msgr-b.pm-gt{margin-top:6px}
body.ibx-pm .ibx-wrap .msgr-b.agent.pm-g:not(.pm-gt) .msgr-bb{border-top-right-radius:5px}
body.ibx-pm .ibx-wrap .msgr-b.agent.pm-g:not(.pm-gb) .msgr-bb{border-bottom-right-radius:5px}
body.ibx-pm .ibx-wrap .msgr-b.user.pm-g:not(.pm-gt) .msgr-bb{border-top-left-radius:5px}
body.ibx-pm .ibx-wrap .msgr-b.user.pm-g:not(.pm-gb) .msgr-bb{border-bottom-left-radius:5px}
body.ibx-pm .ibx-wrap .msgr-b.pm-g:not(.pm-gb) .msgr-bt{display:none}
body.ibx-pm .ibx-wrap .msgr-b.user.pm-g .msgr-bt{display:none}
body.ibx-pm .ibx-wrap .msgr-b.pm-g .msgr-bt{font-size:11px}
body.ibx-pm .ibx-wrap .msgr-b.agent .msgr-bt{color:var(--ibx-tx3)}
body.ibx-pm .ibx-wrap{--ibx-pmgrey:#f0f0f0}
html:not([data-theme="light"]) body.ibx-pm .ibx-wrap{--ibx-pmgrey:#303030;--ibx-av0:#24324f;--ibx-av1:#3d2f1f;--ibx-av2:#1f3a2b;--ibx-av3:#33284a;--ibx-av4:#45262a;--ibx-av5:#2a3039}
/* the composer: a quick action (Saved replies) in the send spot until there is text */
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-pmquick{grid-area:send;display:none;width:44px;height:44px;margin-left:2px;border:0;background:transparent;color:var(--ibx-pmblue);align-items:center;justify-content:center}
body.ibx-pm .ibx-wrap .ibx-pmbox:has(#msgr-reply:placeholder-shown) .ibx-pmquick{display:inline-flex}
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-pmsend{color:var(--ibx-pmblue)}
body.ibx-pm .ibx-wrap .ibx-pmbox .ibx-pmplus{color:var(--ibx-pmblue)}
/* platforms (html.pm-ios / pm-android, set once by ibxPmPlat): the system font; Android's tap ripple */
html.pm-ios body.ibx-pm .ibx-wrap,html.pm-ios body.ibx-pm .ibx-pmnav{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",system-ui,sans-serif}
html.pm-android body.ibx-pm .ibx-wrap,html.pm-android body.ibx-pm .ibx-pmnav{font-family:Roboto,"Noto Sans","Noto Sans Bengali",system-ui,sans-serif}
html.pm-android body.ibx-pm .ibx-wrap .ibx-pmpage{font-size:24px;font-weight:700;letter-spacing:0}
html.pm-android body.ibx-pm :is(.ibx-wrap .msgr-litem.ibx-item,.ibx-pmnav button){transition:background-color .25s ease-out}
html.pm-android body.ibx-pm :is(.ibx-wrap .msgr-litem.ibx-item,.ibx-pmnav button):active{background-color:rgba(127,127,127,.16);transition:none}
body.ibx-pm .ibx-wrap .msgr-thread.ibx-thread:has(.pm-g){gap:2px}
body.ibx-pm .ibx-wrap .ibx-item .ibx-av .ibx-pmown{position:absolute;right:-3px;bottom:-3px;display:block;line-height:0}
body.ibx-pm .ibx-wrap .ibx-item .ibx-av .ibx-pmown .cx-own{padding:0;border:0;background:transparent;gap:0;line-height:0}
body.ibx-pm .ibx-wrap .ibx-item .ibx-av .ibx-pmown .cx-own-i{width:20px;height:20px;font-size:8.5px;box-shadow:0 0 0 2.5px var(--ibx-card)}
/* the sheet's labels: the container query (≤ 699 px) hides them with position:absolute!important — shown above their select here */
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-lctl :is(.ibx-sortl,.ibx-ownl){position:static!important;width:auto;height:auto;margin:10px 0 6px;clip:auto;overflow:visible}
body.ibx-pm .ibx-wrap .ibx-pmfs .ibx-lctl :is(.ibx-sort,.ibx-own){display:flex;flex-direction:column;align-items:stretch;gap:0}
/* P1a3: no sideways scroll on a narrow phone (360 px Android: the Lumen top bar under the list was 385 px wide and widened the page, so the
   fixed list followed it). With Lumen on the list covers that bar anyway (its Menu = the drawer), so it is not drawn; the page never scrolls sideways */
body.ibx-pm.lumen #app > .topbar{display:none!important}
html:has(body.ibx-pm),body.ibx-pm{overflow-x:clip;max-width:100%}
/* ══ Phone type (29 Oct 2026; ANik: "Work on the font and font size" — ours read ~30 % large next to his Messenger). Measured in
   specs/phone-messenger-typography.md: his iPhone (393 pt) shows name ≈ 14, preview ≈ 13, time ≈ 11, tab label ≈ 9 — Messenger's 15 / 14 / 12 / 10
   one Dynamic Type step down; the Android store shots, scaled to 412 dp, show 16 / 14 / 12 sp. The system font per platform; sizes in rem so the OS
   text size scales them: on iOS the root takes the Dynamic Type body size (-apple-system-body, 17 px at the default size; Chromium ignores the
   keyword and keeps 16), so iOS rems are px / 17; Android and the rest use px / 16. Inputs never below 16 px (17 on iOS) — Safari zooms below 16.
   Read rows: regular name, grey preview; unread: bold name and preview (iOS semibold). body.ibx-pm only — the desktop never matches. ══ */
html.pm-ios:has(body.ibx-pm){font:-apple-system-body}
html.pm-ios body.ibx-pm :is(.ibx-wrap,.ibx-pmnav),html.pm-android body.ibx-pm :is(.ibx-wrap,.ibx-pmnav),html.pm-web body.ibx-pm :is(.ibx-wrap,.ibx-pmnav){font-family:system-ui,-apple-system,"SF Pro Text",Roboto,"Noto Sans","Noto Sans Bengali",sans-serif}
/* Android / web (root 16): title 24 · search 16 · chips 14 · name 16 · preview 14 · time 12 · chat name 16 · status 12 · bubble 16 · time lines 12 · bar labels 12 */
body.ibx-pm .ibx-wrap .ibx-pmpage,html.pm-android body.ibx-pm .ibx-wrap .ibx-pmpage{font-size:1.5rem;font-weight:700;letter-spacing:-.01em}
body.ibx-pm .ibx-wrap .ibx-q{font-size:max(16px,1rem)}
body.ibx-pm .ibx-wrap .ibx-chip{font-size:.875rem}
body.ibx-pm .ibx-wrap .ibx-chip .ibx-chipn{font-size:.75rem}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-id b{font-size:1rem;line-height:1.3;font-weight:400}
body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-id b{font-weight:700}
body.ibx-pm .ibx-wrap .ibx-item .ibx-rt{font-size:.75rem}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-snip{font-size:.875rem;line-height:1.4;font-weight:400}
body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-snip{font-weight:700}
body.ibx-pm .ibx-wrap .ibx-item .msgr-li-tags .ibx-tag{font-size:.75rem}
body.ibx-pm .ibx-wrap .ibx-head .ibx-hname{font-size:1rem;font-weight:500;line-height:1.3}
body.ibx-pm .ibx-wrap .ibx-head .ibx-psub.ibx-pmst{font-size:.75rem;line-height:1.35}
body.ibx-pm .ibx-wrap .ibx-pmsep{font-size:.75rem;font-weight:500}
body.ibx-pm .ibx-wrap .msgr-b .msgr-bb{font-size:1rem;line-height:1.34;padding:7px 12px}
body.ibx-pm .ibx-wrap .msgr-b .msgr-bt,body.ibx-pm .ibx-wrap .msgr-b.pm-g .msgr-bt{font-size:.6875rem}
body.ibx-pm .ibx-wrap :is(.ibx-pmchip,.ibx-pmacts .ibx-aidbw>.ibx-btn){font-size:.8125rem}
:is(#app,body) .ibx-wrap .ibx-pmbox textarea.msgr-reply.msgr-reply.msgr-reply.msgr-reply{font-size:max(16px,1rem) !important}
body.ibx-pm .ibx-pmnav button{font-size:.75rem}
/* iOS (root = Dynamic Type body, 17 at the default size): title 25.5 · search 17 · chips 13 · name 15 · preview 14 · time 12 · chat name 17 semibold
   · status 13 · bubble 17 · time lines 12 · bar labels 10 */
html.pm-ios body.ibx-pm .ibx-wrap .ibx-pmpage{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
html.pm-ios body.ibx-pm :is(#app,body) .ibx-wrap input.ibx-q.ibx-q.ibx-q.ibx-q{font-size:max(17px,1rem) !important}   /* over the touch rule's input 16 px !important (html body:has(.fin-side) …) */
html.pm-ios body.ibx-pm .ibx-wrap .ibx-chip{font-size:min(.765rem,20px)}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-chip .ibx-chipn{font-size:.706rem}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-item .msgr-li-id b{font-size:.882rem}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-id b{font-weight:600}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-item .ibx-rt{font-size:.706rem}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-item .msgr-li-snip{font-size:.824rem}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-item.un .msgr-li-snip{font-weight:600}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-item .msgr-li-tags .ibx-tag{font-size:.706rem}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-head .ibx-hname{font-weight:600}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-head .ibx-psub.ibx-pmst{font-size:.765rem}
html.pm-ios body.ibx-pm .ibx-wrap .ibx-pmsep{font-size:.706rem}
html.pm-ios body.ibx-pm .ibx-wrap .msgr-b .msgr-bt,html.pm-ios body.ibx-pm .ibx-wrap .msgr-b.pm-g .msgr-bt{font-size:.647rem}
html.pm-ios body.ibx-pm .ibx-wrap :is(.ibx-pmchip,.ibx-pmacts .ibx-aidbw>.ibx-btn){font-size:.765rem}
html.pm-ios :is(#app,body) .ibx-wrap .ibx-pmbox textarea.msgr-reply.msgr-reply.msgr-reply.msgr-reply{font-size:max(17px,1rem) !important}
html.pm-ios body.ibx-pm .ibx-pmnav button{font-size:min(.588rem,13px)}   /* capped: the bar is a fixed 60 px (audit M-1) */
/* FB comments P2 (specs/fb-comments-p2-contract.md): claim bar, actions, the two-mode composer; phone (≤ 700 px): full width, 44 px targets */
.ibx-cclaim{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;font-size:13px}
.ibx-chand{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 10px}
.ibx-cacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ibx-cact{font-size:12px;padding:3px 9px}
.ibx-cviews{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 6px}
.ibx-ccomp{margin-top:12px;border-top:1px solid rgba(127,127,127,.25);padding-top:10px}
.ibx-cmodes{display:flex;gap:6px;margin-bottom:6px}
.ibx-cta{width:100%;max-width:100%;box-sizing:border-box;resize:vertical;min-height:64px;padding:8px 10px;border:1px solid rgba(127,127,127,.35);border-radius:10px;font:inherit;background:transparent;color:inherit}
.ibx-cthread{min-width:0;max-width:100%}
.ibx-crow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.ibx-cnote{font-size:12px;margin-bottom:6px}
.ibx-cwhy{margin:0 0 6px;padding:8px 12px;border:1px solid rgba(245,158,11,.35);border-radius:10px;background:rgba(245,158,11,.10);font-size:13px}
.ibx-cchat{margin-top:10px;font-size:13px}
.ibx-cpic{display:block;max-width:160px;max-height:120px;border-radius:8px;margin-bottom:6px;object-fit:cover}
@media (max-width:700px){ .ibx-cthread{padding:10px 12px calc(12px + env(safe-area-inset-bottom))} .ibx-cact,.ibx-cclaim .ibx-btn,.ibx-cmodes .ibx-chip,.ibx-crow .ibx-csend{min-height:44px} .ibx-cmodes .ibx-chip{flex:1} .ibx-cta{font-size:16px} .ibx-cmsg{margin-left:12px} .ibx-cmsg.top{margin-left:0} }
/* ══ Phone behaviours (29 Oct 2026; ANik 01:04 "Study more about how the interfaces behave on both kind of phone. Add those behaviours" — the
   Messenger gestures per platform; spec messenger-phone-behaviours-spec.md; app.js "Phone behaviours"). body.ibx-pm only: the desktop matches none.
   Targets: 44 px on iOS, 48 px on Android. touch-action: rows / bubbles / lists pan-y (vertical scroll stays native, no browser zoom), buttons
   manipulation (no double-tap zoom). ══ */
body.ibx-pm .ibx-wrap :is(button,a,input,textarea,select,label){touch-action:manipulation}
body.ibx-pm .ibx-wrap .ibx-list{position:relative;overflow-x:hidden;touch-action:pan-y}
body.ibx-pm .ibx-wrap .ibx-list .msgr-litem.ibx-item{touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
body.ibx-pm .ibx-wrap .ibx-thread{touch-action:pan-y}
body.ibx-pm .ibx-wrap .ibx-thread .msgr-b{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
body.ibx-pm .ibx-wrap .ibx-thread .msgr-b.ibx-pmsel{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}   /* the menu's "Select text" */
body.ibx-pm .ibx-wrap :is(.ibx-item,.msgr-b).ibx-pmpress{transform:scale(.97);transition:transform .15s ease}
body.ibx-pm.ibx-pmkb .ibx-wrap:not(.conv) .ibx-list{padding-bottom:calc(12px + var(--kb,0px))}
/* §11.1 the composer grows to five lines, then scrolls inside */
:is(#app,body) .ibx-wrap .ibx-pmbox textarea.msgr-reply.msgr-reply.msgr-reply.msgr-reply{max-height:132px;max-height:calc(5lh + 22px);overflow-y:auto}
/* §3.1 / §3.2 the list under the chat: .ibx-pmpk draws it (the edge swipe, the push), .ibx-pmmv moves / dims it; the variables live on <html> */
body.ibx-pm.ibx-pmmv .ibx-wrap:not(.ibx-pmghost) .ibx-card.ibx-main{position:relative;overflow:hidden}
body.ibx-pm.ibx-pmmv .ibx-wrap:not(.ibx-pmghost) :is(.ibx-tabrow,.ibx-lcol){transform:translate3d(var(--pmlx,0px),0,0);opacity:var(--pmlo,1);will-change:transform}
body.ibx-pm.ibx-pmmv .ibx-wrap:not(.ibx-pmghost) .ibx-card.ibx-main::after{content:"";position:absolute;inset:0;z-index:2;background:#000;opacity:var(--pmdim,0);pointer-events:none}
body.ibx-pm.ibx-pmpk .ibx-wrap.conv:not(.ibx-pmghost) .ibx-tabrow{display:flex}
body.ibx-pm.ibx-pmpk .ibx-wrap:not(.ibx-pmghost) .ibx-shell.conv{position:static}
body.ibx-pm.ibx-pmpk .ibx-wrap:not(.ibx-pmghost) .ibx-shell.conv .ibx-lcol{display:flex}
body.ibx-pm.ibx-pmpk .ibx-wrap:not(.ibx-pmghost) .msgr-shell.ibx-shell.conv .msgr-conv.ibx-conv{position:absolute;inset:0;z-index:3;background:var(--ibx-card);transform:translate3d(var(--pmcx,0px),0,0);opacity:var(--pmco,1);box-shadow:-8px 0 24px rgba(0,0,0,.14);will-change:transform}
body.ibx-pm .ibx-wrap.ibx-pmghost{z-index:62;pointer-events:none;will-change:transform,opacity;box-shadow:-8px 0 24px rgba(0,0,0,.14);transform-origin:50% 50%}
/* §1.2 row swipes: the row slides over its action colour (Android) / opens a 74 px tray (iOS) */
body.ibx-pm .ibx-wrap .msgr-litem.ibx-item.ibx-pmswr{position:relative;z-index:1;background:var(--ibx-card)}
body.ibx-pm .ibx-wrap .ibx-pmsw{position:absolute;left:0;right:0;z-index:0;display:flex;overflow:hidden;pointer-events:none}
body.ibx-pm .ibx-wrap .ibx-pmswb{pointer-events:auto;background:#0866ff;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:0;min-width:0;height:100%;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;color:#fff;font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
body.ibx-pm .ibx-wrap .ibx-pmswb.lead{background:var(--ibx-acc)}
body.ibx-pm .ibx-wrap .ibx-pmswb.trail{margin-left:auto;background:var(--ibx-ok);color:var(--ibx-ok-on)}
html:not([data-theme="dark"]) body.ibx-pm .ibx-wrap .ibx-pmswb.trail{background:#15803d;color:#fff}
html.pm-android body.ibx-pm .ibx-wrap .ibx-pmsw.l{background:var(--ibx-acc)}
html.pm-android body.ibx-pm .ibx-wrap .ibx-pmsw.t{background:#15803d}
html.pm-android body.ibx-pm .ibx-wrap .ibx-pmswb.lead{align-items:flex-start;padding-left:24px}
html.pm-android body.ibx-pm .ibx-wrap .ibx-pmswb.trail{align-items:flex-end;padding-right:24px}
/* §1.3 / §5 long-press: iOS — a blurred dim, the row / bubble lifted, a rounded 250 px menu; Android — a modal bottom sheet with a 32 × 4 handle */
body.ibx-pm .ibx-wrap .ibx-pmcm{position:fixed;inset:0;z-index:90}
body.ibx-pm.lumen:has(.ibx-pmcm) .ibx-pmnav{display:none}   /* a long-press menu / sheet is modal over the whole screen */
body.ibx-pm .ibx-wrap .ibx-pmcm-scrim{position:absolute;inset:0;background:rgba(0,0,0,.3);opacity:0;transition:opacity .2s ease}
body.ibx-pm .ibx-wrap .ibx-pmcm.ios .ibx-pmcm-scrim{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
body.ibx-pm .ibx-wrap .ibx-pmcm.and .ibx-pmcm-scrim{background:rgba(0,0,0,.32)}
body.ibx-pm .ibx-wrap .ibx-pmcm.on .ibx-pmcm-scrim{opacity:1}
body.ibx-pm .ibx-wrap .ibx-pmcm .ibx-pmcm-lift{z-index:1;pointer-events:none;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease;border-radius:18px}
body.ibx-pm .ibx-wrap .ibx-pmcm.on .ibx-pmcm-lift{transform:scale(1.03);box-shadow:0 12px 32px rgba(0,0,0,.28)}
body.ibx-pm .ibx-wrap .ibx-pmcm.on .ibx-pmcm-lift.ibx-item{transform:scale(1.02);border-radius:14px}
body.ibx-pm .ibx-wrap .ibx-pmcm-menu{position:absolute;z-index:2;display:flex;flex-direction:column;background:var(--ibx-card);color:var(--ibx-tx);overflow:hidden}
body.ibx-pm .ibx-wrap .ibx-pmcm.ios .ibx-pmcm-menu{width:250px;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.25);opacity:0;transform:scale(.9);transform-origin:50% 0;transition:opacity .2s ease,transform .25s cubic-bezier(.2,.8,.2,1)}
body.ibx-pm .ibx-wrap .ibx-pmcm.ios.on .ibx-pmcm-menu{opacity:1;transform:none}
body.ibx-pm .ibx-wrap .ibx-pmcm-i{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:0;padding:0 16px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-size:16px;text-align:left;cursor:pointer}
body.ibx-pm .ibx-wrap .ibx-pmcm.ios .ibx-pmcm-i+.ibx-pmcm-i{border-top:.5px solid var(--ibx-line2)}
body.ibx-pm .ibx-wrap .ibx-pmcm-i:active,body.ibx-pm .ibx-wrap .ibx-pmcm-i:focus-visible{background:var(--ibx-sel)}
body.ibx-pm .ibx-wrap .ibx-pmcm-i:focus:not(:focus-visible){outline:none;box-shadow:none}
body.ibx-pm .ibx-wrap .ibx-pmcm.and .ibx-pmcm-menu{left:0;right:0;bottom:0;border-radius:28px 28px 0 0;padding:0 0 calc(8px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .25s cubic-bezier(.05,.7,.1,1)}
body.ibx-pm .ibx-wrap .ibx-pmcm.and .ibx-pmcm-menu::before{content:"";align-self:center;flex:0 0 auto;width:32px;height:4px;margin:16px 0 10px;border-radius:2px;background:var(--ibx-tx3);opacity:.5}
body.ibx-pm .ibx-wrap .ibx-pmcm.and.on .ibx-pmcm-menu{transform:none}
body.ibx-pm .ibx-wrap .ibx-pmcm.and .ibx-pmcm-i{flex-direction:row-reverse;justify-content:flex-end;gap:16px;min-height:48px;padding:0 24px}
body.ibx-pm .ibx-wrap .ibx-pmcm.rm :is(.ibx-pmcm-scrim,.ibx-pmcm-menu,.ibx-pmcm-lift){transition:opacity .15s linear}
body.ibx-pm .ibx-wrap .ibx-pmcm.rm.ios .ibx-pmcm-menu,body.ibx-pm .ibx-wrap .ibx-pmcm.rm .ibx-pmcm-lift{transform:none}
body.ibx-pm .ibx-wrap .ibx-pmcm.rm.and .ibx-pmcm-menu{transform:none;opacity:0}
body.ibx-pm .ibx-wrap .ibx-pmcm.rm.and.on .ibx-pmcm-menu{opacity:1}
/* §4.2 "↓ N new" above the composer */
body.ibx-pm .ibx-wrap .ibx-pmnew{position:absolute;left:50%;z-index:5;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;margin:0;padding:0 14px;border:0;border-radius:22px;background:var(--ibx-card);color:var(--ibx-acc);box-shadow:0 2px 12px rgba(0,0,0,.2);font:inherit;font-size:14px;font-weight:600;transform:translateX(-50%);animation:ibxPmPillIn .2s cubic-bezier(.2,.8,.2,1);cursor:pointer}
body.ibx-pm .ibx-wrap .ibx-pmnew.still{animation:none}
body.ibx-pm .ibx-wrap .ibx-pmnew[hidden]{display:none}
html.pm-android body.ibx-pm .ibx-wrap .ibx-pmnew{min-width:48px;min-height:48px;border-radius:24px}
@keyframes ibxPmPillIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
/* §1.1 pull-to-refresh: iOS — the list follows, a 12-spoke spinner in the gap; Android — the M3 disc drops from under the bar */
html.pm-ios body.ibx-pm.ibx-pmptr .ibx-wrap .ibx-list{transform:translate3d(0,var(--pmptr,0px),0)}
.ibx-pmptr{position:fixed;left:50%;z-index:70;pointer-events:none}
.ibx-pmptr.ios{width:20px;height:20px;color:var(--g,#8e8e93)}
.ibx-pmptr.ios .sp{position:absolute;inset:0;display:block}
.ibx-pmptr.ios .sp i{position:absolute;left:9px;top:0;width:2px;height:6px;border-radius:1px;background:currentColor;transform-origin:1px 10px}
.ibx-pmptr.ios.spin .sp{animation:ibxPmSpin 1s steps(12) infinite}
.ibx-pmptr.ios.spin .sp i:nth-child(n){opacity:.3}
.ibx-pmptr.ios.spin .sp i:nth-child(1){opacity:1}.ibx-pmptr.ios.spin .sp i:nth-child(12){opacity:.9}.ibx-pmptr.ios.spin .sp i:nth-child(11){opacity:.75}.ibx-pmptr.ios.spin .sp i:nth-child(10){opacity:.6}.ibx-pmptr.ios.spin .sp i:nth-child(9){opacity:.45}
.ibx-pmptr.and{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--b,#fff);color:var(--c,#1747b8);box-shadow:0 1px 4px rgba(0,0,0,.3)}
.ibx-pmptr.and svg{display:block}
.ibx-pmptr.and.spin svg{animation:ibxPmSpin .9s linear infinite}
@keyframes ibxPmSpin{to{transform:rotate(360deg)}}
/* §10 the Undo snackbar: iOS — a pill above the bar; Android — the M3 snackbar, 16 px margins, 4 px corners, 8 px above the bar */
body.ibx-pm .ibx-undo{bottom:calc(72px + env(safe-area-inset-bottom));animation:ibxPmSnack .2s cubic-bezier(.2,.8,.2,1)}
body.ibx-pm:not(.lumen) .ibx-undo{bottom:calc(16px + env(safe-area-inset-bottom))}
html.pm-ios body.ibx-pm .ibx-undo{border-radius:22px}
html.pm-ios body.ibx-pm .ibx-undo .ibx-undo-b{min-height:44px}
html.pm-android body.ibx-pm .ibx-undo{left:16px;right:16px;max-width:none;transform:none;border-radius:4px;bottom:calc(68px + env(safe-area-inset-bottom));animation-name:ibxPmSnackA}
html.pm-android body.ibx-pm .ibx-undo .ibx-undo-b{min-height:48px;margin-left:auto;border:0;background:#1a2233;color:#a8c7fa;text-transform:uppercase;letter-spacing:.04em}
@keyframes ibxPmSnack{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes ibxPmSnackA{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  body.ibx-pm .ibx-wrap :is(.ibx-item,.msgr-b).ibx-pmpress{transform:none}
  body.ibx-pm .ibx-wrap .ibx-pmnew,body.ibx-pm .ibx-undo{animation:none}
  .ibx-pmptr.ios.spin .sp,.ibx-pmptr.and.spin svg{animation-duration:2s}
}
/* ══ phone P1b (29 Oct 2026, ANik 12:42; DECISIONS NEW 29 Oct "Phone inbox P1b"). Phone only (body.ibx-pm). ══ */
/* Messenger's "N new messages" in place of the preview (two or more customer messages since the chat was read) */
body.ibx-pm .ibx-wrap .ibx-list .msgr-li-snip.ibx-pmnn{font-weight:700;color:var(--ibx-tx)}
/* the inbox's Menu sheet (the filter sheet's frame): who you are, your status, the full ERP menu, Log out */
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-me{display:flex;align-items:center;gap:12px;padding:6px 0 10px;border-bottom:1px solid var(--ibx-line,rgba(127,127,127,.2))}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-who{display:flex;flex-direction:column;min-width:0;font-size:16px;color:var(--ibx-tx)}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-who span{font-size:13px;color:var(--ibx-tx3)}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-cur{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:15px;color:var(--ibx-tx)}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-st{display:flex;flex-direction:column;gap:2px}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-o,body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-i{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0 12px;box-sizing:border-box;border:0;border-radius:12px;background:transparent;color:var(--ibx-tx);font:inherit;font-size:16px;text-align:left;cursor:pointer}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-o.on{background:var(--ibx-acc-tint);color:var(--ibx-acc-ink);font-weight:600}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-o:active,body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-i:active{background:rgba(127,127,127,.14)}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-note{margin:6px 0 10px;font-size:13px;color:var(--ibx-tx3)}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-i{margin-top:2px;border-top:1px solid var(--ibx-line,rgba(127,127,127,.2));border-radius:0}
body.ibx-pm .ibx-wrap .ibx-pmms .ibx-pmms-out{font-weight:600}
/* AdminCloud Build 1 (29 Oct 2026) — the old-menu switch under the doors; the door tab strip reuses .hr-subnav */
.adm-menuswitch{display:block;width:calc(100% - 12px);margin:14px 6px 6px;padding:6px 10px;border:1px dashed var(--bord);border-radius:8px;background:transparent;color:var(--mut);font-weight:600;font-size:12px;line-height:16px;font-family:inherit;text-align:left;cursor:pointer}
.adm-menuswitch:hover{color:var(--txt)}
.adm-door .adm-sechead .nb-st{margin-left:auto}
.adm-doorstrip{margin-bottom:12px;overflow-x:auto}
.adm-doorchips{margin:-4px 0 12px}
.crm-fu-alerts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 14px;padding:8px 12px;border:1px solid var(--bord);border-radius:10px;font-size:13px;line-height:18px}
.crm-fu-alerts .crm-fu-al-t{font-weight:700}
.crm-fu-alerts .crm-fu-al-b{flex:1 1 auto;min-width:0}
.crm-fu-alerts.hot{border-color:var(--bad)}

/* ── BDM feedback B4a (31 Oct 2026; specs/bdm-feedback-plan.md r3 §1 B1 / D2): the lead story strip (lead panel, under the call row), the leads
   row's muted line, the chat pictures, 🎓 / ↩ chips, the Who line's "wrong number" chip. Lumen heights: buttons 28 / 36 desktop, 32 / 40 phone;
   no light text (colours inherit), no img selectors ── */
.bf-a-story{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0 2px;font-size:13px;line-height:1.35;min-width:0}
.bf-a-story .bf-a-ask{flex:1 1 220px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bf-a-open{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:6px;border:1px solid rgba(127,127,127,.4);background:transparent;color:inherit;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;flex:0 0 auto}
.bf-a-open:hover,.bf-a-rchat:hover{background:rgba(127,127,127,.12)}
.bf-a-pics{display:inline-flex;gap:4px;flex:0 0 auto;vertical-align:middle;margin:4px 0}
.bf-a-pic{display:inline-block;width:36px;height:36px;padding:0;border:1px solid rgba(127,127,127,.35);border-radius:6px;overflow:hidden;background:rgba(127,127,127,.14);cursor:pointer;flex:0 0 auto}
.bf-a-pic>*{display:block;width:100%;height:100%;object-fit:cover}
.bf-a-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;background:rgba(127,127,127,.16);color:inherit}
.bf-a-chip.bf-a-stu,.ctf-chip.bf-a-stu{background:rgba(52,211,153,.18)}
.bf-a-lrow{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:12px;line-height:1.3;color:var(--mut,#667085);min-width:0;max-width:440px}
.bf-a-lrow .bf-a-ask{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bf-a-lrow .bf-a-chip{height:20px;font-size:11.5px;flex:0 0 auto}
.bf-a-rchat{display:inline-flex;align-items:center;justify-content:center;height:28px;min-width:28px;padding:0 4px;border-radius:6px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer;flex:0 0 auto}
.bf-a-wrong{display:inline-flex;align-items:center;height:20px;margin:0 6px;padding:0 7px;border-radius:99px;font-size:11.5px;font-weight:600;white-space:nowrap;background:rgba(251,113,133,.14);border:1px solid rgba(251,113,133,.5);color:inherit}
.bf-a-gschat{font-size:12px}
@media (max-width:700px){
  .bf-a-open,.bf-a-rchat{height:32px;min-width:32px}
  .bf-a-pic{width:40px;height:40px}
  .bf-a-story .bf-a-ask{flex-basis:100%;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* ── BDM feedback — B4b (31 Oct 2026; specs/bdm-feedback-plan.md r3 D1 D2 C2): the call note, "LuminAI got this wrong", Grade AI replies'
   By category / Missing answers, the switches card. Lumen heights: 32 desk, 40 phone; colours from the existing variables (no light text on a var background). */
.ibx-wrap .ibx-tnote.bf-b-tnote{display:block;width:100%;box-sizing:border-box;height:32px;margin-top:6px}
@media (max-width:699px){ .ibx-wrap .ibx-tnote.bf-b-tnote{height:40px;font-size:16px} }
.ibx-wrap .bf-b-wl{margin-top:6px;font-size:12.5px}
.ibx-wrap .bf-b-wbox{margin-top:6px;display:flex;flex-direction:column;gap:6px}
.ibx-wrap .bf-b-wchips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ibx-wrap .bf-b-wchips .ibx-btn.sm{height:32px}
@media (max-width:699px){ .ibx-wrap .bf-b-wchips .ibx-btn.sm{height:40px} }
.ibx-wrap .bf-b-wdone{margin-top:6px;font-size:12.5px;color:var(--ibx-mut,var(--mut))}
.bf-b-seg,.bf-b-cats{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.bf-b-n{display:inline-block;min-width:16px;padding:0 4px;border-radius:8px;font-size:11.5px;font-weight:600;opacity:.85}
.bf-b-row .bf-b-acts,.bf-b-fb .bf-b-acts{flex-wrap:wrap;gap:6px;margin-top:6px}
.bf-b-g.bad{border-color:var(--bad,#b42318)}.bf-b-g.good{border-color:var(--ok,#067647)}
.bf-b-sug{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.bf-b-in{height:32px;box-sizing:border-box;width:100%;padding:0 8px;border:1px solid var(--bord);border-radius:8px;font:inherit;font-size:13px}
.bf-b-h{margin:14px 0 4px;font-size:13.5px}
.bf-b-sw .bf-b-swg{margin-top:10px}.bf-b-sw .bf-b-swh{font-weight:600;font-size:13px;margin-bottom:4px}
.bf-b-sw .bf-b-swr{display:flex;align-items:center;gap:8px;font-size:13px;line-height:18px;padding:4px 0}
.bf-b-sw .bf-b-num{height:32px;width:72px;box-sizing:border-box;padding:0 6px;border:1px solid var(--bord);border-radius:8px;font:inherit;margin-left:auto}
@media (max-width:699px){ .bf-b-in,.bf-b-sw .bf-b-num{height:40px;font-size:16px} }
.lo-sheet .bf-b-lonote{width:100%;box-sizing:border-box}
/* ══ D4 · the phone reply screen with the keyboard up (Arif's brief, 3 Nov 2026, P1; ANik "do everything you need to do"). Hallmark Floor inside the
   Lumen tokens: --ibx-* colours only, no transition, :focus-visible on what is new, 44 px targets. The 3 Nov screenshots: the composer had
   min-height:0 in a column that did not fit the visual viewport, so it was squeezed to a sliver and the browser scrolled the fixed wrap (header off
   the top, the box under the keyboard). Now the header, the chips and the composer never shrink; the thread gives the room. While typing
   (body.ibx-pmkb) the lead card folds into the "Lead" chip at the head of the ONE chip row and the call reminder steps aside; both come back
   when the keyboard closes. ══ */
body.ibx-pm .ibx-wrap.conv .ibx-conv>:not(.msgr-thread){flex-shrink:0}
body.ibx-pm .ibx-wrap .msgr-draft.ibx-compose{flex:0 0 auto;min-height:auto}
body.ibx-pm .ibx-wrap .ibx-pmlead{display:none}
body.ibx-pm .ibx-wrap .ibx-leadslot-s .ibx-btn{min-height:44px}
body.ibx-pm .ibx-wrap .ibx-leadslot-s .ibx-leadbar:has(.ibx-link){margin:2px 8px 4px;padding:0;background:transparent;border:0;box-shadow:none}   /* one card, not a card in a card */
body.ibx-pm.ibx-pmkb .ibx-wrap.conv .msgr-thread.ibx-thread{min-height:0;padding-top:4px;padding-bottom:4px}
body.ibx-pm.ibx-pmkb .ibx-wrap.conv .ibx-conv .ibx-leadslot-s,body.ibx-pm.ibx-pmkb .ibx-wrap.conv .ibx-talkbar{display:none}
body.ibx-pm.ibx-pmkb .ibx-wrap.conv .ibx-pmacts:not(:has(.ibx-aidbw.rg)) .ibx-pmlead{display:inline-flex}
body.ibx-pm.ibx-pmkb .ibx-wrap.conv .ibx-pmlead{color:var(--ibx-acc-ink);font-weight:600}
body.ibx-pm.ibx-pmkb .ibx-wrap.conv .ibx-pmlead::before{background:var(--ibx-acc-tint);border-color:transparent}
body.ibx-pm .ibx-wrap :is(.ibx-pmchip,.ibx-pmacts .ibx-aidbw>.ibx-btn):focus-visible{outline:2px solid var(--ibx-acc);outline-offset:-2px;border-radius:16px}
/* A2 / A3 (Arif's brief): the Unattended note and the owner history in the panel's Owner section — existing tokens only */
.ibx-wrap .ibx-hist{margin:6px 0 0;padding-left:18px;display:grid;gap:4px;font-size:12.5px;line-height:18px;color:var(--ibx-tx)}
.ibx-wrap .ibx-unatt{margin:0 0 8px}
/* B6 label + B3 (3 Nov 2026; Arifur's brief): the chat's LuminAI state chip and Pause AI 20 min — Lumen ibx tokens only (Hallmark Floor: tokens, focus-visible, sentence case, no status dots) */
/* fix/v1614-ai (browser suites C2 / S1 / S3: the thread keeps ≥ 50% of the chat column): the chip adds NO block height — a zero-height anchor under the
   header and a small pill floating at the thread's top right (one line, ellipsis; the full state is its title) */
.ibx-wrap .ibx-aichipw{position:relative;display:block;height:0;margin:0;min-width:0;overflow:visible;z-index:2}
.ibx-wrap .ibx-aichipw[hidden]{display:none}
.ibx-wrap .ibx-aichip{position:absolute;top:6px;right:12px;display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:min(60%,360px);padding:2px 8px;border:1px solid var(--ibx-line2);border-radius:999px;background:var(--ibx-tile);color:var(--ibx-tx2);font-size:11.5px;line-height:16px;font-weight:600;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.ibx-wrap .ibx-aichip>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ibx-wrap .ibx-aichip.on{border-color:var(--ibx-ok);color:var(--ibx-ok)}
.ibx-wrap .ibx-aichip.off{border-color:var(--ibx-red-ln);background:var(--ibx-red-bg);color:var(--ibx-red)}
.ibx-wrap .ibx-aichip.pause{border-color:var(--ibx-amb-ln);background:var(--ibx-amb-bg);color:var(--ibx-amb)}
.ibx-wrap .ibx-aichip.na{color:var(--ibx-tx3)}
/* B3 r2 (3 Nov 2026, Arifur 16:14): the global Pause AI — the tab row's button and the bar over the cards (banner while paused, the period chooser) */
.ibx-wrap .ibx-pzhost{display:inline-flex;align-items:center}
.ibx-wrap .ibx-pzbtn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;font-size:12.5px}
.ibx-wrap .ibx-pzw{margin:0 0 6px;min-width:0}
.ibx-wrap .ibx-pzw[hidden]{display:none}
.ibx-wrap .ibx-pz{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--ibx-line2);border-radius:10px;background:var(--ibx-tile);color:var(--ibx-tx2);font-size:13px;line-height:18px;min-width:0}
.ibx-wrap .ibx-pz.on{border-color:var(--ibx-amb-ln);background:var(--ibx-amb-bg);color:var(--ibx-amb)}
.ibx-wrap .ibx-pzt{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
.ibx-wrap .ibx-pz .ibx-btn{height:32px;padding:0 10px;font-size:12.5px}
.ibx-wrap .ibx-pzu{display:inline-flex;align-items:center;gap:6px}
.ibx-wrap .ibx-pzin{height:32px;padding:0 8px;border:1px solid var(--ibx-line2);border-radius:8px;background:var(--ibx-card);color:var(--ibx-tx);font:inherit}
.ibx-wrap .ibx-pzerr{flex-basis:100%;color:var(--ibx-red)}
/* fix/v1614-ai: the running-pause banner is ONE slim line — 28 px on a desk (the 28 px control is its height; the outline is an inset shadow), 32 px on a
   phone (the phone control height); the text ends in an ellipsis, the whole sentence is its title. The period chooser (opened by a click) keeps its rows */
.ibx-wrap .ibx-pz.on{flex-wrap:nowrap;gap:8px;height:28px;padding:0 0 0 10px;border:0;box-shadow:inset 0 0 0 1px var(--ibx-amb-ln);font-size:12.5px;line-height:18px;overflow:hidden}
.ibx-wrap .ibx-pz.on .ibx-pzt{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.ibx-wrap .ibx-pz.on .ibx-btn{flex:none;height:28px;border-radius:0 10px 10px 0}
@media (max-width:760px){ .ibx-wrap .ibx-pz.on{height:32px} .ibx-wrap .ibx-pz.on .ibx-btn{height:32px} }
.ibx-wrap .ibx-pzbtn:focus-visible,.ibx-wrap .ibx-pz .ibx-btn:focus-visible,.ibx-wrap .ibx-pzin:focus-visible{outline:2px solid var(--ibx-ring);outline-offset:2px;transition:none}
/* E1 BDM meter (Arif 3 Nov 2026): the Calls section's one-tap outcomes */
.ibx-cq{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:6px 0 8px}
.ibx-wrap .ibx-cq .ibx-btn{padding:0 6px;white-space:normal;line-height:1.15;text-align:center;min-height:36px}
@container ibxp (max-width:300px){ .ibx-cq{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:760px){ .ibx-wrap .ibx-cq .ibx-btn{min-height:44px} }

/* ══ lead-fix2 builder blocks (5 Nov 2026; specs/lead-fix2/CONTRACT.md §5.3) — each builder writes only inside its own block ══ */
/* ══ LF2-B1 ══ */
/* ══ /LF2-B1 ══ */
/* ══ LF2-B2 ══ */
/* lead-fix2 item 9 (B2), Classic theme: the name's Edit control, its inline form and the ⋯ menu's lock line (dark text on the light menu) */
.ls-b-pen{ margin-left:6px; }
.lf2-rt-name{ display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.lf2-rt-name .lf2-rt-in{ box-sizing:border-box; height:32px; width:min(280px, 100%); padding:0 8px; border:1px solid var(--line, #d9d9d9); border-radius:6px; font:inherit; font-weight:600; }
.lf2-rt-err{ flex-basis:100%; font-size:12px; color:var(--bad, #b42318); }
.ls-d-menu .ls-d-lock{ max-width:240px; margin-top:2px; padding:6px 10px 4px; border-top:1px solid var(--line, #d9d9d9); font-size:12px; line-height:1.35; color:inherit; opacity:.75; }
/* ══ /LF2-B2 ══ */
/* ══ LF2-B3 ══ */
/* lead-fix2 item 6 (Arif 4 Nov): the red * and the per-field messages outside Lumen (Classic) — dark red on the light dialog; lighter red in dark */
.ls-d-req, .ls-d-ferr{ color:#b42318; }
.ls-d-ferr{ font-size:12.5px; margin-top:2px; }
.ls-d-ferr[hidden]{ display:none; }
.ls-d-bdms[aria-invalid="true"], .ls-d-form [aria-invalid="true"]{ outline:1px solid #b42318; outline-offset:1px; }
html[data-theme="dark"] .ls-d-req, html[data-theme="dark"] .ls-d-ferr{ color:#fda29b; }
html[data-theme="dark"] .ls-d-bdms[aria-invalid="true"], html[data-theme="dark"] .ls-d-form [aria-invalid="true"]{ outline-color:#fda29b; }
/* ══ /LF2-B3 ══ */
/* ══ LF2-B4 ══ */
/* lead-fix2 item 8 (Arif 4 Nov) — All leads Clean view, the plain shell (Lumen's rules are in lumen.css LF2-B4). Hallmark: house tokens, no new face, no motion */
.lz-table.ls-clean{table-layout:fixed;min-width:970px}
.lz-table.ls-clean col.lf2-cv-lead{width:290px}.lz-table.ls-clean col.lf2-cv-pri{width:110px}.lz-table.ls-clean col.lf2-cv-st{width:120px}
.lz-table.ls-clean col.lf2-cv-own{width:130px}.lz-table.ls-clean col.lf2-cv-lc{width:105px}.lz-table.ls-clean col.lf2-cv-nx{width:105px}
.lz-table.ls-clean .ls-clean-n{display:flex;align-items:center;min-width:0;white-space:nowrap}
.lz-table.ls-clean .ls-clean-n>b{min-width:0;overflow:hidden;text-overflow:ellipsis}
.lz-table.ls-clean .ls-clean-n>span{flex:none}
.lz-table.ls-clean .cx-ph{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lz-table.ls-clean .bf-a-lrow{max-width:100%}
.lz-table.ls-clean .cx-due.up{color:var(--ink)}
.lf2-cv-sw{display:inline-flex;gap:4px}
.lf2-cv-sw button:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px;transition:none}
/* lead-fix2 item 10 (Arif 4 Nov) — Pause AI: the paused button (amber, live mm:ss), the normal-state line, the chat panel's on / paused line. Tokens only */
.ibx-wrap .ibx-pzbtn.on{border-color:var(--ibx-amb-ln);background:var(--ibx-amb-bg);color:var(--ibx-amb);font-weight:600}
.ibx-wrap .ibx-pzbtn.on:hover{border-color:var(--ibx-amb)}
.ibx-wrap .ibx-pzbtn .ibx-pzdot{font-size:9px;line-height:1}
.ibx-wrap .ibx-pzmm{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:6px;background:var(--ibx-card);box-shadow:inset 0 0 0 1px var(--ibx-amb-ln);color:var(--ibx-amb);font-variant-numeric:tabular-nums}
.ibx-wrap .ibx-pzok{display:inline-flex;align-items:center;gap:6px;margin-right:10px;font-size:12px;line-height:18px;color:var(--ibx-tx2);white-space:nowrap;min-width:0}
.ibx-wrap .ibx-pzok .ibx-pzdot{font-size:9px;color:var(--ibx-ok)}
.ibx-wrap .ibx-aia-state{display:inline-flex;align-items:center;gap:4px;margin-left:8px;font-size:12px;font-weight:500;line-height:inherit;white-space:nowrap;vertical-align:baseline}   /* inline in the LuminAI heading: no added height (draft-strip P2) */
.ibx-wrap .ibx-aia-state.on{color:var(--ibx-ok)}
.ibx-wrap .ibx-aia-state.pause{color:var(--ibx-amb)}
.ibx-wrap .ibx-aia-state-dot{font-size:9px;line-height:1}
/* ══ /LF2-B4 ══ */

/* Exclusive Speaking AI examiner (app.js EXS_CSS) — tokens. The call screen is dark in both themes, like the real test room;
   the Part 2 card is paper, like the real card. Defined here so harness/theme-audit.js check C can see them. */
:root{
  --exs-font: var(--font-ui);
  --exs-ring: rgb(var(--accent));
  --exs-call: #14191F; --exs-call-2: #1F2630; --exs-call-ink: #E8EAED; --exs-call-mut: #9AA0A6;
  --exs-rec: #C5221F; --exs-rec-ink: #FFF8F7;
  --exs-paper: #FBFBF9; --exs-paper-ink: #16181D;
}
/* AI Speaking report (app.js EXS_CSS .aisr-*, 17 Nov 2026; EasyMock speaking-report.css on this app's tokens). One colour per kind of
   error, used on its bar, its path step, its filter and its marks, so an amber mark is always grammar. Dark is the default theme. */
:root{
  --aisr-surface: var(--card); --aisr-surface-2: var(--glass2); --aisr-surface-3: rgba(255,255,255,.12);
  --aisr-text: var(--txt); --aisr-text-2: var(--mut); --aisr-text-3: var(--faint);
  --aisr-line: var(--bord); --aisr-line-2: var(--bord2);
  --aisr-accent: rgb(var(--accent)); --aisr-accent-tint: rgba(var(--accent),.14); --aisr-accent-text: rgb(var(--accent));
  --aisr-ok: var(--ok); --aisr-ok-tint: rgba(52,211,153,.14); --aisr-warn: var(--warn); --aisr-warn-tint: rgba(251,191,36,.14);
  --aisr-gra: #FDB022; --aisr-gra-t: rgba(253,176,34,.18); --aisr-voc: #84CAFF; --aisr-voc-t: rgba(132,202,255,.18);
  --aisr-pro: #D6BBFB; --aisr-pro-t: rgba(214,187,251,.18); --aisr-flu: #F670C7; --aisr-flu-t: rgba(246,112,199,.18);
  --aisr-rel: #FDA29B; --aisr-rel-t: rgba(253,162,155,.18);
  --aisr-p1: rgb(var(--accent)); --aisr-p2: #8B93D6; --aisr-p3: #C3C8EC;
  --aisr-font: var(--font-ui); --aisr-disp: var(--font-display);
  --aisr-solid: #151b2a; --aisr-on-hue: #0b1120;   /* an opaque card colour (the ring's hole, the dots' halo) and the ink on a coloured dot */
}
html[data-theme="light"]{
  --aisr-surface-3: #eef0f3; --aisr-accent-tint: rgba(var(--accent),.09);
  --aisr-ok-tint: #ecfdf3; --aisr-warn-tint: #fffaeb;
  --aisr-gra: #B54708; --aisr-gra-t: #FEF0C7; --aisr-voc: #175CD3; --aisr-voc-t: #D1E9FF; --aisr-pro: #7A2E98; --aisr-pro-t: #F4EBFF;
  --aisr-flu: #C11574; --aisr-flu-t: #FCE7F6; --aisr-rel: #B42318; --aisr-rel-t: #FEE4E2;
  --aisr-p2: #5560A8; --aisr-p3: #9AA2D6;
  --aisr-solid: #ffffff; --aisr-on-hue: #fbfcfe;
}
/* AI Speaking Tests tiles (app.js aisPageHTML, 18 Nov 2026; EasyMock's Partial › Speaking tiles, student.css .st-spk-*). A tile is the
   examiner's room, dark in both themes like the test itself; the badge takes the page's primary. Flags are drawn (no emoji). */
:root{
  --ais-t-room: #14191F; --ais-t-ink: #FFFFFF; --ais-t-ink-2: rgba(255,255,255,.82);
  --ais-t-scrim: rgba(10,13,18,.9); --ais-t-scrim-2: rgba(10,13,18,.55); --ais-t-scrim-0: rgba(10,13,18,0);
  --ais-t-glass: rgba(255,255,255,.14); --ais-t-glass-h: rgba(255,255,255,.24); --ais-t-glass-line: rgba(255,255,255,.45);
  --ais-t-badge: #4a33a8; --ais-t-badge-ink: #FFFFFF;
  --ais-t-btn: #FFFFFF; --ais-t-btn-ink: #23085A; --ais-t-btn-h: #EEEAF8; --ais-t-off: rgba(255,255,255,.72); --ais-t-off-ink: #3b3554;
  --ais-t-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 4px 8px -4px rgba(0,0,0,.5), 0 16px 32px -8px rgba(0,0,0,.55);
  --ais-t-font: var(--lx-font, var(--font-ui));
  --ais-flag-b: #012169; --ais-flag-r: #C8102E; --ais-flag-w: #FFFFFF;
}
html[data-theme="light"]{
  --ais-t-badge: #23085A;
  --ais-t-shadow: 0 0 0 1px rgba(16,24,40,.06), 0 4px 8px -4px rgba(16,24,40,.08), 0 16px 24px -8px rgba(16,24,40,.14);
}
#ais-page .ais-grid{ list-style:none; margin:16px 0 0; padding:0; max-width:760px; display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap:20px; }
#ais-page .note{ max-width:760px; }
#ais-page .ais-t{ position:relative; display:grid; grid-template:minmax(0,1fr) / minmax(0,1fr); aspect-ratio:1; min-width:0; overflow:hidden; border-radius:16px;
  background:var(--ais-t-room); color:var(--ais-t-ink); box-shadow:var(--ais-t-shadow); font-family:var(--ais-t-font); }
#ais-page .ais-t::before{ content:""; grid-area:1/1; z-index:1; background:linear-gradient(var(--ais-t-scrim-2), var(--ais-t-scrim-0) 26%); pointer-events:none; transition:opacity .2s ease; }
#ais-page .ais-t-ph{ grid-area:1/1; width:100%; height:100%; object-fit:cover; object-position:50% 40%; transition:transform .4s ease; }
#ais-page .ais-t-n{ position:absolute; top:12px; left:12px; z-index:3; padding:5px 10px; border-radius:8px; background:var(--ais-t-badge); color:var(--ais-t-badge-ink); font:700 13px/1 var(--ais-t-font); font-variant-numeric:tabular-nums; }
#ais-page .ais-t-len{ position:absolute; top:14px; right:14px; z-index:3; color:var(--ais-t-ink); font:500 12.5px/1 var(--ais-t-font); font-variant-numeric:tabular-nums; }
#ais-page .ais-t-bar{ grid-area:1/1; align-self:end; z-index:2; display:flex; flex-direction:column; gap:12px; padding:44px 14px 14px; }
#ais-page .ais-t-shade{ grid-area:1/1; align-self:end; z-index:1; height:50%; background:linear-gradient(var(--ais-t-scrim-0), var(--ais-t-scrim-2) 38%, var(--ais-t-scrim)); pointer-events:none; transition:opacity .2s ease; }
#ais-page .ais-t-h{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
#ais-page .ais-t-tag{ display:flex; flex-direction:column; gap:3px; min-width:0; margin:0; color:var(--ais-t-ink-2); font:500 13px/17px var(--ais-t-font); transition:opacity .2s ease; }
#ais-page .ais-t-tag b{ color:var(--ais-t-ink); font-weight:600; font-size:17px; line-height:22px; overflow-wrap:break-word; min-width:0; }
#ais-page .ais-t-tag span{ display:flex; align-items:center; gap:6px; }
#ais-page .ais-flag{ flex:none; border-radius:2px; box-shadow:0 0 0 1px var(--ais-t-glass-line); }
#ais-page .ais-flag path{ fill:none; }
#ais-page .ais-flag .f-b{ fill:var(--ais-flag-b); stroke:var(--ais-flag-b); }
#ais-page .ais-flag .f-r{ fill:var(--ais-flag-r); stroke:var(--ais-flag-r); }
#ais-page .ais-flag .f-w{ fill:var(--ais-flag-w); stroke:var(--ais-flag-w); }
#ais-page .ais-flag rect.f-b, #ais-page .ais-flag rect.f-r, #ais-page .ais-flag rect.f-w{ stroke:none; }
#ais-page .ais-flag .f-wf{ fill:var(--ais-flag-w); }
#ais-page .ais-t-acts{ display:flex; gap:8px; }
#ais-page .ais-t-acts > button{ display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:0; height:36px; margin:0; padding:0 14px; border:0; border-radius:8px;
  font:600 12.5px/1 var(--ais-t-font); white-space:nowrap; cursor:pointer; transition:background-color .14s ease, opacity .2s ease; }
#ais-page .ais-t-acts > button:focus-visible{ outline:2px solid var(--ais-t-ink); outline-offset:2px; }
/* the preview is glass, and its hit area covers the tile (a click anywhere plays the intro); the action sits above it */
#ais-page .ais-t-pv{ flex:0 0 auto; position:static; background:var(--ais-t-glass); color:var(--ais-t-ink); box-shadow:inset 0 0 0 1px var(--ais-t-glass-line); }
#ais-page .ais-t-pv:not([disabled])::after{ content:""; position:absolute; inset:0; z-index:1; border-radius:16px; cursor:pointer; }
#ais-page .ais-t-pv:not([disabled]):hover{ background:var(--ais-t-glass-h); }
#ais-page .ais-t-pv[disabled]{ opacity:.5; cursor:default; }
#ais-page .ais-t-play{ width:10px; height:10px; fill:currentColor; }
#ais-page .ais-t-go{ flex:1 1 0; position:relative; z-index:2; background:var(--ais-t-btn); color:var(--ais-t-btn-ink); }
#ais-page .ais-t-go:not([disabled]):hover{ background:var(--ais-t-btn-h); }
#ais-page .ais-t-go[disabled]{ background:var(--ais-t-off); color:var(--ais-t-off-ink); cursor:default; }
#ais-page .ais-t-go svg{ width:13px; height:13px; }
/* hover (a mouse only): the photo leans in and the scrim, name and preview clear, leaving the examiner and the one action (EasyMock).
   Keyboard focus inside the tile keeps everything shown. */
@media (hover:hover){
  #ais-page .ais-t:hover .ais-t-ph{ transform:scale(1.03); }
  #ais-page .ais-t:hover:not(:focus-within)::before,
  #ais-page .ais-t:hover:not(:focus-within) .ais-t-shade,
  #ais-page .ais-t:hover:not(:focus-within) .ais-t-tag,
  #ais-page .ais-t:hover:not(:focus-within) .ais-t-pv{ opacity:0; }
}
@media (pointer:coarse){ #ais-page .ais-t-acts > button{ min-height:44px; } }
/* the examiner preview (app.js aisPreview, 18 Nov 2026; ANik "looks basic"): a call screen in the tile's language — the intro edge to edge on
   the dark room, the badge, name and accent, the tile's one action, the access line. The Unlock box (.ais-m-buy): the five examiners' faces,
   then the approved words with the price set large. Both dark in both themes, like the tiles. Lumen paints panels with !important. */
:is(body, body.lumen) #dlg.ais-m > .panel{ padding:0 !important; overflow:hidden; background:var(--ais-t-room) !important; color:var(--ais-t-ink) !important;
  border-radius:16px !important; box-shadow:var(--ais-t-shadow) !important; font-family:var(--ais-t-font); }
:is(body, body.lumen) #dlg.ais-m > .panel > .dlg-x{ top:12px; right:12px; z-index:3; width:36px; height:36px; background:var(--ais-t-glass); color:var(--ais-t-ink);
  box-shadow:inset 0 0 0 1px var(--ais-t-glass-line); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); transition:background-color .14s ease; }
:is(body, body.lumen) #dlg.ais-m > .panel > .dlg-x:hover{ background:var(--ais-t-glass-h); }
:is(body, body.lumen) #dlg.ais-m > .panel > .dlg-x:focus-visible{ outline:2px solid var(--ais-t-ink); outline-offset:2px; }
#dlg.ais-m .ais-m-stage{ position:relative; background:var(--ais-t-room); }
#dlg.ais-m .ais-m-vid{ display:block; width:100%; max-height:none; aspect-ratio:16 / 9; object-fit:cover; border-radius:0; background:var(--ais-t-room); }
#dlg.ais-m .ais-m-n{ position:absolute; top:14px; left:14px; z-index:2; padding:5px 10px; border-radius:8px; background:var(--ais-t-badge); color:var(--ais-t-badge-ink);
  font:700 13px/1 var(--ais-t-font); font-variant-numeric:tabular-nums; }
#dlg.ais-m .ais-m-body{ display:flex; flex-direction:column; gap:12px; padding:18px 20px 20px; }
#dlg.ais-m .ais-m-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-width:0; }
#dlg.ais-m .ais-m-who{ display:flex; flex-direction:column; gap:4px; min-width:0; }
:is(body, body.lumen) #dlg.ais-m .ais-m-name{ margin:0; padding:0; color:var(--ais-t-ink) !important; font:600 18px/24px var(--ais-t-font) !important; overflow-wrap:break-word; min-width:0; }
:is(body, body.lumen) #dlg.ais-m .ais-m-acc{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; margin:0; color:var(--ais-t-ink-2) !important; font:500 13px/18px var(--ais-t-font) !important; }
#dlg.ais-m .ais-m-sep{ width:1px; height:12px; background:var(--ais-t-glass-line); }
#dlg.ais-m .ais-flag{ flex:none; border-radius:2px; box-shadow:0 0 0 1px var(--ais-t-glass-line); }
#dlg.ais-m .ais-flag path{ fill:none; }
#dlg.ais-m .ais-flag .f-b{ fill:var(--ais-flag-b); stroke:var(--ais-flag-b); }
#dlg.ais-m .ais-flag .f-r{ fill:var(--ais-flag-r); stroke:var(--ais-flag-r); }
#dlg.ais-m .ais-flag .f-w{ fill:var(--ais-flag-w); stroke:var(--ais-flag-w); }
#dlg.ais-m .ais-flag rect.f-b, #dlg.ais-m .ais-flag rect.f-r, #dlg.ais-m .ais-flag rect.f-w{ stroke:none; }
#dlg.ais-m .ais-flag .f-wf{ fill:var(--ais-flag-w); }
#dlg.ais-m .ais-m-go{ flex:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; height:40px; min-width:148px; margin:0; padding:0 18px; border:0;
  border-radius:8px; background:var(--ais-t-btn); color:var(--ais-t-btn-ink); font:600 14px/1 var(--ais-t-font); white-space:nowrap; cursor:pointer; transition:background-color .14s ease; }
#dlg.ais-m .ais-m-go:not([disabled]):hover{ background:var(--ais-t-btn-h); }
#dlg.ais-m .ais-m-go[disabled]{ background:var(--ais-t-off); color:var(--ais-t-off-ink); cursor:default; }
#dlg.ais-m .ais-m-go:focus-visible{ outline:2px solid var(--ais-t-ink); outline-offset:2px; }
#dlg.ais-m .ais-m-go svg{ width:14px; height:14px; }
:is(body, body.lumen) #dlg.ais-m .ais-m-line{ margin:0; padding-top:12px; border-top:1px solid var(--ais-t-glass); color:var(--ais-t-ink-2) !important; font:400 13px/19px var(--ais-t-font) !important; }
:is(body, body.lumen) #dlg.ais-m.ais-m-buy > .panel{ padding:28px 28px 30px !important; text-align:center !important; }
#dlg.ais-m .ais-buy-faces{ display:flex; justify-content:center; margin:4px 0 18px; }
#dlg.ais-m .ais-buy-faces img{ width:56px; height:56px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 3px var(--ais-t-room); background:var(--ais-t-room); }
#dlg.ais-m .ais-buy-faces img + img{ margin-left:-12px; }
:is(body, body.lumen) #dlg.ais-m .ais-buy-h{ margin:0 auto; max-width:30ch; padding:0 !important; color:var(--ais-t-ink) !important; font:600 18px/26px var(--ais-t-font) !important; }
#dlg.ais-m .ais-buy-p{ display:block; margin-top:6px; font-size:34px; line-height:40px; font-weight:700; font-variant-numeric:tabular-nums; }
:is(body, body.lumen) #dlg.ais-m .ais-buy-s{ margin:10px 0 0; color:var(--ais-t-ink-2) !important; font:500 15px/22px var(--ais-t-font) !important; }
@media (max-width:560px){
  #dlg.ais-m .ais-m-row{ flex-direction:column; align-items:stretch; }
  #dlg.ais-m .ais-m-go{ width:100%; height:44px; }
}
@media (prefers-reduced-motion:reduce){ :is(body, body.lumen) #dlg.ais-m > .panel{ animation:none !important; } #dlg.ais-m .ais-m-go, :is(body, body.lumen) #dlg.ais-m > .panel > .dlg-x{ transition:none; } }

@media (prefers-reduced-motion:reduce){
  #ais-page .ais-t-ph, #ais-page .ais-t::before, #ais-page .ais-t-shade, #ais-page .ais-t-tag, #ais-page .ais-t-acts > button{ transition:none; }
  #ais-page .ais-t:hover .ais-t-ph{ transform:none; }
}
/* lead-fix4 (9 Nov 2026, specs/lead-fix4/CONTRACT.md §5): one block per builder; new rules ONLY inside your own block, prefixed as owned
   (B1 .gsearch-* resets + .lf4-sa-* · B2 .lf4-al-* · B3 .lf4-help-* · B4 .fu4-* · B5 .dn4-*). Light text needs a literal background (theme-audit). */
/* ══ LF4-B1 ══ */
/* lead-fix4 #1: classic (Lumen off) keeps the navy search panel (#0e1730 in both themes) — the owner-coloured initials disc and the owner /
   stage line under the name. Light text only on a literal dark background (theme-audit). */
.gsearch-av.gsearch-av-own{background:color-mix(in srgb,var(--own) 34%,#0e1730);color:#f1f5f9}
.gsearch-who{display:flex;align-items:center;gap:6px;min-width:0;margin-top:3px}
.gsearch-who .cx-own{font-size:11px;line-height:1.5;max-width:60%;overflow:hidden;text-overflow:ellipsis}
.gsearch-stage{font-size:11px;font-weight:600;color:var(--mut-5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ══ /LF4-B1 ══ */
/* ══ LF4-B2 ══ */
/* lead-fix4 #5 (Arif 9 Nov): Add a lead in the Classic theme — the same structure as lumen.css LF4-B2 (two columns from 900 px, sticky footer,
   the two dropdowns); colours stay the Classic panel's (no light text set here). Every rule is body:not(.lumen) — Lumen has its own block. */
body:not(.lumen) .overlay > .panel.lf4-al-dlg{ padding:18px 24px 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
body:not(.lumen) .ls-d-form.lf4-al-form{ display:grid; gap:8px 16px; margin-top:10px; }
@media (min-width:900px){ body:not(.lumen) .ls-d-form.lf4-al-form{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items:start; } }
body:not(.lumen) .lf4-al-form .ls-d-fld{ display:grid; gap:3px; min-width:0; }
body:not(.lumen) .lf4-al-form .lf4-al-wide{ grid-column: 1 / -1; }
body:not(.lumen) .lf4-al-form .lf4-al-wide:empty{ display:none; }
body:not(.lumen) .lf4-al-form #cx-ref-wrap{ flex-direction:column; gap:3px; margin-top:6px; }
body:not(.lumen) .lf4-al-form .ls-d-ph, body:not(.lumen) .lf4-al-form .ls-d-next{ display:flex; gap:6px; align-items:center; }
body:not(.lumen) .lf4-al-form .ls-d-next > .ls-d-seg{ flex:none; }
body:not(.lumen) .lf4-al-form input.lf4-al-when{ flex:1 1 0; min-width:0; }
body:not(.lumen) .lf4-al-form .ph-hint:empty{ display:none; }
body:not(.lumen) .lf4-al-phl{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 12px; }
body:not(.lumen) .lf4-al-dd{ position:relative; min-width:0; }
body:not(.lumen) .overlay .panel button.lf4-al-ddb{ display:flex; align-items:center; gap:8px; width:100%; min-height:36px; padding:0 10px; text-align:left; cursor:pointer; }
body:not(.lumen) .lf4-al-box{ display:flex; align-items:center; gap:4px; min-height:36px; padding:3px 2px 3px 6px; box-sizing:border-box; border:1px solid #94a3b8; border-radius:8px; cursor:pointer; }
body:not(.lumen) .lf4-al-tags{ display:flex; flex-wrap:wrap; gap:4px; flex:1 1 auto; min-width:0; }
body:not(.lumen) .lf4-al-tag{ display:inline-flex; align-items:center; gap:2px; height:28px; box-sizing:border-box; padding:0 2px 0 8px; border-radius:999px; border:1px solid #94a3b8; font-size:12.5px; white-space:nowrap; }
body:not(.lumen) .overlay .panel button.lf4-al-tx, body:not(.lumen) .overlay .panel button.lf4-al-car{ display:inline-grid; place-items:center; flex:none; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; }
body:not(.lumen) .overlay .panel button.lf4-al-tx{ width:24px; height:28px; }
body:not(.lumen) .overlay .panel button.lf4-al-car{ width:28px; height:28px; }
body:not(.lumen) .lf4-al-ph{ opacity:.7; }
body:not(.lumen) .lf4-al-pop{ position:absolute; z-index:6; left:0; right:0; top: calc(100% + 4px); max-height:260px; overflow:auto; padding:6px; border-radius:8px; background:#0e1526; box-shadow:0 12px 32px rgba(0,0,0,.35); }
html[data-theme="light"] body:not(.lumen) .lf4-al-pop{ background:#ffffff; }
body:not(.lumen) .lf4-al-pop[hidden]{ display:none; }
body:not(.lumen) .lf4-al-opt{ display:flex; align-items:center; gap:8px; min-height:32px; padding:0 8px; border-radius:6px; cursor:pointer; }
body:not(.lumen) .lf4-al-opt[aria-selected="true"]{ font-weight:700; text-decoration: underline; }
body:not(.lumen) .lf4-al-list .ls-b-ig{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; padding:3px 2px; }
body:not(.lumen) .lf4-al-list .ls-b-igh{ flex:0 0 112px; font-weight:600; }
body:not(.lumen) .lf4-al-list .ls-b-ck{ display:inline-flex; align-items:center; gap:6px; min-height:28px; }
body:not(.lumen) :is(.lf4-al-ddb, .lf4-al-tx, .lf4-al-car, .lf4-al-opt):focus-visible{ outline:2px solid #2563eb; outline-offset:1px; }
body:not(.lumen) .lf4-al-lock{ display:flex; align-items:center; gap:6px; min-height:36px; }
body:not(.lumen) .lf4-al-dlg .ls-d-btns.lf4-al-foot{ position:sticky; bottom:0; z-index:5; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; margin:12px -24px 0; padding:10px 24px 16px; background:inherit; }
body:not(.lumen) .lf4-al-foot .cx-err{ flex:1 1 100%; margin:0; }
body:not(.lumen) .lf4-al-foot .lf4-al-more{ flex:1 1 auto; min-width:0; }
body:not(.lumen) .lf4-al-tds{ display:flex; flex-wrap:wrap; gap:4px; margin:2px 0 4px; }
body:not(.lumen) .lf4-al-td{ display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:999px; border:1px solid currentColor; font-size:11.5px; font-weight:600; }
/* ══ /LF4-B2 ══ */
/* ══ LF4-B3 ══ */
/* lead-fix4 #9 (B3) — the helper's "Log a call for <owner>" box (classic theme): the drawer's own colours, no light text */
.lf4-help-log{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:8px 0 12px;padding:10px 12px;border-radius:12px;border:1px solid var(--bord2)}
.lf4-help-log-tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 220px}
.lf4-help-log-tx span{color:var(--mut);font-size:13px}
.lf4-help-inv{margin:4px 0 8px}
/* ══ /LF4-B3 ══ */
/* ══ LF4-B4 ══ */
/* lead-fix4 #8 (B4) — SalesCloud Follow-ups as a list (.fu4-*) and the compact Done / Change date sheets. Tokens only: the Lumen --lx-* value,
   else the classic one; no new colour, font, image or animation; controls are the existing .btn / .cx-chip / .lo-chips / .lx-tab sizes. */
.fu4-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:6px 0 12px; }
.fu4-bar .fu4-q{ flex:1 1 260px; max-width:420px; margin:0; }
.fu4-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; }
.fu4-svc{ min-width:140px; }
.fu4 .lx-tabs{ margin:12px 0 0; }
.fu4-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.fu4-tbl{ width:100%; min-width:960px; }
.fu4-tbl td{ vertical-align:top; }
.fu4-name{ background:none; border:0; padding:0; font:inherit; font-weight:600; color:var(--lx-text, var(--txt)); cursor:pointer; text-align:left; overflow-wrap:anywhere; }
.fu4-name:hover{ text-decoration:underline; }
.fu4-name:focus-visible, summary.fu4-gh:focus-visible{ outline:2px solid var(--lx-accent-ring, rgb(var(--accent))); outline-offset:2px; }
.fu4-star{ margin-left:6px; color:var(--lx-warn, var(--warn)); }
.fu4-pills{ display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.fu4-c-ph{ white-space:nowrap; }
.fu4-c-ph .btn{ margin-left:6px; }
.fu4-num{ font-variant-numeric:tabular-nums; }
.fu4-c-note{ max-width:260px; }
.fu4-note{ overflow-wrap:anywhere; }
.fu4-mut{ display:block; font-size:12px; color:var(--lx-text-3, var(--mut)); }
.fu4-c-date span{ display:block; }
.fu4-late{ font-size:12px; font-weight:600; color:var(--lx-bad, var(--bad)); }
.fu4-c-t{ white-space:nowrap; }
.fu4-acts{ display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.fu4-acts .btn{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.fu4-grp{ margin-top:14px; }
.fu4-gh{ font-size:14px; font-weight:600; margin:0 0 6px; color:var(--lx-text, var(--txt)); }
.fu4-gh .fu4-mut{ display:inline; margin-left:4px; font-weight:400; }
summary.fu4-gh{ cursor:pointer; }
.fu4-foot{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:14px 0 4px; font-size:13px; color:var(--lx-text-2, var(--mut)); }
.fu4-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.fu4-sh-nx{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; }
.fu4-sh-to{ font-weight:400; color:var(--lx-accent-text, rgb(var(--accent))); }
.fu4-sh-pick{ font-size:12.5px; margin-top:4px; min-height:1em; color:var(--lx-text-2, var(--mut)); }
.fu4-sh-close{ margin-bottom:6px; }
.fu4-sh-closeln{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:12px; font-size:12.5px; color:var(--lx-text-2, var(--mut)); }
.fu4-sh-err{ margin-top:10px; font-size:13px; color:var(--lx-bad, var(--bad)); }
.fu4-sh-why{ margin-top:10px; font-size:12.5px; line-height:1.4; color:var(--lx-text-2, var(--mut)); }   /* S1 X-15: why Save is disabled */
.fu4-sh-ft{ display:flex; gap:8px; margin-top:14px; }
.fu4-sp{ flex:1; }
.fu4-mv-who{ font-size:13px; margin:2px 0 8px; color:var(--lx-text-2, var(--mut)); }
#fu4-dt, #fu4-mv-dt, #fu4-mv-r{ width:100%; margin-top:6px; }
@media (max-width:720px){
  .fu4-tbl{ min-width:0; }
  .fu4-tbl thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .fu4-tbl, .fu4-tbl tbody, .fu4-tbl tr, .fu4-tbl td{ display:block; width:100%; }
  .fu4-tbl tr{ padding:10px 0; border-bottom:1px solid var(--lx-line, var(--line)); }
  .fu4-tbl td{ border:0; padding:3px 0; max-width:none; }
  .fu4-c-note{ max-width:none; }
  .fu4-acts{ justify-content:flex-start; }
}
/* ══ /LF4-B4 ══ */
/* ══ LF4-B5 ══ */
/* lead-fix4 #6 — the BDM "Do next" column (app.js dn4*): the My Performance rows as counters, the Call these first rows (CTF_CSS) for Reply now,
   the action-board rows for Call now; existing tokens only (no new colour). Section titles in sentence case. */
.dn4-ctrs{margin:2px 0 6px}
.dn4-ctr{width:100%;background:none;border:0;border-bottom:1px solid rgba(127,127,127,.13);font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:0}
.dn4-ctr:hover .ab-pf-lab{text-decoration:underline;text-underline-offset:2px}
.dn4-ctr:focus-visible,.dn4-link:focus-visible,.dn4-name:focus-visible,.dn4-btn:focus-visible{outline:2px solid var(--info-2);outline-offset:2px}
.ab-pf-val.dn4-late{color:var(--bad)}
.dn4-h{font-size:13px;font-weight:700;margin:14px 0 4px;color:var(--ink-hi)}
.dn4-links{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0 2px}
.dn4-link{min-height:28px;background:none;border:0;padding:0;font:inherit;font-size:12.5px;font-weight:600;color:var(--info-2);cursor:pointer}
.dn4-link b{font-weight:800}
.dn4-name{min-height:28px;background:none;border:0;padding:0;font:inherit;font-weight:700;color:inherit;text-align:left;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dn4-row{flex-wrap:wrap}.dn4-row .nm-row-l{min-width:150px;flex:1 1 150px}.dn4-row .nm-row-r{flex:0 1 auto;margin-left:auto}.dn4-acts .ls-d-copy{min-width:28px;min-height:28px;display:inline-flex;align-items:center;justify-content:center}   /* integrator (lf4-dash-browser): the name kept >= 150 px — the actions wrap under it instead of squeezing it to nothing; Copy at the 28 px control height */
.dn4-acts{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.dn4-num{font-variant-numeric:tabular-nums;font-size:12.5px;white-space:nowrap}
.dn4-btn{min-height:28px}
.dn4-back{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 8px;font-size:13px}
.dn4-bk-f{color:var(--mut-5)}
/* integrator (lead-fix4, lf4-dash-browser): the inbox opens full screen on desktop (body.ibx-fs, DECISIONS 259) and covers the page — the
   back bar is drawn again inside the full-screen bar (ibxFsBarHTML); the page copy shows only outside full screen */
body.ibx-fs .dn4-back:not(.ibx-fsbar .dn4-back){display:none}body:not(.ibx-fs) .ibx-fsbar .dn4-back{display:none}.ibx-fsbar .dn4-back{margin:0 0 0 12px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
@media (max-width:560px){.dn4-row{flex-wrap:wrap}.dn4-row .nm-row-r{width:100%;justify-content:flex-start}}
/* ══ /LF4-B5 ══ */

/* ══ v1.660 HIGH-CONTRAST THEMES × DRAG-AND-DROP (Kazi, Rightsight, 29 Nov 2026) ══
   Options → Contrast → "White on black" / "Yellow on black" turn the TEXT white / yellow (the
   .p-content / td / label rules near the top), but the drag-and-drop parts kept a hard-coded WHITE
   background: the option box (.match-bank), the options (.mchip, .chip), the answer boxes (.mgap,
   .drop-gap, the plan/map gaps), the flow-chart boxes and the plan/map grid's label cells and header
   — so in those themes every option was white-on-white and could not be read. Here each of them gets
   the theme's black surface, a light border and the theme's text colour, in every state (hover,
   picked, drag-over, filled). Black on white is untouched: every rule is scoped to .theme-wb / .theme-yb. */
.player:is(.theme-wb,.theme-yb) :is(.match-bank,.mchip,.chip,.mgap,.drop-gap,.map-gap,.flow-box){ background:#000; border-color:#bbb; box-shadow:none; }
.player.theme-wb :is(.match-bank,.match-bank-title,.match-list-title,.mchip,.chip,.mgap,.drop-gap,.map-gap,.flow-box,.flow-label){ color:#fff; }
.player.theme-yb :is(.match-bank,.match-bank-title,.match-list-title,.mchip,.chip,.mgap,.drop-gap,.map-gap,.flow-box,.flow-label){ color:#ffe14d; }
.player:is(.theme-wb,.theme-yb) :is(.mchip,.chip):hover{ background:#262626; border-color:#fff; }
.player:is(.theme-wb,.theme-yb) :is(.mchip,.chip).picked{ background:#14284a; outline-color:#8ab4ff; }
.player:is(.theme-wb,.theme-yb) :is(.mgap,.drop-gap,.map-gap).over{ background:#14284a; border-color:#8ab4ff; }
.player:is(.theme-wb,.theme-yb) :is(.mgap.filled,.drop-gap:has(.chip),.map-gap:has(.chip)){ border-color:#bbb; }
.player:is(.theme-wb,.theme-yb) :is(.mchip,.chip).in-gap{ background:transparent; border-color:transparent; }
.player:is(.theme-wb,.theme-yb) :is(.drop-gap,.map-gap) .gnum{ color:#c8c8c8; }
.player:is(.theme-wb,.theme-yb) .flow-arrow{ color:#c8c8c8; }
/* Plan / map labelling grid (letters across the top, a radio in each cell). */
.player:is(.theme-wb,.theme-yb) table.map-grid :is(th,td){ background:#000; border-color:#666; }
.player.theme-wb table.map-grid :is(th,td,td.mg-lbl .qnum){ color:#fff; }
.player.theme-yb table.map-grid :is(th,td,td.mg-lbl .qnum){ color:#ffe14d; }
.player:is(.theme-wb,.theme-yb) table.map-grid tbody tr:hover td{ background:#1a1a1a; }
.player:is(.theme-wb,.theme-yb) table.map-grid td.mg-cell input[type=radio]{ background:#111; border-color:#bbb; }
.player.theme-wb table.map-grid td.mg-cell input[type=radio]:checked{ border-color:#fff; }
.player.theme-yb table.map-grid td.mg-cell input[type=radio]:checked{ border-color:#ffe14d; }
.player.theme-wb table.map-grid td.mg-cell input[type=radio]:checked::before{ background:#fff; }
.player.theme-yb table.map-grid td.mg-cell input[type=radio]:checked::before{ background:#ffe14d; }
/* Question numbers (.qnum is a fixed #555 grey, about 2.7:1 on black) take the theme colour. */
.player.theme-wb .qnum{ color:#fff; }
.player.theme-yb .qnum{ color:#ffe14d; }
/* The "Questions 19–22" heading (.q-head), the clock (.p-head .timer — its red last-minutes warning is kept) and the
   part names in the question bar (.pname) were var(--ink) / #111 / #666 on black (1.1–3.7:1). */
.player.theme-wb :is(.q-head,.p-head .timer:not(.warn):not(.last2)){ color:#fff; }
.player.theme-yb :is(.q-head,.p-head .timer:not(.warn):not(.last2)){ color:#ffe14d; }
.player.theme-wb .part-block .pname{ color:#bbb; }
.player.theme-wb .part-block.cur .pname{ color:#fff; }
.player.theme-yb .part-block .pname{ color:#d9c35a; }
.player.theme-yb .part-block.cur .pname{ color:#ffe14d; }
/* ══ /v1.660 ══ */

/* ══ v1.660 OWNER CHIPS: TEXT CENTRED IN THE CHIP (ANik, 29 Nov 2026: "a few bdm name chips … not perfectly aligned") ══
   .cx-own is drawn for an initials badge on the left (padding 2px 10px 2px 2px; the inbox list's compact
   1px 8px 1px 1px). A chip WITHOUT the badge — the lead panel's "Owner: Aroni" chip is a bare <b class="cx-own"> —
   kept the 2px left side, so the name sat 3.5px from the left edge and 12px from the right. An unassigned chip
   (.cx-own-x, badge hidden) had its own 10px left side overridden to 1px by the compact list rule. And
   line-height 1.6 × 11.5px = 18.4px made the chip 24.4px tall, so its text landed half a pixel off on a 1x
   screen. Measured on the live inbox, 29 Nov. Colours, size and the badge chips are unchanged. */
.cx-own{ line-height:18px; }
.cx-own:not(:has(.cx-own-i)){ padding-left:10px; }
:is(.ibx-rowner,.ibx-grp,.ibx-leadline,.ibx-ownhelp) .cx-own:is(.cx-own-x,:not(:has(.cx-own-i))){ padding-left:8px; }
/* ══ /v1.660 owner chips ══ */
