/* Shared design tokens for the admin portal, customer portal, and technician
   console. Union of the color variables both apps already used — values are
   unchanged from what admin.html/portal.html had inline; this file just stops
   them being duplicated. */
:root {
  color-scheme: dark;
  --bg: #0a1220;
  --bg-2: #0f1b2e;
  --panel: #131f35;
  --panel-2: #18274a;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text: #dce4f3;
  --text-dim: #93a3c2;
  --text-faint: #5f708f;
  --text-strong: #eef3fb;
  --accent: #f97316;
  --accent-2: #fdba74;
  --brand: #3b6ea5;
  --ok: #34c07a;
  --warn: #f5b942;
  --crit: #ef5b5b;
  --info: #5b9bd5;
  --header-bg: rgba(10,18,32,0.8);
  --sidebar-bg: #0c1526;
  --glow: #16264a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  /* The sidebar keeps a dark background in BOTH themes (it's a fixed brand
     rail, not part of the light/dark content area), so its text needs its
     own fixed light-on-dark tokens instead of --text/--text-dim/--text-faint
     — those flip to dark colors in light mode and would go dark-on-dark
     here. Deliberately not redeclared in the light override below. */
  --sidebar-text: #eef3fb;
  --sidebar-text-dim: #93a3c2;
  --sidebar-text-faint: #5f708f;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fc;
  --bg-2: #eaf0f9;
  --panel: #ffffff;
  --panel-2: #eef3fb;
  --line: rgba(15,27,46,0.10);
  --line-strong: rgba(15,27,46,0.16);
  --text: #1b2740;
  --text-dim: #4c5b78;
  --text-faint: #7482a0;
  --text-strong: #0f1b2e;
  --header-bg: rgba(255,255,255,0.85);
  --sidebar-bg: #0f1b2e;
  --glow: #d7e4fb;
}

/* Chip/pill/badge text colors are tuned for dark backgrounds; on light theme
   they need darker ink so they stay legible. */
:root[data-theme="light"] .sev.warning,
:root[data-theme="light"] .badge.medium,
:root[data-theme="light"] .pill.pending,
:root[data-theme="light"] .metric-warn { color: #8a5a00; }
:root[data-theme="light"] .sev.critical,
:root[data-theme="light"] .badge.high,
:root[data-theme="light"] .metric-bad { color: #b3271b; }
:root[data-theme="light"] .sev.ok,
:root[data-theme="light"] .badge.low,
:root[data-theme="light"] .pill.online { color: #157a43; }
:root[data-theme="light"] .sev.info { color: #245e97; }
:root[data-theme="light"] .pill.offline { color: #64708c; }

* { box-sizing: border-box; }
body {
  font-family: var(--font); color: var(--text); margin: 0;
  background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h2 { font-size: 1.02rem; margin: 0; color: var(--text-strong); font-weight: 650; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent); margin: 0 0 0.35rem; }
.muted { color: var(--text-dim); font-size: 0.9rem; }
