/* Light uses evergreen ink on warm paper. The heat-map ramps encode data and stay absolute. */
:root[data-theme="light"] {
  color-scheme: light;
  --ch-paper: #f4f5ee;
  --ch-scope-paper: #edf4f3;
  --ch-surface: #fffef8;
  --ch-soft: #e8eee3;
  --ch-active: #dcebcf;
  --ch-text: #19291e;
  --ch-muted: #435648;
  --ch-secondary-profile: #53655c;
  --ch-accent: #285731;
  --ch-line: #748570;
  --ch-grid: #bac6b6;
  --ch-strong-line: #586f5a;
  --ch-focus: #175981;
  --ch-danger: #a22e49;
  --ch-warm: #814015;
  --ch-cool: #165875;
  --ch-on-accent: #fffef8;
  --ch-shadow: #26372138;
  --ch-overlay: #f9fbf4f2;
}
[data-theme-toggle] {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  padding: 0; border: 1px solid var(--ch-line, #526549); border-radius: 50%;
  color: var(--ch-accent, #d9e8bc); background: var(--ch-surface, #111a15); cursor: pointer;
}
[data-theme-toggle][hidden], [data-theme-toggle] .theme-moon,
[data-theme="light"] [data-theme-toggle] .theme-sun { display: none; }
[data-theme="light"] [data-theme-toggle] .theme-moon { display: block; }
[data-theme-toggle]:hover { border-color: var(--ch-accent, #d9fc87); }
[data-theme-toggle]:focus-visible { outline: 2px solid var(--ch-focus, #d9fc87); outline-offset: 3px; }

:root[data-theme="light"] :is(.atlas-controls, .atlas-picker, .atlas-calculation, .hub-lab) :is(button:enabled:hover, summary:hover) {
  background: var(--ch-active); border-color: var(--ch-accent);
}
:root[data-theme="light"] .chaos-atlas :is(button, select, input):disabled {
  background-color: #edf0e9; border-color: #a3afa1; color: #626f62; opacity: 1; cursor: default;
}
:root[data-theme="light"] .chaos-atlas :focus-visible { outline-color: var(--ch-focus); }
@media (pointer: coarse) { [data-theme-toggle] { width: 2.75rem; height: 2.75rem; } }
