/* =============================================================================
   LIGHT MODE for the pages on the shared theme (<html class="prism-theme">),
   switched by <html data-theme="light"> (partials/theme_init.html, toggle in
   the profile dropdown). Off-white page, white cards with hairline borders,
   pale blue/cyan ambient light, deeper blue accent.
   Not yet light: the landing 3D hero (kept as a dark stage) and the design
   workspace / roadmap pages.
============================================================================= */
html.prism-theme[data-theme="light"] {
  color-scheme: light;
  --pt-bg: #f6f8fb;
  --pt-surface: #ffffff;
  --pt-surface-2: #f1f5f9;
  --pt-border: rgba(15,23,42,0.09);
  --pt-border-strong: rgba(15,23,42,0.16);
  --pt-text: #0f172a;
  --pt-text-2: #334155;
  --pt-text-3: #64748b;
  --pt-accent: #2563eb;
  --pt-primary: #2563eb;
  --pt-primary-hover: #1d4ed8;

  --lp-bg: var(--pt-bg);
  --lp-surface: #ffffff;
  --lp-surface-2: #f1f5f9;
  --lp-border-dim: rgba(15,23,42,0.08);
  --lp-border: rgba(15,23,42,0.1);
  --lp-accent: #2563eb;
  --lp-text: #0f172a;
  --lp-text-muted: #334155;
  --lp-text-dim: #64748b;
  --lp-cyan: #0284c7;
  background: var(--pt-bg);
}
html.prism-theme[data-theme="light"] body { color: var(--pt-text); background: var(--pt-bg) !important; }
html.prism-theme[data-theme="light"] ::selection { background: rgba(37,99,235,0.18); }

