:root {
  --bg: #0e1117;
  --surface: #171c26;
  --surface-2: #212836;
  --border: #2d3648;
  --text: #f3f5f8;
  --muted: #98a2b3;
  --primary: #f59e0b;
  --match: #22c55e;
  --pass: #ef4444;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

.small-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.error-text {
  color: #fca5a5;
  font-size: 0.85rem;
  margin: 4px 0 0;
}