/* AUTO-GENERATED by tools/gen-dark.py from: style.css, layout-split-left.css, account.css. Do not edit; re-run instead. */
/* --- style.css --- */
html[data-theme="dark"] body { background: radial-gradient(1200px 400px at 10% -10%, #1f2b35 0%, transparent 55%),
    radial-gradient(900px 320px at 100% 0%, #24352e 0%, transparent 50%),
    var(--bg); }
html[data-theme="dark"] .search-form input { background: #181e24; }
html[data-theme="dark"] .btn-secondary, html[data-theme="dark"] .pager button { background: #1f262d; color: var(--dk-heading); }
html[data-theme="dark"] .btn-secondary:hover, html[data-theme="dark"] .pager button:hover { background: #232c34; }
html[data-theme="dark"] .notice-card__title { color: var(--dk-heading); }
html[data-theme="dark"] a.notice-card:hover .notice-card__title { color: var(--dk-link); }
html[data-theme="dark"] .notice-list a:not(.notice-card), html[data-theme="dark"] #list a:not(.notice-card) { color: var(--dk-heading); }
html[data-theme="dark"] .notice-list a:not(.notice-card):hover, html[data-theme="dark"] #list a:not(.notice-card):hover { color: var(--dk-link); }
html[data-theme="dark"] .card h1 { color: var(--dk-heading); }
html[data-theme="dark"] .card h3 { color: var(--dk-heading); }
html[data-theme="dark"] .desc { color: #d5dbe4; }
html[data-theme="dark"] .lock { border: 1px dashed #43484f; background: repeating-linear-gradient(45deg, #1a1e23, #1a1e23 8px, #1f2227 8px, #1f2227 16px); }
html[data-theme="dark"] .unlock { border: 1px solid #3d5c4e; color: var(--dk-heading); background: #1a2b23; }
html[data-theme="dark"] .crumb a { color: var(--dk-heading); }
html[data-theme="dark"] #back-link { background: #1f262d; }
html[data-theme="dark"] .tier-api { border: 1px solid #404768; }
html[data-theme="dark"] #meta .tier-pro, html[data-theme="dark"] .card .tier-pro { color: #eee2c7; }
html[data-theme="dark"] #meta .tier-free, html[data-theme="dark"] .card .tier-free { background: #1f2428; color: #cfd2d7; border-color: #3e4249; }
html[data-theme="dark"] #meta .tier-starter, html[data-theme="dark"] .card .tier-starter { background: #1a272d; color: #cae0ee; border-color: #3c5461; }
html[data-theme="dark"] #meta .tier-api, html[data-theme="dark"] .card .tier-api { background: #181a2a; color: #c4c9e4; border-color: #373e5a; }
html[data-theme="dark"] .pricing-hero h1 { color: var(--dk-heading); }
html[data-theme="dark"] .payments-note, html[data-theme="dark"] .checkout-banner { background: #2c2619; border: 1px solid #564d35; color: #e7dfce; }
html[data-theme="dark"] .checkout-banner.checkout-ok { background: #1b2e24; border-color: #385a46; color: #cce9d9; }
html[data-theme="dark"] .checkout-banner.checkout-cancel { background: #1d2125; }
html[data-theme="dark"] .price-card h2 { color: var(--dk-heading); }
html[data-theme="dark"] #list a.notice-card:hover .nc-title { color: var(--dk-link); }
html[data-theme="dark"] .nc-title { color: var(--dk-heading); }
html[data-theme="dark"] .nc-buyer { color: #d3dae0; }
html[data-theme="dark"] .notice-value { color: var(--dk-heading); }
html[data-theme="dark"] .notice-closes { background: #1d232a; color: #d2d8de; border: 1px solid #363f48; }
html[data-theme="dark"] .closes-soon.notice-closes { background: #2e271b; color: #eddbc5; border-color: #5b4d38; }
html[data-theme="dark"] .closes-near.notice-closes { background: #19222b; color: #c5deed; border-color: #334553; }
html[data-theme="dark"] .closes-closed.notice-closes { background: #232323; color: #cfcfcf; border-color: #3f3f3f; }
html[data-theme="dark"] .lane-chip { background: #1e2e28; color: #caeee5; border: 1px solid #365247; }
html[data-theme="dark"] .fact { background: #182127; }
html[data-theme="dark"] .fact-v { color: var(--dk-heading); }
html[data-theme="dark"] .fact-closes.closes-soon { background: #2c2419; border-color: #5b4d38; }
html[data-theme="dark"] .fact-closes.closes-soon .fact-sub { color: #eddbc5; }
html[data-theme="dark"] .fact-closes.closes-closed .fact-v { color: #cdcdcd; }
html[data-theme="dark"] .cpv-code { background: #1d232a; border: 1px solid #363d46; color: #d3dae0; }
html[data-theme="dark"] .filters > summary { color: var(--dk-heading); }
html[data-theme="dark"] .fgroup { background: #181e24; }
html[data-theme="dark"] .fgroup legend { color: var(--dk-heading); }
html[data-theme="dark"] .fgroup label { color: #d3dae0; }
html[data-theme="dark"] .fgroup input[type="number"], html[data-theme="dark"] .fgroup input[type="date"], html[data-theme="dark"] .tree-find { background: #1c1c1c; }
html[data-theme="dark"] .seg span { background: #1c1c1c; color: #d3dae0; }
html[data-theme="dark"] .tree-row:hover { background: #1b2329; }
html[data-theme="dark"] .tree-tog { background: #1c1c1c; border: 1px solid #3b444d; color: var(--dk-heading); }
html[data-theme="dark"] .tree-tog:hover { background: #21282f; border-color: #455059; color: var(--dk-heading); }
html[data-theme="dark"] .tree-count { background: #1d232a; }
html[data-theme="dark"] .fchip { border: 1px solid #365247; background: #1e2e28; color: #caeee5; }
html[data-theme="dark"] .fchip-region { background: #1a222d; color: #c5deed; border-color: #334354; }
html[data-theme="dark"] .linkish { color: var(--dk-heading); }
html[data-theme="dark"] .linkish.strong { color: var(--dk-link); }
html[data-theme="dark"] .lanes-note { color: var(--dk-link); }
html[data-theme="dark"] .lanes-head h2 { color: var(--dk-heading); }
html[data-theme="dark"] .tree-lanes { background: #181e24; }
html[data-theme="dark"] .err { color: #e6c0c0; }
html[data-theme="dark"] .saved-searches .hint-block { color: var(--muted, #cdd2d7); }
html[data-theme="dark"] .saved-list li { border: 1px solid var(--line, #343e47); background: #181e24; }
html[data-theme="dark"] .saved-list .saved-name { color: var(--navy-deep, #cae0ee); }
html[data-theme="dark"] .saved-list .saved-meta { color: var(--muted, #cdd2d7); }
html[data-theme="dark"] .saved-searches .err { color: #eabfbc; }
html[data-theme="dark"] .alerts-note { color: #eee6c9; background: #2f2b1b; }
html[data-theme="dark"] .src-fts { background: #1a262e; color: #cae0ee; border-color: #314250; }
html[data-theme="dark"] .src-cf { background: #1f2b1c; color: #cce8d1; border-color: #384e34; }
html[data-theme="dark"] .src-below { background: #2f281b; color: #eee6c9; border-color: #524832; }
html[data-theme="dark"] .apikey-list li { border-bottom: 1px solid #393939; }
html[data-theme="dark"] .apikey-fresh { background: #2f2b1b; }
html[data-theme="dark"] .intel { border: 1px solid #353a44; background: #151b25; }
html[data-theme="dark"] .band { background: #1e2329; }
html[data-theme="dark"] .band-good, html[data-theme="dark"] .fit-high, html[data-theme="dark"] .comp-beatable { background: #1d3221; color: #c9e9d0; }
html[data-theme="dark"] .band-mixed, html[data-theme="dark"] .fit-medium, html[data-theme="dark"] .comp-mixed { background: #322c1d; color: #eee2c7; }
html[data-theme="dark"] .band-poor, html[data-theme="dark"] .fit-low, html[data-theme="dark"] .comp-entrenched, html[data-theme="dark"] .comp-crowded { background: #2f1c1b; color: #ebc3c2; }
html[data-theme="dark"] .comp-unknown, html[data-theme="dark"] .band-insufficient-data { background: #1e2329; color: #d9d9d9; }
html[data-theme="dark"] table.awards th, html[data-theme="dark"] table.awards td { border-bottom: 1px solid #333842; }
html[data-theme="dark"] .ch-card { background: #1c1c1c; }
html[data-theme="dark"] .status-active { color: #c9e9d0; }
html[data-theme="dark"] .status-dissolved, html[data-theme="dark"] .status-liquidation, html[data-theme="dark"] .status-administration { color: #ebc3c2; }
html[data-theme="dark"] .linkish { color: #b8c7e8; }
html[data-theme="dark"] .fit-form fieldset { border: 1px solid #353a44; }
html[data-theme="dark"] details.match { border-bottom: 1px solid #333842; }
html[data-theme="dark"] .cpv-division { background: #1d252d; color: #d0d6de; border-color: #39434d; }
html[data-theme="dark"] .cpv-other { background: #1e2329; color: #d6d6d6; border-color: #383d47; }
html[data-theme="dark"] .cpv-unknown { background: #20182b; color: #d3ccdd; border-color: #3c324c; }
html[data-theme="dark"] tr.row-exact { background: #1b2f21; }
html[data-theme="dark"] tr.row-group { background: #1a222d; }
html[data-theme="dark"] tr.row-division { background: #1a2128; }
html[data-theme="dark"] .cat-summary { background: #171d27; }
html[data-theme="dark"] details.buyer-wide { border: 1px dashed #3c424c; background: #1a1e23; }
html[data-theme="dark"] .apply-card { border: 1px solid #303b4f; background: #171d28; }
html[data-theme="dark"] .apply-ref code { background: #1c1c1c; border: 1px solid #383d47; }
html[data-theme="dark"] .apply-actions .btn-apply:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .apply-actions .btn-register { background: #1a212e; color: #c6d1e9; border-color: #333f54; }
html[data-theme="dark"] .apply-actions .btn-register:hover { background: #1e2734; }
html[data-theme="dark"] .apply-actions .btn-register:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .btn-inline { color: #b8c7e8; }
html[data-theme="dark"] .btn-inline:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .apply-pre { background: #1c1c1c; border: 1px solid #333842; }
html[data-theme="dark"] details.data-info > summary { color: #ced3db; }
html[data-theme="dark"] details.data-info > summary:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .account-menu { background: #1c1c1c; }
html[data-theme="dark"] .sort-label select { background: #1c1c1c; }
html[data-theme="dark"] .sort-label select:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .live-match b { color: var(--dk-heading); }
html[data-theme="dark"] .upgrade-link { border: 1px solid #334354; background: #1a222d; color: #c5deed; }
html[data-theme="dark"] .upgrade-link:hover { background: #1e2934; color: #cbe1ef; }
html[data-theme="dark"] .account-plan-row { border-bottom: 1px solid #303b45; }
html[data-theme="dark"] table.spend-payments th[aria-sort] button { color: var(--dk-heading); }
html[data-theme="dark"] table.spend-payments th[aria-sort] button:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] table.spend-payments .sort-ind { color: var(--dk-heading); }
html[data-theme="dark"] .desc-toggle { background: var(--surface, #1c1c1c); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .desc-toggle [role="tab"] { color: var(--muted); }
html[data-theme="dark"] .desc-toggle [role="tab"][aria-selected="true"] { background: #2a6f9a; color: #fff; }
html[data-theme="dark"] .desc-toggle [role="tab"]:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .notice-tabs [role="tab"] { color: var(--dk-heading); }
html[data-theme="dark"] .notice-tabs [role="tab"]:hover { background: #1a2128; }
html[data-theme="dark"] .notice-tabs [role="tab"][aria-selected="true"] { color: var(--dk-heading); }
html[data-theme="dark"] .notice-tabs [role="tab"]:focus-visible { outline: 3px solid #364158; }

html[data-theme="dark"] .official-k { color: var(--dk-heading); }
html[data-theme="dark"] .sme-fit-sub { border-top-color: var(--line); }
html[data-theme="dark"] .notice-extra { background: #1a1e23; border-color: var(--line); }
html[data-theme="dark"] .notice-extra summary { color: var(--dk-heading); }
html[data-theme="dark"] .bc-comp .band { color: inherit; }

html[data-theme="dark"] .list-tools .sort-label input[type="search"] { background: #1c1c1c; }
html[data-theme="dark"] .list-tools .sort-label input[type="search"]:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .pay-rollup { background: #182127; }
html[data-theme="dark"] .pay-rollup-totals { color: var(--dk-heading); }
html[data-theme="dark"] .pay-bar { background: #1f262d; }
html[data-theme="dark"] .market-charts > summary { color: var(--dk-heading); }
html[data-theme="dark"] .market-charts > summary span::before { color: var(--dk-link); }
html[data-theme="dark"] .chart-card { border: 1px solid #313b44; }
html[data-theme="dark"] a.hb-row:hover { background: #19242a; }
html[data-theme="dark"] .hb-track { background: #1c242b; }
html[data-theme="dark"] .hb-mine { color: #edddc5; background: #322a1d; }
html[data-theme="dark"] .c-teal { fill: var(--dk-link); }
html[data-theme="dark"] .c-navy { fill: var(--dk-heading); }
html[data-theme="dark"] .pill-link { background: #1d2a23; color: var(--dk-link-hover); border: 1px solid #334c41; }
html[data-theme="dark"] .pill-link:hover { background: #203229; }
html[data-theme="dark"] .map-region { stroke: #333333; }
html[data-theme="dark"] .map-legend li a { background: #1c2722; }
html[data-theme="dark"] .map-legend li a:hover { background: #20302a; }
html[data-theme="dark"] .lanes-card { background: linear-gradient(135deg, #292317, #1c1c1c 60%); border-color: #514732; }
html[data-theme="dark"] .lane-kpis div, html[data-theme="dark"] .bc-kpis div { background: #182127; }
html[data-theme="dark"] .lane-kpis b, html[data-theme="dark"] .bc-kpis b { color: var(--dk-heading); }
html[data-theme="dark"] .buyer-charts { background: linear-gradient(180deg, #172228, #1c1c1c); border: 1px solid #313b44; }
html[data-theme="dark"] .bc-toggle { background: var(--surface, #1c1c1c); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] .bc-toggle [role="tab"] { color: var(--muted); }
html[data-theme="dark"] .bc-toggle [role="tab"][aria-selected="true"] { background: #2a6f9a; color: #fff; }
html[data-theme="dark"] .bc-toggle [role="tab"][aria-selected="true"] .m { color: rgba(255,255,255,.8); }
html[data-theme="dark"] .bc-toggle [role="tab"]:focus-visible { outline: 3px solid #364158; }
html[data-theme="dark"] .bc-scope-label { color: var(--dk-heading); }

html[data-theme="dark"] .filters:not([open]) > summary { background: #182127; }
html[data-theme="dark"] .filters:not([open]) > summary:hover { background: #1d2a23; }
html[data-theme="dark"] .ch-verified { background: #1d2f27; color: #c8eee3; border: 1px solid #335345; }
html[data-theme="dark"] .ch-possible { background: #1d2125; color: #cdd2d7; border: 1px dashed #3b434b; }
html[data-theme="dark"] .map-legend li.is-selected a { background: #322b1d; }
html[data-theme="dark"] .hbars li.is-selected .hb-row { background: #2e271b; }
html[data-theme="dark"] .comp-cue { color: #edddc5; background: #2f281b; }
html[data-theme="dark"] .comp-low { background: #1d3221; color: #c9e9d0; }
html[data-theme="dark"] .comp-moderate { background: #322c1d; color: #eee2c7; }
html[data-theme="dark"] .comp-tough { background: #2f1c1b; color: #ebc3c2; }
html[data-theme="dark"] .comp-none { background: #1e2329; color: #d9d9d9; }
html[data-theme="dark"] .comp-say { color: var(--dk-heading); }
html[data-theme="dark"] .buyer-typical { border-top-color: var(--dk-line, #2a3238); }
html[data-theme="dark"] .buyer-typical-k { color: var(--dk-muted, #9aa8b3); }
html[data-theme="dark"] .buyer-typical-say { color: var(--dk-heading); }
html[data-theme="dark"] .bt-bars::before { background: var(--dk-line, #2a3238); }
html[data-theme="dark"] .bt-col.is-iqr { background: rgba(111, 208, 138, 0.12); }
html[data-theme="dark"] .bt-bar { background: #4a6a85; }
html[data-theme="dark"] .bt-col.is-iqr .bt-bar { background: #8fb4cc; }
html[data-theme="dark"] .bt-tick { color: var(--dk-muted, #9aa8b3); }
html[data-theme="dark"] .bt-ref-mark { background: #f2b84b; box-shadow: 0 0 0 1px var(--surface, #1b2126); }
html[data-theme="dark"] .bt-ref-mark::before { border-top-color: #f2b84b; }
html[data-theme="dark"] .bt-leg-iqr::before { background: #8fb4cc; box-shadow: 0 0 0 3px rgba(111, 208, 138, 0.12); }
html[data-theme="dark"] .bt-leg-ref::before { background: #f2b84b; box-shadow: 0 0 0 1px var(--surface, #1b2126); }
html[data-theme="dark"] .cs-track { background: #20272d; }
html[data-theme="dark"] .pill-link.is-selected { background: #322b1d; }
/* --- layout-split-left.css --- */
@media (max-width: 1199.98px) {
  html[data-theme="dark"] .split-tabs { background: rgba(28,28,28,0.94); }
}
/* --- account.css --- */
html[data-theme="dark"] .account-head h1 { color: var(--dk-heading); }
html[data-theme="dark"] .acct-tabs { background: #1c1c1c; }
html[data-theme="dark"] .acct-card h2, html[data-theme="dark"] .acct-api-docs h2 { color: var(--dk-heading); }
html[data-theme="dark"] .acct-endpoints code, html[data-theme="dark"] .acct-api-docs code { background: #1b2329; }
html[data-theme="dark"] .acct-plan-rows div { background: #181e24; }
html[data-theme="dark"] .acct-saved-list li { background: #1c1c1c; }
html[data-theme="dark"] .btn-alert { border: 1px solid #3d5c4e; background: #1b2e25; color: #c8eee3; }
html[data-theme="dark"] .btn-alert:hover { background: #20362c; }
html[data-theme="dark"] .alert-me-msg { background: #1b2e25; border: 1px solid #335345; color: #d2e9df; }
html[data-theme="dark"] .alert-me-msg.is-err { background: #281a17; border-color: #513631; color: #ebc3c2; }
html[data-theme="dark"] .saved-manage { color: var(--dk-link); }
html[data-theme="dark"] .footer-links a { color: var(--dk-heading); }
html[data-theme="dark"] .account-menu .account-menu-link { color: var(--dk-heading); }
/* UK Tenders dark mode (html[data-theme="dark"]). Hand-written base, followed by an auto-generated section.
 * Rebuild: python3 tools/gen-dark.py site/style.css site/layout-split-left.css site/account.css > /tmp/auto.css
 *          cat /tmp/auto.css tools/dark-base.css > site/dark.css   (auto first, hand-written base last so it wins)
 * Contrast (WCAG AA): body text #e4ebf2 and muted #a6b4c2 on surface #152331 / bg #0c1620 are ≥7:1; links #5fd3ad ≥ 8:1. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4ebf2;
  --muted: #a6b4c2;
  --line: #2b3a49;
  --surface: #152331;
  --bg: #0c1620;
  --bg-accent: #112130;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
  --dk-heading: #dbe7f2;
  /* Headings and other text that use --navy-deep (#072c43) are near-invisible on
     dark surfaces. Remap the token once so every page stays readable. Backgrounds
     that should stay navy are pinned to the original hex below. */
  --navy-deep: var(--dk-heading);
  --dk-link: #5fd3ad;
  --dk-link-hover: #8be3c6;
  --dk-sky: #7cbcf0;
}
/* Keep chrome that uses --navy-deep as a background on the original navy. */
html[data-theme="dark"] .site-header {
  background: linear-gradient(135deg, #072c43 0%, #0b3d5c 55%, #134a68 100%);
}
@media (max-width: 720px) {
  html[data-theme="dark"] .header-nav { background: #072c43; }
}
html[data-theme="dark"] .market-hero {
  background:
    radial-gradient(600px 220px at 85% -20%, rgba(46, 196, 152, 0.35), transparent 60%),
    radial-gradient(500px 240px at -10% 120%, rgba(47, 127, 193, 0.45), transparent 60%),
    linear-gradient(135deg, #072c43, #0b3d5c 60%, #11587a);
}
html[data-theme="dark"] body { color: var(--ink); background-color: var(--bg); }
/* plain (class-less) links in content only; header/brand/buttons keep their own colours */
html[data-theme="dark"] :where(main, footer, .account-menu, .card, .panel) a:where(:not([class])) { color: var(--dk-link); }
html[data-theme="dark"] :where(main, footer, .account-menu, .card, .panel) a:where(:not([class])):hover { color: var(--dk-link-hover); }
html[data-theme="dark"] .m, html[data-theme="dark"] .hint, html[data-theme="dark"] .hint-block, html[data-theme="dark"] .small { color: var(--muted); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: var(--dk-heading); }

/* surfaces */
html[data-theme="dark"] .panel, html[data-theme="dark"] .card, html[data-theme="dark"] .chart-card,
html[data-theme="dark"] #list > li, html[data-theme="dark"] .notice-list li { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] #list > li { border-left-color: #2a8fb3; }
html[data-theme="dark"] #list > li:hover { border-left-color: var(--dk-link); }
html[data-theme="dark"] .nc-title { color: var(--dk-heading); }

/* form controls */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background: #0f1b27; color: var(--ink); border-color: #34475a;
}
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #8495a6; }
html[data-theme="dark"] input:focus-visible, html[data-theme="dark"] select:focus-visible { outline-color: var(--dk-link); }
html[data-theme="dark"] .fgroup, html[data-theme="dark"] .tree, html[data-theme="dark"] fieldset { border-color: var(--line); background: transparent; }
html[data-theme="dark"] legend { color: var(--dk-heading); }
html[data-theme="dark"] .filters:not([open]) > summary { background: #1a2b3b; border-color: #34475a; color: var(--ink); }
html[data-theme="dark"] .filters:not([open]) > summary:hover { background: #1e3344; border-color: var(--dk-link); }
html[data-theme="dark"] .filters-panel .filters[open] .filter-actions { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .btn-secondary { background: #1d2c3b; color: var(--ink); border-color: #34475a; }
html[data-theme="dark"] .btn-secondary:hover { background: #24384a; }
html[data-theme="dark"] .pill-link, html[data-theme="dark"] .lane-chip { background: #183327; color: #bfe9d6; border-color: #2c5a45; }

/* 2b tabs + dashboard */
html[data-theme="dark"] .split-tabs { background: rgba(21, 35, 49, 0.94); border-color: var(--line); }
html[data-theme="dark"] .split-tab { color: var(--muted); }
html[data-theme="dark"] .split-tab[aria-selected="true"] { background: #2a6f9a; color: #fff; }
html[data-theme="dark"] .market-hero { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); border: 1px solid #1f3a52; }
html[data-theme="dark"] .market-charts > summary, html[data-theme="dark"] .market-charts > summary span { color: var(--dk-heading); }
html[data-theme="dark"] .active-bar .chip, html[data-theme="dark"] .active-bar button { color: var(--ink); }

/* charts: readable axes/labels and a map that keeps contrast */
html[data-theme="dark"] .col-lbl { fill: #b3c1ce; }
html[data-theme="dark"] .col-val { fill: #e4ebf2; }
html[data-theme="dark"] .hb-track { background: #22344a; }
html[data-theme="dark"] .hb-label, html[data-theme="dark"] .hb-val { color: var(--ink); }
html[data-theme="dark"] .hb-val small { color: var(--muted); }
html[data-theme="dark"] .c-navy { fill: #5a9ccc; background: #5a9ccc; }
html[data-theme="dark"] .sw.c-navy { background: #5a9ccc; }
html[data-theme="dark"] .hbars-navy .hb-fill { background: linear-gradient(90deg, #3d79a6, #6fb0de); }
html[data-theme="dark"] .map-region { stroke: var(--surface); }
html[data-theme="dark"] .map-region[fill="#e9eef3"] { fill: #2a3c4f; }
html[data-theme="dark"] .uk-map a:focus-visible .map-region { stroke: var(--dk-link); }
html[data-theme="dark"] .map-legend li, html[data-theme="dark"] .map-legend a { background: #1a2b3b; color: var(--ink); }
html[data-theme="dark"] .map-legend li.is-selected, html[data-theme="dark"] .map-legend li.is-selected a { background: #4a3816; color: #ffe2a8; }
html[data-theme="dark"] .lane-next a, html[data-theme="dark"] .lane-next li a { background: #182838; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .chart-foot { color: var(--muted); border-top-color: var(--line); }
html[data-theme="dark"] .bc-kpis > div, html[data-theme="dark"] .lane-kpis > div { background: #1a2b3b; border-color: var(--line); }

/* account page, pricing, footer */
html[data-theme="dark"] .acct-tabs { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .acct-tabs [role="tab"] { color: var(--muted); }
html[data-theme="dark"] .acct-tabs [role="tab"][aria-selected="true"] { background: #2a6f9a; color: #fff; }
html[data-theme="dark"] .acct-plan-rows div, html[data-theme="dark"] .saved-list li, html[data-theme="dark"] .acct-saved-list li { background: #182838; border-color: var(--line); }
html[data-theme="dark"] .acct-endpoints code, html[data-theme="dark"] .acct-api-docs code, html[data-theme="dark"] code { background: #0f1b27; color: #cfe3f1; }
html[data-theme="dark"] .btn-alert { background: #183327; color: #a9ecd2; border-color: #2c6b52; }
html[data-theme="dark"] .btn-alert:hover { background: #1d3f30; }
html[data-theme="dark"] .alert-me-msg { background: #183327; border-color: #2c6b52; color: #d3f1e4; }
html[data-theme="dark"] .alert-me-msg.is-err { background: #3a1c1a; border-color: #6e302a; color: #f6cdc7; }
html[data-theme="dark"] .price-card { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .site-footer { color: var(--muted); }
html[data-theme="dark"] .footer-links a { color: var(--dk-link); }
html[data-theme="dark"] .err { color: #ff9b8f; }
html[data-theme="dark"] .account-menu { background: var(--surface); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .account-menu .account-menu-link { color: var(--dk-link); }

/* header theme toggle (works in both themes) */
.theme-toggle .ico-moon { display: inline; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: inline; }

/* Clerk sign-in modal: dark card if Clerk's own theming isn't set */
html[data-theme="dark"] .cl-card, html[data-theme="dark"] .cl-cardBox { background: #152331; color: #e4ebf2; }
html[data-theme="dark"] .cl-headerTitle, html[data-theme="dark"] .cl-formFieldLabel { color: #e4ebf2; }
html[data-theme="dark"] .cl-headerSubtitle, html[data-theme="dark"] .cl-footerActionText, html[data-theme="dark"] .cl-dividerText { color: #a6b4c2; }
html[data-theme="dark"] .cl-formFieldInput { background: #0f1b27; color: #e4ebf2; border-color: #34475a; }
html[data-theme="dark"] .cl-socialButtonsBlockButton { background: #1d2c3b; color: #e4ebf2; border-color: #34475a; }
html[data-theme="dark"] .cl-footer { background: #101c28; }


/* ---- badge batch (comp-badge.js strip, chart selection rings) ---- */
html[data-theme="dark"] .cs-track { background: #26384a; }
html[data-theme="dark"] .cs-band { background: #4a6a85; }
html[data-theme="dark"] .cs-mark { background: #e4ebf2; box-shadow: 0 0 0 2px var(--surface); }
html[data-theme="dark"] .fact-comp[data-level="tough"] .cs-mark { background: #ff8a80; }
html[data-theme="dark"] .fact-comp[data-level="moderate"] .cs-mark { background: #f2b84b; }
html[data-theme="dark"] .fact-comp[data-level="low"] .cs-mark { background: #6fd08a; }
html[data-theme="dark"] .comp-pill { border: 1px solid rgba(255,255,255,.12); }
html[data-theme="dark"] .map-legend li.is-selected a,
html[data-theme="dark"] .hbars li.is-selected .hb-row,
html[data-theme="dark"] .pill-link.is-selected { background: #3a2f17; color: #ffe2a8; outline: 2px solid #f2b84b; }
html[data-theme="dark"] .cols-pick .col-pick.is-selected .col-hit { fill: rgba(242,184,75,.22); stroke: #f2b84b; }
html[data-theme="dark"] .map-region.is-selected { stroke: #f2b84b; }
html[data-theme="dark"] a.stat.is-selected { outline-color: #ffd27a; background: rgba(255,210,122,.16); }
html[data-theme="dark"] .comp-more, html[data-theme="dark"] .comp-more:visited, html[data-theme="dark"] .fact a:where(:not([class])):visited { color: var(--dk-link); }

html[data-theme="dark"] .demo-box { background: #2a2410; border-color: #a8871f; }
html[data-theme="dark"] .demo-box::after { color: rgba(255, 214, 102, .1); }
html[data-theme="dark"] .demo-tag { background: #d4a72c; color: #1b1500; }
html[data-theme="dark"] .locked-val { color: #e3c25a; }
html[data-theme="dark"] .ch-tick { background: #13342a; color: #8fe0c0; }

/* header-clean-v3 (dark) */
@media (min-width: 721px) {
  html[data-theme="dark"] .site-header .account-menu { background: transparent !important; border: 0 !important; }
}
/* pricing-wide-v2 (dark): brighter teal tick */
html[data-theme="dark"] .pricing-page .price-features li::before { background-color: #2bb48c; }

html[data-theme="dark"] .preview-banner { background: #322c1d; color: #eee2c7; border-bottom-color: #a8871f; }
