:root,[data-theme="paper"]{
  color-scheme:light;--background:#f1f5f7;--foreground:#172a35;
  --surface:#ffffff;--surface-raised:#eaf0f4;--surface-inset:#f4f7f9;
  --border:#bdccd5;--primary:#126b58;--primary-foreground:#ffffff;
  --accent-text:#126b58;--muted-foreground:#4a616f;--warning-text:#855000;--error-text:#a72835;
  --popover:var(--surface);--popover-foreground:var(--foreground);
  --accent:var(--surface-raised);--accent-foreground:var(--foreground);
  --muted:var(--surface-raised);--input:var(--border);--ring:var(--primary);
}
[data-theme="warm"]{
  color-scheme:light;--background:#f6f1e6;--foreground:#2c302b;
  --surface:#fffaf0;--surface-raised:#eee7d8;--surface-inset:#f7f1e4;
  --border:#c8bea8;--primary:#376755;--primary-foreground:#ffffff;
  --accent-text:#315b4b;--muted-foreground:#62604f;--warning-text:#805000;--error-text:#9d2e35;
}
[data-theme="dark"]{
  color-scheme:dark;--background:#0b161e;--foreground:#edf5fa;
  --surface:#12212b;--surface-raised:#20333f;--surface-inset:#0e1c25;
  --border:#3c5562;--primary:#55e1bb;--primary-foreground:#092025;
  --accent-text:#71eac7;--muted-foreground:#a4bccb;--warning-text:#ffbb74;--error-text:#ffb19f;
}
.theme-picker{display:inline-flex;align-items:center;gap:10px;color:var(--muted-foreground);font:16px/1.5 Arial,sans-serif;white-space:nowrap}
.theme-picker-control{width:164px}
.theme-picker select{height:42px!important;background:var(--surface)!important;color:var(--foreground)!important;border:1px solid var(--border)!important;border-radius:8px;font:16px/1.5 Arial,sans-serif!important;padding:7px 30px 7px 12px;cursor:pointer}
.theme-picker select:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* Simulation planes use a distinct tint within each reading theme. */
:root,[data-theme="paper"]{
  --plot-background:#dbe7ef;--plot-grid:#668296;--plot-axis:#617c90;
  --plot-text:#18384e;--plot-joint:#213f55;--plot-ghost:#526f83;
  --plot-link-1:#075f59;--plot-link-2:#155b94;--plot-link-3:#63408f;
  --plot-path:#92284e;--plot-target:#814500;--plot-ik:#a11b78;
  --plot-body:#245c83;--plot-outline:#142f43;--plot-halo:#ffffff;--plot-workspace-fill:#155b9408;
  --plot-map-neutral:#dbe7ef;--plot-map-positive:#155b94;--plot-map-negative:#a12e3b;
  --plot-axis-x:#a12e3b;--plot-axis-y:#236530;--plot-axis-z:#155b94;
}
[data-theme="warm"]{
  --plot-background:#e9dec8;--plot-grid:#88714e;--plot-axis:#88714e;
  --plot-text:#42321e;--plot-joint:#493623;--plot-ghost:#756246;
  --plot-link-1:#285b43;--plot-link-2:#285c7b;--plot-link-3:#714578;
  --plot-path:#963d35;--plot-target:#7e4800;--plot-ik:#8c2966;
  --plot-body:#81542f;--plot-outline:#3f2c1b;--plot-halo:#fffaf0;--plot-workspace-fill:#81542f08;
  --plot-map-neutral:#e9dec8;--plot-map-positive:#285c7b;--plot-map-negative:#963d35;
  --plot-axis-x:#963d35;--plot-axis-y:#285b43;--plot-axis-z:#285c7b;
}
[data-theme="dark"]{
  --plot-background:#142d3a;--plot-grid:#7899ad;--plot-axis:#819dac;
  --plot-text:#d5e6f0;--plot-joint:#e0f4fa;--plot-ghost:#99b5c6;
  --plot-link-1:#68e4cf;--plot-link-2:#78c5ff;--plot-link-3:#c2a2ff;
  --plot-path:#ff94bc;--plot-target:#ffcc76;--plot-ik:#ff94df;
  --plot-body:#9ecfee;--plot-outline:#d5e6f0;--plot-halo:#081823;--plot-workspace-fill:#78c5ff08;
  --plot-map-neutral:#142d3a;--plot-map-positive:#3987e5;--plot-map-negative:#e66767;
  --plot-axis-x:#ff9292;--plot-axis-y:#82e39c;--plot-axis-z:#78c5ff;
}
