html[data-theme="dark"] body.mc-site .curve-workspace {
  color-scheme: dark;
  --page: #100e22;
  --surface: #182033;
  --ink: #f3ead7;
  --muted: #d9cbb3;
  --line: #3a4b68;
  --purple: #7655dd;
}

html[data-theme="dark"] body.mc-site .curve-workspace .editor textarea,
html[data-theme="dark"] body.mc-site .curve-workspace .range-fields input {
  color: var(--ink);
  background: #101826;
  border-color: var(--line);
}

html[data-theme="dark"] body.mc-site .curve-workspace .editor textarea::placeholder {
  color: #c2b8d4;
}

html[data-theme="dark"] body.mc-site .curve-workspace .action:hover:not(:disabled),
html[data-theme="dark"] body.mc-site .curve-workspace .text-action,
html[data-theme="dark"] body.mc-site .curve-workspace .layout-toggle,
html[data-theme="dark"] kbd,
html[data-theme="dark"] body.mc-site .curve-workspace .syntax code,
html[data-theme="dark"] body.mc-site .curve-workspace .print-action {
  color: #eee2ff;
  background: #2e2546;
  border-color: var(--line);
}

html[data-theme="dark"] body.mc-site .curve-workspace .layout-toggle label,
html[data-theme="dark"] body.mc-site .curve-workspace .range-settings summary {
  color: var(--muted);
}

html[data-theme="dark"] body.mc-site .curve-workspace .layout-toggle label:has(input:checked) {
  color: #1b1464;
  background: #f6d78a;
}

html[data-theme="dark"] body.mc-site .curve-workspace .plate-heading {
  color: var(--ink);
}

html[data-theme="dark"] body.mc-site .curve-workspace .plate-heading h3 {
  color: #f6d78a !important;
}

html[data-theme="dark"] body.mc-site .curve-workspace .plate-number {
  color: var(--muted);
  background: #2e2546;
}

html[data-theme="dark"] body.mc-site .curve-workspace .plot,
html[data-theme="dark"] body.mc-site .curve-workspace .plot-svg {
  background: #fff;
}

html[data-theme="dark"] body.mc-site .curve-workspace .plate-tools .action {
  color: #f6d78a;
}

html[data-theme="dark"] body.mc-site .curve-workspace .empty {
  background: var(--surface);
  border-color: var(--line);
}

html[data-theme="dark"] body.mc-site .curve-workspace .input-error,
html[data-theme="dark"] body.mc-site .curve-workspace .save-status {
  color: #ffb4c6;
}

@media print {
  html[data-theme] { color-scheme: light; }
  html[data-theme] body.mc-site .curve-workspace,
  html[data-theme] body.mc-site .curve-workspace .plate,
  html[data-theme] body.mc-site .curve-workspace .plot {
    color: #111;
    background: #fff;
  }
}
