/* Foundation shared with Home Hub, adapted from frontend/src/themes-current.css. */
:root {
  --hue: 145;
  --page: #101010;
  --panel: #1b1b1b;
  --raised: #272727;
  --line: #303030;
  --ink: #f5f5f3;
  --muted: #999;
  --accent: hsl(var(--hue) 68% 54%);
  --accent-ink: var(--accent);
  --accent-soft: hsl(var(--hue) 25% 16%);
  --on-accent: #08150c;
  --danger: #ec9a88;
  --danger-surface: #352321;
  --card-radius: 26px;
  --control-radius: 16px;
  font-family: 'Avenir Next', Avenir, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--page);
  color-scheme: dark;
}
:root[data-palette="v1"] { --hue: 77; }
:root[data-theme="light"] {
  --page: #eeeeed;
  --panel: #fff;
  --raised: #f4f4f3;
  --line: #dededc;
  --ink: #171717;
  --muted: #717171;
  --accent: hsl(var(--hue) 60% 35%);
  --accent-ink: hsl(var(--hue) 65% 30%);
  --accent-soft: hsl(var(--hue) 35% 92%);
  --on-accent: #fff;
  --danger: #9c3d2c;
  --danger-surface: #f9eae5;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input, select { font: inherit; }
button {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--raised);
  color: var(--ink);
  font-weight: 550;
  line-height: 1.25;
  touch-action: manipulation;
}
button:hover:not(:disabled) { border-color: var(--muted); }
button:disabled { opacity: .4; cursor: not-allowed; }
button:active:not(:disabled) { transform: scale(.98); }
button svg { pointer-events: none; }
:where(button, input, select, summary, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
:where(h1, h2, h3, p) { margin: 0; }
:where(h1, h2, h3) { font-weight: 550; letter-spacing: -.7px; }
:where(h1) { font-size: 38px; letter-spacing: -1.7px; }
:where(h2) { font-size: 22px; }
:where(h3) { font-size: 16px; }
:where(p, small) { color: var(--muted); line-height: 1.65; }