/* Ambient light: pale washes on off-white */
html.prism-theme[data-theme="light"] .lp-ambient { background: var(--pt-bg); }
html.prism-theme[data-theme="light"] .lp-ambient i { opacity: 0.55 !important; filter: blur(100px); }
html.prism-theme[data-theme="light"] .lp-ambient i:nth-child(1) { background: radial-gradient(circle, #93c5fd, transparent 65%); }
html.prism-theme[data-theme="light"] .lp-ambient i:nth-child(2) { background: radial-gradient(circle, #a5f3fc, transparent 65%); }
html.prism-theme[data-theme="light"] .lp-ambient i:nth-child(3) { background: radial-gradient(circle, #bfdbfe, transparent 65%); }

/* Navbar: white, hairline border */
html.prism-theme[data-theme="light"] .an-toolbar {
  /* a breath of blue so the bar isn't flat white */
  background: linear-gradient(90deg, rgba(232,241,255,0.94) 0%, rgba(246,249,255,0.94) 45%, rgba(234,246,253,0.94) 100%) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(37,99,235,0.12) !important;
}
html.prism-theme[data-theme="light"] .an-toolbar .an-tab { color: #475569; }
html.prism-theme[data-theme="light"] .an-toolbar .an-tab:hover,
html.prism-theme[data-theme="light"] .an-toolbar .an-tab.active,
html.prism-theme[data-theme="light"] .an-toolbar .an-tab.tsw-active { color: #0f172a; }
html.prism-theme[data-theme="light"] .an-tab.active::after,
html.prism-theme[data-theme="light"] .an-tab.tsw-active::after { background: #2563eb; }
html.prism-theme[data-theme="light"] .an-toolbar .button.ghost,
html.prism-theme[data-theme="light"] .an-toolbar .an-feedback-btn,
html.prism-theme[data-theme="light"] .an-toolbar .an-tl-icon-btn {
  background: #ffffff; color: #334155; border: 1px solid rgba(15,23,42,0.12);
}
html.prism-theme[data-theme="light"] .an-toolbar .button.ghost:hover,
html.prism-theme[data-theme="light"] .an-toolbar .an-feedback-btn:hover { background: #f1f5f9; color: #0f172a; }
html.prism-theme[data-theme="light"] .an-avatar { background: #eff6ff; color: #2563eb; border-color: rgba(37,99,235,0.35); }

/* Headings: dark first line, blue second */
html.prism-theme[data-theme="light"] .lp-hero-h1,
html.prism-theme[data-theme="light"] .lp-section-h2,
html.prism-theme[data-theme="light"] .lp-tradeoffs-h2,
html.prism-theme[data-theme="light"] .lp-final-h2,
html.prism-theme[data-theme="light"] .seo-article h1,
html.prism-theme[data-theme="light"] .seo-article h2,
html.prism-theme[data-theme="light"] .seo-article h3 { color: #0f172a; }
html.prism-theme[data-theme="light"] .lp-h1-accent,
html.prism-theme[data-theme="light"] .lp-h2-accent { color: #2563eb !important; }

/* Cards: white with hairline borders and soft depth */
html.prism-theme[data-theme="light"] .lp-fw-card,
html.prism-theme[data-theme="light"] .lp-fail-card,
html.prism-theme[data-theme="light"] .lp-tp,
html.prism-theme[data-theme="light"] .lp-rm-cols li,
html.prism-theme[data-theme="light"] .pt-card,
html.prism-theme[data-theme="light"] .seo-card a,
html.prism-theme[data-theme="light"] .seo-insight-card,
html.prism-theme[data-theme="light"] .seo-component,
html.prism-theme[data-theme="light"] .seo-quiz,
html.prism-theme[data-theme="light"] .seo-table,
html.prism-theme[data-theme="light"] .pr-card,
html.prism-theme[data-theme="light"] .pr-pillar,
html.prism-theme[data-theme="light"] .pr-footer-cta-box,
html.prism-theme[data-theme="light"] .pr-beta-banner-inner {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.09) !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 30px -12px rgba(15,23,42,0.12) !important;
}
html.prism-theme[data-theme="light"] .lp-fw-body strong,
html.prism-theme[data-theme="light"] .lp-fail-title,
html.prism-theme[data-theme="light"] .lp-how-title,
html.prism-theme[data-theme="light"] .lp-rm-cols strong,
html.prism-theme[data-theme="light"] .seo-card-title { color: #0f172a !important; }
html.prism-theme[data-theme="light"] .lp-fw-body span,
html.prism-theme[data-theme="light"] .lp-fail-desc,
html.prism-theme[data-theme="light"] .lp-how-desc,
html.prism-theme[data-theme="light"] .lp-rm-cols p,
html.prism-theme[data-theme="light"] .lp-section-sub,
html.prism-theme[data-theme="light"] .lp-rm-intro,
html.prism-theme[data-theme="light"] .lp-tradeoffs-sub,
html.prism-theme[data-theme="light"] .lp-final-sub,
html.prism-theme[data-theme="light"] .seo-card-desc,
html.prism-theme[data-theme="light"] .seo-lede { color: #475569 !important; }
html.prism-theme[data-theme="light"] .lp-tradeoffs-list li { color: #334155; }
html.prism-theme[data-theme="light"] .lp-framework .lp-fw-letter { color: #2563eb; text-shadow: none; }

/* Comparison table */
html.prism-theme[data-theme="light"] .lp-compare .lp-compare-table td { color: #0f172a; border-bottom-color: rgba(15,23,42,0.07); }
html.prism-theme[data-theme="light"] .lp-compare .lp-compare-table td.cmp-others { color: #64748b; }
html.prism-theme[data-theme="light"] .lp-compare .lp-compare-table td.cmp-prism,
html.prism-theme[data-theme="light"] .lp-compare .lp-compare-table .col-prism { background: #eff6ff; border-color: rgba(37,99,235,0.25); }
html.prism-theme[data-theme="light"] .cmp-ic--yes { background: #2563eb; color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
html.prism-theme[data-theme="light"] .cmp-ic--no { background: #f1f5f9; color: #64748b; }

/* Landing hero: the 3D scene re-themes itself (js/landing/hero-3d.js) */
html.prism-theme.lp-3d[data-theme="light"] .lp-hero::after {
  background: linear-gradient(90deg, rgba(246,248,251,0.9) 0%, rgba(246,248,251,0.5) 35%, transparent 60%);
}
html.prism-theme[data-theme="light"] .lp-hero-sub,
html.prism-theme[data-theme="light"] .lp-hero-note { color: #475569; }
html.prism-theme[data-theme="light"] .lp-hud-c { border-color: rgba(15,23,42,0.18); }
html.prism-theme[data-theme="light"] .lp-hero-hud { --lp-ok-green: #15803d; }
html.prism-theme[data-theme="light"] .lp-hero-hud::before { background-image: url('../../img/landing/hero-poster-light.webp'); }
html.prism-theme[data-theme="light"] .lp-logos-label { color: #64748b; }
html.prism-theme[data-theme="light"] .lp-final .lp-beams i { opacity: 0.18; }
html.prism-theme[data-theme="light"] main > section + section::after { background: linear-gradient(90deg, transparent, rgba(15,23,42,0.1), transparent); }

/* Footer */
html.prism-theme[data-theme="light"] .landing-footer { background: #ffffff; border-top: 1px solid rgba(15,23,42,0.08); }
html.prism-theme[data-theme="light"] .landing-footer a,
html.prism-theme[data-theme="light"] .footer-bar { color: #475569; }
html.prism-theme[data-theme="light"] .footer-col-heading { color: #0f172a; }

/* Buttons */
html.prism-theme[data-theme="light"] .lp-btn-ghost,
html.prism-theme[data-theme="light"] .seo-btn:not(.seo-btn--primary) {
  background: #ffffff; color: #0f172a; border: 1px solid rgba(15,23,42,0.14);
}
html.prism-theme[data-theme="light"] .lp-btn-ghost:hover,
html.prism-theme[data-theme="light"] .seo-btn:not(.seo-btn--primary):hover { background: #f1f5f9; color: #0f172a; }

/* Guide graphics on light */
html.prism-theme[data-theme="light"] .sv-board { fill: #ffffff; stroke: rgba(15,23,42,0.12); }
html.prism-theme[data-theme="light"] .sv-hero .n,
html.prism-theme[data-theme="light"] .sv-hub .hn rect { fill: #eff6ff; stroke: rgba(37,99,235,0.55); }
html.prism-theme[data-theme="light"] .sv .sv-lbl,
html.prism-theme[data-theme="light"] .sv-clock text,
html.prism-theme[data-theme="light"] .sv-timeline .st,
html.prism-theme[data-theme="light"] .sv-plan .pt { fill: #0f172a; }
html.prism-theme[data-theme="light"] .sv-q { fill: #334155; }
html.prism-theme[data-theme="light"] .sv-radar .rg { stroke: rgba(15,23,42,0.1); }
html.prism-theme[data-theme="light"] .sv-radar .rl { fill: #334155; }
html.prism-theme[data-theme="light"] .sv-plan .pn { fill: #ffffff; }
html.prism-theme[data-theme="light"] .sv-phases li i { background: #ffffff; border-color: rgba(15,23,42,0.2); }
html.prism-theme[data-theme="light"] .sv-phases li::before { background: rgba(15,23,42,0.1); }
html.prism-theme[data-theme="light"] .prism-theme .seo-main,
html.prism-theme[data-theme="light"] .seo-main {
  background:
    linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
}

/* Profile / My evaluations: their own colour tokens */
html.prism-theme[data-theme="light"] .page-profile .profile-content,
html.prism-theme[data-theme="light"] .page-profile .prof-modal {
  --pf-ink: #0f172a; --pf-text: #334155; --pf-muted: #64748b; --pf-dim: #94a3b8;
  --pf-line: rgba(15,23,42,0.09); --pf-surface: #ffffff;
}
html.prism-theme[data-theme="light"] body.page-evaluations {
  --ev-ink: #0f172a; --ev-text: #334155; --ev-muted: #64748b; --ev-dim: #94a3b8;
  --ev-line: rgba(15,23,42,0.09); --ev-line-strong: rgba(15,23,42,0.16);
  --ev-surface: #ffffff; --ev-surface-hover: #f8fafc;
}

/* Landing details */
html.prism-theme[data-theme="light"] {
  --lp-fail-red: #dc2626; --lp-fail-red-bg: rgba(220,38,38,0.07);
  --lp-warn-orange: #c2410c; --lp-warn-orange-bg: rgba(234,88,12,0.07);
  --lp-warn-yellow: #a16207; --lp-warn-yellow-bg: rgba(202,138,4,0.08);
}
html.prism-theme[data-theme="light"] .lp-tp-title { color: #64748b; }
html.prism-theme[data-theme="light"] .lp-tp-decision-text { color: #334155; }
html.prism-theme[data-theme="light"] .lp-compare-table td.col-others,
html.prism-theme[data-theme="light"] .lp-section-sub + p { color: #64748b; }
html.prism-theme[data-theme="light"] .az-word,
html.prism-theme[data-theme="light"] .ms-wordmark,
html.prism-theme[data-theme="light"] .logo-apple,
html.prism-theme[data-theme="light"] .delta-text { color: #0f172a; }
html.prism-theme[data-theme="light"] .tm-text { color: #0284c7; }
html.prism-theme[data-theme="light"] .footer-bar-right { color: #475569; }
html.prism-theme[data-theme="light"] .lp-hero-sub { color: #475569; }

/* Terms / Privacy (their colours live in the page's own <style>) */
html.prism-theme[data-theme="light"] .legal-h1,
html.prism-theme[data-theme="light"] .legal-section h2 { color: #0f172a; }
html.prism-theme[data-theme="light"] .legal-section p,
html.prism-theme[data-theme="light"] .legal-section ul,
html.prism-theme[data-theme="light"] .legal-section ol { color: #475569; }
html.prism-theme[data-theme="light"] .legal-launch-badge img { box-shadow: 0 4px 14px rgba(15,23,42,0.12); }

/* Pricing (generated from pricing/pricing.css: dark-only colours mapped to light) */
html.prism-theme[data-theme="light"] .pricing-scroll { background: transparent !important; }
html.prism-theme[data-theme="light"] .pr-footer-cta-box { color: #0f172a; border-color: rgba(37,99,235,0.25) !important; }
html.prism-theme[data-theme="light"] .pr-dur-badge { color: #1d4ed8; background: rgba(37,99,235,0.1); }
html.prism-theme[data-theme="light"] #pr-beta-banner-text { color: #334155; }
html.prism-theme[data-theme="light"] .pr-hero-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-hero-title .accent { color: #2563eb; }
html.prism-theme[data-theme="light"] .pr-hero-sub { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-duration-toggle { background: rgba(15,23,42,0.06); border: 1px solid rgba(15,23,42,0.11); }
html.prism-theme[data-theme="light"] .pr-dur-btn { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-dur-btn:hover { color: #0f172a; background: rgba(15,23,42,0.06); }
html.prism-theme[data-theme="light"] #pr-beta-banner-text strong { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-card:hover { border-color: rgba(15,23,42,0.176); }
html.prism-theme[data-theme="light"] .pr-current-indicator { color: #15803d; }
html.prism-theme[data-theme="light"] .pr-card-tier { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-card-name { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-card-tagline { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-price-free { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-price-free-label { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-price-currency { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-price-amount { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-price-period { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-price-total { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-card-cta--ghost { background: rgba(15,23,42,0.06); border: 1.5px solid rgba(15,23,42,0.165); color: #334155; }
html.prism-theme[data-theme="light"] .pr-card-cta--ghost:hover { background: rgba(15,23,42,0.06); border-color: rgba(15,23,42,0.2); color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-divider { border-top: 1px solid rgba(15,23,42,0.077); }
html.prism-theme[data-theme="light"] .pr-feature-heading { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-feature-list li { color: #334155; }
html.prism-theme[data-theme="light"] .pr-feat-icon--check { color: #15803d; }
html.prism-theme[data-theme="light"] .pr-section-eyebrow { color: #2563eb; }
html.prism-theme[data-theme="light"] .pr-section-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-section-sub { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-pillar h3 { color: #0f172a; }
html.prism-theme[data-theme="light"] .pr-pillar p { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-faq-list { border: 1px solid rgba(15,23,42,0.088); background: rgba(15,23,42,0.03); }
html.prism-theme[data-theme="light"] .pr-faq-item { border-bottom: 1px solid rgba(15,23,42,0.066); }
html.prism-theme[data-theme="light"] .pr-faq-q { color: #334155; }
html.prism-theme[data-theme="light"] .pr-faq-q:hover { background: rgba(15,23,42,0.04); }
html.prism-theme[data-theme="light"] .pr-faq-chevron { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-faq-a { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-footer-cta-box p { color: #334155; }
html.prism-theme[data-theme="light"] .pr-btn--ghost { background: rgba(15,23,42,0.06); color: #0f172a; border: 1.5px solid rgba(15,23,42,0.2); }
html.prism-theme[data-theme="light"] .pr-btn--ghost:hover { background: rgba(15,23,42,0.06); border-color: rgba(15,23,42,0.2); }
html.prism-theme[data-theme="light"] .pr-page-footer { border-top: 1px solid rgba(15,23,42,0.088); color: #64748b; }
html.prism-theme[data-theme="light"] .pr-page-footer-links a { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-page-footer-links a:hover { color: #334155; }
html.prism-theme[data-theme="light"] .pr-renew-note { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-card-renew { color: #64748b; }
html.prism-theme[data-theme="light"] .pr-dur-btn.active { color: #ffffff; }
html.prism-theme[data-theme="light"] .lp-compare .lp-compare-table thead th { color: #64748b; border-bottom-color: rgba(15,23,42,0.1); }
html.prism-theme[data-theme="light"] .lp-compare .lp-compare-table tbody td:first-child { color: #0f172a; }
html.prism-theme[data-theme="light"] .lp-rm-cta p { color: #64748b; }

/* Landing section graphics on white cards / off-white */
html.prism-theme[data-theme="light"] .lp-rm-path .ph-dot { fill: #ffffff; stroke: #2563eb; }
html.prism-theme[data-theme="light"] .lp-rm-path .ph-n { fill: #2563eb; }
html.prism-theme[data-theme="light"] .lp-rm-path .ph-t { fill: #0f172a; }
html.prism-theme[data-theme="light"] .lp-rm-path .ph-halo { fill: rgba(37,99,235,0.1); }
html.prism-theme[data-theme="light"] .lp-rm-path .rm-pulse { fill: #2563eb; filter: drop-shadow(0 0 6px rgba(37,99,235,0.6)); }
html.prism-theme[data-theme="light"] .lp-viz-spof .nd,
html.prism-theme[data-theme="light"] .lp-viz .b { fill: #eff6ff; stroke: rgba(37,99,235,0.6); }
html.prism-theme[data-theme="light"] .lp-viz-spof .nd-off { fill: #f1f5f9; stroke: rgba(100,116,139,0.4); }
html.prism-theme[data-theme="light"] .lp-viz-sat .gauge,
html.prism-theme[data-theme="light"] .lp-viz-lag .track { fill: rgba(15,23,42,0.06); }
html.prism-theme[data-theme="light"] .lp-viz-score text { fill: #0f172a; }

/* Profile (generated from profile/profile.css: dark-only text colours mapped to light) */
html.prism-theme[data-theme="light"] .prof-name { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-rank-badge { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-detail-label { color: #64748b; }
html.prism-theme[data-theme="light"] .prof-detail-value { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-ring-pct { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-xp-val { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-streak-chip { color: #c2410c; }
html.prism-theme[data-theme="light"] .prof-section-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-evo-phase.completed .prof-evo-dot { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-evo-phase.locked .prof-evo-dot { color: #64748b; }
html.prism-theme[data-theme="light"] .prof-evo-phase.active .prof-evo-name { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-evo-phase.locked .prof-evo-name { color: #64748b; }
html.prism-theme[data-theme="light"] .prof-evo-phase.completed .prof-evo-state { color: #15803d; }
html.prism-theme[data-theme="light"] .prof-continue-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-continue-pct { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-mastery-domain { color: #334155; }
html.prism-theme[data-theme="light"] .prof-stat-val { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-stat-val.accent { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-stat-val.success { color: #15803d; }
html.prism-theme[data-theme="light"] .prof-stat-val.warm { color: #c2410c; }
html.prism-theme[data-theme="light"] .prof-stat-trend { color: #15803d; }
html.prism-theme[data-theme="light"] .prof-streak-num { color: #c2410c; }
html.prism-theme[data-theme="light"] .activity-evaluation .prof-activity-icon { color: #6d28d9; }
html.prism-theme[data-theme="light"] .activity-learn      .prof-activity-icon { color: #4338ca; }
html.prism-theme[data-theme="light"] .activity-practice   .prof-activity-icon { color: #15803d; }
html.prism-theme[data-theme="light"] .prof-activity-name { color: #334155; }
html.prism-theme[data-theme="light"] .prof-activity-score { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-activity-score.good { color: #15803d; }
html.prism-theme[data-theme="light"] .prof-activity-score.mid { color: #a16207; }
html.prism-theme[data-theme="light"] .prof-activity-score.low { color: #b91c1c; }
html.prism-theme[data-theme="light"] .prof-account-btn:hover { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-account-btn.danger { color: #b91c1c; }
html.prism-theme[data-theme="light"] .prof-auth-gate-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-tab-active { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-tab-active svg { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-tab-badge { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-mentor-empty-icon { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-mentor-empty-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-mentor-card-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-mentor-status-live { color: #047857; }
html.prism-theme[data-theme="light"] .prof-mentor-status-completed { color: #334155; }
html.prism-theme[data-theme="light"] .prof-mentor-status-cancelled { color: #b91c1c; }
html.prism-theme[data-theme="light"] .prof-mentor-status-expired { color: #c2410c; }
html.prism-theme[data-theme="light"] .prof-mentor-status-no_show { color: #c2410c; }
html.prism-theme[data-theme="light"] .prof-mentor-card-link { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-mentor-card-link:hover { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-mentor-error { color: #b91c1c; }
html.prism-theme[data-theme="light"] .prof-edit-btn { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-edit-btn:hover { color: #4338ca; }
html.prism-theme[data-theme="light"] .prof-modal-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-modal-close { color: #64748b; }
html.prism-theme[data-theme="light"] .prof-modal-close:hover { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-form-label { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-form-error { color: #b91c1c; }
html.prism-theme[data-theme="light"] .prof-form-hint { color: #64748b; }
html.prism-theme[data-theme="light"] .prof-completeness-label { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-btn-secondary { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-page-btn,
html.prism-theme[data-theme="light"] .prof-page-num { color: #0f172a; }
html.prism-theme[data-theme="light"] .prof-per-page-select { color: #0f172a; }
html.prism-theme[data-theme="light"] .page-profile .prof-link { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-profile .prof-link:hover { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-profile .prof-rank-badge { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-profile .prof-continue-phase { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-profile .prof-score.good { color: #15803d; }
html.prism-theme[data-theme="light"] .page-profile .prof-score.mid { color: #a16207; }
html.prism-theme[data-theme="light"] .page-profile .prof-score.low { color: #b91c1c; }
html.prism-theme[data-theme="light"] .page-profile .prof-empty a { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-profile .prof-btn-ghost.danger { color: #b91c1c; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat-icon.tone-orange { color: #c2410c; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat-icon.tone-indigo { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat-icon.tone-sky { color: #0369a1; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat-icon.tone-amber { color: #a16207; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat-icon.tone-green { color: #15803d; }
html.prism-theme[data-theme="light"] .page-profile .prof-rank-badge { color: color-mix(in srgb, var(--rank) 65%, #0f172a); background: color-mix(in srgb, var(--rank) 10%, #ffffff); }
html.prism-theme[data-theme="light"] .page-profile .prof-rank-lv { color: #ffffff; }

/* My evaluations (generated from evaluations/evaluations.css) */
html.prism-theme[data-theme="light"] .evals-page-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .evals-summary-val { color: #0f172a; }
html.prism-theme[data-theme="light"] .evals-summary-val.accent { color: #4338ca; }
html.prism-theme[data-theme="light"] .evals-summary-val.success { color: #15803d; }
html.prism-theme[data-theme="light"] .evals-summary-val.warm { color: #c2410c; }
html.prism-theme[data-theme="light"] .evals-search { color: #0f172a; }
html.prism-theme[data-theme="light"] .evals-filter-btn:hover,
html.prism-theme[data-theme="light"] .evals-filter-btn.active { color: #4338ca; }
html.prism-theme[data-theme="light"] .evals-list .eval-score-badge.score-high { color: #15803d; }
html.prism-theme[data-theme="light"] .evals-list .eval-score-badge.score-mid { color: #a16207; }
html.prism-theme[data-theme="light"] .evals-list .eval-score-badge.score-low { color: #b91c1c; }
html.prism-theme[data-theme="light"] .evals-list .eval-card-name { color: #0f172a; }
html.prism-theme[data-theme="light"] .evals-list .eval-difficulty-pill.easy { color: #15803d; }
html.prism-theme[data-theme="light"] .evals-list .eval-difficulty-pill.medium { color: #a16207; }
html.prism-theme[data-theme="light"] .evals-list .eval-difficulty-pill.hard { color: #b91c1c; }
html.prism-theme[data-theme="light"] .evals-list .eval-difficulty-pill.standard { color: #4338ca; }
html.prism-theme[data-theme="light"] .evals-list .eval-status-pill.completed { color: #15803d; }
html.prism-theme[data-theme="light"] .evals-list .eval-type-pill.ai { color: #6d28d9; }
html.prism-theme[data-theme="light"] .evals-list .eval-type-pill.live { color: #0369a1; }
html.prism-theme[data-theme="light"] .evals-list .eval-retry-btn:hover { color: #4338ca; }
html.prism-theme[data-theme="light"] .evals-empty-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .evals-auth-gate-title { color: #334155; }
html.prism-theme[data-theme="light"] .edm-score-badge.score-high { color: #15803d; }
html.prism-theme[data-theme="light"] .edm-score-badge.score-mid { color: #c2410c; }
html.prism-theme[data-theme="light"] .edm-score-badge.score-low { color: #b91c1c; }
html.prism-theme[data-theme="light"] .edm-title { color: #0f172a; }
html.prism-theme[data-theme="light"] .edm-close:hover { color: #0f172a; }
html.prism-theme[data-theme="light"] .edm-chip-val { color: #0f172a; }
html.prism-theme[data-theme="light"] .edm-chip-val.accent { color: #4338ca; }
html.prism-theme[data-theme="light"] .edm-chip-val.warm { color: #c2410c; }
html.prism-theme[data-theme="light"] .edm-chip-val.success { color: #15803d; }
html.prism-theme[data-theme="light"] .edm-section-title { color: #334155; }
html.prism-theme[data-theme="light"] .edm-mcq-q { color: #334155; }
html.prism-theme[data-theme="light"] .edm-mcq-item.correct  .edm-mcq-q::before { color: #15803d; }
html.prism-theme[data-theme="light"] .edm-mcq-item.incorrect .edm-mcq-q::before { color: #b91c1c; }
html.prism-theme[data-theme="light"] .edm-mcq-ans-val.wrong { color: #b91c1c; }
html.prism-theme[data-theme="light"] .edm-mcq-ans-val.right { color: #15803d; }
html.prism-theme[data-theme="light"] .edm-tq-question { color: #334155; }
html.prism-theme[data-theme="light"] .edm-tq-score-pill.high { color: #15803d; }
html.prism-theme[data-theme="light"] .edm-tq-score-pill.mid { color: #c2410c; }
html.prism-theme[data-theme="light"] .edm-tq-score-pill.low { color: #b91c1c; }
html.prism-theme[data-theme="light"] .edm-live-overall { color: #334155; }
html.prism-theme[data-theme="light"] .edm-live-section strong { color: #4338ca; }
html.prism-theme[data-theme="light"] .edm-live-text { color: #334155; }
html.prism-theme[data-theme="light"] .edm-req-text { color: #334155; }
html.prism-theme[data-theme="light"] .evals-page-btn,
html.prism-theme[data-theme="light"] .evals-page-num { color: #0f172a; }
html.prism-theme[data-theme="light"] .evals-per-page-select { color: #0f172a; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-score-badge.score-high { color: #15803d; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-score-badge.score-mid { color: #a16207; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-score-badge.score-low { color: #b91c1c; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-diff.easy { color: #15803d; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-diff.medium { color: #a16207; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-diff.hard { color: #b91c1c; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-list .eval-card:hover .eval-row-open { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-evaluations .psel-opt.is-selected { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-evaluations .psel-opt svg { color: #4338ca; }
html.prism-theme[data-theme="light"] .page-evaluations .evals-page-num.active { color: #ffffff; }

/* Company logos: full colour on light (dark mode dims them to sit in the dark) */
html.prism-theme[data-theme="light"] .logo-item { opacity: 0.9; filter: none; }
html.prism-theme[data-theme="light"] .logo-item:hover { opacity: 1; }

/* Profile: stat tiles in their own colour, panels with a soft edge of light */
html.prism-theme[data-theme="light"] .page-profile .prof-stat {
  --tone: #2563eb;
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--tone) 9%, #ffffff) 0%, #ffffff 58%) !important;
  border-color: color-mix(in srgb, var(--tone) 18%, rgba(15,23,42,0.08)) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
html.prism-theme[data-theme="light"] .page-profile .prof-stat::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 35%, #ffffff));
}
html.prism-theme[data-theme="light"] .page-profile .prof-stat::after {
  content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
  pointer-events: none;
}
html.prism-theme[data-theme="light"] .page-profile .prof-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone) 40%, transparent) !important;
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--tone) 45%, transparent) !important;
}
html.prism-theme[data-theme="light"] .page-profile .prof-stat:has(.tone-orange) { --tone: #f97316; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat:has(.tone-indigo) { --tone: #6366f1; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat:has(.tone-sky)    { --tone: #0ea5e9; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat:has(.tone-amber)  { --tone: #f59e0b; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat:has(.tone-green)  { --tone: #22c55e; }
html.prism-theme[data-theme="light"] .page-profile .prof-stat-icon {
  display: grid !important; position: relative; z-index: 1;
  color: color-mix(in srgb, var(--tone) 80%, #0f172a) !important;
  background: color-mix(in srgb, var(--tone) 12%, #ffffff) !important;
  border-color: color-mix(in srgb, var(--tone) 30%, transparent) !important;
}
html.prism-theme[data-theme="light"] .page-profile .prof-stat-val,
html.prism-theme[data-theme="light"] .page-profile .prof-stat-label { position: relative; z-index: 1; }

html.prism-theme[data-theme="light"] .page-profile .prof-hero,
html.prism-theme[data-theme="light"] .page-profile .prof-panel {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(59,130,246,0.07), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(14,165,233,0.05), transparent 60%),
    #ffffff !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 34px -18px rgba(37,99,235,0.22) !important;
}
html.prism-theme[data-theme="light"] .page-profile .prof-hero::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, #2563eb, #0ea5e9, #6366f1, transparent);
  background-size: 200% 100%;
  animation: tl-sheen 8s ease-in-out infinite alternate;
}
@keyframes tl-sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  html.prism-theme[data-theme="light"] .page-profile .prof-hero::before { animation: none; }
  html.prism-theme[data-theme="light"] .page-profile .prof-stat:hover { transform: none; }
}
