@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; }
  body {
    font: 13px/1.4 var(--font); color: var(--text); background: var(--bg);
    overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  }
  [x-cloak] { display: none !important; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: default; }
  h1, h2, h3, p { margin: 0; }
  hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-1) 0; }
  kbd { font: 11px var(--mono); color: var(--text-dim); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 5px; }
  .muted { color: var(--text-dim); }
  .small { font-size: 12px; }
  .mono { font-family: var(--mono); }
  .spacer, .grow { flex: 1; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  ::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid var(--bg-2); }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
}
