/* Shared Polyer tokens. Both the console and public site consume this file. */
:root {
  --radius: 0.5rem;
  --background: #f2f5f4;        /* chart paper */
  --foreground: #13202b;        /* navy ink */
  --card: #ffffff;
  --card-foreground: #13202b;
  --popover: #ffffff;
  --popover-foreground: #13202b;
  --primary: #1f6e8c;           /* harbour blue */
  --primary-foreground: #ffffff;
  --secondary: #e6ecea;
  --secondary-foreground: #13202b;
  --muted: #e9eeec;
  --muted-foreground: #5d6b77;
  --accent: #e2edf1;
  --accent-foreground: #13202b;
  --destructive: #b5452f;       /* rust */
  --destructive-foreground: #ffffff;
  --border: #d9e1df;
  --input: #cfd8d6;
  --ring: #1f6e8c;
  --ok: #2f8a5b;                /* kelp */
  --ok-soft: #e1f0e7;
  --moving: #d9962b;            /* signal amber */
  --moving-soft: #f8ecd6;
  --bad: #b5452f;
  --bad-soft: #f6e1dc;
  --idle: #9aa6b0;
  --chart-dot: #c9d3d1;
  --log-bg: #13202b;
  --log-fg: #d8e1e8;
}

.dark {
  --background: #0d151c;
  --foreground: #e3eaf0;
  --card: #141f29;
  --card-foreground: #e3eaf0;
  --popover: #16222d;
  --popover-foreground: #e3eaf0;
  --primary: #5aaed1;
  --primary-foreground: #0b1620;
  --secondary: #1c2a36;
  --secondary-foreground: #e3eaf0;
  --muted: #1a2732;
  --muted-foreground: #8d9ba7;
  --accent: #1d3341;
  --accent-foreground: #e3eaf0;
  --destructive: #e07a62;
  --destructive-foreground: #0b1620;
  --border: #23323f;
  --input: #2b3b49;
  --ring: #5aaed1;
  --ok: #5fb685;
  --ok-soft: #173024;
  --moving: #eab25a;
  --moving-soft: #352a17;
  --bad: #e07a62;
  --bad-soft: #3a211c;
  --idle: #64727e;
  --chart-dot: #22313d;
  --log-bg: #0a1117;
  --log-fg: #d8e1e8;
}

:root { color-scheme: light; }
.dark { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
html.public-site:not(.light):not(.dark) {
  --background: #0d151c;
  --foreground: #e3eaf0;
  --card: #141f29;
  --card-foreground: #e3eaf0;
  --popover: #16222d;
  --popover-foreground: #e3eaf0;
  --primary: #5aaed1;
  --primary-foreground: #0b1620;
  --secondary: #1c2a36;
  --secondary-foreground: #e3eaf0;
  --muted: #1a2732;
  --muted-foreground: #8d9ba7;
  --accent: #1d3341;
  --accent-foreground: #e3eaf0;
  --destructive: #e07a62;
  --destructive-foreground: #0b1620;
  --border: #23323f;
  --input: #2b3b49;
  --ring: #5aaed1;
  --ok: #5fb685;
  --ok-soft: #173024;
  --moving: #eab25a;
  --moving-soft: #352a17;
  --bad: #e07a62;
  --bad-soft: #3a211c;
  --idle: #64727e;
  --chart-dot: #22313d;
  --log-bg: #0a1117;
  --log-fg: #d8e1e8;
}

html.public-site:not(.light):not(.dark) { color-scheme: dark; }
}
