/* Shared foundations. UI rules live in ui.css. */
:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #202124;
  --raised: #2b2d32;
  --border: #3b3e46;
  --hair: #2e3036;
  --ink: #f1f2f4;
  --muted: #b3b6bf;
  --quiet: #979ca8;
  --accent: #91a9d2;
  --accent-ink: #141c2a;
  --accent-soft: #293140;
  --red: #efa09a;
  --amber: #dfbd83;
  --star: #c0cce1;
  --star-idle: #50535d;
  --calendar-active: #4c5f7a;
  --brand: #b4edce;
  --track: #454952;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --motion: .24s cubic-bezier(.22,.7,.22,1);
}
* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; overflow: hidden; overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [role='button']:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
button { touch-action: manipulation; }
button:active:not(:disabled) { filter: brightness(.86); }
svg { display: block; }
.hidden-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
