:root {
  color-scheme: dark;
  --bg: #071634;
  --bg-elevated: #05142c;
  --surface: #071832;
  --surface-raised: #0e2447;
  --surface-hover: #14325b;
  --border: #476fb0;
  --border-soft: #315489;
  --text: #f5f8ff;
  --text-muted: #cedcf9;
  --text-dim: #acbfdf;
  --accent: #1746d1;
  --accent-bright: #007ab8;
  --accent-soft: #53d8ff;
  --accent-glow: rgb(0 108 248 / 24%);
  --action-fill: linear-gradient(150deg, #285ce7, var(--accent));
  --action-rim: #42caff;
  --success: #22c55e;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --gold: #f6c453;
}

:root[data-palette] {
  --bg: var(--palette-background);
  --bg-elevated: color-mix(in srgb, var(--bg) 65%, var(--surface));
  --surface: var(--palette-surface);
  --text: var(--palette-text);
  --surface-raised: color-mix(in srgb, var(--surface) 92%, var(--text));
  --surface-hover: color-mix(in srgb, var(--surface) 85%, var(--text));
  --text-muted: color-mix(in srgb, var(--text) 84%, var(--surface));
  --text-dim: color-mix(in srgb, var(--text) 72%, var(--surface));
  --border: color-mix(in srgb, var(--text) 46%, var(--surface));
  --border-soft: color-mix(in srgb, var(--text) 26%, var(--surface));
  --accent: var(--palette-primary);
  --accent-bright: var(--palette-primary);
  --accent-soft: var(--palette-highlight);
  --accent-glow: color-mix(in srgb, var(--accent) 24%, transparent);
  --action-fill: var(--accent);
  --brand-fill: var(--accent);
  --action-rim: var(--accent-soft);
  --room-cover-top: color-mix(in srgb, var(--bg) 96%, transparent);
  --room-cover-bottom: color-mix(in srgb, var(--bg) 65%, transparent);
  --room-chip-bg: color-mix(in srgb, var(--bg-elevated) 91%, transparent);
  --room-input-bg: color-mix(in srgb, var(--bg-elevated) 93%, transparent);
  --room-panel-bg: color-mix(in srgb, var(--surface-raised) 81%, transparent);
  --room-control-bg: color-mix(in srgb, var(--surface-raised) 93%, transparent);
}
