/* Global tokens, reset, and base document defaults. */
:root {
  /* Colors */
  --bg: #080f1f;
  --panel: #0c162c;
  --panel-alt: #0f1d3a;
  --border: #1c2743;
  --accent: #22d3ee;
  --accent-2: #f97316;
  --muted: #9fb0d0;
  --text: #e9eefb;
  --danger: #f43f5e;

  /* Typography */
  --font-sans: "Space Grotesk", "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 13px;
  --font-size-lg: 14px;
  --font-size-xl: 16px;
  --font-size-2xl: 18px;
  --font-size-3xl: 20px;
  --font-weight-medium: 600;
  --font-weight-semibold: 650;
  --font-weight-bold: 700;
  --tracking-base: 0.01em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.12em;
  --line-height-base: 1.4;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 18px;
  --space-9: 20px;
  --space-10: 24px;
  --space-11: 32px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-control-lg: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Borders / elevation */
  --border-w: 1px;
  --shadow-surface: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 55px rgba(0, 0, 0, 0.28);
  --shadow-popover: 0 18px 32px rgba(0, 0, 0, 0.38);
  --shadow-floating: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-thumb: 0 10px 24px rgba(0, 0, 0, 0.45);

  /* Z-index scale */
  --z-subtab: 1;
  --z-menu: 2550;
  --z-context-menu: 2600;
  --z-modal-base: 2680;
  --z-loading: 9999;

  /* Focus */
  --focus-ring-color: rgba(34, 211, 238, 0.75);
  --focus-ring: 2px solid var(--focus-ring-color);
  --focus-ring-offset: 4px;
  --focus-ring-offset-tight: 2px;

  /* Icons */
  --icon-size-md: 20px;

  /* Component sizes */
  --control-h-sm: 32px;
  --control-h-md: 36px;
  --control-h-lg: 40px;
  --control-h-xl: 48px;

  font-family: var(--font-sans);
  letter-spacing: var(--tracking-base);
  line-height: var(--line-height-base);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 20%, #0f1f3f, #0b1328 45%, #070f1f 85%);
  color: var(--text);
}

html,
body {
  min-height: 100%;
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
