/* Shared by the public pages and the React trading app. Financial status
   colors belong to each client and stay independent of the brand accent. */
:root {
  --tide-canvas: #080c10;
  --tide-surface: #101820;
  --tide-elevated: #17232e;
  --tide-divider: #273644;
  --tide-boundary: #687b8d;
  --tide-text: #eef4f8;
  --tide-text-secondary: #b1becc;
  --tide-text-muted: #8e9daf;
  --tide-on-accent: #080c10;
  --tide-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --tide-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Trading surfaces use fill for elevation and a single line between groups. */
  --terminal-base: #0a100f;
  --terminal-surface: #0f1716;
  --terminal-control: #131e1c;
  --terminal-control-hover: #182523;
  --terminal-accent: #34d399;
  --terminal-positive: #34d399;
  --terminal-text: #f1f5f9;
  --terminal-label: #94a3b8;
  --terminal-hint: #64748b;
  --terminal-divider: rgb(255 255 255 / 6%);
  --terminal-row-divider: rgb(255 255 255 / 5%);
  --terminal-edge: rgb(255 255 255 / 7%);
  --terminal-input-edge: rgb(255 255 255 / 8%);
  --terminal-highlight: inset 0 1px 0 rgb(255 255 255 / 3%);

  --accent-primary: #50e3c2;
  --accent-secondary: #83bafe;
  --glow-color: rgb(80 227 194 / 22%);
  --tide-accent-hover: #8bf2da;
  --tide-accent-tint: #102b28;
  --tide-accent-border: #3c796f;
}

:root[data-tide-appearance="cyan"],
:root[data-tide-appearance="amber"] {
  --terminal-accent: var(--accent-primary);
}

/* Public pages use these aliases after site.css. */
:root {
  --ht-canvas: var(--tide-canvas);
  --ht-surface: var(--tide-surface);
  --ht-elevated: var(--tide-elevated);
  --ht-divider: var(--tide-divider);
  --ht-boundary: var(--tide-boundary);
  --ht-text: var(--tide-text);
  --ht-text-2: var(--tide-text-secondary);
  --ht-muted: var(--tide-text-muted);
  --ht-accent: var(--accent-primary);
  --ht-accent-hover: var(--tide-accent-hover);
  --ht-accent-tint: var(--tide-accent-tint);
  --ht-accent-border: var(--tide-accent-border);
  --ht-on-accent: var(--tide-on-accent);
  --ht-sans: var(--tide-font-sans);
  --ht-mono: var(--tide-font-mono);
}

/* Place in a positioned, isolated container for a local background. The
   fixed attribute opts into a viewport background behind sibling content. */
tide-ambient {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 72% 36%, var(--tide-accent-tint), transparent 69%);
}
tide-ambient[fixed] { position: fixed; }
@media (forced-colors: active) { tide-ambient { display: none; } }
