/* ==========================================================================
   Spectrum Studio — dark theme
   --------------------------------------------------------------------------
   Loaded after styles.css and active whenever <html data-theme="dark">, which
   desktop.js sets from localStorage before the first paint. The light theme is
   still there untouched: the ☀/☾ button in the dock swaps between them.

   How this file is built: the bulk of it was seeded by
   tools/make-dark-theme.ps1, which walks every rule in styles.css and re-emits
   the colour-carrying declarations mapped for a dark ground — because 467
   hard-coded colours are far too many to re-key by hand without missing some.
   The palette and the structural surfaces at the top, and the fixes at the
   bottom, are written by hand and win over the seeded rules that precede them.
   Re-running the generator does NOT overwrite this file.
   ========================================================================== */

html[data-theme="dark"] {
  --ink: #dde7eb;
  --muted: #93a4ac;
  --paper: #0a141b;          /* the page behind everything */
  --panel: #101d26;          /* cards, windows, dialogs */
  --line: #22333d;
  --navy: #081119;           /* the sidebar sits *under* the panels here */
  --navy-2: #0e1c25;
  --cyan: #49d6cf;
  --cyan-soft: #163a3c;
  --shadow: 0 18px 44px rgba(0, 0, 0, .5);
  /* Chrome added by desktop.css reads these. */
  --ss-accent: #49d6cf;
  --ss-win-line: #263b47;
  --ss-win-bar-bg: rgba(255, 255, 255, .035);
  --ss-dock-bg: #071119;
  --ss-dock-line: rgba(255, 255, 255, .07);
  --ss-card-bg: rgba(255, 255, 255, .028);
  color-scheme: dark;
}

