/* GENERATED: tokens.css + the navigation rail of base.css + demo-parts.css (tools/build-site.mjs). */
/* =====================================================================
   Dialer's Apps design tokens: Material 3 Expressive, dark-first.
   - Colour roles use MD3 names. The hub palette is the default; product
     pages swap in a .theme-<id> class from css/themes.css (generated by
     tools/build-site.mjs from each icon's seed colour).
   - Type: Roboto Flex (self-hosted latin subset, SIL OFL 1.1,
     https://fonts.google.com/specimen/Roboto+Flex/license). Emphasized
     styles = heavier wght + wider wdth.
   - Motion: M3 Expressive springs sampled into CSS linear() easings.
   ===================================================================== */

@font-face {
  font-family: "Roboto Flex";
  src: url("/fonts/roboto-flex-latin.woff2") format("woff2");
  font-weight: 400 1000;
  font-stretch: 100% 130%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* ---- Colour roles: hub (seed #E2283C logo red, tertiary = logo ring blue) ---- */
  --primary: #FFB3AE;
  --on-primary: #680011;
  --primary-container: #B3102A;
  --on-primary-container: #FFDAD7;
  --secondary-container: #373B52;
  --on-secondary-container: #DDE1FA;
  --tertiary: #A9C7FF;
  --on-tertiary: #003063;
  --tertiary-container: #1F4D97;
  --on-tertiary-container: #D6E3FF;
  --surface: #111318;
  --surface-container-lowest: #0C0E13;
  --surface-container-low: #191C22;
  --surface-container: #1D2026;
  --surface-container-high: #282A31;
  --surface-container-highest: #33353C;
  --on-surface: #E2E2E9;
  --on-surface-variant: #C4C6D0;
  --outline: #8E9099;
  --outline-variant: #44474F;
  --scrim: rgb(0 0 0 / .6);
  --device-bezel: #07080B;

  /* ---- Type ---- */
  --font: "Roboto Flex", "Google Sans Flex", "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* ---- Shape: corner tokens ---- */
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;      /* chips */
  --shape-lg: 16px;      /* fields */
  --shape-xl: 28px;      /* cards */
  --shape-xl-hover: 40px;
  --shape-xxl: 48px;     /* bands, hero frames */
  --shape-full: 999px;
  --shape-press: 14px;   /* pill squashes to this on press */

  /* ---- Shape: expressive polygons (60 points so CSS can interpolate between them) ---- */
  --shape-circle: polygon(50.0% 0.0%,55.2% 0.3%,60.4% 1.1%,65.5% 2.4%,70.3% 4.3%,75.0% 6.7%,79.4% 9.5%,83.5% 12.8%,87.2% 16.5%,90.5% 20.6%,93.3% 25.0%,95.7% 29.7%,97.6% 34.5%,98.9% 39.6%,99.7% 44.8%,100.0% 50.0%,99.7% 55.2%,98.9% 60.4%,97.6% 65.5%,95.7% 70.3%,93.3% 75.0%,90.5% 79.4%,87.2% 83.5%,83.5% 87.2%,79.4% 90.5%,75.0% 93.3%,70.3% 95.7%,65.5% 97.6%,60.4% 98.9%,55.2% 99.7%,50.0% 100.0%,44.8% 99.7%,39.6% 98.9%,34.5% 97.6%,29.7% 95.7%,25.0% 93.3%,20.6% 90.5%,16.5% 87.2%,12.8% 83.5%,9.5% 79.4%,6.7% 75.0%,4.3% 70.3%,2.4% 65.5%,1.1% 60.4%,0.3% 55.2%,0.0% 50.0%,0.3% 44.8%,1.1% 39.6%,2.4% 34.5%,4.3% 29.7%,6.7% 25.0%,9.5% 20.6%,12.8% 16.5%,16.5% 12.8%,20.6% 9.5%,25.0% 6.7%,29.7% 4.3%,34.5% 2.4%,39.6% 1.1%,44.8% 0.3%);
  --shape-cookie9: polygon(50.0% 0.0%,55.1% 1.8%,59.4% 5.9%,63.2% 9.4%,67.6% 10.5%,73.1% 9.9%,79.0% 10.1%,83.3% 13.0%,85.2% 18.3%,85.6% 24.1%,86.8% 28.7%,90.2% 32.1%,95.1% 35.3%,98.7% 39.6%,99.0% 44.8%,96.3% 50.0%,93.0% 54.5%,91.8% 58.9%,92.9% 63.9%,94.3% 69.7%,93.3% 75.0%,89.2% 78.5%,83.5% 80.2%,78.6% 81.7%,75.4% 85.0%,73.1% 90.1%,70.0% 95.0%,65.4% 97.4%,59.9% 96.4%,54.6% 93.8%,50.0% 92.5%,45.4% 93.8%,40.1% 96.4%,34.6% 97.4%,30.0% 95.0%,26.9% 90.1%,24.6% 85.0%,21.4% 81.7%,16.5% 80.2%,10.8% 78.5%,6.7% 75.0%,5.7% 69.7%,7.1% 63.9%,8.2% 58.9%,7.0% 54.5%,3.8% 50.0%,1.0% 44.8%,1.3% 39.6%,4.9% 35.3%,9.8% 32.1%,13.2% 28.7%,14.4% 24.1%,14.8% 18.3%,16.7% 13.0%,21.0% 10.1%,26.9% 9.9%,32.4% 10.5%,36.8% 9.4%,40.6% 5.9%,44.9% 1.8%);
  --shape-cookie12: polygon(50.0% 0.0%,55.0% 2.0%,59.5% 5.5%,64.1% 6.7%,69.6% 5.9%,75.0% 6.7%,78.4% 10.9%,80.4% 16.2%,83.8% 19.6%,89.1% 21.6%,93.3% 25.0%,94.1% 30.4%,93.3% 35.9%,94.5% 40.5%,98.0% 45.0%,100.0% 50.0%,98.0% 55.0%,94.5% 59.5%,93.3% 64.1%,94.1% 69.6%,93.3% 75.0%,89.1% 78.4%,83.8% 80.4%,80.4% 83.8%,78.4% 89.1%,75.0% 93.3%,69.6% 94.1%,64.1% 93.3%,59.5% 94.5%,55.0% 98.0%,50.0% 100.0%,45.0% 98.0%,40.5% 94.5%,35.9% 93.3%,30.4% 94.1%,25.0% 93.3%,21.6% 89.1%,19.6% 83.8%,16.2% 80.4%,10.9% 78.4%,6.7% 75.0%,5.9% 69.6%,6.7% 64.1%,5.5% 59.5%,2.0% 55.0%,0.0% 50.0%,2.0% 45.0%,5.5% 40.5%,6.7% 35.9%,5.9% 30.4%,6.7% 25.0%,10.9% 21.6%,16.2% 19.6%,19.6% 16.2%,21.6% 10.9%,25.0% 6.7%,30.4% 5.9%,35.9% 6.7%,40.5% 5.5%,45.0% 2.0%);
  --shape-clover4: polygon(50.0% 0.0%,55.2% 0.8%,60.0% 3.2%,63.9% 7.3%,65.2% 15.8%,66.7% 21.1%,68.3% 24.8%,70.2% 27.6%,72.4% 29.8%,75.2% 31.7%,78.9% 33.3%,84.2% 34.8%,92.7% 36.1%,96.8% 40.0%,99.2% 44.8%,100.0% 50.0%,99.2% 55.2%,96.8% 60.0%,92.7% 63.9%,84.2% 65.2%,78.9% 66.7%,75.2% 68.3%,72.4% 70.2%,70.2% 72.4%,68.3% 75.2%,66.7% 78.9%,65.2% 84.2%,63.9% 92.7%,60.0% 96.8%,55.2% 99.2%,50.0% 100.0%,44.8% 99.2%,40.0% 96.8%,36.1% 92.7%,34.8% 84.2%,33.3% 78.9%,31.7% 75.2%,29.8% 72.4%,27.6% 70.2%,24.8% 68.3%,21.1% 66.7%,15.8% 65.2%,7.3% 63.9%,3.2% 60.0%,0.8% 55.2%,0.0% 50.0%,0.8% 44.8%,3.2% 40.0%,7.3% 36.1%,15.8% 34.8%,21.1% 33.3%,24.8% 31.7%,27.6% 29.8%,29.8% 27.6%,31.7% 24.8%,33.3% 21.1%,34.8% 15.8%,36.1% 7.3%,40.0% 3.2%,44.8% 0.8%);
  --shape-clover8: polygon(50.0% 0.0%,55.1% 1.7%,58.9% 8.2%,62.0% 13.1%,65.5% 15.2%,70.2% 15.1%,77.4% 12.3%,83.2% 13.1%,86.9% 16.8%,87.7% 22.6%,84.9% 29.8%,84.8% 34.5%,86.9% 38.0%,91.8% 41.1%,98.3% 44.9%,100.0% 50.0%,98.3% 55.1%,91.8% 58.9%,86.9% 62.0%,84.8% 65.5%,84.9% 70.2%,87.7% 77.4%,86.9% 83.2%,83.2% 86.9%,77.4% 87.7%,70.2% 84.9%,65.5% 84.8%,62.0% 86.9%,58.9% 91.8%,55.1% 98.3%,50.0% 100.0%,44.9% 98.3%,41.1% 91.8%,38.0% 86.9%,34.5% 84.8%,29.8% 84.9%,22.6% 87.7%,16.8% 86.9%,13.1% 83.2%,12.3% 77.4%,15.1% 70.2%,15.2% 65.5%,13.1% 62.0%,8.2% 58.9%,1.7% 55.1%,0.0% 50.0%,1.7% 44.9%,8.2% 41.1%,13.1% 38.0%,15.2% 34.5%,15.1% 29.8%,12.3% 22.6%,13.1% 16.8%,16.8% 13.1%,22.6% 12.3%,29.8% 15.1%,34.5% 15.2%,38.0% 13.1%,41.1% 8.2%,44.9% 1.7%);
  --shape-sunny: polygon(50.0% 0.0%,55.1% 1.3%,59.7% 4.3%,63.8% 7.6%,67.9% 9.7%,72.7% 10.6%,78.2% 11.2%,83.3% 13.0%,87.0% 16.7%,88.8% 21.8%,89.4% 27.2%,90.3% 32.1%,92.4% 36.2%,95.7% 40.3%,98.7% 44.9%,100.0% 50.0%,98.7% 55.1%,95.7% 59.7%,92.4% 63.8%,90.3% 67.9%,89.4% 72.7%,88.8% 78.2%,87.0% 83.3%,83.3% 87.0%,78.2% 88.8%,72.7% 89.4%,67.9% 90.3%,63.8% 92.4%,59.7% 95.7%,55.1% 98.7%,50.0% 100.0%,44.9% 98.7%,40.3% 95.7%,36.2% 92.4%,32.1% 90.3%,27.2% 89.4%,21.8% 88.8%,16.7% 87.0%,13.0% 83.3%,11.2% 78.2%,10.6% 72.8%,9.7% 67.9%,7.6% 63.8%,4.3% 59.7%,1.3% 55.1%,0.0% 50.0%,1.3% 44.9%,4.3% 40.3%,7.6% 36.2%,9.7% 32.1%,10.6% 27.2%,11.2% 21.8%,13.0% 16.7%,16.7% 13.0%,21.8% 11.2%,27.2% 10.6%,32.1% 9.7%,36.2% 7.6%,40.3% 4.3%,44.9% 1.3%);

  /* ---- Motion: springs (spatial overshoot; effects never overshoot) ---- */
  /* spatial fast: damping 0.6, stiffness 800, ~350 ms */
  --spring-fast: linear(0,0.088 4.2%,0.274 8.3%,0.491 12.5%,0.694 16.7%,0.859 20.8%,0.977 25%,1.049 29.2%,1.085 33.3%,1.093 37.5%,1.084 41.7%,1.067 45.8%,1.046 50%,1.027 54.2%,1.012 58.3%,1.002 62.5%,0.995 66.7%,0.992 70.8%,0.991 75%,0.994 83.3%,0.998 91.7%,1);
  /* spatial default: damping 0.8, stiffness 380, ~500 ms */
  --spring-default: linear(0,0.05 4.2%,0.16 8.3%,0.296 12.5%,0.439 16.7%,0.568 20.8%,0.681 25%,0.776 29.2%,0.849 33.3%,0.905 37.5%,0.947 41.7%,0.975 45.8%,0.994 50%,1.005 54.2%,1.011 58.3%,1.014 62.5%,1.014 66.7%,1.012 75%,1.008 83.3%,1.004 91.7%,1);
  /* spatial slow: damping 0.8, stiffness 200, ~650 ms (page-level container transforms) */
  --spring-slow: linear(0,0.06 4.2%,0.194 8.3%,0.354 12.5%,0.511 16.7%,0.649 20.8%,0.761 25%,0.848 29.2%,0.912 33.3%,0.956 37.5%,0.985 41.7%,1.002 45.8%,1.011 50%,1.015 54.2%,1.015 58.3%,1.014 62.5%,1.011 66.7%,1.009 70.8%,1.007 75%,1.005 79.2%,1.003 83.3%,1.002 87.5%,1.001 91.7%,1);
  /* effects: damping 1.0, stiffness 1600 (colour, opacity) */
  --effects: linear(0,0.06 4.2%,0.183 8.3%,0.322 12.5%,0.448 16.7%,0.565 20.8%,0.663 25%,0.739 29.2%,0.802 33.3%,0.852 37.5%,0.889 41.7%,0.916 45.8%,0.938 50%,0.955 54.2%,0.975 62.5%,0.987 70.8%,0.993 79.2%,0.997 87.5%,1);
  --dur-fast: 350ms;
  --dur-default: 500ms;
  --dur-slow: 650ms;
  --dur-effects-fast: 150ms;
  --dur-effects: 200ms;
  --dur-effects-slow: 300ms;
  --stagger-step: 50ms;

  /* ---- Layout ---- */
  --rail-w: 96px;
  --bar-h: 80px;
  --topbar-h: 64px;
  --topbar-h-expanded: 96px;
  --page-max: 1400px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --player-h: 0px; /* phase 2: the music / KAOS-FM mini-player sets this when it is showing */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-default: 0ms;
    --dur-slow: 0ms;
    --dur-effects-fast: 0ms;
    --dur-effects: 0ms;
    --dur-effects-slow: 0ms;
    --stagger-step: 0ms;
  }
}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Navigation rail (>= 600px) and navigation bar (< 600px): one element, two layouts */
.nav {
  position: fixed; z-index: 40;
  display: flex; background: var(--surface-container-low);
  view-transition-name: site-nav;
}
.nav-logo { display: none; }
.nav-list { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 56px; color: var(--on-surface-variant); text-decoration: none;
  font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .5px;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover { color: var(--on-surface); }
.nav-item .pill {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 32px; border-radius: var(--shape-full);
  transition: width var(--dur-fast) var(--spring-fast), background-color var(--dur-effects) var(--effects), border-radius var(--dur-fast) var(--spring-fast);
}
.nav-item:hover .pill { background: var(--surface-container-high); }
.nav-item:active .pill { border-radius: var(--shape-press); }
.nav-item[aria-current="page"] { color: var(--on-surface); }
.nav-item[aria-current="page"] .pill { width: 64px; background: var(--secondary-container); color: var(--on-secondary-container); }
.nav-item:focus-visible { outline: none; }
.nav-item:focus-visible .pill { outline: 3px solid var(--tertiary); outline-offset: 2px; }
.nav-item svg { width: 24px; height: 24px; }

@media (min-width: 600px) {
  .nav { left: 0; top: 0; bottom: 0; width: var(--rail-w); flex-direction: column; align-items: center; gap: 28px; padding: 24px 8px; }
  .nav-logo { display: block; width: 56px; height: 56px; clip-path: var(--shape-cookie12); transition: clip-path var(--dur-default) var(--spring-default), transform var(--dur-default) var(--spring-default); }
  .nav-logo:hover, .nav-logo:focus-visible { clip-path: var(--shape-clover4); transform: rotate(22deg) scale(1.04); }
  .nav-logo img { width: 56px; height: 56px; }
  .nav-list { flex-direction: column; gap: 12px; }
  .nav-item { width: 80px; }
  .shell { margin-left: var(--rail-w); }
}
@media (max-width: 599.98px) {
  .nav {
    left: 0; right: 0; bottom: 0; height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding: 0 8px env(safe-area-inset-bottom); background: var(--surface-container);
    border-top: 1px solid var(--outline-variant);
  }
  .nav-list { flex: 1; }
  .nav-list li { flex: 1 1 0; display: flex; }
  .nav-item { flex: 1; padding-top: 12px; min-height: var(--bar-h); }
  .shell { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   Lab demo and test pages. They keep their own markup, styles and scripts;
   this sheet (appended after theirs, built into css/demo.css together with
   the tokens and the navigation rail) re-skins them in Material 3.
   ===================================================================== */
html:root { color-scheme: dark; --bg: var(--surface-container-lowest); --fg: var(--on-surface); --dim: var(--on-surface-variant); --card: var(--surface-container); --line: var(--outline-variant); --acc: var(--tertiary); --alt: var(--primary); --ok: #8BD88F; }
html body { max-width: none; margin: 0; padding: 0 clamp(16px, 3vw, 40px) 64px; background: var(--surface); color: var(--on-surface); font: 15px/1.55 var(--font); }
@media (min-width: 600px) { html body { padding-left: calc(var(--rail-w) + clamp(16px, 3vw, 40px)); } }
@media (max-width: 599.98px) { html body { padding-bottom: calc(var(--bar-h) + 32px + env(safe-area-inset-bottom)); } }
html body > :not(.nav):not(.demo-bar):not(script) { max-width: 980px; margin-left: auto; margin-right: auto; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 980px; margin: 0 auto; padding: 16px 0 8px; }
.demo-bar a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--shape-full); background: var(--secondary-container); color: var(--on-secondary-container); font-size: 14px; font-weight: 650; text-decoration: none; transition: border-radius var(--dur-fast) var(--spring-fast), transform var(--dur-fast) var(--spring-fast); }
.demo-bar a:hover { transform: translateY(-2px); color: var(--on-secondary-container); }
.demo-bar a:active { border-radius: var(--shape-press); transform: scale(.96); }
.demo-bar strong { margin-left: auto; font-weight: 900; font-stretch: 128%; letter-spacing: .5px; }
@media (max-width: 599.98px) { .demo-bar strong { display: none; } }
html body h1 { margin: 16px auto 4px; font-size: clamp(32px, 1.4rem + 2vw, 48px); line-height: 1.12; font-weight: 820; font-stretch: 114%; overflow-wrap: anywhere; }
html body h1 span { color: var(--primary); }
html body h2 { font-weight: 700; }
html body .card, html body main > .card { margin-top: 14px; margin-bottom: 14px; padding: 20px; border: 0; border-radius: var(--shape-xl); background: var(--surface-container); animation: demo-in var(--dur-slow) var(--spring-default) backwards; }
html body .card:nth-of-type(2) { animation-delay: 60ms; }
html body .card:nth-of-type(3) { animation-delay: 120ms; }
html body .card:nth-of-type(n+4) { animation-delay: 180ms; }
@keyframes demo-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
html body button, html body .btn { min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--shape-full); background: var(--primary); color: var(--on-primary); font-weight: 700; cursor: pointer; transition: border-radius var(--dur-fast) var(--spring-fast), transform var(--dur-fast) var(--spring-fast); }
html body button.alt { background: var(--secondary-container); color: var(--on-secondary-container); }
html body button:hover:not(:disabled) { transform: translateY(-2px); }
html body button:active:not(:disabled) { border-radius: var(--shape-press); transform: scale(.96); }
html body button:disabled { opacity: .45; cursor: default; }
html body select, html body input[type="text"], html body input[type="number"] { min-height: 48px; max-width: 100%; padding: 0 14px; border: 0; border-radius: var(--shape-md); background: var(--surface-container-highest); color: var(--on-surface); font: inherit; }
html body input[type="file"] { max-width: 100%; padding: 6px; border: 0; border-radius: var(--shape-full); background: var(--surface-container-highest); color: var(--on-surface-variant); }
html body input::file-selector-button { min-height: 40px; margin-right: 12px; padding: 0 18px; border: 0; border-radius: var(--shape-full); background: var(--secondary-container); color: var(--on-secondary-container); font: inherit; font-weight: 700; cursor: pointer; }
html body input[type="range"] { max-width: 100%; min-height: 32px; accent-color: var(--primary); }
html body input[type="checkbox"], html body input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); }
html body canvas { max-width: 100%; border: 0; border-radius: var(--shape-lg); }
html body table { display: block; max-width: 100%; overflow-x: auto; }
html body pre { max-width: 980px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
html body .stats, html body code { overflow-wrap: anywhere; }
html body p, html body .d, html body .d code, html body p em { color: var(--on-surface-variant); }
html body .row { border-color: var(--outline-variant); }
html body .p { color: #8BD88F; }
html body .f { color: #FFB3AE; }
html body .row { min-width: 0; }
html body a:not(.nav-item):not(.nav-logo) { text-underline-offset: 3px; }
/* the test pages carry their own light-theme colours; the shell is always dark */
:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html body .card { animation: none; } html body button, .demo-bar a { transition: none; } html body button:hover, .demo-bar a:hover { transform: none; } }
