/* @core/theme: the custom properties every kit part and app screen draws with, and the base look on them. The values
   below are the no-script ones (light from the home design tokens, tokens.css, with plain fallbacks; dark the kit's
   own): applyTheme() replaces them with the device's chosen palette (palette-css.js) before the first paint. The theme
   follows the device (Auto) unless one was chosen on this device (data-theme on <html>); the layout is Comfortable
   unless Compact was. */
:root {
  color-scheme: light dark;
  --font: var(--home-font, system-ui, sans-serif);
  --font-head: inherit;
  --leading: 1.5;
  --bg: light-dark(var(--home-bg, #f5f5f7), #1c1c1e);
  --surface: light-dark(var(--home-surface, #ffffff), #2c2c2e);
  --text: light-dark(var(--home-ink, #1d1d1f), #f2f2f7);
  --muted: light-dark(var(--home-muted, #636368), #aeaeb2);
  --line: light-dark(var(--home-control, #8a8a91), #8e8e93);
  --accent: light-dark(var(--home-accent, #3a6390), #8fb4e0);
  --on-accent: light-dark(#ffffff, #111113);
  --danger: light-dark(var(--home-bad, #b3261e), #ff8a80);
  --ok: light-dark(#197934, #74dd90);
  --warn: light-dark(#8a5a00, #f3c46e);
  --fill: var(--accent);
  --on-fill: var(--on-accent);
  --link: var(--accent);
  --focus: var(--accent);
  --selection: light-dark(#d8e0e9, #4a5a6e);
  --backdrop: rgb(0 0 0 / .4);
  /* glass (glass.css): the card colour, see-through; the palette sets how much from its contrast floor */
  --glass: color-mix(in srgb, var(--surface) 92%, transparent);
  --glass-thick: color-mix(in srgb, var(--surface) 94%, transparent);
  --glass-clear: color-mix(in srgb, var(--surface) 92%, transparent);
  --glass-blur: blur(14px) saturate(1.6);
  --glass-blur-thick: blur(28px) saturate(1.4);
  --glass-rim: inset 0 1px 0 light-dark(rgb(255 255 255 / .8), rgb(255 255 255 / .14)),
    inset 0 0 0 .5px light-dark(rgb(255 255 255 / .5), rgb(255 255 255 / .1));
  --glass-shadow: 0 0 0 .5px rgb(0 0 0 / .08), 0 6px 20px light-dark(rgb(0 0 0 / .12), rgb(0 0 0 / .4)), 0 1px 3px rgb(0 0 0 / .08);
  /* springs: CSS linear() samples of a damped spring (smooth none past the end, snappy a little, bouncy more) */
  --spring: linear(0, .075, .228, .391, .537, .657, .751, .822, .874, .912, .939, .958, .971, .98, .987, .991, .994, .996, .997, .998, 1);
  --spring-snappy: linear(0, .166, .462, .72, .891, .983, 1.021, 1.028, 1.023, 1.015, 1.007, 1.003, 1, .999, .999, .999, 1);
  --spring-bouncy: linear(0, .208, .589, .906, 1.079, 1.126, 1.101, 1.053, 1.012, .99, .984, .987, .993, .998, 1.001, 1.002, 1);
  --d-spring: 480ms;
  --radius-s: .25rem;
  --radius: .4rem;
  --radius-l: .75rem;
  --border: 1px;
  --shadow: 0 1px 3px rgb(0 0 0 / .14);
  --gap: .5rem;
  --pad: 1rem;
  --tap: 44px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { :root { --d-spring: 1ms; } }
:root[data-layout="compact"] { --gap: .25rem; --pad: .5rem; font-size: 93.75%; }

body { font-family: var(--font); line-height: var(--leading); background: var(--bg); color: var(--text); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }
button, input, select { font: inherit; color: inherit; }
button { min-height: var(--tap); padding: 0 var(--pad); cursor: pointer; border-radius: var(--radius); }
button, select { background: var(--surface); border: var(--border) solid var(--line); }
input[type="color"] { min-height: var(--tap); min-width: var(--tap); padding: 2px; border: var(--border) solid var(--line);
  border-radius: var(--radius); background: var(--surface); }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--selection); color: var(--text); }
