/* ============================================================
   EDC Academy — production CME styles (auto-scoped under .cme-scope)
   Source of truth: _mockups/cme-v2/cme-v2.css — regenerate via the
   transformer documented in EDC_CME_SYSTEM.md rather than editing by hand.
   Base font/color apply inside .cme-scope only; site header unaffected.
   ============================================================ */
/* ============================================================
   EDC Academy v2 — CME/CPD Design System
   Research-driven redesign (see research/design_benchmarking/).
   Two-layer theming: dark-glass SHELL identity + quiet CONTENT
   surfaces. KA token semantics; Spear/MedBridge content calm;
   Udemy/YT-Studio/Stripe surface anatomies.
   ============================================================ */.cme-scope {/* page + surfaces (two-step rule: page → surface, never deeper) *//* text *//* lightened for AA on dark *//* instructive = the one guiding action *//* status (desaturated for dark, KA syl-dark values) *//* gamification hues — quarantined, never on buttons/nav *//* structure *//* exactly three shadows *//* radii: 4 / 8 / 12 / 24 / full */
  
  --page-bg: #0b1120;
  --page-gradient: radial-gradient(circle at 15% -10%, rgba(34,211,238,0.07), transparent 40%),
                   radial-gradient(circle at 90% 0%, rgba(99,102,241,0.09), transparent 45%);
  --surface: rgba(15, 23, 42, 0.72);
  --surface-border: rgba(148, 163, 184, 0.14);
  --shell-glass: rgba(15, 23, 42, 0.60);
  --panel: rgba(9, 14, 28, 0.72);

  
  --fg: rgba(241, 245, 249, 0.95);
  --fg-muted: rgba(148, 163, 184, 0.90);
  --fg-soft: rgba(148, 163, 184, 0.60);
  --fg-accent: #7dd3fc;            

  
  --instructive-from: #22d3ee;
  --instructive-to: #6366f1;
  --instructive-grad: linear-gradient(135deg, var(--instructive-from), var(--instructive-to));
  --instructive-tint: rgba(99, 102, 241, 0.14);
  --instructive-ring: rgba(34, 211, 238, 0.45);
  --on-instructive: #04121a;

  
  --success: #579F6C; --success-fg: #72BB82; --success-tint: rgba(87,159,108,0.14);
  --gold: #FCB706;    --gold-tint: rgba(252,183,6,0.13);
  --critical: #E22D2D; --critical-fg: #F97F7F; --critical-tint: rgba(226,45,45,0.12);

  
  --streak: #F8551A;
  --due: #28A9FF;

  
  --line: rgba(148, 163, 184, 0.12);
  --soft: rgba(148, 163, 184, 0.08);
  --soft-hover: rgba(148, 163, 184, 0.15);
  --track: rgba(148, 163, 184, 0.18);

  
  --shadow-low: 0 2px 2px rgba(5, 8, 20, 0.5);
  --shadow-mid: 0 4px 12px rgba(5, 8, 20, 0.55);
  --shadow-high: 0 12px 32px rgba(5, 8, 20, 0.6);

  
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 24px;

  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}html[data-theme="light"] .cme-scope {
  --page-bg: #F7F8FA;
  --page-gradient: radial-gradient(circle at 15% -10%, rgba(8,145,178,0.05), transparent 40%),
                   radial-gradient(circle at 90% 0%, rgba(79,70,229,0.05), transparent 45%);
  --surface: #ffffff;
  --surface-border: #e2e8f0;
  --shell-glass: rgba(255, 255, 255, 0.82);
  --panel: rgba(255, 255, 255, 0.85);
  --fg: rgba(15, 23, 42, 0.95);
  --fg-muted: rgba(51, 65, 85, 0.75);
  --fg-soft: rgba(51, 65, 85, 0.50);
  --fg-accent: #0891b2;
  --instructive-from: #0891b2;
  --instructive-to: #4f46e5;
  --instructive-tint: rgba(79, 70, 229, 0.09);
  --instructive-ring: rgba(8, 145, 178, 0.35);
  --on-instructive: #ffffff;
  --success: #059669; --success-fg: #047857; --success-tint: rgba(5,150,105,0.09);
  --gold: #b45309;    --gold-tint: rgba(180,83,9,0.10);
  --critical: #dc2626; --critical-fg: #b91c1c; --critical-tint: rgba(220,38,38,0.08);
  --line: rgba(15, 23, 42, 0.08);
  --soft: rgba(15, 23, 42, 0.04);
  --soft-hover: rgba(15, 23, 42, 0.08);
  --track: rgba(15, 23, 42, 0.10);
  --shadow-low: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-mid: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-high: 0 12px 32px rgba(15, 23, 42, 0.12);
}/* ---------- base ---------- */.cme-scope * { box-sizing: border-box; margin: 0; padding: 0; }.cme-scope {
  font-family: var(--sans); color: var(--fg); font-size: 16px; line-height: 1.5;
  background: var(--page-bg); background-image: var(--page-gradient); background-attachment: fixed;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}.cme-scope a { color: inherit; text-decoration: none; }.cme-scope button { font-family: inherit; cursor: pointer; }.cme-scope h1, .cme-scope h2, .cme-scope .display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }.cme-scope .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-accent); }.cme-scope .muted { color: var(--fg-muted); }.cme-scope .soft { color: var(--fg-soft); }.cme-scope .small { font-size: 14px; }.cme-scope .caption { font-size: 12px; }.cme-scope .tabular { font-variant-numeric: tabular-nums; }/* ---------- shell header (glass identity layer) ---------- */.cme-scope .shell-header {
  position: sticky; top: 0; z-index: 100001;
  display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: var(--shell-glass); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}.cme-scope .shell-header .logo { font-family: var(--serif); font-size: 17px; font-weight: 700; }.cme-scope .shell-header .logo span { background: var(--instructive-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }.cme-scope .shell-header nav { display: flex; gap: 4px; }.cme-scope .shell-header nav a { font-size: 13px; color: var(--fg-muted); padding: 7px 14px; border-radius: 9999px; transition: all .18s ease-out; }.cme-scope .shell-header nav a:hover { color: var(--fg); background: var(--soft-hover); }.cme-scope .shell-header nav a.active { color: var(--fg-accent); background: var(--instructive-tint); font-weight: 600; }.cme-scope .spacer { flex: 1; }.cme-scope .avatar { width: 34px; height: 34px; border-radius: 9999px; background: var(--instructive-grad); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-instructive); flex-shrink: 0; }/* resume pill — the persistent "Continue learning" (KA Learner Queue) */.cme-scope .resume-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 9999px; border: 1px solid var(--instructive-ring);
  background: var(--instructive-tint); color: var(--fg);
}.cme-scope .resume-pill:hover { background: var(--soft-hover); }/* ---------- layout ---------- */.cme-scope .page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 96px; }.cme-scope .page-wide { max-width: 1360px; }.cme-scope .grid { display: grid; gap: 24px; }.cme-scope .gap-sm { gap: 16px; }@media (min-width: 900px) {.cme-scope .cols-2 { grid-template-columns: repeat(2, 1fr); }.cme-scope .cols-3 { grid-template-columns: repeat(3, 1fr); }.cme-scope .cols-4 { grid-template-columns: repeat(4, 1fr); }.cme-scope .rail-left { grid-template-columns: 250px 1fr; align-items: start; }.cme-scope .rail-right { grid-template-columns: 1fr 340px; align-items: start; }
}.cme-scope .flex { display: flex; align-items: center; gap: 8px; }.cme-scope .wrap { flex-wrap: wrap; }.cme-scope .between { justify-content: space-between; }.cme-scope .stack { display: flex; flex-direction: column; gap: 16px; }.cme-scope .hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }/* ---------- content surface (quiet layer) ---------- */.cme-scope .card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--r-md); box-shadow: var(--shadow-low);
}.cme-scope .card-lg { border-radius: var(--r-lg); }.cme-scope .pad { padding: 24px; }.cme-scope .pad-sm { padding: 16px; }/* hero band — the ONE gradient/glass element per screen */.cme-scope .hero-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--shell-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border); box-shadow: var(--shadow-mid);
}.cme-scope .hero-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(34,211,238,0.10), transparent 40%, rgba(99,102,241,0.12));
}html[data-theme="light"] .cme-scope .hero-band::before {
  background: linear-gradient(120deg, rgba(8,145,178,0.07), transparent 40%, rgba(79,70,229,0.07));
}/* ---------- buttons ---------- */.cme-scope .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 9999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: transform .15s ease-out, box-shadow .15s ease-out, background .15s ease-out;
}.cme-scope .btn:hover { transform: translateY(-1px); }.cme-scope .btn-hero { height: 44px; font-size: 15px; }.cme-scope .btn-sm { height: 30px; padding: 0 14px; font-size: 13px; }.cme-scope .btn-primary { background: var(--instructive-grad); color: var(--on-instructive); box-shadow: 0 6px 20px rgba(34,211,238,0.22); }.cme-scope .btn-primary:hover { box-shadow: 0 8px 26px rgba(34,211,238,0.34); }html[data-theme="light"] .cme-scope .btn-primary { box-shadow: 0 6px 20px rgba(8,145,178,0.28); }.cme-scope .btn-ghost { background: var(--soft); border-color: var(--surface-border); color: var(--fg); }.cme-scope .btn-ghost:hover { background: var(--soft-hover); }.cme-scope .btn-danger { background: var(--critical-tint); border-color: var(--critical); color: var(--critical-fg); }/* ---------- chips ---------- */.cme-scope .chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 9999px;
  background: var(--soft); border: 1px solid var(--surface-border); color: var(--fg-muted);
}.cme-scope .chip.accent { background: var(--instructive-tint); border-color: var(--instructive-ring); color: var(--fg-accent); }.cme-scope .chip.ok { background: var(--success-tint); border-color: var(--success); color: var(--success-fg); }.cme-scope .chip.gold { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }.cme-scope .chip.crit { background: var(--critical-tint); border-color: var(--critical); color: var(--critical-fg); }.cme-scope .chip.due { background: rgba(40,169,255,0.12); border-color: rgba(40,169,255,0.4); color: var(--due); }.cme-scope .chip.streak { background: rgba(248,85,26,0.12); border-color: rgba(248,85,26,0.4); color: var(--streak); }/* credit-type two-part chip (Viva precision labels) */.cme-scope .credit-chip { display: inline-flex; border-radius: 9999px; overflow: hidden; font-size: 11.5px; font-weight: 700; border: 1px solid var(--instructive-ring); }.cme-scope .credit-chip .pts { background: var(--instructive-grad); color: var(--on-instructive); padding: 3px 9px; }.cme-scope .credit-chip .type { background: var(--surface); color: var(--fg-muted); padding: 3px 9px; }/* accreditation ribbon (slim, replaces tall hero) */.cme-scope .ribbon {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--success-tint); border: 1px solid var(--success); color: var(--success-fg);
}/* ---------- course card v2 ---------- */.cme-scope .ccard {
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--r-md);
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}.cme-scope .ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-mid); border-color: var(--instructive-ring); }.cme-scope .ccard-cover { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(99,102,241,0.30)), #0d1526; }.cme-scope .ccard-cover svg, .cme-scope .ccard-cover i { color: rgba(255,255,255,0.9); }.cme-scope .ccard-cover .credit-pill {
  position: absolute; top: 10px; inset-inline-end: 10px;
  display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 10px; border-radius: 9999px;
  background: rgba(2,6,23,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); color: #fff;
}.cme-scope .ccard-cover .credit-pill b { font-size: 15px; }.cme-scope .ccard-cover .credit-pill span { font-size: 10px; font-weight: 700; letter-spacing: .05em; }.cme-scope .ccard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }.cme-scope .ccard-body .title { font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }.cme-scope .inst-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-muted); }.cme-scope .inst-row .avatar { width: 24px; height: 24px; font-size: 9px; }.cme-scope .meta-row { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--fg-soft); }.cme-scope .meta-row span { display: inline-flex; align-items: center; gap: 4px; }.cme-scope .ccard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }.cme-scope .ccard .baseline-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--track); }.cme-scope .ccard .baseline-progress i { display: block; height: 100%; background: var(--instructive-grad); }/* sponsored variant */.cme-scope .ccard.sponsored { border-color: var(--gold); }.cme-scope .sponsor-slot { font-size: 11px; color: var(--fg-soft); border-top: 1px solid var(--line); padding: 8px 16px; display: flex; align-items: center; gap: 6px; }/* ---------- filter rail + facets ---------- */.cme-scope .facet-group { padding: 16px 0; border-top: 1px solid var(--line); }.cme-scope .facet-group:first-child { border-top: none; padding-top: 0; }.cme-scope .facet-group h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 10px; }.cme-scope .facet { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--fg-muted); padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; }.cme-scope .facet:hover { background: var(--soft); color: var(--fg); }.cme-scope .facet.active { background: var(--instructive-tint); color: var(--fg-accent); font-weight: 600; }.cme-scope .facet .n { font-size: 11.5px; color: var(--fg-soft); }/* ---------- mastery squares (KA signature) ---------- */.cme-scope .mastery { display: flex; gap: 4px; align-items: center; }.cme-scope .msq { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--track); display: grid; place-items: center; font-size: 10px; }.cme-scope .msq.progress { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25); }.cme-scope .msq.done { background: var(--success); border-color: var(--success); }.cme-scope .msq.quiz { color: var(--fg-soft); }.cme-scope .msq.quiz.done { color: #fff; }.cme-scope .msq.star { color: var(--fg-soft); }.cme-scope .msq.star.done { background: var(--instructive-grad); border-color: transparent; color: #fff; }/* ---------- activity ring (CPD wallet hero) ---------- */.cme-scope .ring { position: relative; width: 172px; height: 172px; flex-shrink: 0; }.cme-scope .ring svg { transform: rotate(-90deg); }.cme-scope .ring .track { stroke: var(--track); }.cme-scope .ring .val { stroke: url(#ringGrad); stroke-linecap: round; }.cme-scope .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }.cme-scope .ring-center .n { font-size: 40px; font-weight: 700; font-family: var(--serif); line-height: 1; font-variant-numeric: tabular-nums; }.cme-scope .ring-center .l { font-size: 11px; color: var(--fg-muted); margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; }.cme-scope .fraction-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: var(--r-md); background: var(--soft); border: 1px solid var(--surface-border); }.cme-scope .fraction-chip b { font-size: 17px; font-variant-numeric: tabular-nums; }.cme-scope .fraction-chip span { font-size: 11.5px; color: var(--fg-muted); }/* ---------- heat strip (GitHub-style active years) ---------- */.cme-scope .heat { display: grid; grid-template-columns: auto repeat(12, 14px); gap: 4px; align-items: center; font-size: 10.5px; color: var(--fg-soft); }.cme-scope .heat .y { padding-inline-end: 6px; }.cme-scope .heat i { width: 14px; height: 14px; border-radius: 3px; background: var(--track); }.cme-scope .heat i.h1 { background: rgba(34,211,238,0.25); }.cme-scope .heat i.h2 { background: rgba(34,211,238,0.5); }.cme-scope .heat i.h3 { background: rgba(34,211,238,0.75); }.cme-scope .heat i.h4 { background: #22d3ee; }html[data-theme="light"] .cme-scope .heat i.h1 { background: rgba(8,145,178,0.25); }html[data-theme="light"] .cme-scope .heat i.h2 { background: rgba(8,145,178,0.5); }html[data-theme="light"] .cme-scope .heat i.h3 { background: rgba(8,145,178,0.75); }html[data-theme="light"] .cme-scope .heat i.h4 { background: #0891b2; }/* ---------- segmented category bar (caps) ---------- */.cme-scope .seg-bar { display: flex; height: 12px; border-radius: 9999px; overflow: hidden; background: var(--track); }.cme-scope .seg-bar i { height: 100%; }.cme-scope .seg-bar .s1 { background: #22d3ee; }.cme-scope .seg-bar .s2 { background: #6366f1; }.cme-scope .seg-bar .s3 { background: #a78bfa; }.cme-scope .seg-bar .over { background: repeating-linear-gradient(45deg, var(--track), var(--track) 4px, transparent 4px, transparent 8px); }/* ---------- progress bar ---------- */.cme-scope .pbar { height: 6px; border-radius: 9999px; background: var(--track); overflow: hidden; }.cme-scope .pbar i { display: block; height: 100%; border-radius: 9999px; background: var(--instructive-grad); }/* ---------- tables (Stripe/Carbon: 40px rows) ---------- */.cme-scope .table { width: 100%; border-collapse: collapse; font-size: 13.5px; }.cme-scope .table th { text-align: start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-soft); padding: 10px 16px; border-bottom: 1px solid var(--surface-border); }.cme-scope .table td { padding: 0 16px; height: 40px; border-bottom: 1px solid var(--line); color: var(--fg-muted); }.cme-scope .table td:first-child, .cme-scope .table th:first-child { padding-inline-start: 24px; }.cme-scope .table tr:hover td { background: var(--soft); }.cme-scope .table .strong { color: var(--fg); font-weight: 600; }/* ---------- KPI cards (Stripe) ---------- */.cme-scope .kpi { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }.cme-scope .kpi .l { font-size: 12px; color: var(--fg-muted); }.cme-scope .kpi .v { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }.cme-scope .kpi .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.cme-scope .kpi .delta { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 9999px; }.cme-scope .kpi .delta.up { background: var(--success-tint); color: var(--success-fg); }.cme-scope .kpi .delta.down { background: var(--critical-tint); color: var(--critical-fg); }.cme-scope .spark { color: var(--fg-accent); opacity: .8; }/* ---------- list rows ---------- */.cme-scope .rows { display: flex; flex-direction: column; }.cme-scope .row { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); transition: background .15s ease-out; }.cme-scope .row:first-child { border-top: none; }.cme-scope .row:hover { background: var(--soft); }.cme-scope .row .grow { flex: 1; min-width: 0; }.cme-scope .row .t { font-size: 14px; font-weight: 600; }.cme-scope .row .s { font-size: 12.5px; color: var(--fg-muted); margin-top: 1px; }.cme-scope .tile { width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0; display: grid; place-items: center; background: var(--instructive-tint); border: 1px solid var(--instructive-ring); color: var(--fg-accent); }.cme-scope .tile.ok { background: var(--success-tint); border-color: var(--success); color: var(--success-fg); }.cme-scope .tile.gold { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }.cme-scope .tile.crit { background: var(--critical-tint); border-color: var(--critical); color: var(--critical-fg); }/* status pills for queues */.cme-scope .status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 9999px; letter-spacing: .03em; }.cme-scope .status.pending { background: var(--gold-tint); color: var(--gold); }.cme-scope .status.approved { background: var(--success-tint); color: var(--success-fg); }.cme-scope .status.rejected { background: var(--critical-tint); color: var(--critical-fg); }.cme-scope .status.changes { background: rgba(40,169,255,0.12); color: var(--due); }/* filter tabs (queues) */.cme-scope .ftabs { display: flex; gap: 2px; border-bottom: 1px solid var(--surface-border); padding: 0 24px; }.cme-scope .ftabs button { background: none; border: none; font-size: 13.5px; font-weight: 600; color: var(--fg-muted); padding: 12px 14px; border-bottom: 2px solid transparent; }.cme-scope .ftabs button.active { color: var(--fg-accent); border-bottom-color: var(--instructive-from); }.cme-scope .ftabs .n { font-size: 11px; background: var(--soft-hover); border-radius: 9999px; padding: 1px 7px; margin-inline-start: 4px; }/* ---------- studio / admin shells (YT Studio 240px) ---------- */.cme-scope .app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 55px); }@media (max-width: 980px) {.cme-scope .app-shell { grid-template-columns: 1fr; }.cme-scope .app-nav { display: none; } }.cme-scope .app-nav { border-inline-end: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(12px); padding: 16px 10px; position: sticky; top: 55px; max-height: calc(100vh - 55px); overflow-y: auto; }.cme-scope .app-nav .who { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 12px; text-align: center; }.cme-scope .app-nav .who .avatar { width: 56px; height: 56px; font-size: 18px; }.cme-scope .app-nav .who b { font-size: 14px; }.cme-scope .app-nav .who span { font-size: 11.5px; color: var(--fg-muted); }.cme-scope .app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--fg-muted); margin-bottom: 2px; }.cme-scope .app-nav a:hover { background: var(--soft); color: var(--fg); }.cme-scope .app-nav a.active { background: var(--instructive-tint); color: var(--fg-accent); font-weight: 600; }.cme-scope .app-nav .group { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); padding: 14px 14px 6px; }.cme-scope .app-nav .count { margin-inline-start: auto; font-size: 10.5px; background: var(--gold-tint); color: var(--gold); border-radius: 9999px; padding: 1px 7px; font-weight: 700; }.cme-scope .app-main { padding: 24px clamp(16px, 3vw, 36px); min-width: 0; }/* ---------- checklist rail (Udemy publish gating) ---------- */.cme-scope .checklist { display: flex; flex-direction: column; gap: 2px; }.cme-scope .checklist a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--fg-muted); }.cme-scope .checklist a:hover { background: var(--soft); }.cme-scope .checklist a.done { color: var(--fg); }.cme-scope .checklist a.done .ic { color: var(--success-fg); }.cme-scope .checklist a.todo .ic { color: var(--fg-soft); }.cme-scope .checklist a.current { background: var(--instructive-tint); color: var(--fg-accent); font-weight: 600; }/* ---------- builder (section cards + typed lessons) ---------- */.cme-scope .section-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--r-md); overflow: hidden; }.cme-scope .section-card > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; background: var(--soft); }.cme-scope .lesson-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }.cme-scope .lesson-row:first-of-type { border-top: none; }.cme-scope .lesson-row .grip { color: var(--fg-soft); opacity: 0; transition: opacity .15s; cursor: grab; }.cme-scope .lesson-row:hover .grip { opacity: 1; }.cme-scope .lesson-row .type-ic { width: 28px; height: 28px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--soft); color: var(--fg-muted); flex-shrink: 0; }.cme-scope .add-item { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 16px 12px; padding: 9px; border: 1.5px dashed var(--surface-border); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--fg-muted); background: none; width: calc(100% - 32px); }.cme-scope .add-item:hover { border-color: var(--instructive-ring); color: var(--fg-accent); background: var(--instructive-tint); }/* dropzone states */.cme-scope .dropzone { border: 2px dashed var(--instructive-ring); border-radius: var(--r-md); padding: 32px 24px; text-align: center; background: var(--instructive-tint); cursor: pointer; transition: background .2s; }.cme-scope .dropzone:hover { background: var(--soft-hover); }.cme-scope .file-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--surface-border); border-radius: var(--r-sm); font-size: 13px; }.cme-scope .file-row .pbar { flex: 1; }.cme-scope .shimmer { position: relative; overflow: hidden; background: var(--track); border-radius: 9999px; height: 6px; flex: 1; }.cme-scope .shimmer::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: shimmer 1.4s infinite; }@keyframes shimmer { 100% { transform: translateX(100%); } }/* ---------- player (Udemy anatomy: right sidebar 340px) ---------- */.cme-scope .player-shell { display: grid; grid-template-columns: 1fr 340px; min-height: calc(100vh - 55px); }@media (max-width: 980px) {.cme-scope .player-shell { grid-template-columns: 1fr; }.cme-scope .curriculum { display: none; } }.cme-scope .curriculum { border-inline-start: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(12px); overflow-y: auto; max-height: calc(100vh - 55px); position: sticky; top: 55px; }.cme-scope .curriculum details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line); }.cme-scope .curriculum details summary::-webkit-details-marker { display: none; }.cme-scope .curriculum summary .prog { font-size: 11px; font-weight: 500; color: var(--fg-soft); }.cme-scope .cl-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px; font-size: 13.5px; color: var(--fg-muted); border-inline-start: 4px solid transparent; }.cme-scope .cl-row:hover { background: var(--soft); }.cme-scope .cl-row.current { background: var(--instructive-tint); color: var(--fg); font-weight: 600; border-image: var(--instructive-grad) 1; border-inline-start: 4px solid #22d3ee; }.cme-scope .cl-row .ck { width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--track); display: grid; place-items: center; flex-shrink: 0; color: transparent; }.cme-scope .cl-row.done .ck { background: var(--success); border-color: var(--success); color: #fff; }.cme-scope .cl-row .ttl { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.cme-scope .cl-row .dur { font-size: 11px; color: var(--fg-soft); }.cme-scope .cl-row.exam .ck { border-color: var(--gold); color: var(--gold); background: var(--gold-tint); }.cme-scope .sticky-progress { position: sticky; top: 55px; z-index: 5; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--fg-muted); padding: 8px 24px; background: var(--shell-glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }.cme-scope .sticky-progress .pbar { flex: 1; height: 4px; }.cme-scope .content-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--surface-border); }.cme-scope .content-tabs button { background: none; border: none; color: var(--fg-muted); font-size: 14px; font-weight: 600; padding: 12px 16px; border-bottom: 2px solid transparent; }.cme-scope .content-tabs button.active { color: var(--fg-accent); border-bottom-color: var(--instructive-from); }/* transcript */.cme-scope .tr-line { display: flex; gap: 14px; padding: 8px 12px; font-size: 14px; color: var(--fg-muted); border-inline-start: 3px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer; }.cme-scope .tr-line:hover { background: var(--soft); }.cme-scope .tr-line.current { border-inline-start-color: #22d3ee; background: var(--instructive-tint); color: var(--fg); }.cme-scope .tr-line .ts { font-size: 11.5px; color: var(--fg-accent); font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 2px; }/* ---------- audit feed (day-grouped) ---------- */.cme-scope .audit-day { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); padding: 14px 24px 6px; }.cme-scope .audit { display: flex; gap: 10px; padding: 8px 24px; font-size: 13px; color: var(--fg-muted); }.cme-scope .audit .dot { width: 26px; height: 26px; border-radius: 9999px; display: grid; place-items: center; flex-shrink: 0; }.cme-scope .audit .dot.create { background: var(--success-tint); color: var(--success-fg); }.cme-scope .audit .dot.edit { background: var(--gold-tint); color: var(--gold); }.cme-scope .audit .dot.revoke { background: var(--critical-tint); color: var(--critical-fg); }.cme-scope .audit b { color: var(--fg); }.cme-scope .audit .when { margin-inline-start: auto; font-size: 11.5px; color: var(--fg-soft); white-space: nowrap; }/* ---------- certificate split (artwork left / trust right) ---------- */.cme-scope .cert-split { display: grid; gap: 24px; }@media (min-width: 900px) {.cme-scope .cert-split { grid-template-columns: 3fr 2fr; align-items: start; } }.cme-scope .cert-art { border-radius: var(--r-md); border: 1px solid var(--instructive-ring); background: linear-gradient(160deg, rgba(15,23,42,0.92), rgba(4,8,20,0.96)); padding: 40px 32px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-high); }html[data-theme="light"] .cme-scope .cert-art { background: linear-gradient(160deg, #ffffff, #f0f6fa); }.cme-scope .cert-art::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); pointer-events: none; }.cme-scope .valid-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--success-tint); border: 1px solid var(--success); color: var(--success-fg); font-weight: 700; font-size: 14px; }/* cert shelf thumbnails */.cme-scope .cert-thumb { aspect-ratio: 1.414/1; border-radius: var(--r-sm); border: 1px solid var(--surface-border); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; transition: border-color .15s, transform .15s; }.cme-scope .cert-thumb:hover { border-color: var(--instructive-ring); transform: translateY(-2px); }.cme-scope .cert-thumb .seal { width: 30px; height: 30px; border-radius: 9999px; background: var(--instructive-grad); display: grid; place-items: center; color: var(--on-instructive); }.cme-scope .cert-thumb.empty { opacity: .55; border-style: dashed; }/* ---------- stat band / notes / misc ---------- */.cme-scope .stat-band { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; padding: 24px; }.cme-scope .stat-band .stat { text-align: center; }.cme-scope .stat-band .stat b { font-family: var(--serif); font-size: 40px; font-weight: 700; display: block; line-height: 1.1; }.cme-scope .stat-band .stat span { font-size: 12.5px; color: var(--fg-muted); }.cme-scope .note { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; background: var(--instructive-tint); border: 1px solid var(--instructive-ring); color: var(--fg-muted); }.cme-scope .note.ok { background: var(--success-tint); border-color: var(--success); color: var(--success-fg); }.cme-scope .note.gold { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }.cme-scope .input { width: 100%; background: var(--soft); border: 1px solid var(--surface-border); border-radius: var(--r-sm); padding: 10px 14px; color: var(--fg); font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }.cme-scope .input:focus { border-color: var(--instructive-from); box-shadow: 0 0 0 3px var(--instructive-tint); }.cme-scope .field label { display: block; font-size: 12px; font-weight: 600; color: var(--fg-muted); margin-bottom: 6px; }.cme-scope .quiz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--surface-border); border-radius: var(--r-sm); cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }.cme-scope .quiz-opt:hover { border-color: var(--instructive-ring); background: var(--instructive-tint); }.cme-scope .quiz-opt input { accent-color: #22d3ee; margin-top: 3px; }/* empty state */.cme-scope .empty { text-align: center; padding: 40px 24px; }.cme-scope .empty .art { width: 64px; height: 64px; border-radius: var(--r-md); margin: 0 auto 12px; background: var(--instructive-tint); display: grid; place-items: center; color: var(--fg-accent); }.cme-scope .empty h3 { font-size: 16px; font-family: var(--sans); font-weight: 700; }.cme-scope .empty p { font-size: 13px; color: var(--fg-muted); margin: 4px 0 14px; }/* celebration banner */.cme-scope .celebrate { position: relative; overflow: hidden; text-align: center; padding: 40px 24px; }.cme-scope .celebrate .burst { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle 3px at 20% 30%, #FCB706 99%, transparent), radial-gradient(circle 2px at 70% 20%, #E83FA4 99%, transparent),
  radial-gradient(circle 3px at 85% 60%, #22d3ee 99%, transparent), radial-gradient(circle 2px at 35% 75%, #FCB706 99%, transparent),
  radial-gradient(circle 2px at 55% 45%, #E83FA4 99%, transparent), radial-gradient(circle 3px at 10% 80%, #6366f1 99%, transparent);
  opacity: .8; }/* theme toggle */.cme-scope .theme-toggle { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 100100; width: 46px; height: 46px; border-radius: 9999px; border: 1px solid var(--surface-border); background: var(--surface); color: var(--fg); display: grid; place-items: center; box-shadow: var(--shadow-mid); transition: transform .18s ease-out; }.cme-scope .theme-toggle:hover { transform: translateY(-2px); }/* ============================================================
   MOBILE LAYER — deliberate phone designs (≤767px)
   Bottom tab bar · bottom sheets · sticky video · drawers.
   Overlays respect the site z-index scale (interactive ≥ 100100).
   ============================================================ *//* ---------- bottom tab bar (learner surfaces) ---------- */.cme-scope .mobile-tabs {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
  background: var(--shell-glass); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}.cme-scope .mobile-tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--fg-soft); padding: 5px 0; border-radius: var(--r-sm);
}.cme-scope .mobile-tabs a.active { color: var(--fg-accent); }.cme-scope .mobile-tabs a.active .ic { background: var(--instructive-tint); }.cme-scope .mobile-tabs a .ic { width: 40px; height: 26px; border-radius: 9999px; display: grid; place-items: center; }/* ---------- scrim + bottom sheet ---------- */.cme-scope .scrim {
  position: fixed; inset: 0; z-index: 100100; background: rgba(2, 6, 23, 0.6);
  opacity: 0; pointer-events: none; transition: opacity .2s ease-out;
}.cme-scope .scrim.open { opacity: 1; pointer-events: auto; }.cme-scope .sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100101;
  background: var(--surface); border: 1px solid var(--surface-border); border-bottom: none;
  border-radius: 16px 16px 0 0; max-height: 80vh; overflow-y: auto;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .25s ease-out; box-shadow: var(--shadow-high);
}.cme-scope .sheet.open { transform: none; }.cme-scope .sheet .grab { width: 40px; height: 4px; border-radius: 9999px; background: var(--track); margin: 10px auto 4px; }.cme-scope .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 10px; border-bottom: 1px solid var(--line); }.cme-scope .sheet-head b { font-size: 15px; }/* ---------- left drawer (studio/admin nav on mobile) ---------- */.cme-scope .menu-btn { display: none; background: none; border: none; color: var(--fg); padding: 6px; }@media (max-width: 980px) {.cme-scope .menu-btn { display: grid; place-items: center; }.cme-scope .app-nav {
    display: block !important; position: fixed; top: 0; bottom: 0; inset-inline-start: 0;
    width: 272px; max-height: none; z-index: 100101; border-radius: 0 16px 16px 0;
    transform: translateX(-105%); transition: transform .25s ease-out;
    background: var(--page-bg); box-shadow: var(--shadow-high);
    padding-top: calc(12px + env(safe-area-inset-top));
  }[dir="rtl"] .cme-scope .app-nav { transform: translateX(105%); border-radius: 16px 0 0 16px; }.cme-scope .app-nav.open { transform: none; }
}/* ---------- phone-size refinements ---------- */@media (max-width: 767px) {.cme-scope .shell-header { padding: 8px 14px; gap: 10px; }.cme-scope .shell-header nav, .cme-scope .resume-pill { display: none; }.cme-scope .page { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }.cme-scope .app-main { padding: 16px 14px calc(48px + env(safe-area-inset-bottom)); }.cme-scope .mobile-tabs { display: flex; }.cme-scope .theme-toggle { bottom: calc(72px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }.cme-scope .hero-band { padding: 20px 16px !important; }.cme-scope .ring { width: 140px; height: 140px; }.cme-scope .ring svg { width: 140px; height: 140px; }.cme-scope .ring-center .n { font-size: 32px; }.cme-scope .stat-band { gap: 20px; padding: 16px; }.cme-scope .stat-band .stat b { font-size: 26px; }.cme-scope .heat { grid-template-columns: auto repeat(12, minmax(8px, 1fr)); }.cme-scope .heat i { width: auto; aspect-ratio: 1; height: auto; }.cme-scope .fraction-chip { padding: 8px 12px; }.cme-scope .pad { padding: 16px; }.cme-scope .cols-4.gap-sm, .cme-scope .grid.cols-4 { grid-template-columns: repeat(2, 1fr); display: grid; }.cme-scope .cert-thumb b { font-size: 11px; }/* tables scroll horizontally inside cards */.cme-scope .table { min-width: 640px; }.cme-scope .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }/* catalog: facet rail becomes a sheet, chips take over */.cme-scope .facet-rail {
    position: fixed !important; left: 0; right: 0; bottom: 0 !important; top: auto !important; z-index: 100101;
    max-height: 78vh; overflow-y: auto; border-radius: 16px 16px 0 0;
    transform: translateY(105%); transition: transform .25s ease-out;
    background: var(--page-bg); box-shadow: var(--shadow-high);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }.cme-scope .facet-rail.open { transform: none; }.cme-scope .only-mobile { display: flex !important; }.cme-scope .chip-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }.cme-scope .chip-strip::-webkit-scrollbar { display: none; }.cme-scope .chip-strip .chip { flex-shrink: 0; }/* player: sticky video, curriculum as sheet, floating content button */.cme-scope .player-main-pad { padding: 0 0 32px !important; }.cme-scope .video-wrap { position: sticky; top: 55px; z-index: 60; background: var(--page-bg); }.cme-scope .video-stage { border-radius: 0 !important; max-width: none !important; }.cme-scope .player-body { padding: 16px 14px; }.cme-scope .content-tabs { overflow-x: auto; scrollbar-width: none; }.cme-scope .content-tabs::-webkit-scrollbar { display: none; }.cme-scope .content-tabs button { white-space: nowrap; padding: 10px 12px; }.cme-scope .sticky-progress { top: 55px; z-index: 61; position: relative; top: 0; }
}@media (max-width: 980px) {.cme-scope .curriculum {
    display: block !important; position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 78vh; z-index: 100101; border-inline-start: none;
    border-top: 1px solid var(--surface-border); border-radius: 16px 16px 0 0;
    transform: translateY(105%); transition: transform .25s ease-out;
    background: var(--page-bg); box-shadow: var(--shadow-high);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }.cme-scope .curriculum.open { transform: none; }.cme-scope .content-fab {
    position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-start: 50%;
    transform: translateX(-50%); z-index: 100000;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--instructive-grad); color: var(--on-instructive);
    border: none; border-radius: 9999px; height: 44px; padding: 0 22px;
    font-size: 14px; font-weight: 700; box-shadow: 0 10px 32px rgba(34,211,238,.35);
  }
}@media (min-width: 981px) {.cme-scope .content-fab { display: none; } }.cme-scope .only-mobile { display: none !important; }@media (prefers-reduced-motion: reduce) {.cme-scope * { transition: none !important; animation: none !important; } }
