/* Desktop dark theme for modules outside Write Report.
   Write Report tokens live in packages/write-report/src/theme-dark.css.
   Photographs, plan drawings, PDF pages, Word previews and the SWMS sheet stay light.
   The Site Capture field app (phone) stays light. The desktop workspace follows the theme. */

html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-900 {
  color: var(--ascend-text) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/80,
html[data-theme="dark"] .bg-white\/95,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-50\/30,
html[data-theme="dark"] .bg-slate-50\/40,
html[data-theme="dark"] .bg-slate-50\/50,
html[data-theme="dark"] .bg-slate-50\/60,
html[data-theme="dark"] .bg-slate-50\/80,
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100 {
  background-color: var(--ascend-card-bg) !important;
}

html[data-theme="dark"] .bg-slate-200 {
  background-color: var(--ascend-surface) !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-50\/30,
html[data-theme="dark"] .bg-amber-50\/40,
html[data-theme="dark"] .bg-amber-50\/50,
html[data-theme="dark"] .bg-amber-50\/60,
html[data-theme="dark"] .bg-amber-100 {
  background-color: #422006 !important;
}

html[data-theme="dark"] .bg-violet-50,
html[data-theme="dark"] .bg-violet-50\/30,
html[data-theme="dark"] .bg-violet-50\/40,
html[data-theme="dark"] .bg-violet-100 {
  background-color: #2e1065 !important;
}

html[data-theme="dark"] .bg-indigo-50,
html[data-theme="dark"] .bg-indigo-50\/20,
html[data-theme="dark"] .bg-indigo-50\/25,
html[data-theme="dark"] .bg-indigo-50\/30,
html[data-theme="dark"] .bg-indigo-50\/40,
html[data-theme="dark"] .bg-indigo-50\/50,
html[data-theme="dark"] .bg-indigo-100 {
  background-color: #1e1b4b !important;
}

html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-50\/30,
html[data-theme="dark"] .bg-emerald-50\/40,
html[data-theme="dark"] .bg-emerald-50\/50,
html[data-theme="dark"] .bg-emerald-100 {
  background-color: #064e3b !important;
}

html[data-theme="dark"] .bg-teal-50,
html[data-theme="dark"] .bg-teal-50\/50,
html[data-theme="dark"] .bg-teal-100 {
  background-color: #134e4a !important;
}

html[data-theme="dark"] .bg-red-50,
html[data-theme="dark"] .bg-rose-50 {
  background-color: #450a0a !important;
}

html[data-theme="dark"] .bg-sky-100 {
  background-color: #0c4a6e !important;
}

html[data-theme="dark"] .hover\:bg-white:hover,
html[data-theme="dark"] .hover\:bg-slate-50:hover,
html[data-theme="dark"] .hover\:bg-slate-100:hover,
html[data-theme="dark"] .hover\:bg-slate-200:hover,
html[data-theme="dark"] .hover\:bg-teal-50:hover,
html[data-theme="dark"] .hover\:bg-violet-50:hover,
html[data-theme="dark"] .hover\:bg-amber-100:hover,
html[data-theme="dark"] .hover\:bg-emerald-50:hover {
  background-color: var(--ascend-surface-hover) !important;
}

html[data-theme="dark"] .text-teal-900,
html[data-theme="dark"] .text-teal-800,
html[data-theme="dark"] .text-teal-700 {
  color: #5eead4 !important;
}

html[data-theme="dark"] .text-violet-900,
html[data-theme="dark"] .text-violet-800,
html[data-theme="dark"] .text-violet-700 {
  color: #ddd6fe !important;
}

html[data-theme="dark"] .text-amber-950,
html[data-theme="dark"] .text-amber-900,
html[data-theme="dark"] .text-amber-800,
html[data-theme="dark"] .text-amber-700 {
  color: #fde68a !important;
}

html[data-theme="dark"] .text-emerald-900,
html[data-theme="dark"] .text-emerald-800,
html[data-theme="dark"] .text-emerald-800\/80,
html[data-theme="dark"] .text-emerald-700 {
  color: #a7f3d0 !important;
}

html[data-theme="dark"] .text-indigo-900,
html[data-theme="dark"] .text-indigo-800,
html[data-theme="dark"] .text-indigo-700,
html[data-theme="dark"] .text-indigo-600 {
  color: #c7d2fe !important;
}

html[data-theme="dark"] .text-red-800,
html[data-theme="dark"] .text-red-700,
html[data-theme="dark"] .text-red-600 {
  color: #fca5a5 !important;
}

html[data-theme="dark"] .text-sky-800 {
  color: #bae6fd !important;
}

/* Remedial library */
html[data-theme="dark"] .rlr-app { color: #e2e8f0; color-scheme: dark; }
html[data-theme="dark"] .rlr-card,
html[data-theme="dark"] .rlr-btn,
html[data-theme="dark"] .rlr-kind,
html[data-theme="dark"] .rlr-input,
html[data-theme="dark"] .rlr-ta,
html[data-theme="dark"] .rlr-select,
html[data-theme="dark"] .rlr-struct-table-wrap {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
html[data-theme="dark"] .rlr-muted,
html[data-theme="dark"] .rlr-status,
html[data-theme="dark"] .rlr-kicker,
html[data-theme="dark"] .rlr-label,
html[data-theme="dark"] .rlr-struct-table th { color: #cbd5e1; }
html[data-theme="dark"] .rlr-struct-table th,
html[data-theme="dark"] .rlr-hist,
html[data-theme="dark"] .rlr-struct-detail { background: #162033; color: #e2e8f0; border-color: #334155; }
html[data-theme="dark"] .rlr-banner { color: #ddd6fe; background: #1e1b4b; border-color: #6d28d9; }
html[data-theme="dark"] .rlr-pill { background: #2e1065; color: #ddd6fe; }
html[data-theme="dark"] .rlr-kind.on,
html[data-theme="dark"] .rlr-topic.on,
html[data-theme="dark"] .rlr-struct-table tbody tr.is-open { background: #1e1b4b; color: #e0e7ff; border-color: #6366f1; }
html[data-theme="dark"] .rlr-topic:hover,
html[data-theme="dark"] .rlr-entry:hover,
html[data-theme="dark"] .rlr-btn:hover,
html[data-theme="dark"] .rlr-struct-table tbody tr:hover { background: #334155; }
html[data-theme="dark"] .rlr-struct-kind.is-shared { background: #134e4a; color: #ccfbf1; }
html[data-theme="dark"] .rlr-struct-kind.is-unique { background: #422006; color: #fde68a; }
html[data-theme="dark"] .rlr-struct-table td.is-on { color: #5eead4; }
html[data-theme="dark"] .rlr-warn { background: #422006; color: #fde68a; border-color: #b45309; }
html[data-theme="dark"] .rlr-btn-primary { background: #3730a3; border-color: #a5b4fc; color: #f8fafc; }
html[data-theme="dark"] .rlr-btn-danger { color: #fecaca; border-color: #7f1d1d; }

/* Equipment — photographs stay unfiltered */
html[data-theme="dark"] .eq-wrap,
html[data-theme="dark"] .eqr-banner { color: #e2e8f0; }
html[data-theme="dark"] .eqr-banner { background: #1e1b4b; border-color: #6d28d9; color: #ddd6fe; }
html[data-theme="dark"] .eq-toolbar input,
html[data-theme="dark"] .eq-toolbar select,
html[data-theme="dark"] .eq-chip,
html[data-theme="dark"] .eq-btn,
html[data-theme="dark"] .eq-grid-wrap,
html[data-theme="dark"] .eq-stick,
html[data-theme="dark"] .eq-drawer,
html[data-theme="dark"] .eq-bulk,
html[data-theme="dark"] .eq-note,
html[data-theme="dark"] .eq-laws,
html[data-theme="dark"] .eq-card,
html[data-theme="dark"] .eq-phone-bar,
html[data-theme="dark"] .eq-phone-search,
html[data-theme="dark"] .eq-phone-filters select,
html[data-theme="dark"] .eq-quick,
html[data-theme="dark"] .eq-field input,
html[data-theme="dark"] .eq-field select,
html[data-theme="dark"] .eq-field textarea,
html[data-theme="dark"] .eq-opt-row input {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
html[data-theme="dark"] .eq-grid th,
html[data-theme="dark"] .eq-grid th.eq-stick,
html[data-theme="dark"] .eq-drawer-foot,
html[data-theme="dark"] .eq-drop,
html[data-theme="dark"] .eq-laws th { background: #162033; color: #e2e8f0; }
html[data-theme="dark"] .eq-grid td,
html[data-theme="dark"] .eq-laws th,
html[data-theme="dark"] .eq-laws td { border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .eq-muted,
html[data-theme="dark"] .eq-field label,
html[data-theme="dark"] .eq-tab,
html[data-theme="dark"] .eq-card-sub,
html[data-theme="dark"] .eq-drop-hint { color: #cbd5e1; }
html[data-theme="dark"] .eq-tab.on,
html[data-theme="dark"] .eq-group,
html[data-theme="dark"] .eq-laws h3,
html[data-theme="dark"] .eq-laws a { color: #5eead4; }
html[data-theme="dark"] .eq-chip.on,
html[data-theme="dark"] .eq-btn-primary,
html[data-theme="dark"] .eq-insp-bar { background: #065f46; color: #ecfdf5; border-color: #065f46; }
html[data-theme="dark"] .eq-chip.warn,
html[data-theme="dark"] .eq-warn,
html[data-theme="dark"] .eq-btn-warn,
html[data-theme="dark"] .eq-rec-bar { background: #422006; color: #fde68a; border-color: #b45309; }
html[data-theme="dark"] .eq-chip.bad,
html[data-theme="dark"] .eq-grid tr.eq-unusable td,
html[data-theme="dark"] .eq-card.eq-unusable { background: #450a0a; color: #fecaca; border-color: #7f1d1d; }
html[data-theme="dark"] .eq-chip.ok,
html[data-theme="dark"] .eq-bag-h td,
html[data-theme="dark"] .eq-bag-m,
html[data-theme="dark"] .eq-grid tr.eq-sel td,
html[data-theme="dark"] .eq-card.eq-sel,
html[data-theme="dark"] .eq-btn.on { background: #134e4a; color: #ccfbf1; border-color: #0f766e; }
html[data-theme="dark"] .eq-grid tr:hover td { background: #134e4a; }
html[data-theme="dark"] .eq-thumb img,
html[data-theme="dark"] .eq-thumb { filter: none; }
html[data-theme="dark"] .eq-thumb button {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: #e2e8f0;
}

/* Portfolio */
html[data-theme="dark"] .pf-card,
html[data-theme="dark"] .pf-job,
html[data-theme="dark"] .pf-up,
html[data-theme="dark"] .pf-group,
html[data-theme="dark"] .pf-picker,
html[data-theme="dark"] .pf-chipbtn,
html[data-theme="dark"] .pf-tl-scroll,
html[data-theme="dark"] .pf-tl-name,
html[data-theme="dark"] .pf-tl-detail,
html[data-theme="dark"] .pf-tl-controls select {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
html[data-theme="dark"] .pf-job.overdue,
html[data-theme="dark"] .pf-up.overdue,
html[data-theme="dark"] .pf-tl-detail.overdue {
  background: #450a0a;
  color: #fecaca;
  border-color: #7f1d1d;
}

/* Kanban item editor */
html[data-theme="dark"] .kci-parent {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

/* Building 3D chrome. The model canvas is not recoloured. */
html[data-theme="dark"] .t3d-root { color: #e2e8f0; }
html[data-theme="dark"] .t3d-mode,
html[data-theme="dark"] .t3d-tool,
html[data-theme="dark"] .t3d-facade-row button,
html[data-theme="dark"] .t3d-facade-row select {
  background: #134e4a;
  color: #ccfbf1;
  border-color: #0f766e;
}
html[data-theme="dark"] .t3d-mode.on,
html[data-theme="dark"] .t3d-tool.on,
html[data-theme="dark"] .t3d-facade-row button.on { background: #0f766e; color: #f0fdfa; }
html[data-theme="dark"] .t3d-models-now,
html[data-theme="dark"] .t3d-models-saved,
html[data-theme="dark"] .t3d-models-plan,
html[data-theme="dark"] .t3d-facade {
  background: #042f2e;
  color: #ccfbf1;
  border-color: #0f766e;
}
html[data-theme="dark"] .t3d-root canvas,
html[data-theme="dark"] .t3d-root img,
html[data-theme="dark"] .t3d-root video { filter: none; }
html[data-theme="dark"] .t3d-card,
html[data-theme="dark"] .t3d-client,
html[data-theme="dark"] .t3d-list-btn,
html[data-theme="dark"] .t3d-field select,
html[data-theme="dark"] .t3d-field input,
html[data-theme="dark"] .t3d-match-rename input,
html[data-theme="dark"] .t3o-sec,
html[data-theme="dark"] .t3o-card,
html[data-theme="dark"] .t3o-modal-box,
html[data-theme="dark"] .t3o-menu,
html[data-theme="dark"] .t3o-f select,
html[data-theme="dark"] .t3o-f input,
html[data-theme="dark"] .t3o-picker {
  background: var(--ascend-card-bg);
  color: var(--ascend-text);
  border-color: var(--ascend-border);
}
html[data-theme="dark"] .t3d-aside {
  background: var(--ascend-bg);
  color: var(--ascend-text);
  border-color: var(--ascend-border);
}
html[data-theme="dark"] .t3o { color: var(--ascend-text); }
html[data-theme="dark"] .t3d-field,
html[data-theme="dark"] .t3o-f,
html[data-theme="dark"] .t3o-count,
html[data-theme="dark"] .t3o-dl dt,
html[data-theme="dark"] .t3o-muted,
html[data-theme="dark"] .t3o-dmeta,
html[data-theme="dark"] .t3o-card-sub,
html[data-theme="dark"] .t3o-unloc,
html[data-theme="dark"] .t3d-match-rename { color: var(--ascend-text-body); }
html[data-theme="dark"] .t3d-list-btn:hover,
html[data-theme="dark"] .t3d-list-btn.active,
html[data-theme="dark"] .t3o-menu button:hover:not(:disabled) {
  background: var(--ascend-mint-bg);
  color: var(--ascend-selected-text);
  border-color: var(--ascend-selected-border);
}
html[data-theme="dark"] .t3o-menu button { color: var(--ascend-text); background: transparent; }
html[data-theme="dark"] .t3o-menu button:disabled { color: var(--ascend-text-faint); }
html[data-theme="dark"] .t3o-sec > summary,
html[data-theme="dark"] .t3o-link,
html[data-theme="dark"] .t3o-btn { color: var(--ascend-accent-ink); }
html[data-theme="dark"] .t3o-btn {
  background: var(--ascend-mint-bg);
  border-color: var(--ascend-selected-border);
}
html[data-theme="dark"] .t3o-btn.primary { background: #0d9488; color: #fff; border-color: #0f766e; }
html[data-theme="dark"] .t3o-err { color: var(--ascend-danger); }
html[data-theme="dark"] .t3o-note { color: #fde68a; }
html[data-theme="dark"] .t3o-sev { background: var(--ascend-surface); color: var(--ascend-text); }
html[data-theme="dark"] .t3o-sev.hi { background: #450a0a; color: #fecaca; }
html[data-theme="dark"] .t3o-sev.med { background: #422006; color: #fde68a; }
html[data-theme="dark"] .t3o-sev.lo { background: #064e3b; color: #a7f3d0; }
html[data-theme="dark"] .t3o-dlist li,
html[data-theme="dark"] .t3o-blist li { border-bottom-color: var(--ascend-border); }
html[data-theme="dark"] .t3d-elev-canvas {
  background: #f8f9fa !important;
  color-scheme: light;
}

/* SWMS chrome is dark. The landscape sheet stays a white document. */
html[data-theme="dark"] .swms-sidebar,
html[data-theme="dark"] .swms-doc-main { color: #e2e8f0; }
html[data-theme="dark"] .swms-landscape-page,
html[data-theme="dark"] .swms-landscape-page input,
html[data-theme="dark"] .swms-landscape-page textarea,
html[data-theme="dark"] .swms-landscape-page select,
html[data-theme="dark"] .swms-child-edit,
html[data-theme="dark"] .swms-raw-textarea {
  background: #fff !important;
  color: #1e293b !important;
  border-color: #e2e8f0;
  color-scheme: light;
}
html[data-theme="dark"] .swms-doc-title {
  background: #1e3a5f !important;
  color: #fff !important;
}
html[data-theme="dark"] .swms-landscape-page { filter: none; }

/* PDF pages in PM stay paper-white. Callout dots keep their own colour. */
html[data-theme="dark"] .da-pdf-page,
html[data-theme="dark"] .da-pdf-page canvas,
html[data-theme="dark"] .da-pdf-page img {
  background: #fff !important;
  filter: none;
  color-scheme: light;
}

/* Phone field app stays light. The desktop plan canvas reuses .sc2-app and follows the theme. */
html[data-theme="dark"] .sc2-app:not(.sc-desk-canvas) {
  color: #0f172a;
  background: #f4f6f8;
  color-scheme: light;
}
html[data-theme="dark"] .sc2-app:not(.sc-desk-canvas) input,
html[data-theme="dark"] .sc2-app:not(.sc-desk-canvas) select,
html[data-theme="dark"] .sc2-app:not(.sc-desk-canvas) textarea {
  background-color: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}
html[data-theme="dark"] .sc2-app img,
html[data-theme="dark"] .sc2-app canvas,
html[data-theme="dark"] #site-capture img,
html[data-theme="dark"] #site-capture canvas { filter: none; }

/* Site Capture opened on a computer. */
html[data-theme="dark"] .sc-desk {
  background: var(--ascend-bg);
  color: var(--ascend-text);
  color-scheme: dark;
}
html[data-theme="dark"] .sc-desk-bar,
html[data-theme="dark"] .sc-desk-side,
html[data-theme="dark"] .sc-desk-pins,
html[data-theme="dark"] .sc-desk-bulk,
html[data-theme="dark"] .sc-desk-modal,
html[data-theme="dark"] .sc-link-picker,
html[data-theme="dark"] .sc-desk-icon,
html[data-theme="dark"] .sc-rappel-list button,
html[data-theme="dark"] .sc-desk-side button,
html[data-theme="dark"] .sc-desk-tools button,
html[data-theme="dark"] .sc-desk-form button,
html[data-theme="dark"] .sc-desk-bulk button,
html[data-theme="dark"] .sc-desk-new button,
html[data-theme="dark"] .sc-desk .sc-photos-bar button,
html[data-theme="dark"] .sc-desk .sc-photos-warn button,
html[data-theme="dark"] .sc-desk-photos-lg [data-act="photo-taken"] {
  background: var(--ascend-card-bg);
  color: var(--ascend-text);
  border-color: var(--ascend-border);
}
html[data-theme="dark"] .sc-desk input,
html[data-theme="dark"] .sc-desk select,
html[data-theme="dark"] .sc-desk textarea,
html[data-theme="dark"] .sc-desk .sc-photos-bar select,
html[data-theme="dark"] .sc-desk .sc-photos-bar input {
  background-color: var(--ascend-input-bg) !important;
  color: var(--ascend-text) !important;
  border-color: var(--ascend-border) !important;
}
html[data-theme="dark"] .sc-desk-job,
html[data-theme="dark"] .sc-desk-upload,
html[data-theme="dark"] .sc-desk-icon,
html[data-theme="dark"] .sc-desk-bar button[data-act="open-photos"],
html[data-theme="dark"] .sc-desk-bar button[data-act="link-rappel"],
html[data-theme="dark"] .sc-desk-bar button[data-act="unlink-rappel"],
html[data-theme="dark"] .sc-desk-bar button[data-act="match-lines"],
html[data-theme="dark"] .sc-desk-bar button[data-act="add-group"] {
  color: var(--ascend-accent-ink);
}
html[data-theme="dark"] .sc-desk-label,
html[data-theme="dark"] .sc-desk-empty,
html[data-theme="dark"] .sc-desk-picks label,
html[data-theme="dark"] .sc-desk .sc-photos-bar label,
html[data-theme="dark"] .sc-desk .sc-photos section h4,
html[data-theme="dark"] .sc-link-picker h3,
html[data-theme="dark"] .sc-desk-modal label,
html[data-theme="dark"] .sc-desk-photos figcaption {
  color: var(--ascend-text-muted);
}
html[data-theme="dark"] .sc-desk-err { color: var(--ascend-danger); }
html[data-theme="dark"] .sc-desk-side button.on,
html[data-theme="dark"] .sc-desk-tools button.on,
html[data-theme="dark"] .sc-desk-bulk button.on,
html[data-theme="dark"] .sc-desk-pins tr.on {
  background: var(--ascend-selected-bg);
  color: var(--ascend-selected-text);
  border-color: var(--ascend-selected-border);
}
html[data-theme="dark"] .sc-desk .sc-photos,
html[data-theme="dark"] .sc-desk.sc-desk-photos .sc-desk-canvas,
html[data-theme="dark"] .sc-desk.sc-desk-link .sc-desk-canvas {
  background: var(--ascend-bg);
  color: var(--ascend-text);
}
html[data-theme="dark"] .sc-desk .sc-photos-warn {
  background: #422006;
  color: #fde68a;
  border-color: #d97706;
}
html[data-theme="dark"] .sc-desk-pins th,
html[data-theme="dark"] .sc-desk-pins td {
  border-bottom-color: var(--ascend-border);
  color: var(--ascend-text);
}
html[data-theme="dark"] .sc-desk-form-actions button[type="submit"],
html[data-theme="dark"] .sc-desk-bar button[data-act="open-export"],
html[data-theme="dark"] .sc-desk .sc-photos-bar [data-act="photo-backup"],
html[data-theme="dark"] .sc-desk-bar button[data-act="open-photos"][aria-pressed="true"] {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}
html[data-theme="dark"] .sc-desk-canvas { background: #0f172a; }
/* General shots drop stays a light mint box so the label stays readable. */
html[data-theme="dark"] .sc-desk-general-drop {
  background: #f0fdfa !important;
  color: #0f766e !important;
  border-color: #99f6e4 !important;
  color-scheme: light;
}

html[data-theme="dark"] .asc-del-sheet,
html[data-theme="dark"] .asc-del-btn,
html[data-theme="dark"] .asc-del-chip,
html[data-theme="dark"] #sc-push-ask .card {
  background: var(--ascend-card-bg);
  color: var(--ascend-text);
  border-color: var(--ascend-border);
}
html[data-theme="dark"] .asc-del-sub { color: var(--ascend-text-body); }

html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] canvas,
html[data-theme="dark"] iframe,
html[data-theme="dark"] embed,
html[data-theme="dark"] object {
  filter: none;
}
/* The wordmark is a black SVG turned white for the violet bar. */
html[data-theme="dark"] #app-nav img {
  filter: brightness(0) invert(1);
}

/* Word, PDF and export sheets stay paper-white even when a utility remap would darken them. */
html[data-theme="dark"] .td-doc-html,
html[data-theme="dark"] .sc-export-card,
html[data-theme="dark"] .sc-export-card input,
html[data-theme="dark"] .sc-export-card select,
html[data-theme="dark"] .sc-export-card textarea {
  background: #fff !important;
  color: #0f172a !important;
  color-scheme: light;
}
html[data-theme="dark"] .sc-export-card [data-act="export-download"] {
  background: #0f766e !important;
  color: #fff !important;
}
html[data-theme="dark"] .swms-landscape-page .text-slate-900,
html[data-theme="dark"] .swms-landscape-page .text-slate-800,
html[data-theme="dark"] .swms-landscape-page .text-slate-700,
html[data-theme="dark"] .swms-landscape-page .text-slate-600,
html[data-theme="dark"] .swms-landscape-page .text-slate-500,
html[data-theme="dark"] .swms-landscape-page .text-slate-400,
html[data-theme="dark"] .td-doc-html .text-slate-900,
html[data-theme="dark"] .td-doc-html .text-slate-800,
html[data-theme="dark"] .td-doc-html .text-slate-700,
html[data-theme="dark"] .td-doc-html .text-slate-600,
html[data-theme="dark"] .sc-export-card .text-slate-800,
html[data-theme="dark"] .sc-export-card .text-slate-600,
html[data-theme="dark"] .sc-export-card .text-slate-500 {
  color: #1e293b !important;
}

/* Tailwind accent text lifted for dark surfaces (AA 4.5:1 on #0f172a and #1e293b). */
html[data-theme="dark"] .text-teal-600,
html[data-theme="dark"] .text-teal-700 { color: #2dd4bf; }
html[data-theme="dark"] .text-amber-600,
html[data-theme="dark"] .text-amber-700 { color: #fbbf24; }
