/* ATLAS semantic palette. Theme presets may override the legacy hooks on <html>.
   Do not put user theme values here: saved presets/custom colors remain authoritative. */
:root {
  --bg:#08090C; --topbar-bg:#0E1014; --chart-bg:var(--bg);
  --panel:#14171D; --panel-2:#1B1F27;
  --border:#1E222A; --border-strong:#2A2F3A;
  --text:#F2F4F7; --muted:#A6AEBB; --text-tertiary:#6E7683;
  --accent:#3E9BFF; --accent-ink:#05111F;
  --green:#26C281; --red:#F5455C; --warning:#F0B75B;
  --brand-navy:#020042; --bitcoin:#F7931A;
  --surface-1:var(--topbar-bg); --surface-2:var(--panel); --surface-3:var(--panel-2);
  --border-subtle:var(--border); --text-primary:var(--text); --text-secondary:var(--muted);
  --up:var(--green); --down:var(--red);
  --accent-soft:color-mix(in srgb,var(--accent) 14%,transparent);
  --focus-ring:var(--accent); --shadow:rgba(0,0,0,.45);
  --overlay:rgba(0,0,0,.68); --shadow-soft:rgba(0,0,0,.35);
  --auth-bg:var(--bg); --auth-card:var(--panel); --auth-panel:var(--panel-2);
  --auth-border:var(--border); --auth-text:var(--text); --auth-muted:var(--muted);
  --auth-accent:var(--accent); --auth-danger:var(--red); --auth-success:var(--green);
}
/* One keyboard focus treatment, independent of page-specific outline resets. */
:focus-visible { outline:2px solid var(--accent)!important; outline-offset:3px!important; }

/* theme-i18n-v1: graphite details apply only to the new preset. */
:root[data-theme-preset="dark-gray"] {
  --border-strong:#4B4E57; --text-tertiary:#818690;
  --accent-ink:#151923; --warning:#D9B778;
  --overlay:rgba(12,13,15,.74); --shadow-soft:rgba(0,0,0,.28);
  --surface-1:var(--topbar-bg); --surface-2:var(--panel); --surface-3:var(--panel-2);
}
:root[data-theme-preset="dark-gray"] :is(.settings-dialog,.dialog,.alerts-panel,.context-menu) {
  box-shadow:0 16px 48px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.025);
}
