/* Katamatics theme palette: the one light/dark palette shared by the editors (Pro and Frames) and
   the viewer (and the Send from phone page). Page CSS uses these names and never hard-codes a theme colour. Accent fills use
   --accent; accent used as text or a thin line uses --accent-ink, which is lifted in dark so it
   stays readable. The Workshop and upload pages keep their own light palette and do not load this. */
:root {
  color-scheme: light;
  --page: #F1F2F4; --surface: #FFFFFF; --pale: #ECEDEF; --pale2: #F6F7F8;
  --line: #DCDEE1; --line-soft: #E9EAEC;
  --ink: #0E0F11; --soft: #3E434A; --faint: #6C7176;
  --accent: #D72638; --accent-dark: #A81E2C; --accent-ink: #D72638; --accent-bg: #FBE9EB; --on-accent: #FFFFFF;
  --amber: #C26A00; --green: #2F7D46; --red: #D72638; --red-bg: #FBE9EB; --warn-bg: #FEF4E8; --warn-box: #FDF3F4;
  --dash: #C9CCD1; --drop-bg: rgba(255, 255, 255, .85);
  --scrim: rgba(14, 15, 17, .45);
  --shadow-1: 0 1px 2px rgba(14, 15, 17, .06), 0 8px 24px rgba(14, 15, 17, .08);
  --shadow-2: 0 12px 32px rgba(14, 15, 17, .16);
}

/* Dark theme. Set on <html> by static/js/frames/settings.js (editors) or the viewer's own toggle. */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0E0F11; --surface: #161719; --pale: #222428; --pale2: #1C1D20;
  --line: rgba(255, 255, 255, .14); --line-soft: rgba(255, 255, 255, .08);
  --ink: rgba(255, 255, 255, .88); --soft: rgba(255, 255, 255, .64); --faint: rgba(255, 255, 255, .46);
  --accent-ink: #EF4A5B; --accent-bg: color-mix(in srgb, var(--accent) 16%, #161719);
  --amber: #E9A23B; --green: #5CBF7B; --red: #EF4A5B; --red-bg: rgba(239, 74, 91, .16);
  --warn-bg: rgba(233, 162, 59, .12); --warn-box: rgba(239, 74, 91, .08);
  --dash: rgba(255, 255, 255, .22); --drop-bg: rgba(22, 23, 25, .85);
  --scrim: rgba(0, 0, 0, .6);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .55);
}
