/* ==============================================================================
 * CloudMetric B2B SaaS APM Platform — Core Stylesheet
 * 
 * Standalone CSS Architecture: Design Tokens, Utilities, Components, Modal UX
 * Semantic Profile: Strictly Verified Enterprise Telemetry & APM Platform
 * ============================================================================== */

/* ------------------------------------------------------------------------------
 * 1. DESIGN TOKENS & CUSTOM PROPERTIES
 * ------------------------------------------------------------------------------ */
:root {
  /* Surface & Backgrounds */
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-surface-glass: rgba(15, 23, 42, 0.75);
  --bg-surface-glass-hover: rgba(30, 41, 59, 0.85);
  --bg-terminal: #050811;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.25);
  --border-card: #1e293b;
  --border-zinc: #27272a;
  --border-focus: #38bdf8;

  /* Brand & Status Accents */
  --color-cyan-300: #7dd3fc;
  --color-cyan-400: #38bdf8;
  --color-cyan-500: #0ea5e9;
  --color-cyan-600: #0284c7;
  --color-cyan-glow: rgba(56, 189, 248, 0.25);

  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-glow: rgba(52, 211, 153, 0.25);

  --color-indigo-400: #818cf8;
  --color-indigo-500: #6366f1;

  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;

  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Geometry & Radius */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows & Glow */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(56, 189, 248, 0.15);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 40px rgba(14, 165, 233, 0.15);
  --shadow-glow-emerald: 0 0 15px rgba(52, 211, 153, 0.3);
  --shadow-glow-cyan: 0 0 15px rgba(56, 189, 248, 0.3);

  /* Layout */
  --container-max: 1280px;
  --header-height: 4.5rem;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------------------------
 * 2. RESET & BASE STYLES
 * ------------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08), transparent 40%),
    radial-gradient(circle at 100% 40%, rgba(99, 102, 241, 0.05), transparent 30%);
}

::selection {
  background-color: var(--color-cyan-500);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
  user-select: none;
}

