/* Clickt warm charcoal: authored dark theme (accent #6B8CFF). Loaded after page-specific styles. */
html[data-theme="dark"] {
    --paper: #151311;
    --paper-2: #1f1c19;
    --paper-3: #34302b;
    --white: #221f1b;
    --ink: #f5f2ec;
    --ink-2: #ddd6cc;
    --mute: #bab2a8;
    --faint: #a39b91;
    --line: rgba(235, 225, 210, .15);
    --line-2: rgba(235, 225, 210, .28);
    --blue: #6b8cff;
    --blue-deep: #8fa8ff;
    --blue-soft: #1f2747;
    --ai: linear-gradient(115deg, #6b8cff 0%, #9db2ff 55%, #f5f2ec 100%);
    --sh-1: 0 2px 8px rgba(0, 0, 0, .2);
    --sh-2: 0 10px 30px rgba(0, 0, 0, .25);
    --sh-3: 0 24px 65px rgba(0, 0, 0, .38);
    --sh-device: 0 24px 70px rgba(0, 0, 0, .45);
  }html[data-theme="dark"] body::after { display: none; }html[data-theme="dark"] .brand img,
  html[data-theme="dark"] .footer-brand img,
  html[data-theme="dark"] .footer-mark img,
  html[data-theme="dark"] .splash-word { filter: brightness(0) invert(1); }html[data-theme="dark"] .site-header.is-scrolled,
  html[data-theme="dark"] body.menu-open .site-header { background: rgba(21, 19, 17, .92); }html[data-theme="dark"] .nav-link:hover,
  html[data-theme="dark"] .nav-item.is-open > .nav-link,
  html[data-theme="dark"] .nav-link[aria-current="page"],
  html[data-theme="dark"] .lang,
  html[data-theme="dark"] .burger { background: rgba(235, 225, 210, .1); }html[data-theme="dark"] .mega-ico,
  html[data-theme="dark"] .ico-box { background: color-mix(in srgb, var(--c, #6b8cff) 22%, #2e2a26); color: #ede7dd; }html[data-theme="dark"] .mod { background: color-mix(in srgb, var(--c) 16%, #fff); color: #1c1917; }html[data-theme="dark"] .btn { --bg: #ede7dd; --fg: #151311; }html[data-theme="dark"] .btn--primary { --bg: #6b8cff; --fg: #151311; }html[data-theme="dark"] .btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }html[data-theme="dark"] .btn--white { --bg: #fff; --fg: #151311; }html[data-theme="dark"] .endcard .btn--dark,
  html[data-theme="dark"] .price-band .btn { --bg: #fff; --fg: #151311; }html[data-theme="dark"] .endcard .btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }html[data-theme="dark"] .social-btn { background: #e8e1d6; color: #151311; }html[data-theme="dark"] .skip-link { background: #ede7dd; color: #151311; }html[data-theme="dark"] ::selection { background: #6b8cff; color: #151311; }html[data-theme="dark"] .frame { background: linear-gradient(180deg, #221f1b, #1b1916); box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.1); }html[data-theme="dark"] .seg,
  html[data-theme="dark"] .notes-scene .dest,
  html[data-theme="dark"] .dialog-x { background: rgba(235,225,210,.1); }html[data-theme="dark"] .hero-in .slate,
  html[data-theme="dark"] .chip,
  html[data-theme="dark"] .principle,
  html[data-theme="dark"] .ai-provider { background: #221f1b; }html[data-theme="dark"] .chips-grid .chip,
  html[data-theme="dark"] .ba-col--after,
  html[data-theme="dark"] .guide-search input { background: var(--white); color: var(--ink); }html[data-theme="dark"] .guide-search input { border-color: var(--line-2); }html[data-theme="dark"] .plan--pro { background: linear-gradient(#221f1b, #221f1b) padding-box, var(--ai) border-box; }html[data-theme="dark"] .badge { color: #151311; }html[data-theme="dark"] .price-band,
  html[data-theme="dark"] .fit-node--mid { background: #1f2747; color: #f5f2ec; border-color: var(--line-2); }html[data-theme="dark"] .scene-card,
  html[data-theme="dark"] .ai-card { box-shadow: var(--sh-2), 0 0 0 6px rgba(107,140,255,.08); }html[data-theme="dark"] .ai-bar,
  html[data-theme="dark"] .proposal,
  html[data-theme="dark"] .preview-card,
  html[data-theme="dark"] .chart-canvas { background: #2a2622; }html[data-theme="dark"] .ai-bar .spark { background: #4a63d6; }html[data-theme="dark"] .msg--user p,
  html[data-theme="dark"] .mk-dot--digest,
  html[data-theme="dark"] .prov[aria-pressed="true"] { background: #6b8cff; color: #151311; }html[data-theme="dark"] .alts li,
  html[data-theme="dark"] .prov { background: #2a2622; color: var(--ink); }html[data-theme="dark"] .cb { background: #2a2622; color: transparent; }html[data-theme="dark"] .cl-items input:checked + .cb { color: #fff; }html[data-theme="dark"] .claimer.is-winner { background: #193b32; border-color: #477a66; }html[data-theme="dark"] .claimer.is-winner small { color: #b7ebcc; }html[data-theme="dark"] .rem-quiet { background: repeating-linear-gradient(135deg, rgba(240,230,215,.12) 0 6px, rgba(240,230,215,.04) 6px 12px); }html[data-theme="dark"] .k--quiet { background: repeating-linear-gradient(135deg, rgba(240,230,215,.45) 0 3px, rgba(240,230,215,.12) 3px 6px); }html[data-theme="dark"] .sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 3px #221f1b, 0 0 0 5px var(--blue); }html[data-theme="dark"] .module-builder .module-header .icon,
  html[data-theme="dark"] .module-presentation .module-header .icon,
  html[data-theme="dark"] .module-teams .module-header .icon,
  html[data-theme="dark"] .module-notes .module-header .icon,
  html[data-theme="dark"] .module-checklist .module-header .icon { background: #332e29; }

@media (prefers-color-scheme: dark) {
html:not([data-theme]) {
    --paper: #151311;
    --paper-2: #1f1c19;
    --paper-3: #34302b;
    --white: #221f1b;
    --ink: #f5f2ec;
    --ink-2: #ddd6cc;
    --mute: #bab2a8;
    --faint: #a39b91;
    --line: rgba(235, 225, 210, .15);
    --line-2: rgba(235, 225, 210, .28);
    --blue: #6b8cff;
    --blue-deep: #8fa8ff;
    --blue-soft: #1f2747;
    --ai: linear-gradient(115deg, #6b8cff 0%, #9db2ff 55%, #f5f2ec 100%);
    --sh-1: 0 2px 8px rgba(0, 0, 0, .2);
    --sh-2: 0 10px 30px rgba(0, 0, 0, .25);
    --sh-3: 0 24px 65px rgba(0, 0, 0, .38);
    --sh-device: 0 24px 70px rgba(0, 0, 0, .45);
  }html:not([data-theme]) body::after { display: none; }html:not([data-theme]) .brand img,
  html:not([data-theme]) .footer-brand img,
  html:not([data-theme]) .footer-mark img,
  html:not([data-theme]) .splash-word { filter: brightness(0) invert(1); }html:not([data-theme]) .site-header.is-scrolled,
  html:not([data-theme]) body.menu-open .site-header { background: rgba(21, 19, 17, .92); }html:not([data-theme]) .nav-link:hover,
  html:not([data-theme]) .nav-item.is-open > .nav-link,
  html:not([data-theme]) .nav-link[aria-current="page"],
  html:not([data-theme]) .lang,
  html:not([data-theme]) .burger { background: rgba(235, 225, 210, .1); }html:not([data-theme]) .mega-ico,
  html:not([data-theme]) .ico-box { background: color-mix(in srgb, var(--c, #6b8cff) 22%, #2e2a26); color: #ede7dd; }html:not([data-theme]) .mod { background: color-mix(in srgb, var(--c) 16%, #fff); color: #1c1917; }html:not([data-theme]) .btn { --bg: #ede7dd; --fg: #151311; }html:not([data-theme]) .btn--primary { --bg: #6b8cff; --fg: #151311; }html:not([data-theme]) .btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }html:not([data-theme]) .btn--white { --bg: #fff; --fg: #151311; }html:not([data-theme]) .endcard .btn--dark,
  html:not([data-theme]) .price-band .btn { --bg: #fff; --fg: #151311; }html:not([data-theme]) .endcard .btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }html:not([data-theme]) .social-btn { background: #e8e1d6; color: #151311; }html:not([data-theme]) .skip-link { background: #ede7dd; color: #151311; }html:not([data-theme]) ::selection { background: #6b8cff; color: #151311; }html:not([data-theme]) .frame { background: linear-gradient(180deg, #221f1b, #1b1916); box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.1); }html:not([data-theme]) .seg,
  html:not([data-theme]) .notes-scene .dest,
  html:not([data-theme]) .dialog-x { background: rgba(235,225,210,.1); }html:not([data-theme]) .hero-in .slate,
  html:not([data-theme]) .chip,
  html:not([data-theme]) .principle,
  html:not([data-theme]) .ai-provider { background: #221f1b; }html:not([data-theme]) .chips-grid .chip,
  html:not([data-theme]) .ba-col--after,
  html:not([data-theme]) .guide-search input { background: var(--white); color: var(--ink); }html:not([data-theme]) .guide-search input { border-color: var(--line-2); }html:not([data-theme]) .plan--pro { background: linear-gradient(#221f1b, #221f1b) padding-box, var(--ai) border-box; }html:not([data-theme]) .badge { color: #151311; }html:not([data-theme]) .price-band,
  html:not([data-theme]) .fit-node--mid { background: #1f2747; color: #f5f2ec; border-color: var(--line-2); }html:not([data-theme]) .scene-card,
  html:not([data-theme]) .ai-card { box-shadow: var(--sh-2), 0 0 0 6px rgba(107,140,255,.08); }html:not([data-theme]) .ai-bar,
  html:not([data-theme]) .proposal,
  html:not([data-theme]) .preview-card,
  html:not([data-theme]) .chart-canvas { background: #2a2622; }html:not([data-theme]) .ai-bar .spark { background: #4a63d6; }html:not([data-theme]) .msg--user p,
  html:not([data-theme]) .mk-dot--digest,
  html:not([data-theme]) .prov[aria-pressed="true"] { background: #6b8cff; color: #151311; }html:not([data-theme]) .alts li,
  html:not([data-theme]) .prov { background: #2a2622; color: var(--ink); }html:not([data-theme]) .cb { background: #2a2622; color: transparent; }html:not([data-theme]) .cl-items input:checked + .cb { color: #fff; }html:not([data-theme]) .claimer.is-winner { background: #193b32; border-color: #477a66; }html:not([data-theme]) .claimer.is-winner small { color: #b7ebcc; }html:not([data-theme]) .rem-quiet { background: repeating-linear-gradient(135deg, rgba(240,230,215,.12) 0 6px, rgba(240,230,215,.04) 6px 12px); }html:not([data-theme]) .k--quiet { background: repeating-linear-gradient(135deg, rgba(240,230,215,.45) 0 3px, rgba(240,230,215,.12) 3px 6px); }html:not([data-theme]) .sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 3px #221f1b, 0 0 0 5px var(--blue); }html:not([data-theme]) .module-builder .module-header .icon,
  html:not([data-theme]) .module-presentation .module-header .icon,
  html:not([data-theme]) .module-teams .module-header .icon,
  html:not([data-theme]) .module-notes .module-header .icon,
  html:not([data-theme]) .module-checklist .module-header .icon { background: #332e29; }

}

/* Solid text stays legible when a browser handles clipped gradients poorly. */
html[data-theme="dark"] .display em,
html[data-theme="dark"] .title em,
html[data-theme="dark"] .h-serif em,
html[data-theme="dark"] .endcard .title em,
html[data-theme="dark"] .guarantee-num .kpi {
  background: none;
  color: #6b8cff;
  -webkit-text-fill-color: #6b8cff;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .display em,
  html:not([data-theme]) .title em,
  html:not([data-theme]) .h-serif em,
  html:not([data-theme]) .endcard .title em,
  html:not([data-theme]) .guarantee-num .kpi {
    background: none;
    color: #6b8cff;
    -webkit-text-fill-color: #6b8cff;
  }
}

/* Samsung Internet can recolor a light page without exposing that state.
   Ordinary text gives its darkening algorithm a chance to adjust the accent. */
html[data-samsung-system] .display em,
html[data-samsung-system] .title em,
html[data-samsung-system] .h-serif em,
html[data-samsung-system] .guarantee-num .kpi {
  background: none;
  color: #4338ca;
}
html[data-samsung-system] .endcard .title em {
  color: #6b8cff;
}

/* Hero background (hero-fx): dark scraps, brighter ticks, glows that add light. */
html[data-theme="dark"] .hero-top { --hfx-scrap: #2f2a1f; --hfx-ok: #6fdc9b; }
html[data-theme="dark"] .hfx-glow { opacity: 0.22; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .hero-top { --hfx-scrap: #2f2a1f; --hfx-ok: #6fdc9b; }
  html:not([data-theme]) .hfx-glow { opacity: 0.22; }
}

/* The mouse light is a touch stronger on the dark page. */
html[data-theme="dark"] { --light-c: color-mix(in srgb, #6b8cff 20%, transparent); }
@media (prefers-color-scheme: dark) { html:not([data-theme]) { --light-c: color-mix(in srgb, #6b8cff 20%, transparent); } }

/* The site background glows add light on the dark page. */
html[data-theme="dark"] .ambient-glow { opacity: 0.16; }
html[data-theme="dark"] .ambient-glow--c { opacity: 0.12; }
html[data-theme="dark"] .ambient-glow--d { opacity: 0.09; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .ambient-glow { opacity: 0.16; }
  html:not([data-theme]) .ambient-glow--c { opacity: 0.12; }
  html:not([data-theme]) .ambient-glow--d { opacity: 0.09; }
}