/* Form controls, scrollbars and selection follow the theme rather than the OS. */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color-scheme: dark; }
html[data-theme="dark"] ::selection { background: rgba(73, 214, 207, .25); }
html[data-theme="dark"] * { scrollbar-color: #2b414c transparent; }

/* ---- seeded from styles.css by tools/make-dark-theme.ps1 ---------------- */
html[data-theme="dark"] .region-empty { color: #a6aeb2; }
html[data-theme="dark"] .region-empty b { color: #c6cbcd; }
html[data-theme="dark"] .primary-button.danger { border-color: #a64c38; }
html[data-theme="dark"] .dialog-note { color: #b0b7ba; }
html[data-theme="dark"] .breadcrumb { color: #adb4b7; }
html[data-theme="dark"] .breadcrumb span { color: #909a9f; }
html[data-theme="dark"] .saved-state { color: #acb3b7; }
html[data-theme="dark"] .saved-state span { background: #3fa669; }
html[data-theme="dark"] .icon-button { color: #b5bbbe; background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .icon-button:hover { background: #0f1417; }
html[data-theme="dark"] .metric-strip { background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .metric > span, html[data-theme="dark"] .metric > small { color: #a8afb3; }
html[data-theme="dark"] .metric strong { color: #e1e3e5; }
html[data-theme="dark"] .metric.primary strong { color: #51d6d1; }
html[data-theme="dark"] .control-label { color: #a5acb0; }
html[data-theme="dark"] select { border: 1px solid rgba(255,255,255,0.1); color: #6e797f; background: #1b3341; }
html[data-theme="dark"] .scale-control { color: #a5acb0; }
html[data-theme="dark"] .scale-control output { color: #7f8a8f; }
html[data-theme="dark"] .secondary-button { border: 1px solid #2a343a; color: #caced1; }
html[data-theme="dark"] .secondary-button:hover { background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .primary-button { border: 1px solid #2a7f7b; color: #e6eef1; }
html[data-theme="dark"] .panel-toggle { color: #afb6b9; background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .panel-toggle:hover { color: #dcdfe1; background: #0f1417; }
html[data-theme="dark"] .panel-subhead { border-top: 1px solid #273036; border-bottom: 1px solid #273036; color: #a1a9ad; background: #101619; }
html[data-theme="dark"] .region-row { border-bottom: 1px solid #273036; }
html[data-theme="dark"] .region-range-input { border: 1px solid #283238; color: #d4d8da; background: #0f1417; }
html[data-theme="dark"] .region-range-input:hover { border-color: #2a333a; }
html[data-theme="dark"] .region-range-input:focus { border-color: #303c43; }
html[data-theme="dark"] .range-dash { color: #97a0a4; }
html[data-theme="dark"] .region-add { border-top: 1px solid #273036; background: #101619; }
html[data-theme="dark"] .region-add h4 { color: #e1e3e5; }
html[data-theme="dark"] .region-add-row label { color: #aeb5b9; }
html[data-theme="dark"] .region-add-row input { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .region-add-row input:focus { border-color: #303c43; }
html[data-theme="dark"] .region-name input { color: #d4d8da; }
html[data-theme="dark"] .region-name input:focus { border-color: #2a333a; }
html[data-theme="dark"] .muted { color: #a2aaae; }
html[data-theme="dark"] .delete-button { color: #8f999e; }
html[data-theme="dark"] .mass-entry label { color: #a7aeb2; }
html[data-theme="dark"] .mass-entry input, html[data-theme="dark"] .mass-entry select { border: 1px solid #293339; color: #dbdfe0; background: #0f1417; }
html[data-theme="dark"] .mass-card { border: 1px solid #283238; background: #101619; }
html[data-theme="dark"] .mass-card span { color: #a7aeb2; }
html[data-theme="dark"] .mass-card b { color: #e1e3e5; }
html[data-theme="dark"] .mass-card small { color: #99a2a7; }
html[data-theme="dark"] .mass-card.formula b { color: #51d6d1; }
html[data-theme="dark"] .mass-error { border: 1px solid #bf6a40; color: #d67451; background: #392318; }
html[data-theme="dark"] .mass-series { border: 1px solid #283238; }
html[data-theme="dark"] .mass-series-head { color: #a1a9ad; background: #101619; border-bottom: 1px solid #273036; }
html[data-theme="dark"] .mass-series-row { border-bottom: 1px solid #262f35; }
html[data-theme="dark"] .mass-series-row b { color: #e1e3e5; }
html[data-theme="dark"] .mass-series-row i { color: #99a2a7; }
html[data-theme="dark"] .mass-library-head { color: #a7aeb2; }
html[data-theme="dark"] .mass-library-head small { color: #909a9f; }
html[data-theme="dark"] .mass-lib-row { border-top: 1px solid #262f35; }
html[data-theme="dark"] .mass-lib-row:hover { background: #101619; }
html[data-theme="dark"] .mass-lib-row strong { color: #e1e3e5; }
html[data-theme="dark"] .mass-lib-head { border-top: 1px solid #273036; color: #a1a9ad; background: #101619; }
html[data-theme="dark"] .mass-lib-row span { color: #a7aeb2; }
html[data-theme="dark"] .mass-lib-row .mass-lib-num { color: #51d6d1; }
html[data-theme="dark"] .mass-lib-empty { color: #99a2a7; }
html[data-theme="dark"] .mass-lib-load { color: #51d6d1; }
html[data-theme="dark"] .shift-z b { color: #8f999e; }
html[data-theme="dark"] .shift-z button { border: 1px solid rgba(255,255,255,0.13); color: #8f999e; }
html[data-theme="dark"] .shift-z button:hover { color: #646e73; background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .shift-z button.active { color: #51d6c5; }
html[data-theme="dark"] .shift-guess-row { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
html[data-theme="dark"] .shift-guess-row strong { color: #6e797e; }
html[data-theme="dark"] .shift-guess-row em { color: #a3abaf; }
html[data-theme="dark"] .shift-guess-row span { color: #8f999e; }
html[data-theme="dark"] .shift-guess-row.is-miss span:last-child { color: #ddb16f; }
html[data-theme="dark"] .shift-guess-row span i { color: #aeb5b8; }
html[data-theme="dark"] .shift-guess-none { color: #909a9f; }
html[data-theme="dark"] .shift-note { color: #a3abaf; }
html[data-theme="dark"] .panel-footer-note { color: #a2aaae; }
html[data-theme="dark"] .info-mark { border: 1px solid #2e383f; }
html[data-theme="dark"] .filter-chip { border: 1px solid #293238; color: #acb3b7; background: #0f1417; }
html[data-theme="dark"] .filter-chip.active { border-color: #2e393f; color: #51d6d0; background: #183934; }
html[data-theme="dark"] .diff-summary { color: #bac0c3; }
html[data-theme="dark"] .diff-summary b { color: #daddde; }
html[data-theme="dark"] .diff-row { border-bottom: 1px solid #273036; }
html[data-theme="dark"] .diff-row.only-a .diff-note b, html[data-theme="dark"] .diff-row.higher-a .diff-note b { color: #d69151; }
html[data-theme="dark"] .diff-row.only-b .diff-note b, html[data-theme="dark"] .diff-row.higher-b .diff-note b { color: #ca5d90; }
html[data-theme="dark"] .diff-empty { color: #a2aaae; }
html[data-theme="dark"] .calc-intro { color: #bac0c3; }
html[data-theme="dark"] .calc-intro b { color: #daddde; }
html[data-theme="dark"] .calc-block { border-top: 1px solid #273036; }
html[data-theme="dark"] .calc-block h4 { color: #e1e3e5; }
html[data-theme="dark"] .calc-missing p { color: #d69b51; }
html[data-theme="dark"] .calc-area { background: #101619; }
html[data-theme="dark"] .calc-area-conc { color: #51d6d1; }
html[data-theme="dark"] .calc-step-sub { color: #a7aeb2; }
html[data-theme="dark"] .calc-step-sub b { color: #c9ced0; }
html[data-theme="dark"] .calc-area span:first-child { color: #c4c9cc; }
html[data-theme="dark"] .calc-area-adduct { background: #393118; }
html[data-theme="dark"] .calc-area-adduct span:first-child { color: #aeb5b9; }
html[data-theme="dark"] .calc-area-sum { background: #10161a; border: 1px solid #283137; }
html[data-theme="dark"] .calc-area-sum span:first-child { color: #51d6d1; }
html[data-theme="dark"] .calc-area-warn { background: #392318; color: #d67451; }
html[data-theme="dark"] .calc-area-warn span:nth-child(2) { color: #d67451; }
html[data-theme="dark"] .calc-adduct-button { border: 1px dashed #2b353b; color: #51d6d1; }
html[data-theme="dark"] .calc-adduct-button:hover { background: #11171b; }
html[data-theme="dark"] .calc-formula { border: 1px dashed #293339; background: #101519; color: #c9ced0; }
html[data-theme="dark"] .calc-step span:first-child { color: #51d6d0; }
html[data-theme="dark"] .calc-step b { color: #e1e3e5; }
html[data-theme="dark"] .calc-result { border: 1px solid #283137; background: #10161a; }
html[data-theme="dark"] .calc-result-label { color: #51d6d1; }
html[data-theme="dark"] .calc-result-formula { color: #a7aeb2; }
html[data-theme="dark"] .calc-result-value { color: #e1e3e5; }
html[data-theme="dark"] .calc-result-log { color: #a7aeb2; }
html[data-theme="dark"] .calc-conc { border: 1px solid #283137; background: #10161a; }
html[data-theme="dark"] .calc-conc label { color: #aeb5b9; }
html[data-theme="dark"] .calc-conc input { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .calc-conc input:focus { border-color: #303c43; }
html[data-theme="dark"] .calc-conc-meta { color: #a7aeb2; }
html[data-theme="dark"] .calc-conc-source { color: #51d6d1; }
html[data-theme="dark"] .calc-conc-hint b { color: #cbcfd2; }
html[data-theme="dark"] .calc-empty { color: #a2aaae; }
html[data-theme="dark"] .calc-range { color: #a7aeb2; }
html[data-theme="dark"] .calc-range-input { border: 1px solid #293339; color: #d4d8da; background: #0f1417; }
html[data-theme="dark"] .calc-range-input:focus { border-color: #303c43; }
html[data-theme="dark"] .calc-add { border-top: 1px solid #273036; background: #101619; }
html[data-theme="dark"] .calc-add h4 { color: #e1e3e5; }
html[data-theme="dark"] .calc-add-row label { color: #aeb5b9; }
html[data-theme="dark"] .calc-add-row input { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .calc-add-row input:focus { border-color: #303c43; }
html[data-theme="dark"] .calc-copy-source { border: 1px solid #283137; background: #10161a; color: #c1c7c9; }
html[data-theme="dark"] .calc-copy-source strong { color: #51d6d1; }
html[data-theme="dark"] .calc-copy-window { border: 1px solid #293339; background: #0f1417; color: #ccd0d2; }
html[data-theme="dark"] .calc-copy-window small { color: #99a2a7; }
html[data-theme="dark"] .calc-copy-label { color: #a7aeb2; }
html[data-theme="dark"] .calc-copy-list { border: 1px solid #283238; }
html[data-theme="dark"] .calc-copy-row { border-bottom: 1px solid #273036; }
html[data-theme="dark"] .calc-copy-row:hover { background: #101519; }
html[data-theme="dark"] .calc-copy-row:has(input:checked) { background: #183934; }
html[data-theme="dark"] .calc-copy-row-main strong { color: #daddde; }
html[data-theme="dark"] .calc-copy-row-main span { color: #a0a8ad; }
html[data-theme="dark"] .calc-copy-row-main span b { color: #aeb5b9; }
html[data-theme="dark"] .calc-copy-empty { color: #a3abaf; }
html[data-theme="dark"] .calc-copy-options label { color: #c4c9cc; }
html[data-theme="dark"] .calc-copy-options b { color: #daddde; }
html[data-theme="dark"] .calc-copy-options small { color: #a0a8ad; }
html[data-theme="dark"] .calc-copy-check { border-top: 1px dashed #283238; }
html[data-theme="dark"] .rf-header-actions .secondary-button.active { border-color: #2e393f; color: #51d6d1; background: #183934; }
html[data-theme="dark"] .rf-step { border-top: 1px solid #273036; }
html[data-theme="dark"] .rf-step h4 { color: #e1e3e5; }
html[data-theme="dark"] .rf-sub { border-top: 1px dashed #283238; }
html[data-theme="dark"] .rf-num { color: #646e73; }
html[data-theme="dark"] .rf-note { color: #bac0c3; }
html[data-theme="dark"] .rf-note b { color: #daddde; }
html[data-theme="dark"] .rf-note i { color: #c4c9cc; }
html[data-theme="dark"] .rf-demo-flag { color: #d6a751; }
html[data-theme="dark"] .rf-fields label { color: #aeb5b9; }
html[data-theme="dark"] .rf-fields input { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .rf-fields input:focus, html[data-theme="dark"] .rf-row input:focus, html[data-theme="dark"] .rf-row select:focus { border-color: #303c43; }
html[data-theme="dark"] .rf-row input, html[data-theme="dark"] .rf-row select { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .rf-species-row { background: #101619; }
html[data-theme="dark"] .rf-point-row { background: #101619; }
html[data-theme="dark"] .rf-point-row.on { background: #11161a; }
html[data-theme="dark"] .rf-sample-name { color: #cbcfd2; }
html[data-theme="dark"] .rf-formula-cell { color: #51d6d0; }
html[data-theme="dark"] .rf-subhead { color: #97a0a5; }
html[data-theme="dark"] .rf-tablewrap { border: 1px solid #283137; }
html[data-theme="dark"] .rf-table th { border-bottom: 1px solid #283137; color: #aeb5b9; background: #101619; }
html[data-theme="dark"] .rf-table th small { color: #969fa3; }
html[data-theme="dark"] .rf-table td { border-bottom: 1px solid #273035; color: #cbcfd2; }
html[data-theme="dark"] .rf-table .rf-mat { background: #11161a; color: #51d6d1; }
html[data-theme="dark"] .rf-table th.rf-mat { background: #12181c; }
html[data-theme="dark"] .rf-table .muted { color: #97a0a5; }
html[data-theme="dark"] .rf-table .rf-bad { color: #d67851; }
html[data-theme="dark"] .rf-chip { border: 1px solid #283137; background: #10161a; }
html[data-theme="dark"] .rf-chip label { color: #aeb5b9; }
html[data-theme="dark"] .rf-chip input { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .rf-chip input:focus { border-color: #303c43; }
html[data-theme="dark"] .rf-chip-tag { color: #51d6d1; }
html[data-theme="dark"] .rf-chip-count { color: #9aa3a7; }
html[data-theme="dark"] .rf-radio { border: 1px solid #283137; background: #101519; color: #bac0c3; }
html[data-theme="dark"] .rf-radio:hover { border-color: #2a333a; }
html[data-theme="dark"] .rf-radio b { color: #daddde; }
html[data-theme="dark"] .rf-radio:has(input:checked) { border-color: #2e393f; background: #10161a; }
html[data-theme="dark"] .rf-charge-tag { border: 1px solid #293339; background: #10161a; color: #51d6d1; }
html[data-theme="dark"] .rf-range-empty input { color: #8e989d; background: #101519; }
html[data-theme="dark"] .rf-method { background: #393118; }
html[data-theme="dark"] .rf-method h5 { color: #51d6d0; }
html[data-theme="dark"] .rf-method .calc-formula { background: #0f1417; }
html[data-theme="dark"] .rf-skip-note { border-left: 2px solid #b99546; color: #c2a666; }
html[data-theme="dark"] .rf-warn { border: 1px solid #b99546; background: #393018; color: #c2a666; }
html[data-theme="dark"] .rf-result-bad { border-color: #bf6940; background: #392318; }
html[data-theme="dark"] .rf-result-bad .calc-result-value { color: #d67851; }
html[data-theme="dark"] .calc-result-log.rf-bad { color: #d67851; }
html[data-theme="dark"] .rf-group-note { border-left: 2px solid #2a343a; color: #67c1bb; }
html[data-theme="dark"] .rf-table .rf-why { color: #c3a465; }
html[data-theme="dark"] .rf-table .rf-identity { color: #9fa8ac; background: #101619; }
html[data-theme="dark"] .rf-table .rf-lambda { color: #51d6d0; background: #183935; }
html[data-theme="dark"] .rf-area-input { color: #a0a8ad; }
html[data-theme="dark"] .rf-area-input:hover { border-color: #283137; background: #0f1417; }
html[data-theme="dark"] .rf-area-input:focus { border-color: #26736f; background: #0f1417; color: #daddde; }
html[data-theme="dark"] .rf-area-edited { background: #392818; }
html[data-theme="dark"] .rf-area-edited .rf-area-input { color: #d67851; }
html[data-theme="dark"] .rf-area-reset { color: #d67851; }
html[data-theme="dark"] .rf-area-reset:hover { background: #392618; }
html[data-theme="dark"] .rf-edit-note { border-left: 2px solid #283137; color: #a9b0b4; }
html[data-theme="dark"] .rf-rescue { border: 1px solid #bf7940; background: #392918; }
html[data-theme="dark"] .rf-rescue-option { border: 1px solid #b88147; background: #0f1417; }
html[data-theme="dark"] .rf-rescue-head { color: #d5d8da; }
html[data-theme="dark"] .rf-rescue-count { background: #392a18; color: #b5bcbf; }
html[data-theme="dark"] .rf-rescue-why { color: #b7bdc1; }
html[data-theme="dark"] .rf-term { background: #392a18; }
html[data-theme="dark"] .table-panel .calc-intro code { background: #11171b; }
html[data-theme="dark"] .table-builder h4 { color: #c7ccce; }
html[data-theme="dark"] .table-row-pick { color: #b1b7bb; }
html[data-theme="dark"] .table-row-pick:hover { background: #10161a; }
html[data-theme="dark"] .table-row-pick.on { border-color: #293238; background: #183935; color: #d1d5d7; }
html[data-theme="dark"] .table-letter { background: #11171b; color: #c7ccce; }
html[data-theme="dark"] .table-col-row input, html[data-theme="dark"] .table-col-row select { border: 1px solid #283137; background: #0f1417; color: #daddde; }
html[data-theme="dark"] .table-col-row input:focus, html[data-theme="dark"] .table-col-row select:focus { border-color: #26736f; }
html[data-theme="dark"] .table-formula { color: #51d6d0 !important; }
html[data-theme="dark"] .table-letter-mini { color: #909a9f; }
html[data-theme="dark"] .table-err { color: #d67851; }
html[data-theme="dark"] .plot-section > h4 { color: #c7ccce; }
html[data-theme="dark"] .plot-card { border: 1px solid #283137; background: #101519; }
html[data-theme="dark"] .plot-controls input, html[data-theme="dark"] .plot-controls select, html[data-theme="dark"] .plot-axis select { border: 1px solid #283137; background: #0f1417; color: #daddde; }
html[data-theme="dark"] .plot-controls input:focus, html[data-theme="dark"] .plot-controls select:focus, html[data-theme="dark"] .plot-axis select:focus { border-color: #26736f; }
html[data-theme="dark"] .plot-axis { border: 1px solid #283137; background: #0f1417; }
html[data-theme="dark"] .plot-axis > label { color: #9fa7ac; }
html[data-theme="dark"] .plot-axis > label b { color: #646e73; }
html[data-theme="dark"] .plot-chip { border: 1px solid #283137; color: #a7aeb2; background: #0f1417; }
html[data-theme="dark"] .plot-chip.on { background: #101519; }
html[data-theme="dark"] .plot-chip:hover { border-color: #2c363d; background: #10161a; }
html[data-theme="dark"] .plot-fitbox { border: 1px solid #283137; background: #0f1417; color: #bbc1c4; }
html[data-theme="dark"] .plot-heading { color: #daddde; }
html[data-theme="dark"] .plot-svg { border: 1px solid #273036; background: #0f1417; }
html[data-theme="dark"] .plot-legend { color: #b1b7bb; }
html[data-theme="dark"] .plot-hint { color: #97a0a5; }
html[data-theme="dark"] .plot-empty { border: 1px dashed #283137; color: #9fa7ac; background: #0f1417; }
html[data-theme="dark"] .assignment-row { border-top: 1px solid #273036; }
html[data-theme="dark"] .assignment-main strong { color: #daddde; }
html[data-theme="dark"] .assignment-main span { color: #a0a8ad; }
html[data-theme="dark"] .assignment-mz { color: #51d6d0; }
html[data-theme="dark"] .assignment-tag { background: #12181c; color: #b4babe; }
html[data-theme="dark"] .empty-state { color: #a3abaf; }
html[data-theme="dark"] .empty-glyph { border: 1px solid #293339; color: #51d6d0; background: #183934; }
html[data-theme="dark"] .empty-state strong { color: #c4c9cc; }
html[data-theme="dark"] .empty-state p b { color: #51d6d1; }
html[data-theme="dark"] .source-details { color: #a0a8ad; }
html[data-theme="dark"] .dialog-close { color: #a6aeb2; background: #12181c; }
html[data-theme="dark"] .selected-peak { border: 1px solid #283237; background: #141b1f; }
html[data-theme="dark"] .selected-peak > div { background: #10161a; }
html[data-theme="dark"] .selected-peak span { color: #a2aaae; }
html[data-theme="dark"] .selected-peak strong { color: #51d6d0; }
html[data-theme="dark"] .form-grid label { color: #aeb5b9; }
html[data-theme="dark"] .form-grid input:not([type=color]), html[data-theme="dark"] .form-grid select, html[data-theme="dark"] .form-grid textarea { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .form-grid input:focus, html[data-theme="dark"] .form-grid textarea:focus { border-color: #303c43; }
html[data-theme="dark"] .form-grid input[type=color] { border: 1px solid #293339; background: #0f1417; }
html[data-theme="dark"] .import-note { border: 1px solid #293238; background: #393118; color: #c1c6c9; }
html[data-theme="dark"] .import-note b { color: #d3d7d9; }
html[data-theme="dark"] .import-grid label { color: #aeb5b9; }
html[data-theme="dark"] .import-grid input { border: 1px solid #293339; color: #d9ddde; background: #0f1417; }
html[data-theme="dark"] .import-grid input:focus { border-color: #303c43; }
html[data-theme="dark"] .import-status { color: #bac0c3; }
html[data-theme="dark"] .import-raw { border: 1px solid #293238; background: #10161a; }
html[data-theme="dark"] .import-raw-head strong { color: #51d6d1; }
html[data-theme="dark"] .import-raw-head span { color: #afb6b9; }
html[data-theme="dark"] .import-recent-label { color: #a7aeb2; }
html[data-theme="dark"] .recent-chip { border: 1px solid #293339; background: #0f1417; }
html[data-theme="dark"] .recent-chip:hover { border-color: #303c43; background: #183933; }
html[data-theme="dark"] .recent-chip:has(.recent-check:checked) { border-color: #349e97; background: #183934; }
html[data-theme="dark"] .recent-chip-open { color: #ccd0d2; }
html[data-theme="dark"] .recent-chip-open:hover { color: #51d6d1; }
html[data-theme="dark"] .recent-chip-open small { color: #99a2a7; }
html[data-theme="dark"] .help-grid { border: 1px solid #283238; background: #141b1f; }
html[data-theme="dark"] .help-grid > div { color: #b4bbbe; background: #101619; }
html[data-theme="dark"] .help-grid kbd { color: #51d6d0; background: #183934; }
html[data-theme="dark"] .toast { color: #aedfdc; background: #183843; }
html[data-theme="dark"] .cop-setup { border: 1px solid #bf8a40; background: #392c18; }
html[data-theme="dark"] .cop-user { color: #629ac6; }
html[data-theme="dark"] .cop-tool.write { color: #d6a051; }
html[data-theme="dark"] .cop-pending { border: 1px solid #283238; background: #183935; }
html[data-theme="dark"] .cop-diff li.danger { color: #c95f5f; }
html[data-theme="dark"] .cop-chip:hover { background: #183935; }
html[data-theme="dark"] .cop-setup-why { border-top: 1px solid #bf8a40; color: #d6a151; }


/* ---- hand-written fixes, after the seeded rules above -------------------- */

/* The mass panel reuses its error box as a neutral hint; on dark the seeded
   rule left it reading as a warning. */
html[data-theme="dark"] .mass-error.mass-hint { border-color: #26343d; color: #93a4ac; background: rgba(255, 255, 255, .03); }
