/* ==========================================================================
   Volt Design System (VDS) — Canonical Editorial Style
   Engine: Sentinel Engine (Demanda 1121 / 4103)
   Typography: Bricolage Grotesque + Karla + JetBrains Mono (Pure Editorial Text)
   Aesthetic: Dark Obsidian (#080c12), Subtle Borders, Zero Decorative Clutter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@import "volt-tokens.css";
@import "volt-components.css";

:root {
  /* Core Canonical Palette — Dark Obsidian */
  --bg-void: #080c12;
  --bg-surface: #0d131d;
  --bg-surface-hover: #131d2a;
  --bg-elevated: #111a26;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(56, 189, 248, 0.35);

  --volt-cyan: #38bdf8;
  --volt-cyan-dim: #7dd3fc;
  --volt-cyan-glow: rgba(56, 189, 248, 0.20);
  --volt-emerald: #34d399;
  --volt-emerald-glow: rgba(52, 211, 153, 0.20);
  --volt-amber: #fbbf24;
  --volt-crimson: #fb7185;

  --text-strong: #f4f7fb;
  --text-body: #b9c4d3;
  --text-muted: #7f8da0;
  --text-faint: #374151;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-sans: 'Karla', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --volt-radius-sm: 10px;
  --volt-radius-md: 18px;

  /* Aliases for backwards compatibility & Volt SSOT */
  --bg-base: var(--bg-void);
  --text-primary: var(--text-strong);
  --text-secondary: var(--text-body);
  --status-emerald: var(--volt-emerald);
  --status-operational: var(--volt-emerald);
  --status-degraded: var(--volt-amber);
  --status-down: var(--volt-crimson);

  --volt-night: var(--bg-void);
  --volt-night-raised: var(--bg-surface);
  --volt-night-card: var(--bg-elevated);
  --volt-ink: var(--text-strong);
  --volt-ink-soft: var(--text-body);
  --volt-ink-muted: var(--text-muted);
  --volt-green: var(--volt-emerald);
  --volt-danger: var(--volt-crimson);
}

/* Base Reset & Background */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  background-color: var(--bg-void);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header Canonical Volt (64px)
   ========================================================================== */
.app-header, .volt-header {
  height: 64px;
  background: rgba(9, 11, 14, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.header-container, .volt-header-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Canonical Volt Brand & SVG Logo */
.brand-link, .volt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.volt-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: rgba(15, 22, 34, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
  overflow: hidden;
}

.volt-logo-svg {
  width: 32px;
  height: 32px;
  display: block;
}

.volt-brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-volt, .volt-brand-volt {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.brand-sentinel {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--volt-cyan);
}

/* Breadcrumbs Canônico */
.volt-breadcrumbs {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.volt-breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: var(--font-sans);
}

.volt-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.volt-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.volt-breadcrumb-link:hover {
  color: var(--volt-cyan);
}

.volt-breadcrumb-separator {
  color: var(--border-subtle);
  user-select: none;
  font-size: 11px;
}

.volt-breadcrumb-item.is-active span {
  color: var(--volt-cyan);
  font-weight: 600;
}

/* Telemetry Indicator with Emerald Glow */
.telemetry-indicator, .volt-header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--volt-emerald);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 2px 8px;
  border-radius: 9999px;
}

.status-dot-pulse, .volt-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--volt-emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4), 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: pulse-dot-anim 2s infinite ease-in-out;
}

@keyframes pulse-dot-anim {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px currentColor;
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 2px currentColor;
  }
}

/* Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link, .volt-nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover, .volt-nav-link:hover {
  color: #ffffff;
}

.nav-link.nav-link-active, .volt-nav-link.is-active {
  color: var(--volt-cyan);
}

.user-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Layout App Shell & Sidebar (240px)
   ========================================================================== */
.volt-layout-app {
  display: flex;
  min-height: calc(100vh - 64px);
  width: 100%;
}

.volt-sidebar {
  width: 240px;
  flex-shrink: 0;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.volt-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.volt-sidebar-item, .volt-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--volt-radius-sm);
  color: var(--text-body);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.volt-sidebar-item:hover, .volt-sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
}