img, svg {
  display: block;
  vertical-align: middle;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

:focus-visible {
  outline: 2px solid var(--color-cyan-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 100;
  padding: 0.625rem 1.25rem;
  background: var(--color-cyan-600);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------------------------
 * 3. CORE UTILITY CLASSES (Tailwind-compatible)
 * ------------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Display & Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-6 { bottom: 1.5rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-2\.5 { margin-right: 0.625rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.h-44 { height: 11rem; }
.h-64 { height: 16rem; }

.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Typography */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Colors: Text */
.text-white { color: #ffffff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: var(--text-secondary); }
.text-slate-500 { color: var(--text-muted); }
.text-cyan-300 { color: var(--color-cyan-300); }
.text-cyan-400 { color: var(--color-cyan-400); }
.text-emerald-300 { color: var(--color-emerald-300); }
.text-emerald-400 { color: var(--color-emerald-400); }
.text-indigo-400 { color: var(--color-indigo-400); }
.text-sky-300 { color: #7dd3fc; }
.text-sky-400 { color: #38bdf8; }
.text-teal-400 { color: #2dd4bf; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: var(--color-amber-400); }
.text-rose-300 { color: #fda4af; }
.text-rose-400 { color: var(--color-rose-400); }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }

/* Colors: Backgrounds */
.bg-slate-950 { background-color: var(--bg-page); }
.bg-slate-950\/70 { background-color: rgba(9, 13, 22, 0.7); }
.bg-slate-950\/80 { background-color: rgba(9, 13, 22, 0.8); }
.bg-slate-950\/90 { background-color: rgba(9, 13, 22, 0.9); }
.bg-slate-950\/95 { background-color: rgba(9, 13, 22, 0.95); }

.bg-slate-900 { background-color: var(--bg-surface); }
.bg-slate-900\/30 { background-color: rgba(15, 23, 42, 0.3); }
.bg-slate-900\/40 { background-color: rgba(15, 23, 42, 0.4); }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6); }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8); }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }

.bg-slate-800 { background-color: var(--bg-surface-elevated); }
.bg-slate-800\/60 { background-color: rgba(30, 41, 59, 0.6); }

.bg-cyan-950 { background-color: #083344; }
.bg-cyan-950\/40 { background-color: rgba(8, 51, 68, 0.4); }
.bg-cyan-950\/80 { background-color: rgba(8, 51, 68, 0.8); }
.bg-cyan-600 { background-color: var(--color-cyan-600); }
.bg-cyan-500 { background-color: var(--color-cyan-500); }
.bg-cyan-400 { background-color: var(--color-cyan-400); }

.bg-emerald-950 { background-color: #022c22; }
.bg-emerald-950\/40 { background-color: rgba(2, 44, 34, 0.4); }
.bg-emerald-950\/60 { background-color: rgba(2, 44, 34, 0.6); }
.bg-emerald-500 { background-color: var(--color-emerald-500); }
.bg-emerald-400 { background-color: var(--color-emerald-400); }

.bg-indigo-950 { background-color: #1e1b4b; }
.bg-indigo-400 { background-color: var(--color-indigo-400); }

.bg-amber-950 { background-color: #451a03; }
.bg-amber-400 { background-color: var(--color-amber-400); }

.bg-teal-950 { background-color: #042f2e; }
.bg-teal-400 { background-color: #2dd4bf; }

.bg-sky-950 { background-color: #082f49; }
.bg-sky-400 { background-color: #38bdf8; }

.bg-red-950 { background-color: #450a0a; }
.bg-red-500\/80 { background-color: rgba(239, 68, 68, 0.8); }
.bg-yellow-500\/80 { background-color: rgba(245, 158, 11, 0.8); }
.bg-emerald-500\/80 { background-color: rgba(16, 185, 129, 0.8); }
.bg-blue-600 { background-color: #2563eb; }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops, #0ea5e9, #2563eb)); }
.from-cyan-500 { --tw-gradient-from: #0ea5e9; --tw-gradient-stops: var(--tw-gradient-from), #2563eb; }
.to-blue-600 { --tw-gradient-to: #2563eb; }

.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops, #0f172a, rgba(8, 51, 68, 0.3))); }
.from-slate-900 { --tw-gradient-from: #0f172a; --tw-gradient-stops: var(--tw-gradient-from), rgba(8, 51, 68, 0.3); }
.to-cyan-950\/30 { --tw-gradient-to: rgba(8, 51, 68, 0.3); }

/* Borders & Dividers */
.border { border: 1px solid var(--border-subtle); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border-y { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.border-slate-900 { border-color: #0f172a; }
.border-slate-800 { border-color: var(--border-card); }
.border-slate-800\/60 { border-color: rgba(30, 41, 59, 0.6); }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-slate-700 { border-color: #334155; }
.border-cyan-800\/50 { border-color: rgba(21, 94, 117, 0.5); }
.border-cyan-800\/60 { border-color: rgba(21, 94, 117, 0.6); }
.border-cyan-800\/80 { border-color: rgba(21, 94, 117, 0.8); }
.border-cyan-500 { border-color: var(--color-cyan-500); }
.border-cyan-500\/30 { border-color: rgba(14, 165, 233, 0.3); }
.border-cyan-500\/40 { border-color: rgba(14, 165, 233, 0.4); }
.border-emerald-800\/50 { border-color: rgba(6, 95, 70, 0.5); }
.border-emerald-800\/60 { border-color: rgba(6, 95, 70, 0.6); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-indigo-800\/50 { border-color: rgba(55, 48, 163, 0.5); }
.border-amber-800\/50 { border-color: rgba(146, 64, 14, 0.5); }
.border-teal-800\/50 { border-color: rgba(17, 94, 89, 0.5); }
.border-sky-800\/50 { border-color: rgba(7, 89, 133, 0.5); }
.border-red-800\/40 { border-color: rgba(153, 27, 27, 0.4); }
.border-red-900\/30 { border-color: rgba(127, 29, 29, 0.3); }

.divide-y > * + * { border-top: 1px solid var(--border-subtle); }
.divide-slate-800\/60 > * + * { border-top-color: rgba(30, 41, 59, 0.6); }

/* Radius */
.rounded { border-radius: var(--radius-xs); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Effects & Blurs */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-3xl { backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px); }
.blur-3xl { filter: blur(64px); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4); }
.shadow-lg { box-shadow: var(--shadow-card); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6); }
.shadow-2xl { box-shadow: var(--shadow-modal); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.select-all { user-select: all; }
.pointer-events-none { pointer-events: none; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover States */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-cyan-400:hover { color: var(--color-cyan-400); }
.hover\:text-slate-200:hover { color: #e2e8f0; }
.hover\:underline:hover { text-decoration: underline; }

.hover\:bg-slate-900:hover { background-color: var(--bg-surface); }
.hover\:bg-slate-900\/40:hover { background-color: rgba(15, 23, 42, 0.4); }
.hover\:bg-slate-800:hover { background-color: var(--bg-surface-elevated); }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-cyan-500:hover { background-color: var(--color-cyan-500); }

.hover\:border-slate-500:hover { border-color: #64748b; }
.hover\:border-slate-600:hover { border-color: #475569; }
.hover\:border-slate-700:hover { border-color: #334155; }

.hover\:opacity-90:hover { opacity: 0.9; }
.grayscale { filter: grayscale(100%); }
.hover\:grayscale-0:hover { filter: grayscale(0%); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--color-cyan-500); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-cyan-500); }
.focus\:border-cyan-500:focus { border-color: var(--color-cyan-500); }

/* Spacing Helpers */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Screen-reader utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ------------------------------------------------------------------------------
 * 4. ANIMATIONS (WebSocket Live Pulse & Ping)
 * ------------------------------------------------------------------------------ */
@keyframes ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ------------------------------------------------------------------------------
 * 5. TABLE WRAPPER & ACCESSIBLE DATA TABLE
 * ------------------------------------------------------------------------------ */
.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 3px;
}

/* ------------------------------------------------------------------------------
 * 6. TELEMETRY TERMINAL LOG
 * ------------------------------------------------------------------------------ */
#telemetry-log,
#telemetry-terminal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) rgba(15, 23, 42, 0.6);
}
#telemetry-log::-webkit-scrollbar,
#telemetry-terminal-body::-webkit-scrollbar {
  width: 6px;
}
#telemetry-log::-webkit-scrollbar-track,
#telemetry-terminal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
#telemetry-log::-webkit-scrollbar-thumb,
#telemetry-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}

/* ------------------------------------------------------------------------------
 * 7. NATIVE <dialog id="auth-modal"> & BACKDROP STYLING
 * ------------------------------------------------------------------------------ */
dialog#auth-modal,
dialog.modal-dialog {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-primary);
  max-width: 28rem;
  width: calc(100% - 2rem);
  margin: auto;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

/* Scroll containment */
dialog#auth-modal:modal,
dialog.modal-dialog:modal {
  overscroll-behavior: contain;
}

dialog#auth-modal::backdrop,
dialog.modal-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Smooth dialog appearance */
dialog#auth-modal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
}

dialog#auth-modal[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  dialog#auth-modal[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* ------------------------------------------------------------------------------
 * 8. RESPONSIVE BREAKPOINTS (sm, md, lg)
 * ------------------------------------------------------------------------------ */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.15; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:pt-24 { padding-top: 6rem; }
  .md\:pb-28 { padding-bottom: 7rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:leading-tight { line-height: 1.25; }
}
