:root {
  --bg: #0b0f14;
  --bg-elevated: #12181f;
  --bg-elevated-2: #1a2129;
  --border: #232b34;
  --text: #f5f7fa;
  --text-muted: #8b98a5;
  --accent: #34d399;
  --accent-strong: #22c3a6;
  --accent-contrast: #06251c;
  --danger: #f2a65a;
  --danger-strong: #e5484d;
  --danger-contrast: #2a0a0b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  /* Safety net: no single element (an overflowing flex child, a stray
     autofocus scroll-into-view on mobile, etc.) should ever be able to
     shift the whole page horizontally — the app has no content that's
     meant to scroll sideways. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}