.volt-sidebar-item.is-active, .volt-sidebar-link.is-active {
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--volt-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15), inset 0 0 8px rgba(56, 189, 248, 0.08);
  font-weight: 600;
}

.volt-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
.main-content, .volt-layout-content {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem 1.5rem;
}

/* Flash Messages */
.flash-container {
  margin-bottom: 1.5rem;
}

.flash-notice, .v2-flash {
  padding: 8px 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
  font-size: 12px;
  border-radius: var(--volt-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flash-alert {
  padding: 8px 14px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.25);
  color: #fca5a5;
  font-size: 12px;
  border-radius: var(--volt-radius-sm);
}

/* ==========================================================================
   Hero Status Bar (52px Slim Horizontal)
   ========================================================================== */
.hero-bar {
  min-height: 52px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--volt-cyan) 0%, var(--volt-emerald) 100%);
}

.hero-bar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-bar-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.hero-bar-divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.hero-bar-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-body);
}

.hero-bar-stat strong {
  color: var(--text-strong);
  font-weight: 600;
}

.hero-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Buttons (Canonical Volt Design System)
   ========================================================================== */
.volt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--volt-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.volt-btn-primary {
  background-color: var(--volt-cyan);
  color: var(--bg-void);
  border-radius: var(--volt-radius-sm);
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
}

.volt-btn-primary:hover {
  background-color: #7dd3fc;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.volt-btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  font-weight: 600;
}

.volt-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.volt-btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 11px;
  height: 28px;
}

.volt-btn-ghost {
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0 10px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.volt-btn-ghost:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-compact {
  background: linear-gradient(135deg, var(--volt-cyan) 0%, #0284c7 100%);
  color: var(--bg-void);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--volt-radius-sm);
  padding: 0 12px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 6px var(--volt-cyan-glow);
}

.btn-primary-compact:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, var(--volt-cyan) 100%);
  box-shadow: 0 0 10px var(--volt-cyan-glow);
}

.btn-ghost-sm {
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0 10px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-ghost-sm:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Legacy button classes mapping */
.btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--volt-radius-sm);
  padding: 0 12px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--volt-cyan) 0%, #0284c7 100%);
  color: var(--bg-void);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, var(--volt-cyan) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
}

.btn-danger-outline {
  background: transparent;
  color: var(--volt-crimson);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Section Headers & Titles
   ========================================================================== */
.section-block {
  margin-bottom: 2.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
}

.section-separator {
  color: var(--text-muted);
  font-size: 10px;
}

.section-subtitle {
  color: var(--text-body);
  font-weight: 400;
  font-size: 12px;
}

.section-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Fleet Matrix & Audit Log Tables (Canonical Volt Design System)
   ========================================================================== */
.table-container, .volt-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  overflow: hidden;
}

.fleet-table, .volt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fleet-table th, .volt-table th {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: #080c12;
  position: sticky;
  top: 0;
  z-index: 10;
}

.volt-table-dense th {
  padding: 0.65rem 0.85rem;
  font-size: 11px;
}

.volt-table-dense td {
  padding: 0.6rem 0.85rem;
  font-size: 12px;
  vertical-align: middle;
}

.fleet-table tr.fleet-row, .fleet-table tr.v2-row, .volt-table tbody tr {
  height: 48px;
  border-bottom: 1px solid var(--border-faint);
  transition: background-color 0.15s ease;
}

.fleet-table tr.fleet-row:last-child, .fleet-table tr.v2-row:last-child, .volt-table tbody tr:last-child {
  border-bottom: none;
}

.fleet-table tr.fleet-row:nth-child(even), .volt-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
}

.fleet-table tr.fleet-row:hover, .fleet-table tr.v2-row:hover, .volt-table tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.04);
}

.fleet-table td, .volt-table td {
  padding: 8px 16px;
  vertical-align: middle;
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
  font-size: 12px;
}

/* Fleet Service Column */
.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.service-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-top: 1px;
}

.service-url:hover {
  color: var(--volt-cyan-dim);
}

