/* ISA-101 High-Performance HMI & ISO 9241 Semantic Data Tokens */
:root {
  --bg: #060b16;
  --surface: #0b1220;
  --surface-2: #121c2e;
  --surface-3: #1b2942;
  --border: #23334e;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #8da2be;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --accent-dim: rgba(56, 189, 248, 0.14);
  --ok: #10b981;
  --ok-dim: rgba(16, 185, 129, 0.16);
  --warn: #f59e0b;
  --warn-dim: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.16);
  --neutral: #64748b;
  --neutral-dim: rgba(100, 116, 139, 0.18);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.48);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --surface-3: #e2e8f0;
  --border: #cbd5e1;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #52637a;
  --accent: #0284c7;
  --accent-2: #0ea5e9;
  --accent-dim: rgba(2, 132, 199, 0.12);
  --ok: #059669;
  --ok-dim: rgba(5, 150, 105, 0.14);
  --warn: #d97706;
  --warn-dim: rgba(217, 119, 6, 0.14);
  --danger: #dc2626;
  --danger-dim: rgba(220, 38, 38, 0.14);
  --neutral: #64748b;
  --neutral-dim: rgba(100, 116, 139, 0.14);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.85; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
