/* v11.1037.17 — dark-mode gaps found by a white-surface audit (every page opened in dark mode, every element ≥ 220 × 26 px with a near-white background listed): these pages never had a dark
   rule, so their tables / cards stayed WHITE with light text. One place, one rule per surface — a new page adds its own `body.dark-mode …` in its template as usual (checklist 21). */
/* Action register */
body.dark-mode .items-table-container { background: #0f172a; box-shadow: none; border: 1px solid #1e293b; }
body.dark-mode .items-table thead th { background: #111827; color: #94a3b8; border-color: #1e293b; }
body.dark-mode .items-table td, body.dark-mode .items-table td.ie-cell { color: #e2e8f0; border-color: #1e293b; background: transparent; } body.dark-mode .ie-cell:hover .ie-display { background: #1e293b; }
/* Decision register */
body.dark-mode .dr-table thead th { background: #111827; color: #94a3b8; border-color: #1e293b; }
body.dark-mode #drContainer div[style*="background:#f8fafc"], body.dark-mode #drContainer div[style*="background: #f8fafc"], body.dark-mode #drContainer div[style*="background:#fafafa"] { background: #111827 !important; color: #94a3b8 !important; border-color: #1e293b !important; }
/* Notebooks */
body.dark-mode .nb-list { background: #0f172a; border-color: #1e293b; } body.dark-mode .nb-row { border-bottom-color: #1e293b; } body.dark-mode .nb-row:hover { background: #111827; }
body.dark-mode .nb-row .nb-name { color: #e2e8f0; } body.dark-mode .nb-row .nb-sub { color: #94a3b8; } body.dark-mode .nb-row .nb-ic { background: #1e1b4b; color: var(--g-acc-l, #a5b4fc); }
/* Master data */
body.dark-mode .md-filterbar, body.dark-mode .md-card { background: #0f172a; border-color: #1e293b; box-shadow: none; --md-text: #e2e8f0; --md-border: #1e293b; color: #e2e8f0; }
body.dark-mode .md-filterbar input[type="search"], body.dark-mode .md-filterbar select { background: #111827; color: #e2e8f0; border-color: #334155; }
/* Landscapes */
body.dark-mode .landscape-card { background: #0f172a; border-color: #1e293b; } body.dark-mode .landscape-card-title { color: #e2e8f0; } body.dark-mode .landscape-card-desc { color: #94a3b8; }
body.dark-mode .landscape-card-stats { border-top-color: #1e293b; color: #94a3b8; } body.dark-mode .landscape-empty { background: #0f172a; border-color: #334155; color: #94a3b8; }
/* Forum meetings */
body.dark-mode .mtg-card { background: #0f172a; border-color: #1e293b; } body.dark-mode .mtg-card a.mtg-title { color: #e2e8f0; } body.dark-mode .mtg-card a.mtg-title:hover { color: #93c5fd; } body.dark-mode .mtg-date { color: #94a3b8; }
/* Roadmap toolbar selects */
body.dark-mode .rm-select { background-color: #111827; color: #e2e8f0; border-color: #334155; }
body.dark-mode .md-stats { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }

/* ── v11.1037.23 — found by crawling every simple GET page of a demo in dark mode (scripts/audit_dark_surfaces.js: white surfaces + unreadable text) ── */
/* Map + Expertise map */
body.dark-mode .map-mode-switch, body.dark-mode .kpi-sidebar, body.dark-mode .kpi-list, body.dark-mode .skeleton-item, body.dark-mode .details-panel { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }
body.dark-mode .map-container { background: #0b1220; border-color: #1e293b; }
body.dark-mode .detail-action-btn.secondary { background: #1e293b; border-color: #334155; color: #e2e8f0; }
body.dark-mode .details-panel :is(h3, .details-kpi-name, .detail-section-title) { color: #f1f5f9; } body.dark-mode .kpi-sidebar :is(h3, span, small) { color: #cbd5e1; }
/* Docs pages (annotation / auto-arrange / capability / governance / impact) */
body.dark-mode .idoc h1, body.dark-mode .idoc h2, body.dark-mode .idoc h3 { color: #f1f5f9; } body.dark-mode .idoc p, body.dark-mode .idoc li { color: #cbd5e1; }
body.dark-mode .toc, body.dark-mode .doc-toc, body.dark-mode .method-card { background: #0f172a; border-color: #1e293b; color: #e2e8f0; } body.dark-mode .method-card .formula { background: #111827; color: #e2e8f0; border-color: #334155; }
body.dark-mode .toc a, body.dark-mode .doc-toc a { color: var(--g-acc-l, #a5b4fc); }
/* Cards of the admin / dashboard pages */
body.dark-mode :is(.tag-card, .onboarding-card, .dim-card, .id-ring-card, .cat-card, .cap-switch, .cp-hint, .rd-add-bar, .eh-filter, .eh-topic-card, .cs-empty, .cs-module, .pulse-cov-card, .ev-bus-card, .ev-eol-card, .si-drop) { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }
body.dark-mode :is(.tag-card, .onboarding-card, .dim-card, .id-ring-card, .cat-card, .eh-topic-card, .cs-module) :is(h1, h2, h3, h4, h5, strong, .id-cov-title, .id-method-name) { color: #f1f5f9; }
body.dark-mode :is(.onboarding-card, .dim-card, .cat-card, .id-ring-card) :is(p, small, .text-muted, span) { color: #94a3b8; } body.dark-mode .dim-card-order { background: #1e293b; color: #cbd5e1; }
body.dark-mode .rd-add-bar :is(label, span) { color: #cbd5e1; } body.dark-mode .eh-filter :is(label, span) { color: #cbd5e1; }
body.dark-mode .dim-card-name, body.dark-mode .id-ring-val, body.dark-mode .id-cov-title, body.dark-mode .eh-topic-title { color: #f1f5f9; } body.dark-mode .dim-card-desc, body.dark-mode .id-ring-card span, body.dark-mode .id-ring-card div { color: #94a3b8; }
body.dark-mode .id-ring-card .id-ring-val, body.dark-mode .id-ring-card .id-cov-title { color: #f1f5f9; }
body.dark-mode .eh-topic-card span, body.dark-mode .eh-filter span, body.dark-mode .eh-filter label { color: #cbd5e1; }
body.dark-mode .map-mode-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; } body.dark-mode .map-mode-btn.active, body.dark-mode .map-mode-btn.on { background: var(--g-acc-d, #4f46e5); color: #fff; }
body.dark-mode .cap-switch a { color: #cbd5e1; } body.dark-mode .cap-switch strong { color: #f1f5f9; }
body.dark-mode .rd-table th, body.dark-mode .rd-add-bar + * th { color: #94a3b8; } body.dark-mode .rd-chk, body.dark-mode .rd-add-bar span { color: #cbd5e1; }
body.dark-mode .eh-page-card { background: #0f172a; border-color: #1e293b; } body.dark-mode .eh-page-name { color: #f1f5f9; } body.dark-mode .eh-page-desc, body.dark-mode .eh-page-foot { color: #94a3b8; }


/* v11.1037.24 — second crawl of the demo's pages (white cards / dark-on-dark texts found by scripts/audit_dark_surfaces.js, DETAIL=1) */
body.dark-mode :is(.of-card, .st-card, .st-tabs, .fl-side-card, .fl-diagram-wrap, .mdi-step, .vc-card, .vc-untagged, .vc-col-body, .mf-form, .sv-toolbar, .sv-view-toggle, .sv-h-space, .vd-hero-card, .vd-card, .id-cov-card, .tf-addbar, .tf-panel, .tf-heat-panel, .form-container, .initiative-tabs, .if-card, .tf-heat-modes) { background: #0f172a; border-color: #1e293b; color: #e2e8f0; }
body.dark-mode :is(.of-label, .of-hint, .fl-legend-l, .st-count-l, .vc-section-l, .vc-empty, .mf-hint, .mdi-file-sep, .vd-ring-label, .vd-card-total, .vd-legend, .tf-fs-lbl, .id-cov-nums span, .sv-toolbar label) { color: #94a3b8; }
body.dark-mode :is(.st-unst-card .nm, .mdi-info a, .tf-link-name, .tf-heat-modes button) { color: #cbd5e1; } body.dark-mode .tf-heat-modes button.is-on { background: var(--g-acc-d, #4f46e5); color: #fff; } body.dark-mode .mdi-info { background: #172554; color: #cbd5e1; border-color: #1e3a8a; } body.dark-mode .mdi-info a { color: #93c5fd; }
body.dark-mode :is(.of-input, .of-select, .of-textarea, .mdi-textarea) { background: #0b1220; border-color: #334155; color: #e2e8f0; }
body.dark-mode :is(.kh-tbl, .rd-tbl) th { color: #94a3b8; } body.dark-mode :is(.kh-name, .kh-name-edit, .cd-name a, .kd-name a, .sd-name a, .cd-name, .kd-name, .sd-name) { color: #cbd5e1; } body.dark-mode :is(.cd-name a, .kd-name a, .sd-name a):hover { color: #fff; }
body.dark-mode .tf-table a { color: var(--g-acc-l, #a5b4fc); } body.dark-mode .ds-new, body.dark-mode .ds-link { color: var(--g-acc-l, #a5b4fc); }
body.dark-mode .harm-need-labels strong, body.dark-mode .tf-heat-legend, body.dark-mode .id-d1 { color: #cbd5e1; } body.dark-mode .tf-heat-legend { background: #0f172a; }
body.dark-mode .ir-fig .v-filt, body.dark-mode .ir-match-count strong { color: #f1f5f9; } body.dark-mode .ir-pill { color: #cbd5e1; }
body.dark-mode .kpi-table td.content-cell, body.dark-mode .kpi-table td { color: #e2e8f0; } body.dark-mode .kpi-table .btn-outline-primary { color: var(--g-acc-l, #a5b4fc); border-color: var(--g-acc-d, #4f46e5); background: transparent; }
body.dark-mode .id-cov-title { color: #67e8f9; } body.dark-mode .vd-ring-pct { color: #4ade80; } body.dark-mode .cp-hint.green, body.dark-mode .cp-hint.ok { background: #052e16; border-color: #166534; color: #86efac; }
body.dark-mode .doc-note, body.dark-mode .doc-warn { color: #e2e8f0; } body.dark-mode .doc-note { background: #172554; border-color: #1e3a8a; } body.dark-mode .doc-warn { background: #2a1f07; border-color: #78350f; } body.dark-mode .doc-toc h3, body.dark-mode .toc h3 { color: #94a3b8; } body.dark-mode .idoc code, body.dark-mode .cap-docs code { background: #1e293b; color: #e2e8f0; }
body.dark-mode .tag-card .tag-preview { background: #3b2a05; color: #fdba74; } body.dark-mode .eh-applies-to span { color: #cbd5e1; background: #1e293b; } body.dark-mode .eh-applies-to { background: #1e293b; }
body.dark-mode .cp-hint[style*="f0fdf4"] { background: #052e16 !important; border-color: #166534 !important; color: #86efac !important; }
/* a page that writes its dark ink inline (style="color:#1e293b") on a surface this file just darkened: slate inks without their own inline background turn light in dark mode */
body.dark-mode :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color:#0f172a"]:not([style*="background"]), body.dark-mode :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color: #0f172a"]:not([style*="background"]),
body.dark-mode :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color:#1e293b"]:not([style*="background"]), body.dark-mode :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color:#334155"]:not([style*="background"]),
body.dark-mode :is(div, span, td, th, a, b, strong, label)[style*="color: #1e293b"]:not([style*="background"]), body.dark-mode :is(div, span, td, th, a, b, strong, label)[style*="color: #334155"]:not([style*="background"]) { color: #e2e8f0 !important; }
body.dark-mode :is(.row1, .info, .st-cov-row, .st-name, .vc-card-h, .vc-card-h *, .tf-heat-legend, .tf-heat-legend b, .id-d1 > div, .sv-h-challenge-h, .id-method-name, .st-unst-card .go) { color: #e2e8f0; }
body.dark-mode :is(.st-role-pill, .st-obj .mod, .st-obj .dom, .vc-value, .tf-heat-legend > *, .sv-h-challenge-h > span, .rd-builtin-chip) { background: #1e293b; color: #cbd5e1; }
body.dark-mode .vc-card-h { background: #1e293b; } body.dark-mode .st-unst-card > :not(.nm) { color: #fca5a5; } body.dark-mode .rd-tbl td span[style*="15803d"] { color: #4ade80 !important; }
body.dark-mode .eh-topic-head, body.dark-mode .eh-topic-head * { color: #e2e8f0; } body.dark-mode .eh-topic-head { background: #0f172a; } body.dark-mode .eh-topic-icon { color: #fff; } body.dark-mode .mdi-file-row, body.dark-mode .mdi-file-row * { color: #cbd5e1; } body.dark-mode .mdi-file-row { background: #0f172a; }
body.dark-mode .kpi-table tr[style*="border-bottom"] { border-color: #1e293b !important; } body.dark-mode .kpi-table td[style*="color"]:not([style*="background"]) { color: #e2e8f0 !important; } body.dark-mode .kpi-table td[style*="color: #2e7d32"], body.dark-mode .kpi-table td[style*="color: #1565c0"] { color: #93c5fd !important; }
body.dark-mode .fl-obj-pill { color: #fff; } body.dark-mode .fl-legend, body.dark-mode .fl-legend span { color: #cbd5e1; } body.dark-mode .tf-table td a[style], body.dark-mode .tf-table td a { color: var(--g-acc-l, #a5b4fc) !important; }
body.dark-mode :is(.of-label, .of-hint, .fl-legend-l, .st-count-l, .vc-section-l, .vc-empty, .mf-hint, .vd-card-total) { color: #94a3b8; }
body.dark-mode .vc-untagged :where(div, p, span, strong, a) { color: #fca5a5; }
body.dark-mode .vd-card-name, body.dark-mode .id-d1 > div { color: #f1f5f9; } body.dark-mode .sv-h-challenge-h { color: #f1f5f9; }
body.dark-mode #toggle3D, body.dark-mode #toggle3D span { color: #67e8f9; } body.dark-mode .rd-tbl td span { color: #4ade80; } body.dark-mode .eh-topic-btn, body.dark-mode .eh-topic-btn span { color: #cbd5e1; }
body.dark-mode .ir-pill:not([style*="background"]) { color: #cbd5e1; background: #1e293b; } body.dark-mode .ir-pill.ir-tbd { background: #3b2a05; color: #fcd34d; }
body.dark-mode .kpi-table .btn-outline-primary { color: var(--g-acc-l, #a5b4fc); border-color: var(--g-acc-d, #4f46e5); background: transparent; } body.dark-mode .form-header-title a, body.dark-mode .initiative-name a, body.dark-mode .kpi-table td.content-cell, body.dark-mode .kpi-table td { color: #e2e8f0; }
body.dark-mode .tf-table td a { color: var(--g-acc-l, #a5b4fc); } body.dark-mode .entity-path-seg a { color: #94a3b8; } body.dark-mode .st-unst-card, body.dark-mode .st-unst-card .nm { background: #0f172a; color: #cbd5e1; border-color: #1e293b; }
body.dark-mode .mf-form label { color: #cbd5e1; } body.dark-mode .tf-link-btn, body.dark-mode .tf-link-btn .tf-link-name { background: #1e293b; color: #cbd5e1; border-color: #334155; } body.dark-mode .tf-heat-actions .tf-btn, body.dark-mode .tf-heat-actions .tf-btn span { color: #cbd5e1; background: #1e293b; border-color: #334155; }
body.dark-mode :is(.vc-card-h, .eh-topic-head, .mdi-file-row, .fl-legend, .rd-builtin-chip, .st-role-pill, .vc-value) { background: #1e293b !important; border-color: #334155 !important; }
body.dark-mode :is(.st-cov-row, .st-obj, .st-obj *, .row1, .row1 *, .vc-card-h *, .vc-card-h, .eh-topic-head, .eh-topic-head *, .fl-legend, .fl-legend *, .mdi-file-row, .mdi-file-row *, .entity-path-seg a, .vc-card-body span) { color: #e2e8f0 !important; }
body.dark-mode .vc-untagged :where(div, p, span, strong, a) { color: #fca5a5 !important; } body.dark-mode td.small .ir-pill:not([style*="background"]) { color: #cbd5e1 !important; } body.dark-mode .if-card h2 { color: #cbd5e1 !important; }
body.dark-mode :is(.rd-risk-chip, .vc-key, .vc-value-label, .eh-topic-btn, .tag-preview, .mdi-btn.secondary) { background: #1e293b !important; color: #e2e8f0 !important; border-color: #334155 !important; }
body.dark-mode :is(.mdi-step-title, .st-cov-pct, .st-cov-row *) { color: #e2e8f0 !important; } body.dark-mode td.small .ir-pill:not([style*="background"]) { color: #cbd5e1 !important; } body.dark-mode .kpi-table tr td { background: transparent !important; color: #e2e8f0 !important; }
body.dark-mode .st-action-btn { background: #1e293b; border-color: #334155; color: #e2e8f0; }
/* v11.1040.0 — the last gaps of the dark-mode crawl: the Review (KPI) table writes pastel row backgrounds inline, the « locked » chip of Vocabularies, the Action-tags preview chip */
body.dark-mode .kpi-table tr[style*="background"], body.dark-mode .kpi-table td[style*="background"], body.dark-mode .kpi-table th[style*="background"] { background: #0f172a !important; }
body.dark-mode .kpi-table td[style*="color"], body.dark-mode .kpi-table tr[style*="background"] td { color: #e2e8f0 !important; }
body.dark-mode .vc-locked { background: #3b2a05 !important; color: #fcd34d !important; border-color: #78350f !important; }
body.dark-mode .tag-card .tag-preview, body.dark-mode .tag-preview { background: #3b2a05 !important; color: #fdba74 !important; }

/* >>> glass-map — v11.1040.19, GLASS step 4: the hard-coded light / dark panels of this stylesheet mapped to the shared tokens (generated from the rules above). Light rules are `:where(body.theme-glass) …` and dark ones `body.dark-mode:where(.theme-glass) …`: ZERO added specificity, so a more specific semantic variant (.x.bad, .x.on) keeps winning over the base panel; Classic is untouched. */
body.dark-mode:where(.theme-glass) .items-table-container { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .items-table thead th { background-color: var(--gl-fill-strong); color: var(--gl-fg2); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .items-table td, body.dark-mode:where(.theme-glass) .items-table td.ie-cell { color: var(--gl-fg); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .ie-cell:hover .ie-display { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .dr-table thead th { background-color: var(--gl-fill-strong); color: var(--gl-fg2); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) #drContainer div[style*="background:#f8fafc"], body.dark-mode:where(.theme-glass) #drContainer div[style*="background: #f8fafc"], body.dark-mode:where(.theme-glass) #drContainer div[style*="background:#fafafa"] { background-color: var(--gl-fill-strong) !important; color: var(--gl-fg2) !important; border-color: var(--gl-line) !important; }
body.dark-mode:where(.theme-glass) .nb-list { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .nb-row { border-bottom-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .nb-row:hover { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .nb-row .nb-name { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .nb-row .nb-sub { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .nb-row .nb-ic { background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent); }
body.dark-mode:where(.theme-glass) .md-filterbar, body.dark-mode:where(.theme-glass) .md-card { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .md-filterbar input[type="search"], body.dark-mode:where(.theme-glass) .md-filterbar select { background-color: var(--gl-fill-strong); color: var(--gl-fg); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .landscape-card { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .landscape-card-title { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .landscape-card-desc { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .landscape-card-stats { border-top-color: var(--gl-line); color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .landscape-empty { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .mtg-card { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .mtg-card a.mtg-title { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .mtg-card a.mtg-title:hover { color: var(--gl-tint-text); }
body.dark-mode:where(.theme-glass) .mtg-date { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .rm-select { background-color: var(--gl-fill-strong); color: var(--gl-fg); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .md-stats { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .map-mode-switch, body.dark-mode:where(.theme-glass) .kpi-sidebar, body.dark-mode:where(.theme-glass) .kpi-list, body.dark-mode:where(.theme-glass) .skeleton-item, body.dark-mode:where(.theme-glass) .details-panel { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .map-container { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .detail-action-btn.secondary { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .details-panel :is(h3, .details-kpi-name, .detail-section-title) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .kpi-sidebar :is(h3, span, small) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .idoc h1, body.dark-mode:where(.theme-glass) .idoc h2, body.dark-mode:where(.theme-glass) .idoc h3 { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .idoc p, body.dark-mode:where(.theme-glass) .idoc li { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .toc, body.dark-mode:where(.theme-glass) .doc-toc, body.dark-mode:where(.theme-glass) .method-card { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .method-card .formula { background-color: var(--gl-fill-strong); color: var(--gl-fg); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) :is(.tag-card, .onboarding-card, .dim-card, .id-ring-card, .cat-card, .cap-switch, .cp-hint, .rd-add-bar, .eh-filter, .eh-topic-card, .cs-empty, .cs-module, .pulse-cov-card, .ev-bus-card, .ev-eol-card, .si-drop) { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) :is(.tag-card, .onboarding-card, .dim-card, .id-ring-card, .cat-card, .eh-topic-card, .cs-module) :is(h1, h2, h3, h4, h5, strong, .id-cov-title, .id-method-name) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) :is(.onboarding-card, .dim-card, .cat-card, .id-ring-card) :is(p, small, .text-muted, span) { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .dim-card-order { background-color: var(--gl-fill-strong); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .rd-add-bar :is(label, span) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-filter :is(label, span) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .dim-card-name, body.dark-mode:where(.theme-glass) .id-ring-val, body.dark-mode:where(.theme-glass) .id-cov-title, body.dark-mode:where(.theme-glass) .eh-topic-title { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .dim-card-desc, body.dark-mode:where(.theme-glass) .id-ring-card span, body.dark-mode:where(.theme-glass) .id-ring-card div { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .id-ring-card .id-ring-val, body.dark-mode:where(.theme-glass) .id-ring-card .id-cov-title { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-topic-card span, body.dark-mode:where(.theme-glass) .eh-filter span, body.dark-mode:where(.theme-glass) .eh-filter label { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .map-mode-btn { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .cap-switch a { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .cap-switch strong { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .rd-table th, body.dark-mode:where(.theme-glass) .rd-add-bar + * th { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .rd-chk, body.dark-mode:where(.theme-glass) .rd-add-bar span { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-page-card { background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .eh-page-name { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-page-desc, body.dark-mode:where(.theme-glass) .eh-page-foot { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) :is(.of-card, .st-card, .st-tabs, .fl-side-card, .fl-diagram-wrap, .mdi-step, .vc-card, .vc-untagged, .vc-col-body, .mf-form, .sv-toolbar, .sv-view-toggle, .sv-h-space, .vd-hero-card, .vd-card, .id-cov-card, .tf-addbar, .tf-panel, .tf-heat-panel, .form-container, .initiative-tabs, .if-card, .tf-heat-modes) { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) :is(.of-label, .of-hint, .fl-legend-l, .st-count-l, .vc-section-l, .vc-empty, .mf-hint, .mdi-file-sep, .vd-ring-label, .vd-card-total, .vd-legend, .tf-fs-lbl, .id-cov-nums span, .sv-toolbar label) { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) :is(.st-unst-card .nm, .mdi-info a, .tf-link-name, .tf-heat-modes button) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .mdi-info { background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .mdi-info a { color: var(--gl-tint-text); }
body.dark-mode:where(.theme-glass) :is(.of-input, .of-select, .of-textarea, .mdi-textarea) { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) :is(.kh-tbl, .rd-tbl) th { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) :is(.kh-name, .kh-name-edit, .cd-name a, .kd-name a, .sd-name a, .cd-name, .kd-name, .sd-name) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .harm-need-labels strong, body.dark-mode:where(.theme-glass) .tf-heat-legend, body.dark-mode:where(.theme-glass) .id-d1 { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .tf-heat-legend { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .ir-fig .v-filt, body.dark-mode:where(.theme-glass) .ir-match-count strong { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .ir-pill { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .kpi-table td.content-cell, body.dark-mode:where(.theme-glass) .kpi-table td { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .doc-note, body.dark-mode:where(.theme-glass) .doc-warn { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .doc-note { background-color: color-mix(in srgb, var(--gl-tint) 18%, transparent); }
body.dark-mode:where(.theme-glass) .doc-toc h3, body.dark-mode:where(.theme-glass) .toc h3 { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .idoc code, body.dark-mode:where(.theme-glass) .cap-docs code { background-color: var(--gl-fill-strong); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-applies-to span { color: var(--gl-fg); background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .eh-applies-to { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color:#0f172a"]:not([style*="background"]), body.dark-mode:where(.theme-glass) :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color: #0f172a"]:not([style*="background"]), body.dark-mode:where(.theme-glass) :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color:#1e293b"]:not([style*="background"]), body.dark-mode:where(.theme-glass) :is(div, span, td, th, a, b, strong, label, h1, h2, h3, h4)[style*="color:#334155"]:not([style*="background"]), body.dark-mode:where(.theme-glass) :is(div, span, td, th, a, b, strong, label)[style*="color: #1e293b"]:not([style*="background"]), body.dark-mode:where(.theme-glass) :is(div, span, td, th, a, b, strong, label)[style*="color: #334155"]:not([style*="background"]) { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) :is(.row1, .info, .st-cov-row, .st-name, .vc-card-h, .vc-card-h *, .tf-heat-legend, .tf-heat-legend b, .id-d1 > div, .sv-h-challenge-h, .id-method-name, .st-unst-card .go) { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) :is(.st-role-pill, .st-obj .mod, .st-obj .dom, .vc-value, .tf-heat-legend > *, .sv-h-challenge-h > span, .rd-builtin-chip) { background-color: var(--gl-fill-strong); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .vc-card-h { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .eh-topic-head, body.dark-mode:where(.theme-glass) .eh-topic-head * { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-topic-head { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .mdi-file-row, body.dark-mode:where(.theme-glass) .mdi-file-row * { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .mdi-file-row { background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .kpi-table tr[style*="border-bottom"] { border-color: var(--gl-line) !important; }
body.dark-mode:where(.theme-glass) .kpi-table td[style*="color"]:not([style*="background"]) { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) .kpi-table td[style*="color: #2e7d32"], body.dark-mode:where(.theme-glass) .kpi-table td[style*="color: #1565c0"] { color: var(--gl-tint-text) !important; }
body.dark-mode:where(.theme-glass) .fl-legend, body.dark-mode:where(.theme-glass) .fl-legend span { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) :is(.of-label, .of-hint, .fl-legend-l, .st-count-l, .vc-section-l, .vc-empty, .mf-hint, .vd-card-total) { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .vd-card-name, body.dark-mode:where(.theme-glass) .id-d1 > div { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .sv-h-challenge-h { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .eh-topic-btn, body.dark-mode:where(.theme-glass) .eh-topic-btn span { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .ir-pill:not([style*="background"]) { color: var(--gl-fg); background-color: var(--gl-fill-strong); }
body.dark-mode:where(.theme-glass) .form-header-title a, body.dark-mode:where(.theme-glass) .initiative-name a, body.dark-mode:where(.theme-glass) .kpi-table td.content-cell, body.dark-mode:where(.theme-glass) .kpi-table td { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .entity-path-seg a { color: var(--gl-fg2); }
body.dark-mode:where(.theme-glass) .st-unst-card, body.dark-mode:where(.theme-glass) .st-unst-card .nm { background-color: var(--gl-fill-strong); color: var(--gl-fg); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .mf-form label { color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .tf-link-btn, body.dark-mode:where(.theme-glass) .tf-link-btn .tf-link-name { background-color: var(--gl-fill-strong); color: var(--gl-fg); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) .tf-heat-actions .tf-btn, body.dark-mode:where(.theme-glass) .tf-heat-actions .tf-btn span { color: var(--gl-fg); background-color: var(--gl-fill-strong); border-color: var(--gl-line); }
body.dark-mode:where(.theme-glass) :is(.vc-card-h, .eh-topic-head, .mdi-file-row, .fl-legend, .rd-builtin-chip, .st-role-pill, .vc-value) { background-color: var(--gl-fill-strong) !important; border-color: var(--gl-line) !important; }
body.dark-mode:where(.theme-glass) :is(.st-cov-row, .st-obj, .st-obj *, .row1, .row1 *, .vc-card-h *, .vc-card-h, .eh-topic-head, .eh-topic-head *, .fl-legend, .fl-legend *, .mdi-file-row, .mdi-file-row *, .entity-path-seg a, .vc-card-body span) { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) td.small .ir-pill:not([style*="background"]) { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) .if-card h2 { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) :is(.rd-risk-chip, .vc-key, .vc-value-label, .eh-topic-btn, .tag-preview, .mdi-btn.secondary) { background-color: var(--gl-fill-strong) !important; color: var(--gl-fg) !important; border-color: var(--gl-line) !important; }
body.dark-mode:where(.theme-glass) :is(.mdi-step-title, .st-cov-pct, .st-cov-row *) { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) .kpi-table tr td { color: var(--gl-fg) !important; }
body.dark-mode:where(.theme-glass) .st-action-btn { background-color: var(--gl-fill-strong); border-color: var(--gl-line); color: var(--gl-fg); }
body.dark-mode:where(.theme-glass) .kpi-table tr[style*="background"], body.dark-mode:where(.theme-glass) .kpi-table td[style*="background"], body.dark-mode:where(.theme-glass) .kpi-table th[style*="background"] { background-color: var(--gl-fill-strong) !important; }
body.dark-mode:where(.theme-glass) .kpi-table td[style*="color"], body.dark-mode:where(.theme-glass) .kpi-table tr[style*="background"] td { color: var(--gl-fg) !important; }
/* <<< glass-map */
