/* DARK MODE: the classic design (same layout, shapes, fonts, accents) on a dark palette. */
html[data-theme="dark"] {
  --blue:#8fb2ff; --blue2:#4f86ff; --sky:#16213f; --sky2:#2a3a6b; --mint:#10281c; --mintd:#3fd08a;
  --ink:#e8edff; --mut:#9aa8cf; --line:#27325a; --bg:#0b1020; --card:#141b30; --ok:#3fd08a; --acc:#7aa2ff; --warn:#ffb454; --bad:#ff6b7a;
  --shadow:0 10px 30px -12px rgba(0,0,0,.7); --shadow2:0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme:dark; background:#0b1020;
}
html[data-theme="dark"] body { background:var(--bg); color:var(--ink); }
html[data-theme="dark"] ::selection { background:#2f6bff; color:#fff; }
html[data-theme="dark"] a { color:#8fb2ff; }

/* surfaces */
html[data-theme="dark"] .btn, html[data-theme="dark"] .float, html[data-theme="dark"] .step, html[data-theme="dark"] .ex, html[data-theme="dark"] .plan,
html[data-theme="dark"] .signup, html[data-theme="dark"] .kpi, html[data-theme="dark"] .card, html[data-theme="dark"] .cookie, html[data-theme="dark"] .pill,
html[data-theme="dark"] td, html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea, html[data-theme="dark"] .chip { background:var(--card); }
html[data-theme="dark"] td:last-child { background:linear-gradient(135deg,var(--card) 0%,#18244a 100%); }
html[data-theme="dark"] .chip:nth-child(3n) { background:#2a2410; border-color:#6b5a1a; color:#ffd54a; } html[data-theme="dark"] .chip:nth-child(3n+1) { background:var(--sky); }
html[data-theme="dark"] .nav { background:rgba(11,16,32,.85); } html[data-theme="dark"] .apphead { background:rgba(11,16,32,.9); }
html[data-theme="dark"] .priceband { background:linear-gradient(180deg,var(--sky) 0%,var(--bg) 100%); }
html[data-theme="dark"] .paywall { background:linear-gradient(180deg,var(--card),#142046); }
html[data-theme="dark"] .setrow { background:var(--sky); border-color:var(--sky2); } html[data-theme="dark"] .preview { background:#16213f; color:var(--ink); } html[data-theme="dark"] .preview b { color:#8fb2ff; }
html[data-theme="dark"] .preview.warn { background:#3a1418; color:#ff9aa5; }
html[data-theme="dark"] .cookie p { color:var(--ink); }
html[data-theme="dark"] .strip, html[data-theme="dark"] footer.site { background:#12234f; color:#dfe8ff; }
html[data-theme="dark"] .strip b { color:#ffcc00; }
html[data-theme="dark"] .logo .mark { background:#2f6bff; } html[data-theme="dark"] .core { background:radial-gradient(circle at 30% 25%,#4f86ff,#1d4fd8); }
html[data-theme="dark"] .blob { opacity:.16; }
html[data-theme="dark"] .step .n { color:#2a3a6b; }
html[data-theme="dark"] .step:nth-child(1) .num { background:#16213f; } html[data-theme="dark"] .step:nth-child(2) .num { background:#2a2410; } html[data-theme="dark"] .step:nth-child(3) .num { background:#10281c; }
html[data-theme="dark"] .plan .badge { color:#2a2100; }
html[data-theme="dark"] .soon { background:#2a2410; color:#ffd54a; }
html[data-theme="dark"] tr.grp td { background:#16213f !important; color:#8fb2ff; }
html[data-theme="dark"] .scorering .bg { stroke:#27325a; }
html[data-theme="dark"] .bar { background:#16213f; }

/* buttons */
html[data-theme="dark"] .btn { color:#9ec0ff; border-color:#2a3a6b; }
html[data-theme="dark"] .btn:hover { background:#1b2a55; }
html[data-theme="dark"] .btn.primary { background:linear-gradient(135deg,#2a5be0 0%,#4f86ff 100%); color:#fff; border-color:transparent; }
html[data-theme="dark"] .btn.primary:hover { background:linear-gradient(135deg,#2a5be0 0%,#4f86ff 100%); box-shadow:0 14px 30px -10px rgba(79,134,255,.8); }
html[data-theme="dark"] .btn.gold { background:#ffcc00; color:#2a2100; } html[data-theme="dark"] .btn.gold:hover { background:#ffd62e; }
html[data-theme="dark"] .apphead .btn.primary { color:#fff; }

/* inputs */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color:var(--ink); border-color:var(--line); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color:#6f7ca3; }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus { border-color:#4f86ff; box-shadow:0 0 0 4px rgba(79,134,255,.25); }
html[data-theme="dark"] option { background:#141b30; color:var(--ink); }

/* tabs */
html[data-theme="dark"] nav.tabs button { background:var(--card); color:var(--mut); border-color:var(--line); }
html[data-theme="dark"] nav.tabs button[data-tab=table] { color:#9ec0ff; border-color:#2a4a99; background:#14224a; }
html[data-theme="dark"] nav.tabs button[data-tab=table].on { background:#2f6bff; border-color:#2f6bff; color:#fff; }
html[data-theme="dark"] nav.tabs button[data-tab=favorites] { color:#ffd54a; border-color:#6b5a1a; background:#2a2410; }
html[data-theme="dark"] nav.tabs button[data-tab=favorites].on { background:#ffcc00; border-color:#ffcc00; color:#2a2100; }
html[data-theme="dark"] nav.tabs button[data-tab=profile] { color:#52e0a0; border-color:#1c6b47; background:#0f2a1e; }
html[data-theme="dark"] nav.tabs button[data-tab=profile].on { background:#14935a; border-color:#14935a; color:#fff; }
html[data-theme="dark"] nav.tabs button[data-tab=admin], html[data-theme="dark"] nav.tabs button[data-tab=allprog] { color:#c4b5fd; border-color:#4b3f8f; background:#1a1538; }
html[data-theme="dark"] nav.tabs button[data-tab=admin].on, html[data-theme="dark"] nav.tabs button[data-tab=allprog].on { background:#6d5bd0; border-color:#6d5bd0; color:#fff; }
html[data-theme="dark"] main[data-tab=table] { background:#0e1630; } html[data-theme="dark"] main[data-tab=favorites] { background:#161307; }
html[data-theme="dark"] main[data-tab=profile] { background:#0a1a13; } html[data-theme="dark"] main[data-tab=admin], html[data-theme="dark"] main[data-tab=allprog] { background:#130f24; }

/* tags, pills, notices */
html[data-theme="dark"] .tag { border-color:var(--line); color:var(--mut); }
html[data-theme="dark"] .tag.possible_fit { color:#9ec0ff; border-color:#2a4a99; background:#14224a; } html[data-theme="dark"] .tag.strong_fit { color:#52e0a0; border-color:#1c6b47; background:#0f2a1e; }
html[data-theme="dark"] .tag.stretch { color:#ffb454; border-color:#6b4a12; background:#2a1d08; } html[data-theme="dark"] .tag.not_eligible { color:#ff8f9b; border-color:#7a2a35; background:#2e1217; }
html[data-theme="dark"] .tag2 { background:#14224a; color:#9ec0ff; }
html[data-theme="dark"] .tg.red { background:#3a1418; color:#ff9aa5; border-color:#7a2a35; } html[data-theme="dark"] .tg.amber { background:#2a1d08; color:#ffc26b; border-color:#6b4a12; }
html[data-theme="dark"] .tg.green { background:#0f2a1e; color:#52e0a0; border-color:#1c6b47; } html[data-theme="dark"] .tg.blue { background:#14224a; color:#9ec0ff; border-color:#2a4a99; }
html[data-theme="dark"] .tg.gold { background:#2a2410; color:#ffd54a; border-color:#6b5a1a; } html[data-theme="dark"] .tg.grey { background:#1a2240; color:#9aa8cf; border-color:#2a3558; }
html[data-theme="dark"] .banner { background:#2a2410; border-color:#6b5a1a; color:#ffe58a; }
html[data-theme="dark"] .banner.ok { background:#0f2a1e; border-color:#1c6b47; color:#52e0a0; } html[data-theme="dark"] .banner.test { background:#14224a; border-color:#2a4a99; color:#9ec0ff; }
html[data-theme="dark"] .banner.alert { background:#d92d20; border-color:#b42318; color:#fff; }
html[data-theme="dark"] .banner.alert .btn { background:#fff; color:#b42318; }
html[data-theme="dark"] .favcount { background:#ffcc00; color:#2a2100; }
html[data-theme="dark"] .ok { color:#52e0a0; } html[data-theme="dark"] .bad { color:#ff8f9b; }
html[data-theme="dark"] .checks li::before { background:#10281c; color:#3fd08a; } html[data-theme="dark"] .checks li.no::before { color:#ff8f9b; }
html[data-theme="dark"] .trust span::before { color:#3fd08a; }
html[data-theme="dark"] #msg { color:#ffb454; }
html[data-theme="dark"] tbody tr:hover td { border-color:#2a4a99; box-shadow:0 8px 24px -14px rgba(79,134,255,.5); }
html[data-theme="dark"] details summary { color:#8fb2ff; }
html[data-theme="dark"] .hero h1 em { background:linear-gradient(transparent 62%,rgba(255,204,0,.55) 62%,rgba(255,204,0,.55) 92%,transparent 92%); }
html[data-theme="dark"] .legal-links, html[data-theme="dark"] .legal-links a, html[data-theme="dark"] .legal-links button { color:var(--mut); }
/* legal pages */
html[data-theme="dark"] .bar { background:rgba(11,16,32,.9); border-bottom-color:var(--line); }
html[data-theme="dark"] .bar a.logo { color:#9ec0ff; } html[data-theme="dark"] .bar .mark { background:#2f6bff; }
html[data-theme="dark"] main h1, html[data-theme="dark"] main h2 { color:var(--ink); }

html[data-theme="dark"] .ldr { background:radial-gradient(circle at 50% 38%, rgba(20,27,48,.97), rgba(11,16,32,.96)); }
html[data-theme="dark"] .ldr-bar { background:rgba(158,192,255,.18); }
html[data-theme="dark"] .think { background:linear-gradient(135deg,#141b30,#1f2540); border-color:#2c3a66; }
html[data-theme="dark"] .tmsg { color:#9ec0ff; }
html[data-theme="dark"] .rescore { background:#3a3115; color:#ffd966; }
html[data-theme="dark"] .tag.el-likely { background:#12372a; color:#7ee2b0; }
html[data-theme="dark"] .tag.el-uncertain { background:#3a3115; color:#ffd966; }
html[data-theme="dark"] .tag.el-unlikely { background:#47202a; color:#ff9aa8; }
