/*
 * Omnismile brand tokens (v1, 2026-10-21).
 * Source of truth: docs/brand/ in drandrewdjohnson/omnismile-imaging.
 * Dark is the default. Light mode is a fallback: add class "light" (or "light-mode")
 * on <html>, or follow the device when the app has no toggle (see BRAND.md).
 */
:root {
  /* Brand colors (sampled from the logo files) */
  --os-navy: #2d4068;        /* "omni" and the outer arcs of the mark */
  --os-blue: #56a5da;        /* "smile" and the bar of the mark */
  --os-grey: #b9b9b9;        /* "Digital Dental Solutions" subtitle */
  --os-black: #0e1117;       /* dark background of the 3D logo */

  /* Dark theme (default) */
  --os-bg: #0e1117;
  --os-surface: #161b26;     /* cards, panels */
  --os-surface-2: #1e2533;   /* inputs, hover, nested panels */
  --os-border: #2a3346;
  --os-text: #e8ecf4;
  --os-text-muted: #a3acbd;
  --os-primary: #56a5da;     /* buttons, links, focus ring */
  --os-primary-hover: #74b6e2;
  --os-on-primary: #0e1117;  /* text on a primary button (7:1 contrast) */
  --os-accent: #2d4068;      /* selected rows, chips, header strip */
  --os-on-accent: #e8ecf4;
  --os-success: #4ade80;
  --os-warning: #fbbf24;
  --os-danger: #f87171;
  --os-focus: #74b6e2;
  --os-radius: 12px;
  --os-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

/* Light fallback (printing, bright sunlight, or a user's choice) */
html.light, html.light-mode, :root[data-theme="light"] {
  --os-bg: #f5f7fb;
  --os-surface: #ffffff;
  --os-surface-2: #eef2f8;
  --os-border: #d5dce8;
  --os-text: #141b2d;
  --os-text-muted: #4d5872;
  --os-primary: #2d4068;
  --os-primary-hover: #243555;
  --os-on-primary: #ffffff;
  --os-accent: #dcebf7;
  --os-on-accent: #1d3352;
  --os-success: #15803d;
  --os-warning: #b45309;
  --os-danger: #b91c1c;
  --os-focus: #2c76ae;
  color-scheme: light;
}

/* Paper is always light */
@media print {
  :root {
    --os-bg: #ffffff; --os-surface: #ffffff; --os-surface-2: #ffffff; --os-border: #cccccc;
    --os-text: #000000; --os-text-muted: #333333; --os-primary: #2d4068; --os-on-primary: #ffffff;
    color-scheme: light;
  }
}
