/* YS eGKB design tokens: the ONE source of colour for the React app (/app/), the passcode page and the older
   server-rendered pages. Values are the approved mockup's (docs/superpowers/specs/assets/2026-11-24-ys-egkb-mockup.html);
   the few that differ were darkened or lightened to reach WCAG AA (4.5:1 for text, 3:1 for control edges) and are
   listed in the Task 6 report. Dark is the default; light is chosen with data-theme="light" on <html>. */
:root {
  --bg: #0A0D13; --panel: #111620; --panel2: #161C28; --line: #222B3B; --line2: #2C374B;
  --text: #E8ECF4; --muted: #93A0B8; --dim: #7C89A2;
  --accent: #2DD4A7; --accent-ink: #04261D; --accent-soft: rgba(45, 212, 167, .13);
  --blue: #6EA8FF; --amber: #F5B54A; --red: #FF7A85; --violet: #B59CFF;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --grid: #1C2433;
  /* additions: the edge of a control (3:1 on its surface), and tinted backgrounds for tags */
  --control: #6E7B94;
  /* far end of the brand mark's gradient (accent -> brand-end); ink on it is accent-ink */
  --brand-end: #5BE3C0;
  --blue-soft: color-mix(in srgb, var(--blue) 13%, transparent);
  --amber-soft: color-mix(in srgb, var(--amber) 13%, transparent);
  --red-soft: color-mix(in srgb, var(--red) 13%, transparent);
  --violet-soft: color-mix(in srgb, var(--violet) 13%, transparent);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F6FA; --panel: #FFFFFF; --panel2: #F7F9FC; --line: #E3E8F0; --line2: #D3DAE6;
  --text: #131A27; --muted: #56637A; --dim: #5F6D84;
  --accent: #07755A; --accent-ink: #FFFFFF; --accent-soft: rgba(7, 117, 90, .10);
  --blue: #2859C0; --amber: #8A560C; --red: #B3314A; --violet: #6040CC;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --grid: #EDF1F6;
  --control: #76829A;
  --brand-end: #0A8366;   /* white on both ends of the gradient is at least 4.7:1 */
  color-scheme: light;
}