/* Status Pills & Canonical Badges */
.status-pill, .pill, .volt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--volt-radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-pill.status-operational, .pill-operational, .v2-pill-operational, .volt-badge-emerald {
  background: rgba(52, 211, 153, 0.12);
  color: var(--volt-emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-pill.status-degraded, .pill-degraded, .v2-pill-degraded, .volt-badge-amber {
  background: rgba(251, 191, 36, 0.12);
  color: var(--volt-amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-pill.status-down, .pill-down, .v2-pill-down, .volt-badge-danger {
  background: rgba(251, 113, 133, 0.12);
  color: var(--volt-crimson);
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.volt-badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--volt-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Canonical Search Bar */
.volt-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.volt-search-bar .volt-search-icon {
  position: absolute;
  left: 0.75rem;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.volt-search-bar input,
.volt-search-input {
  width: 100%;
  height: 32px;
  padding-left: 2.2rem;
  padding-right: 0.75rem;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.volt-search-bar input:focus,
.volt-search-input:focus {
  border-color: var(--volt-cyan);
  box-shadow: 0 0 0 2px var(--volt-cyan-glow);
}

/* Micro Latency Bar (3px) */
.latency-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120px;
}

.latency-val, .metric-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-strong);
}

.latency-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.latency-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--volt-emerald);
  transition: width 0.3s ease;
}

.uptime-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
}

/* ==========================================================================
   Playground & Simulation Block
   ========================================================================== */
.simulation-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 1.25rem;
}

.simulation-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 1rem;
  align-items: flex-end;
}

.input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-input-compact {
  width: 100%;
  height: 34px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input-compact:focus {
  border-color: var(--volt-cyan);
  box-shadow: 0 0 8px var(--volt-cyan-glow);
}

/* Form Styles for Playground standalone */
.playground-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.form-group-block {
  margin-bottom: 1rem;
}

.form-label-clean {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-control-clean {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0.5rem 0.75rem;
  color: #ffffff;
  font-size: 12px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control-clean:focus {
  border-color: var(--volt-cyan);
  box-shadow: 0 0 8px var(--volt-cyan-glow);
}

/* ==========================================================================
   Incident Stream & Playbook TDD Drawer
   ========================================================================== */
.incident-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--volt-cyan-dim);
}

.incident-service-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-strong);
}

.incident-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.incident-error-class {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f87171;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.incident-message {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.badge-agent {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--volt-cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: inline-block;
}

/* Playbook Accordion Dropdown */
details.playbook-details {
  display: inline-block;
  position: relative;
}

summary.playbook-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

summary.playbook-summary::-webkit-details-marker {
  display: none;
}

.playbook-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  width: 580px;
  max-width: 85vw;
  background: #06080b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0.85rem;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.playbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-faint);
}

.playbook-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--volt-cyan);
}

.playbook-code {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.5;
}

/* ==========================================================================
   Login Screen (Auth)
   ========================================================================== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-md);
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--volt-cyan) 50%, transparent 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-brand-volt {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.auth-brand-sentinel {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--volt-cyan);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.5rem;
}

.auth-subtitle {
  font-size: 12px;
  color: var(--text-body);
}

.demo-credentials-box {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--volt-radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.demo-credentials-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--volt-cyan-dim);
  margin-bottom: 0.4rem;
}

.demo-credentials-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.demo-credentials-text strong {
  color: var(--text-strong);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  height: 34px;
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  border-radius: var(--volt-radius-sm);
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--volt-cyan);
  box-shadow: 0 0 8px var(--volt-cyan-glow);
}

/* ==========================================================================
   Footer Discreet Text
   ========================================================================== */
.app-footer {
  height: 44px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(9, 11, 14, 0.95);
  margin-top: auto;
}

.footer-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-meta {
  color: var(--text-faint);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    height: auto;
    padding: 1rem;
  }

  .hero-bar-divider {
    display: none;
  }

  .simulation-grid, .playground-grid {
    grid-template-columns: 1fr;
  }

  .playbook-dropdown {
    width: 90vw;
    right: -1rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }
}
