:root {
  color-scheme: light;

  /* Core palette */
  --bg: #f2f4f3;
  --bg-soft: #e9edeb;
  --bg-warm: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --card: #ffffff;
  --card-subtle: #f6f8f7;
  --border: rgba(9, 24, 39, 0.14);
  --border-strong: rgba(9, 24, 39, 0.24);
  --text: #23303f;
  --text-strong: #081522;
  --muted: #687482;
  --muted-2: #99a2ad;
  --primary: #195fc8;
  --primary-strong: #0e428f;
  --primary-soft: #eaf2ff;
  --chart-left-red: #e84959;
  --chart-right-blue: #176bff;
  --left-blue: #176bff;
  --right-red: #e84959;
  --aqua: #08a7a4;
  --success: #14804a;
  --danger: #c93649;
  --warning: #a96e05;

  /* Flat geometry */
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --sharp-radius: 6px;
  --sharp-radius-lg: 9px;
  --sharp-panel: #ffffff;
  --sharp-subtle: #f7f9f8;
  --sharp-line: rgba(9, 24, 39, 0.13);
  --sharp-line-soft: rgba(9, 24, 39, 0.08);

  /* Restrained depth */
  --shadow-xs: 0 1px 0 rgba(7, 17, 31, 0.05);
  --shadow-sm: 0 8px 20px rgba(7, 17, 31, 0.05);
  --shadow-md: 0 18px 38px rgba(7, 17, 31, 0.08);
  --shadow-lg: 0 28px 64px rgba(7, 17, 31, 0.1);
  --sharp-shadow: 0 8px 22px rgba(7, 17, 31, 0.045);

  /* Layout */
  --header-height: 76px;
  --content-max: 1780px;
  --content-gutter: clamp(14px, 2vw, 32px);
  --ring: 0 0 0 3px rgba(25, 95, 200, 0.2);

  /* Typography aliases retained for existing pages */
  --link: var(--primary);
  --link-hover: var(--primary-strong);
  --heading: var(--text-strong);
  --copy: var(--text);
  --copy-muted: var(--muted);

  /* Audiology accents */
  --accent-neutral-mid: #c8d5e8;

  /* Motion */
  --motion-fast: 160ms;
  --motion-standard: 260ms;
  --motion-slow: 520ms;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Admin compatibility */
  --admin-ink: #07111f;
  --admin-text: #243042;
  --admin-muted: #667085;
  --admin-line: #d9e0ea;
  --admin-line-soft: #edf0f5;
  --admin-panel: #ffffff;
  --admin-bg: #f6f8fb;
}
