/* Veltacore — Incident Platform
   A ServiceNow × Datadog × PagerDuty replacement, multi-tenant by design.
   DNA extracted from the existing screens; evolved for density + keyboard-first use. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Core palette */
  --navy-900: #0a1433;
  --navy-800: #0f1c3f;
  --navy-700: #17254d;
  --navy-600: #1f2e5b;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-50:  #eff6ff;
  --purple-500: #8b5cf6;

  /* State */
  --critical: #ef4444;
  --critical-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  /* Surfaces (light) */
  --bg: #f6f7f9;
  --bg-raised: #ffffff;
  --bg-muted: #f1f3f6;
  --bg-hover: #f3f4f6;

  /* Text */
  --fg: #0a1433;
  --fg-muted: #4b5563;
  --fg-subtle: #6b7785;
  --fg-faint: #9ca3af;

  /* Lines */
  --border: #e5e8eb;
  --border-strong: #d1d5db;
  --border-subtle: #eef0f3;

  /* Layout */
  --sidebar: 232px;
  --header: 52px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 20, 51, 0.04);
  --shadow-md: 0 2px 8px rgba(10, 20, 51, 0.06), 0 1px 2px rgba(10, 20, 51, 0.04);
  --shadow-lg: 0 12px 40px rgba(10, 20, 51, 0.12), 0 2px 8px rgba(10, 20, 51, 0.06);
  --shadow-pop: 0 24px 60px rgba(10, 20, 51, 0.24);

  --accent: var(--blue-600);
}

[data-theme="dark"] {
  --bg: #08091a;
  --bg-raised: #0f1228;
  --bg-muted: #141835;
  --bg-hover: #1a1f3f;
  --fg: #eef1ff;
  --fg-muted: #a8aed0;
  --fg-subtle: #6d7299;
  --fg-faint: #4b4f73;
  --border: #1c2046;
  --border-strong: #2a2f5c;
  --border-subtle: #141735;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  --critical-bg: rgba(239, 68, 68, 0.12);
  --warning-bg: rgba(245, 158, 11, 0.12);
  --success-bg: rgba(16, 185, 129, 0.12);
  --info-bg: rgba(59, 130, 246, 0.12);
}

[data-density="compact"] { --header: 44px; --sidebar: 220px; }
[data-density="comfy"]   { --header: 60px; --sidebar: 248px; }

html, body, #root {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--font-mono); }

/* ─────────────────────── Layout ─────────────────────── */

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: var(--header) 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  height: 100vh;
  overflow: hidden;
}

.app.no-chrome { grid-template-columns: 1fr; grid-template-rows: 1fr; grid-template-areas: "main"; }

.sidebar { grid-area: sidebar; }
.header  { grid-area: header; }
.main    { grid-area: main; overflow: auto; position: relative; }

/* ─────────────────────── Sidebar ─────────────────────── */

.sidebar {
  background: var(--navy-800);
  color: rgba(255,255,255,0.82);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--navy-700);
}

[data-sidebar="light"] .sidebar {
  background: var(--bg-raised);
  color: var(--fg);
  border-right: 1px solid var(--border);
}
[data-sidebar="light"] .sidebar .sb-item { color: var(--fg-muted); }
[data-sidebar="light"] .sidebar .sb-item:hover { background: var(--bg-hover); color: var(--fg); }
[data-sidebar="light"] .sidebar .sb-item.active { background: var(--blue-50); color: var(--accent); }
[data-sidebar="light"] .sidebar .sb-section-title { color: var(--fg-faint); }
[data-sidebar="light"] .sidebar .sb-head { border-bottom: 1px solid var(--border); }
[data-sidebar="light"] .sidebar .sb-foot { border-top: 1px solid var(--border); }
[data-sidebar="light"] .sidebar .tenant-switch { background: var(--bg-muted); color: var(--fg); }
[data-sidebar="light"] .sidebar .tenant-switch:hover { background: var(--bg-hover); }
[data-sidebar="light"] .sidebar .tenant-switch .t-org,
[data-sidebar="light"] .sidebar .tenant-switch .t-unit { color: var(--fg); }
[data-sidebar="light"] .sidebar .tenant-switch .t-unit-label { color: var(--fg-subtle); }

.sb-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 56px;
}

.sb-logo {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sb-brand {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.sb-brand b { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.sb-brand span { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
[data-sidebar="light"] .sb-brand span { color: var(--fg-faint); }

.tenant-switch {
  margin: 10px 10px 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.tenant-switch:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.08); }

.tenant-switch .t-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.tenant-switch .t-body { flex: 1; min-width: 0; overflow: hidden; }
.tenant-switch .t-org { font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-switch .t-unit { font-size: 11px; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 4px; }
.tenant-switch .t-unit-label { color: rgba(255,255,255,0.5); }
.tenant-switch .fa-chevron-down { color: rgba(255,255,255,0.5); font-size: 10px; }

.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 12px;
}
.sb-nav::-webkit-scrollbar { width: 4px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.sb-section { margin-top: 14px; }
.sb-section:first-child { margin-top: 4px; }

.sb-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 4px 10px 6px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: rgba(255,255,255,0.72);
  border-radius: 6px;
  margin-bottom: 1px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 450;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.sb-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sb-item.active {
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
  font-weight: 500;
}
.sb-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: var(--blue-400);
  border-radius: 0 2px 2px 0;
}

.sb-item .sb-icon {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  font-size: 13px;
  opacity: 0.85;
  flex-shrink: 0;
}
.sb-item span.sb-label { flex: 1; }
.sb-item .sb-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  min-width: 18px;
  text-align: center;
}
.sb-item .sb-badge.critical { background: var(--critical); }
.sb-item .sb-badge.warning { background: var(--warning); color: #7c2d12; }
.sb-item kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  padding: 1px 5px;
  border-radius: 4px;
}
[data-sidebar="light"] .sb-item kbd { background: var(--bg-muted); color: var(--fg-subtle); }

.sb-foot {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.sb-user:hover { background: rgba(255,255,255,0.06); }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
}
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.xl { width: 56px; height: 56px; font-size: 18px; }
.avatar.amber { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.avatar.green { background: linear-gradient(135deg, #10b981, #059669); }
.avatar.purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.avatar.pink { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.avatar.teal { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.avatar.slate { background: linear-gradient(135deg, #64748b, #475569); }

.sb-user .sb-user-info { flex: 1; min-width: 0; overflow: hidden; }
.sb-user .sb-user-info b { display: block; font-size: 12.5px; font-weight: 550; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .sb-user-info span { font-size: 11px; color: rgba(255,255,255,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
[data-sidebar="light"] .sb-user .sb-user-info b { color: var(--fg); }
[data-sidebar="light"] .sb-user .sb-user-info span { color: var(--fg-subtle); }

.sb-env {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}
[data-sidebar="light"] .sb-env { color: var(--fg); }
.sb-env .env-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}
.sb-env .fa-bolt { margin-left: auto; color: var(--success); font-size: 10px; }

/* ─────────────────────── Header ─────────────────────── */

.header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  position: relative;
  z-index: 20;
}

.hdr-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fg-subtle);
  min-width: 0;
}
.hdr-crumbs .fa-chevron-right { font-size: 9px; color: var(--fg-faint); }
.hdr-crumbs .crumb { cursor: pointer; }
.hdr-crumbs .crumb:hover { color: var(--fg); }
.hdr-crumbs .crumb.current { color: var(--fg); font-weight: 550; }

.hdr-command {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.hdr-command-input {
  width: 100%;
  height: 32px;
  background: var(--bg-muted);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px 0 32px;
  font-size: 12.5px;
  color: var(--fg);
  transition: all 0.15s;
}
.hdr-command-input::placeholder { color: var(--fg-subtle); }
.hdr-command-input:focus { outline: none; border-color: var(--accent); background: var(--bg-raised); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.hdr-command .fa-magnifying-glass { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--fg-faint); font-size: 11px; }
.hdr-command kbd {
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px;
  color: var(--fg-subtle);
  background: var(--bg-raised);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hdr-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--fg-subtle);
  position: relative;
  font-size: 13px;
  transition: all 0.12s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--fg); }
.icon-btn.active { color: var(--accent); background: var(--blue-50); }
.icon-btn .dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--critical);
  border: 2px solid var(--bg-raised);
}

.hdr-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 7px;
  cursor: pointer;
}
.hdr-user:hover { background: var(--bg-hover); }
.hdr-user b { font-size: 12.5px; font-weight: 550; }
.hdr-user span { font-size: 11px; color: var(--fg-subtle); display: block; }
.hdr-user .fa-chevron-down { font-size: 9px; color: var(--fg-faint); }

.hdr-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.hdr-incident-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--critical-bg);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 20px;
  font-size: 11.5px;
  color: var(--critical);
  font-weight: 550;
  cursor: pointer;
  transition: transform 0.15s;
}
.hdr-incident-pill:hover { transform: translateY(-1px); }
.hdr-incident-pill .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--critical);
  animation: pulse-red 1.2s ease-in-out infinite;
  margin-left: 4px;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* ─────────────────────── Main content ─────────────────────── */

.page {
  padding: 20px 24px 40px;
  max-width: 1600px;
}
.page.wide { max-width: none; }
.page.narrow { max-width: 960px; margin: 0 auto; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}

.page-title h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.page-title .subtitle {
  font-size: 12.5px;
  color: var(--fg-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-title .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--success);
  font-weight: 550;
}
.page-title .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.page-actions { display: flex; gap: 8px; align-items: center; }

/* ─────────────────────── Buttons ─────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  transition: all 0.12s;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3); }
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn.danger:hover { background: #dc2626; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-muted); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--fg); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 11.5px; gap: 5px; border-radius: 6px; }
.btn.lg { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn kbd { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.btn:not(.primary):not(.danger) kbd { background: var(--bg-muted); color: var(--fg-subtle); }

/* ─────────────────────── Cards ─────────────────────── */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-head h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h3 .fa-solid { font-size: 12px; color: var(--fg-subtle); }
.card-head .meta { font-size: 11.5px; color: var(--fg-subtle); }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }

/* ─────────────────────── Stats / KPIs ─────────────────────── */

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.kpi-grid > .kpi { background: var(--bg-raised); }

.kpi {
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi-value .unit { font-size: 14px; color: var(--fg-subtle); font-weight: 500; margin-left: 2px; }
.kpi-delta {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--critical); }
.kpi-delta.neutral { color: var(--fg-subtle); }

.kpi-spark {
  position: absolute;
  right: 16px; top: 16px;
  width: 80px; height: 30px;
  pointer-events: none;
}

/* ─────────────────────── Badges / Pills ─────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill.critical { background: var(--critical-bg); color: var(--critical); }
.pill.warning  { background: var(--warning-bg); color: #b45309; }
.pill.success  { background: var(--success-bg); color: #047857; }
.pill.info     { background: var(--info-bg); color: var(--blue-600); }
.pill.neutral  { background: var(--bg-muted); color: var(--fg-muted); }
.pill.purple   { background: rgba(139, 92, 246, 0.1); color: #6d28d9; }
.pill.ghost    { background: transparent; border: 1px solid var(--border); color: var(--fg-muted); }

[data-theme="dark"] .pill.warning  { color: #fbbf24; }
[data-theme="dark"] .pill.success  { color: #34d399; }

.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.sev.sev-1 { background: var(--critical); color: #fff; }
.sev.sev-2 { background: #ea580c; color: #fff; }
.sev.sev-3 { background: var(--warning); color: #7c2d12; }
.sev.sev-4 { background: var(--info); color: #fff; }
.sev.sev-5 { background: var(--bg-muted); color: var(--fg-muted); }

/* ─────────────────────── Tables ─────────────────────── */

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--bg-muted); }
.table tr.selected { background: var(--blue-50); }
.table tr.selected:hover { background: #dbeafe; }

.table .c-id { font-family: var(--font-mono); font-size: 12px; font-weight: 550; color: var(--accent); cursor: pointer; }
.table .c-id:hover { text-decoration: underline; }

.checkbox { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }

/* ─────────────────────── Filters / toolbar ─────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  flex-wrap: wrap;
}
.toolbar .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
  font-size: 11.5px;
  color: var(--fg-muted);
  cursor: pointer;
  background: var(--bg-raised);
  white-space: nowrap;
}
.toolbar .chip:hover { background: var(--bg-hover); border-style: solid; }
.toolbar .chip.active { background: var(--blue-50); color: var(--accent); border: 1px solid rgba(37, 99, 235, 0.3); }
.toolbar .chip .fa-xmark { font-size: 9px; opacity: 0.5; margin-left: 2px; }
.toolbar .chip:hover .fa-xmark { opacity: 1; }

.toolbar .filter-input {
  flex: 1;
  max-width: 320px;
  height: 28px;
  padding: 0 10px 0 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  background: var(--bg-raised);
  position: relative;
}

.seg {
  display: inline-flex;
  background: var(--bg-muted);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.seg button {
  height: 24px;
  padding: 0 10px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-subtle);
  border-radius: 4px;
  transition: all 0.12s;
}
.seg button:hover { color: var(--fg); }
.seg button.active {
  background: var(--bg-raised);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ─────────────────────── SLA bar ─────────────────────── */

.sla {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.sla-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-muted);
  border-radius: 2px;
  overflow: hidden;
  min-width: 40px;
}
.sla-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.sla-fill.good { background: var(--success); }
.sla-fill.warn { background: var(--warning); }
.sla-fill.bad  { background: var(--critical); }
.sla-text { font-size: 11px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; min-width: 36px; }

/* ─────────────────────── Timeline / war room ─────────────────────── */

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 18px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -19px; top: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 2px solid var(--border-strong);
}
.tl-item.critical::before { border-color: var(--critical); background: var(--critical); }
.tl-item.warn::before { border-color: var(--warning); background: var(--warning); }
.tl-item.success::before { border-color: var(--success); background: var(--success); }
.tl-item.info::before { border-color: var(--accent); background: var(--accent); }
.tl-item.ai::before { border-color: var(--purple-500); background: var(--purple-500); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }

.tl-time { font-size: 11px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; margin-bottom: 2px; font-family: var(--font-mono); }
.tl-body { font-size: 12.5px; line-height: 1.5; }
.tl-body b { font-weight: 600; }
.tl-meta { font-size: 11px; color: var(--fg-subtle); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ─────────────────────── Forms ─────────────────────── */

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 550; color: var(--fg); }
.field .hint { font-size: 11.5px; color: var(--fg-subtle); }
.input, .textarea, .select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-raised);
  font-size: 13px;
  color: var(--fg);
  transition: all 0.12s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.textarea { resize: vertical; min-height: 80px; font-family: inherit; }

/* ─────────────────────── Login ─────────────────────── */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--bg);
}
.auth-side {
  background: linear-gradient(135deg, #0a1433 0%, #17254d 60%, #1e2f5c 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.3), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.2), transparent 50%);
  pointer-events: none;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.auth-logo .logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  color: #fff;
}
.auth-pitch {
  margin-top: auto;
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.auth-pitch h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 18px;
}
.auth-pitch h2 .highlight { background: linear-gradient(90deg, #60a5fa, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.auth-stats { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.auth-stats > div { flex: 1; }
.auth-stats b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-stats span { font-size: 11.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; }

.auth-form {
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.auth-form-inner { max-width: 400px; width: 100%; margin: 0 auto; }
.auth-form h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-form > .auth-form-inner > p.sub { font-size: 13px; color: var(--fg-subtle); margin-bottom: 28px; }

.sso-btn {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.sso-btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.sso-btn i { font-size: 15px; width: 20px; text-align: center; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--fg-subtle);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ─────────────────────── Tenant switcher modal ─────────────────────── */

.tsw-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 51, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  animation: fadein 0.15s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.tsw {
  background: var(--bg-raised);
  border-radius: 14px;
  width: 640px;
  max-width: 100%;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tsw-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tsw-head .fa-magnifying-glass { color: var(--fg-faint); }
.tsw-head input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; }
.tsw-head kbd { font-size: 10.5px; color: var(--fg-subtle); background: var(--bg-muted); padding: 2px 6px; border-radius: 4px; }
.tsw-body { max-height: 480px; overflow-y: auto; padding: 6px; }
.tsw-section-title { font-size: 10.5px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 12px 4px; }
.tsw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.tsw-row:hover, .tsw-row.focus { background: var(--bg-muted); }
.tsw-row .tsw-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.tsw-row .tsw-info { flex: 1; min-width: 0; }
.tsw-row .tsw-info b { display: block; font-size: 13px; font-weight: 550; }
.tsw-row .tsw-info span { display: block; font-size: 11.5px; color: var(--fg-subtle); }
.tsw-row .tsw-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--fg-subtle); }

/* ─────────────────────── Misc ─────────────────────── */

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--success); }
.dot.amber { background: var(--warning); }
.dot.red { background: var(--critical); }
.dot.gray { background: var(--fg-faint); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.stack { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; } .stack-12 { gap: 12px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; } .stack-24 { gap: 24px; }

.row { display: flex; align-items: center; }
.row-8 { gap: 8px; } .row-12 { gap: 12px; } .row-16 { gap: 16px; }

.between { justify-content: space-between; }
.center { justify-content: center; }

.spacer { flex: 1; }

.text-mute { color: var(--fg-subtle); }
.text-faint { color: var(--fg-faint); }

.scroll { overflow-y: auto; }

/* Sparkline svg */
.spark-line { stroke: currentColor; fill: none; stroke-width: 1.5; }
.spark-area { fill: currentColor; opacity: 0.12; }

/* Micro chart */
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 5px 0; }
.bar-row .bar-label { width: 120px; color: var(--fg-muted); }
.bar-row .bar-track { flex: 1; height: 6px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.bar-row .bar-val { min-width: 48px; text-align: right; color: var(--fg-muted); font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 11.5px; }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.heatmap .hm-cell { aspect-ratio: 1; border-radius: 2px; background: var(--bg-muted); }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
}
.tabs .tab {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-subtle);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tabs .tab:hover { color: var(--fg); }
.tabs .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .tab .count { font-size: 11px; background: var(--bg-muted); color: var(--fg-muted); padding: 0 5px; border-radius: 8px; font-weight: 600; }
.tabs .tab.active .count { background: var(--blue-50); color: var(--accent); }

/* Skeleton */
.sk { background: linear-gradient(90deg, var(--bg-muted), var(--bg-hover), var(--bg-muted)); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─────────────────────── Onboarding wizard ─────────────────────── */

.wizard {
  max-width: 720px;
  margin: 40px auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
  gap: 4px;
  background: var(--bg-muted);
}
.wizard-stepper .step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.wizard-stepper .step .n {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1.5px solid var(--border-strong);
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.wizard-stepper .step.active .n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.wizard-stepper .step.done .n { background: var(--success); border-color: var(--success); color: #fff; }
.wizard-stepper .step.done .n::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.wizard-stepper .step.done .n i { display: none; }
.wizard-stepper .step .label { font-size: 11.5px; color: var(--fg-subtle); font-weight: 500; }
.wizard-stepper .step.active .label { color: var(--fg); font-weight: 600; }
.wizard-stepper .step.done .label { color: var(--fg); }
.wizard-body { padding: 32px; min-height: 360px; }
.wizard-body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.wizard-body > p.intro { color: var(--fg-subtle); margin-bottom: 24px; font-size: 13.5px; }
.wizard-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg-muted); }

/* Tree (org hierarchy) */
.tree { font-size: 13px; }
.tree-node { padding: 5px 8px; border-radius: 6px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tree-node:hover { background: var(--bg-hover); }
.tree-node.active { background: var(--blue-50); color: var(--accent); font-weight: 550; }
.tree-node .t-caret { width: 14px; color: var(--fg-faint); font-size: 10px; }
.tree-node .t-icon { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.tree-children { padding-left: 20px; border-left: 1px dashed var(--border); margin-left: 11px; }

/* Gauge */
.gauge { position: relative; width: 100%; aspect-ratio: 2/1; }
.gauge-ring { width: 100%; height: 100%; }

/* Density tweaks */
[data-density="compact"] .card-body { padding: 12px; }
[data-density="compact"] .table td { padding: 7px 12px; }
[data-density="compact"] .kpi { padding: 12px 14px; }
[data-density="compact"] .kpi-value { font-size: 22px; }
[data-density="compact"] .page { padding: 16px 20px 32px; }

[data-density="comfy"] .card-body { padding: 20px; }
[data-density="comfy"] .table td { padding: 14px 16px; }
[data-density="comfy"] .kpi { padding: 20px 22px; }
[data-density="comfy"] .kpi-value { font-size: 30px; }

/* Scrollbar */
.main::-webkit-scrollbar { width: 10px; height: 10px; }
.main::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg); background-clip: content-box; }
.main::-webkit-scrollbar-thumb:hover { background: var(--fg-faint); background-clip: content-box; border: 2px solid var(--bg); }

/* Compact incident row */
.inc-row { transition: background 0.12s; }
.inc-row .inc-title-cell { max-width: 420px; }
.inc-row .inc-title-cell b { font-weight: 550; font-size: 13px; display: block; line-height: 1.35; }
.inc-row .inc-title-cell .inc-meta { margin-top: 3px; font-size: 11px; color: var(--fg-subtle); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inc-row .inc-title-cell .ci-chip { background: var(--bg-muted); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-muted); }

/* Empty-state */
.empty { padding: 48px; text-align: center; color: var(--fg-subtle); }
.empty .fa-solid { font-size: 28px; margin-bottom: 12px; opacity: 0.5; }
.empty h4 { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }

/* Status dots clusters */
.dot-cluster { display: inline-flex; gap: 2px; align-items: center; }
.dot-cluster .dot { width: 5px; height: 5px; }

/* War-room stream item */
.chat-item { padding: 8px 12px; border-radius: 8px; display: flex; gap: 10px; }
.chat-item:hover { background: var(--bg-muted); }
.chat-item .chat-body { flex: 1; min-width: 0; }
.chat-item .chat-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chat-item .chat-head b { font-size: 12.5px; font-weight: 600; }
.chat-item .chat-head .chat-role { font-size: 10.5px; color: var(--fg-subtle); padding: 1px 6px; background: var(--bg-muted); border-radius: 3px; font-weight: 500; }
.chat-item .chat-head time { font-size: 11px; color: var(--fg-subtle); margin-left: auto; font-family: var(--font-mono); }
.chat-item .chat-text { font-size: 12.5px; line-height: 1.5; color: var(--fg); }
.chat-item.ai-suggestion { background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(139, 92, 246, 0.02)); border: 1px solid rgba(139, 92, 246, 0.15); }
.chat-item.ai-suggestion .chat-head b::before { content: "✦ "; color: var(--purple-500); }

/* Chart */
.mini-chart { width: 100%; height: 60px; display: block; }

/* Link styled */
.link { color: var(--accent); font-weight: 500; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Severity splash bar for incident detail header */
.inc-hero {
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-muted));
  border: 1px solid var(--border);
  border-left: 3px solid var(--critical);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.inc-hero .sev-block {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--critical-bg);
  display: grid; place-items: center;
  color: var(--critical);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.inc-hero .sev-block b { font-size: 22px; line-height: 1; }
.inc-hero .sev-block span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.inc-hero h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 6px; }
.inc-hero .inc-crumbs { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-subtle); flex-wrap: wrap; }
.inc-hero .inc-crumbs .sep { opacity: 0.3; }

/* Two column inc detail */
.inc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }

/* RCA / AI card */
.ai-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 16px;
}
.ai-card h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ai-card h4 .ai-glyph {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
}
.ai-card p { font-size: 12.5px; line-height: 1.6; color: var(--fg-muted); }
.ai-card .ai-bullets { margin-top: 8px; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: var(--fg); }
.ai-card .ai-bullets li { list-style: disc; }

/* Gauge mini arc */
.arc-bg { stroke: var(--bg-muted); fill: none; }
.arc-fg { fill: none; stroke-linecap: round; transition: stroke-dashoffset 0.5s; }

/* Service-map pill */
.svc-map {
  background: var(--bg-muted);
  border-radius: 10px;
  padding: 20px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

/* Page transition */
.page-fade { opacity: 1 !important; }
@keyframes pfade { from { opacity: 1; transform: none; } to { opacity: 1; transform: none; } }

/* Footer strip inside the main */
.footer-strip {
  padding: 12px 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--fg-subtle);
  font-size: 11.5px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}



/* ───────── Infra screens ───────── */
.section-title { font-size: 12px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }

.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.kind-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; gap: 10px; }
.kind-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.kind-card .kind-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.kind-card .kind-body { display: flex; align-items: baseline; gap: 8px; }
.kind-card .kind-count { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.kind-card .kind-label { font-size: 12.5px; color: var(--fg-muted); }
.kind-card .kind-foot { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }

.kind-mini { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.kind-mini.lg { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }

.kind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kind-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; cursor: pointer; transition: all .15s; }
.kind-chip:hover { border-color: var(--border-strong); }
.kind-chip.active { background: var(--accent); color: white; border-color: var(--accent); }
.kind-chip.active .chip-count { background: rgba(255,255,255,.25); color: white; }
.kind-chip .chip-count { background: var(--bg-muted); color: var(--fg-muted); font-size: 10.5px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }

.filter-bar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.search-input { position: relative; display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; height: 32px; gap: 8px; }
.search-input i { color: var(--fg-subtle); font-size: 12px; }
.search-input input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 12.5px; color: var(--fg); }
.select { height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%23999' fill='none' stroke-width='1.4'/></svg>") no-repeat right 8px center; font-size: 12.5px; color: var(--fg); appearance: none; }
/* Text/number/password inputs that reuse the .select class must NOT show the dropdown chevron — it makes them look like dead dropdowns instead of editable fields. */
input.select { background-image: none; padding-right: 10px; }
input.select[type="number"] { appearance: auto; }
.select.sm { height: 26px; font-size: 11.5px; }

.bar-track { height: 6px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }

.alert-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.alert-row:hover { background: var(--bg-muted); }
.alert-row:last-child { border-bottom: 0; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sev-dot.critical { background: var(--critical); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.sev-dot.warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.sev-dot.info { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.kv { display: flex; padding: 7px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.kv:last-child { border-bottom: 0; }
.kv-k { width: 38%; color: var(--fg-muted); font-size: 12px; }
.kv-v { flex: 1; font-size: 12.5px; color: var(--fg); }

.dev-hero { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dev-stat { background: var(--bg-card); padding: 14px; }
.dev-stat-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dev-stat-value { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dev-stat-sub { font-size: 11px; color: var(--fg-subtle); margin-top: 2px; }
.dev-stat.tone-warn { color: var(--warning); }
.dev-stat.tone-warn .dev-stat-value { color: var(--warning); }
.dev-stat.tone-critical { color: var(--critical); }
.dev-stat.tone-critical .dev-stat-value { color: var(--critical); }
.dev-stat.tone-ok { color: var(--fg); }

.grid-2-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.grid-2-8-4 { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; }
.grid-2-9-3 { display: grid; grid-template-columns: 9fr 3fr; gap: 16px; }

.topo-card { padding: 0; overflow: hidden; }
.topo-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.topo-svg { display: block; width: 100%; background: var(--bg); }
.topo-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-raised); font-size: 11.5px; color: var(--fg-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }

.code-block { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; font-size: 12px; line-height: 1.7; overflow-x: auto; }
.code-block .cb-line { white-space: pre; }
.code-block .cb-prompt { color: #38bdf8; user-select: none; margin-right: 6px; }
.code-block .text-mute { color: #94a3b8; }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--success); }

.btn.xs { padding: 2px 8px; font-size: 11px; height: 22px; border-radius: 5px; }
.empty.sm { padding: 20px 14px; }
.empty.sm i { font-size: 24px; }
.empty.sm p { font-size: 12px; margin: 4px 0 0; }

.row-4 { gap: 4px; }
.row-6 { gap: 6px; }

.data-table.dense th, .data-table.dense td { padding: 7px 10px; font-size: 12px; }

.page-actions { display: flex; gap: 8px; align-items: center; }



/* ───────── Pro polish — ServiceNow-grade visual refinement ───────── */

:root {
  /* Slightly cooler, crisper neutrals */
  --bg: #fafbfc;
  --bg-raised: #ffffff;
  --bg-muted: #f4f6f8;
  --bg-hover: #f0f3f6;
  --border: #e6e9ec;
  --border-strong: #cdd2d8;
  --border-subtle: #eef0f3;
  --fg: #0c1726;
  --fg-muted: #475467;
  --fg-subtle: #667085;
  --fg-faint: #98a2b3;
  --shadow-sm: 0 1px 0 rgba(16, 24, 40, 0.04);
  --shadow-md: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.04);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  letter-spacing: -0.005em;
}

/* Page rhythm */
.page { padding: 24px 28px 40px !important; max-width: 1600px; }
.page-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); line-height: 1.2; }
.page-head .subtitle { font-size: 13px; color: var(--fg-subtle); margin-top: 4px; font-weight: 400; }

/* Cards — flatter, more authoritative */
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px; box-shadow: none; overflow: hidden; }
.card-head { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.card-head .ch-title { font-size: 13px; font-weight: 600; color: var(--fg); letter-spacing: -0.005em; }
.card-head .ch-meta { font-size: 12px; color: var(--fg-subtle); }
.card-body { padding: 16px; }
.card-body.p0 { padding: 0; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; background: var(--bg-muted); }

/* Tables — ServiceNow-style dense, tabular */
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table thead th {
  background: var(--bg-muted);
  text-align: left;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-table tbody td {
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--fg);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--bg-muted); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table.dense thead th { padding: 7px 12px; font-size: 10.5px; }
.data-table.dense tbody td { padding: 8px 12px; font-size: 12px; }

/* Buttons — flatter, squarer */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--fg);
  cursor: pointer;
  transition: all .12s;
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--bg-muted); border-color: var(--fg-faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-muted); }
.btn.ghost:hover { background: var(--bg-muted); color: var(--fg); }
.btn.sm { height: 26px; padding: 4px 10px; font-size: 11.5px; }
.btn.xs { height: 22px; padding: 2px 8px; font-size: 11px; }

/* Pills — refined, true ServiceNow style: subtle bg + colored text */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  line-height: 1.6;
}
.pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.pill.no-dot::before { display: none; }
.pill.success { background: #ecfdf3; color: #027a48; }
.pill.warning { background: #fffaeb; color: #b54708; }
.pill.critical { background: #fef3f2; color: #b42318; }
.pill.info { background: #eff8ff; color: #175cd3; }
.pill.purple { background: #f4ebff; color: #6941c6; }
.pill.neutral { background: var(--bg-muted); color: var(--fg-muted); }

[data-theme="dark"] .pill.success { background: rgba(16,185,129,.15); color: #6ee7b7; }
[data-theme="dark"] .pill.warning { background: rgba(245,158,11,.15); color: #fcd34d; }
[data-theme="dark"] .pill.critical { background: rgba(239,68,68,.15); color: #fca5a5; }
[data-theme="dark"] .pill.info { background: rgba(59,130,246,.15); color: #93c5fd; }
[data-theme="dark"] .pill.neutral { background: var(--bg-muted); color: var(--fg-muted); }

/* KPI cards — flatter, more authoritative */
.kpi-grid { background: var(--border); border: 1px solid var(--border); border-radius: 6px; gap: 1px; box-shadow: none; }
.kpi { padding: 16px 18px; }
.kpi-label { font-size: 11px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; color: var(--fg); margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 11.5px; margin-top: 4px; color: var(--success); font-weight: 500; }
.kpi-delta.warn { color: var(--warning); }
.kpi-delta.critical { color: var(--critical); }

/* Sidebar polish — sharper navy, brighter active */
.sidebar { background: linear-gradient(180deg, #0a1430 0%, #0c1736 100%); border-right: 1px solid #1a234a; }
.sb-item { font-size: 12.5px; padding: 7px 12px; border-radius: 5px; margin: 0 8px 1px; gap: 10px; }
.sb-item:hover { background: rgba(255,255,255,0.05); }
.sb-item.active { background: rgba(255,255,255,0.08); color: white; box-shadow: inset 2px 0 0 var(--accent); }
.sb-section-title { padding: 14px 16px 6px; font-size: 10.5px; letter-spacing: 0.08em; }

/* Header polish */
.header { background: var(--bg-raised); border-bottom: 1px solid var(--border); height: 52px; }
.hdr-command { background: var(--bg-muted); border: 1px solid var(--border); border-radius: 6px; height: 32px; }
.hdr-command:hover { border-color: var(--border-strong); }

/* Kind cards — cleaner, more SN-like */
.kind-grid { gap: 8px; }
.kind-card { padding: 12px; gap: 8px; border-radius: 6px; box-shadow: none; }
.kind-card .kind-icon { width: 30px; height: 30px; border-radius: 6px; font-size: 14px; }
.kind-card .kind-count { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.kind-card .kind-label { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.kind-card .kind-foot { padding-top: 6px; }
.kind-card:hover { transform: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Kind chips */
.kind-chip { padding: 4px 10px 4px 8px; font-size: 11.5px; font-weight: 500; height: 26px; }
.kind-chip i { font-size: 11px; }
.kind-chip .chip-count { font-size: 10px; padding: 1px 5px; }

/* Status / dev hero */
.dev-hero { border-radius: 6px; box-shadow: none; }
.dev-stat { padding: 14px 16px; }
.dev-stat-label { font-size: 10.5px; }
.dev-stat-value { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.dev-stat-sub { font-size: 10.5px; }

/* Tabs — ServiceNow horizontal underline */
.tabs { gap: 0; padding: 0; border-bottom: 1px solid var(--border); margin-top: 16px; }
.tabs .tab { padding: 10px 16px; font-size: 12.5px; font-weight: 500; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs .tab.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }

/* Inputs */
.search-input { height: 32px; border-radius: 5px; }
.search-input input { font-size: 12.5px; }
.select { height: 32px; border-radius: 5px; padding: 0 28px 0 10px; font-size: 12.5px; }

/* Bars */
.bar-track { height: 5px; border-radius: 3px; background: var(--bg-muted); }
.bar-fill { border-radius: 3px; }

/* KV refinement */
.kv { padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.kv-k { font-size: 11.5px; color: var(--fg-subtle); font-weight: 500; }
.kv-v { font-size: 12.5px; color: var(--fg); font-weight: 500; }

/* Breadcrumbs */
.hdr-crumbs .crumb { font-size: 12px; color: var(--fg-subtle); }
.hdr-crumbs .crumb.current { color: var(--fg); font-weight: 600; }

/* Section title */
.section-title { font-size: 11px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.06em; margin: 24px 0 10px; }

/* Filter bar */
.filter-bar { padding: 0; margin-top: 16px; gap: 8px; }

/* Mono numerics for serious feel */
.mono, [class*="mono"] { font-feature-settings: "tnum", "ss01"; }

/* Dot indicators with refined colors */
.sev-dot.critical { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.sev-dot.warn { box-shadow: 0 0 0 3px rgba(245,158,11,.12); }

/* Top alert pill */
.hdr-incident-pill { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; padding: 4px 10px; border-radius: 5px; font-size: 11.5px; font-weight: 600; gap: 6px; }
.hdr-incident-pill .pulse-dot { background: #b42318; }

/* Topology toolbar */
.topo-toolbar { padding: 8px 14px; gap: 6px; min-height: 40px; }
.topo-legend { padding: 8px 14px; font-size: 11px; gap: 14px; }

/* Subtle transitions */
* { transition-property: background-color, border-color, color, box-shadow; transition-duration: 80ms; }

/* Code block tightened */
.code-block { border-radius: 6px; padding: 12px 14px; font-size: 11.5px; line-height: 1.65; }


/* ───────── Premium dashboard styles ───────── */
.dash { padding: 20px 24px 40px !important; }

.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 20px; gap: 24px; }
.dash-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--fg-subtle); font-weight: 500; }
.dash-eyebrow .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.18); animation: dpulse 2s ease-in-out infinite; }
.dash-eyebrow .dot-sep { color: var(--fg-faint); }
@keyframes dpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.18); } 50% { box-shadow: 0 0 0 5px rgba(16,185,129,.04); } }
.dash-title { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin-top: 6px; line-height: 1.15; color: var(--fg); }
.dash-sub { font-size: 13.5px; color: var(--fg-subtle); margin-top: 4px; }
.dash-actions { display: flex; gap: 8px; align-items: center; }

.seg-pill { display: inline-flex; padding: 2px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 6px; height: 32px; }
.seg-pill button { padding: 0 10px; height: 26px; border: 0; background: transparent; font-size: 11.5px; font-weight: 500; color: var(--fg-muted); cursor: pointer; border-radius: 4px; }
.seg-pill button:hover { color: var(--fg); }
.seg-pill button.active { background: var(--bg-raised); color: var(--fg); box-shadow: 0 1px 2px rgba(16,24,40,.06); }

.kbd-inv { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: white; padding: 1px 5px; border-radius: 3px; font-size: 10px; font-family: var(--font-mono); margin-left: 4px; }

/* KPI strip */
.dash-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.dash-kpi { position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow: hidden; transition: border-color .15s; }
.dash-kpi:hover { border-color: var(--border-strong); }
.dash-kpi .dk-accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0.85; }
.dk-label { font-size: 11px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.dk-value-row { margin-top: 8px; }
.dk-value { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.dk-unit { font-size: 14px; font-weight: 500; color: var(--fg-faint); margin-left: 4px; }
.dk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.dk-delta { font-size: 11px; font-weight: 500; color: var(--fg-muted); display: inline-flex; align-items: center; gap: 4px; }
.dk-delta.ok { color: var(--success); }
.dk-delta.critical { color: var(--critical); }
.dk-delta.warn { color: var(--warning); }

/* Grid */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.dash-grid .span-12 { grid-column: span 12; }
.dash-grid .span-8 { grid-column: span 8; }
.dash-grid .span-7 { grid-column: span 7; }
.dash-grid .span-6 { grid-column: span 6; }
.dash-grid .span-5 { grid-column: span 5; }
.dash-grid .span-4 { grid-column: span 4; }

/* AI card */
.ai-card-premium { background: linear-gradient(180deg, #faf5ff 0%, #ffffff 60%); border-color: #e9d5ff; }
[data-theme="dark"] .ai-card-premium { background: linear-gradient(180deg, rgba(139,92,246,0.1) 0%, var(--bg-raised) 60%); border-color: rgba(139,92,246,0.3); }
.ai-glyph { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: white; display: inline-grid; place-items: center; font-size: 11px; }
.ai-insight { padding: 12px; background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.18); border-radius: 6px; margin-bottom: 14px; }
.ai-tag { font-size: 10.5px; font-weight: 600; color: #6941c6; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.ai-insight p { font-size: 12.5px; color: var(--fg); line-height: 1.55; margin-bottom: 10px; }
.ai-actions { display: flex; gap: 6px; }
.ai-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ai-stat { background: var(--bg-raised); padding: 10px; text-align: center; }
.ai-stat-value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.ai-stat-label { font-size: 10.5px; color: var(--fg-subtle); margin-top: 2px; line-height: 1.3; }

/* On-call */
.oncall-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); }
.oncall-row:last-child { border-bottom: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.status-dot.away { background: var(--warning); }
.status-dot.offline { background: var(--fg-faint); }

/* Service dot */
.svc-dot { width: 8px; height: 8px; border-radius: 50%; }
.svc-dot.healthy { background: var(--success); }
.svc-dot.degraded { background: var(--warning); }
.svc-dot.down { background: var(--critical); }

/* SLO rows */
.slo-row { padding: 8px 0; }
.slo-row + .slo-row { border-top: 1px solid var(--border-subtle); }
.slo-meta { display: flex; justify-content: space-between; margin-bottom: 6px; }

/* Responsive */
@media (max-width: 1400px) {
  .dash-kpis { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-grid .span-8, .dash-grid .span-7, .dash-grid .span-6, .dash-grid .span-5, .dash-grid .span-4 { grid-column: span 12; }
}

/* ─── Noise donut ─── */
.noise-legend { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border-subtle); }
.nl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.nl-row .nl-dot { width: 8px; height: 8px; border-radius: 2px; }
.nl-row b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.noise-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border-subtle); }

/* ─── MTTx bars ─── */
.mttx { display: flex; flex-direction: column; gap: 14px; }
.mttx-row { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 10px; }
.mttx-label { font-size: 11.5px; font-weight: 500; color: var(--fg-muted); }
.mttx-bars { position: relative; height: 18px; background: var(--bg-muted); border-radius: 4px; overflow: hidden; }
.mttx-bar { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; transition: width .4s; }
.mttx-bar.prev { background: var(--border-strong); opacity: 0.5; }
.mttx-bar.curr { box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08); }
.mttx-val { font-size: 12px; font-weight: 600; text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }
.mttx-legend { display: flex; gap: 16px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border-subtle); font-size: 10.5px; color: var(--fg-subtle); }
.mttx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mttx-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* ─── Region grid ─── */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region-tile { padding: 10px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px; transition: border-color .15s; }
.region-tile:hover { border-color: var(--border-strong); }
.region-tile.degraded { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.3); }
.region-tile.down { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.3); }
.region-head { display: flex; align-items: center; gap: 6px; }
.region-name { font-size: 11px; color: var(--fg-subtle); margin-top: 2px; }
.region-err { font-size: 14px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; color: var(--fg); }

/* ─── Change timeline ─── */
.ctl { position: relative; padding-top: 4px; overflow: hidden; }
.ctl-axis { position: relative; height: 16px; margin-bottom: 8px; margin-left: 92px; margin-right: 8px; }
.ctl-axis span { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--fg-faint); font-family: var(--font-mono); top: 0; }
.ctl-grid { position: relative; }
.ctl-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-subtle); margin-left: 92px; pointer-events: none; }
.ctl-lane { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 0; height: 32px; margin-bottom: 6px; }
.ctl-lane:last-child { margin-bottom: 0; }
.ctl-lane-label { font-size: 11px; color: var(--fg-subtle); font-weight: 500; padding-right: 12px; }
.ctl-lane-track { position: relative; height: 26px; background: var(--bg-muted); border-radius: 4px; }
.ctl-event { position: absolute; top: 3px; bottom: 3px; padding: 0 8px; border: 1px solid; border-radius: 3px; display: flex; align-items: center; font-size: 10.5px; font-weight: 500; min-width: 8px; cursor: default; }
.ctl-now { position: absolute; top: -4px; bottom: -4px; width: 0; margin-left: 92px; border-left: 1.5px dashed var(--critical); pointer-events: none; z-index: 2; }
.ctl-now span { position: absolute; top: -2px; left: 4px; font-size: 9.5px; font-weight: 600; color: var(--critical); background: var(--bg); padding: 0 4px; border-radius: 3px; font-family: var(--font-mono); }

/* ─── Noisy services ─── */
.noisy-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.noisy-row:last-child { border-bottom: 0; }
.noisy-rank { width: 20px; height: 20px; border-radius: 4px; background: var(--bg-muted); color: var(--fg-subtle); font-size: 10px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-mono); }

/* ─── Dependency map ─── */
.depmap-wrap { padding: 12px 16px 0; }
.depmap-legend { display: flex; align-items: center; gap: 14px; padding: 10px 16px 14px; border-top: 1px solid var(--border-subtle); margin-top: 4px; font-size: 10.5px; color: var(--fg-muted); }
.depmap-legend span { display: inline-flex; align-items: center; gap: 5px; }
.depmap-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* ─── Log metrics (Datadog-inspired) ─── */
.logs-section-card { background: linear-gradient(180deg, rgba(36,235,175,0.04) 0%, var(--bg-raised) 80%); }
[data-theme="dark"] .logs-section-card { background: linear-gradient(180deg, rgba(36,235,175,0.08) 0%, var(--bg-raised) 80%); }
.logmx-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.logmx-stat { padding: 14px 18px; background: var(--bg-raised); }
.logmx-label { font-size: 10.5px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.logmx-value { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-top: 6px; color: var(--fg); font-variant-numeric: tabular-nums; }
.logmx-value.crit { color: var(--critical); }
.logmx-unit { font-size: 12px; color: var(--fg-faint); font-weight: 500; margin-left: 2px; }
.logmx-foot { font-size: 10.5px; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; color: var(--fg-muted); }
.logmx-foot.ok { color: var(--success); }
.logmx-foot.critical { color: var(--critical); }
.lvg-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.logmx-lvl { display: inline-block; padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; }
.logmx-pattern { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg); background: var(--bg-muted); padding: 2px 6px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; display: inline-block; }
.logmx-new { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: rgba(36,235,175,0.18); color: #047857; letter-spacing: 0.05em; }
.logmx-pattern-table td { vertical-align: middle; }
.logmx-saved { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.logmx-saved:last-child { border-bottom: 0; }
.logmx-tag { background: var(--bg-muted); border: 1px solid var(--border-subtle); padding: 1px 6px; border-radius: 3px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); }

/* ─── New Relic APM ─── */
.apm-section-card { background: linear-gradient(180deg, rgba(0,179,164,0.05) 0%, var(--bg-raised) 80%); }
[data-theme="dark"] .apm-section-card { background: linear-gradient(180deg, rgba(0,179,164,0.1) 0%, var(--bg-raised) 80%); }
.apm-table td { vertical-align: middle; }
.apm-lang-dot { width: 22px; height: 22px; border-radius: 5px; display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; }
.apm-lang-dot.lang-node { background: #5fa04e; }
.apm-lang-dot.lang-go { background: #00add8; }
.apm-lang-dot.lang-java { background: #e76f00; }
.apm-lang-dot.lang-rust { background: #b7410e; }
.apm-lang-dot.lang-ruby { background: #cc342d; }
.apm-lang-dot.lang-python { background: #3776ab; }
.apdex { display: inline-flex; flex-direction: column; gap: 4px; min-width: 64px; }
.apdex-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.apdex-bar { height: 4px; background: var(--bg-muted); border-radius: 2px; overflow: hidden; }
.apdex-fill { height: 100%; border-radius: 2px; }
.apdex-ok .apdex-val { color: var(--success); } .apdex-ok .apdex-fill { background: var(--success); }
.apdex-warn .apdex-val { color: var(--warning); } .apdex-warn .apdex-fill { background: var(--warning); }
.apdex-bad .apdex-val { color: var(--critical); } .apdex-bad .apdex-fill { background: var(--critical); }
.apm-err { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 3px; }
.apm-err.ok { color: var(--success); background: rgba(16,185,129,0.1); }
.apm-err.warn { color: #b45309; background: rgba(245,158,11,0.14); }
.apm-err.critical { color: var(--critical); background: rgba(239,68,68,0.12); }

/* Trace waterfall */
.trace-wf { position: relative; }
.trace-row { display: grid; grid-template-columns: 220px 1fr 56px; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border-subtle); }
.trace-row:last-child { border-bottom: 0; }
.trace-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace-track { position: relative; height: 18px; background: var(--bg-muted); border-radius: 3px; }
.trace-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; min-width: 1px; opacity: 0.85; }
.trace-bar.slow { box-shadow: 0 0 0 1px rgba(239,68,68,0.4); }
.trace-dur { font-size: 11px; font-weight: 600; text-align: right; color: var(--fg); }
.trace-axis { position: relative; height: 16px; margin-top: 6px; margin-left: 228px; margin-right: 64px; border-top: 1px dashed var(--border-subtle); padding-top: 4px; }
.trace-axis span { position: absolute; transform: translateX(-50%); font-size: 9.5px; color: var(--fg-faint); font-family: var(--font-mono); }

/* Error inbox */
.err-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); }
.err-row:last-child { border-bottom: 0; }
.err-marker { width: 4px; align-self: stretch; border-radius: 2px; flex-shrink: 0; }
.err-marker.state-new { background: var(--critical); }
.err-marker.state-triaged { background: var(--warning); }
.err-marker.state-assigned { background: var(--accent); }
.err-marker.state-resolved { background: var(--success); opacity: 0.5; }
.err-row.state-resolved { opacity: 0.55; }

/* Synthetic monitors */
.syn-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.syn-status.syn-ok { background: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,0.18); }
.syn-status.syn-warn { background: var(--warning); }
.syn-status.syn-fail { background: var(--critical); box-shadow: 0 0 0 2px rgba(239,68,68,0.18); }
.uptime-bars { display: flex; gap: 1px; height: 18px; }
.uptime-bars i { flex: 1; border-radius: 1px; min-width: 2px; }

/* Core Web Vitals */
.cwv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cwv { padding: 10px 12px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 6px; }
.cwv-ok { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); }
.cwv-warn { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.04); }
.cwv-bad { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.cwv-head { display: flex; justify-content: space-between; align-items: center; }
.cwv-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--fg-subtle); letter-spacing: 0.04em; }
.cwv-dot { width: 7px; height: 7px; border-radius: 50%; }
.cwv-value { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; margin-top: 4px; color: var(--fg); font-variant-numeric: tabular-nums; }
.cwv-unit { font-size: 10.5px; color: var(--fg-faint); margin-left: 2px; font-weight: 500; }
.cwv-desc { font-size: 10px; color: var(--fg-subtle); margin-top: 2px; }
.cwv-bar { position: relative; height: 4px; background: var(--bg-muted); border-radius: 2px; margin-top: 8px; overflow: visible; }
.cwv-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; }
.cwv-target { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--fg-muted); opacity: 0.6; }



/* ───────── ServiceNow form-style dashboard ───────── */
.sn-dash { padding: 0 !important; background: #f4f6f9; }
[data-theme="dark"] .sn-dash { background: var(--bg); }

/* Breadcrumb */
.sn-breadcrumb { padding: 10px 24px; font-size: 12px; color: var(--fg-muted); background: #f4f6f9; border-bottom: 1px solid #e5e8eb; display: flex; gap: 8px; align-items: center; }
.sn-breadcrumb .sn-link { color: #016; font-weight: 500; cursor: pointer; }
.sn-breadcrumb .sn-link:hover { text-decoration: underline; }
.sn-bc-sep { color: var(--fg-faint); font-size: 14px; }

/* Form header */
.sn-form-header { background: white; padding: 16px 24px 14px; border-bottom: 1px solid #d2d6dc; display: flex; flex-direction: column; gap: 8px; }
.sn-form-title-row { display: flex; align-items: center; gap: 10px; }
.sn-rec-number { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #016; padding: 3px 10px; background: #eaf0f7; border-radius: 3px; }
.sn-form-title-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 2px; }
.sn-form-title-meta h1 { font-size: 20px; font-weight: 600; color: #000; letter-spacing: -0.01em; }
.sn-form-sub { font-size: 12.5px; color: var(--fg-muted); margin-top: 4px; }
.sn-form-actions { position: absolute; right: 24px; top: 56px; display: flex; gap: 6px; }
.sn-form-header { position: relative; }

/* SN buttons */
.sn-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: white; border: 1px solid #d2d6dc; color: #424952; font-size: 12px; font-weight: 500; border-radius: 3px; cursor: pointer; transition: all .12s; }
.sn-btn:hover { background: #f4f6f9; border-color: #6b7785; color: #000; }
.sn-btn.primary { background: #016; border-color: #016; color: white; }
.sn-btn.primary:hover { background: #024; color: white; }

/* Status pills */
.sn-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.sn-pill .fa-solid { font-size: 8px; }
.sn-pill.prio-1 { background: #ffebee; color: #c62828; }
.sn-pill.prio-2 { background: #fff3e0; color: #ef6c00; }
.sn-pill.prio-3 { background: #fffde7; color: #f57f17; }
.sn-pill.state-progress { background: #e3f2fd; color: #1565c0; }
.sn-pill.state-neutral { background: #f4f6f9; color: #424952; border: 1px solid #e5e8eb; }

/* KPI strip */
.sn-kpi-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #e5e8eb; border-bottom: 1px solid #d2d6dc; }
.sn-kpi { background: white; padding: 14px 16px; }
.sn-kpi-l { font-size: 10.5px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.sn-kpi-v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #000; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sn-kpi-s { font-size: 11px; color: var(--fg-subtle); margin-top: 3px; }
.sn-kpi.tone-crit .sn-kpi-v { color: #c62828; }
.sn-kpi.tone-warn .sn-kpi-v { color: #ef6c00; }
.sn-kpi.tone-ok .sn-kpi-v { color: #2e7d32; }

/* Two-column form layout */
.sn-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; padding: 16px; gap: 16px; }
@media (max-width: 1200px) { .sn-form-layout { grid-template-columns: 1fr; } }

.sn-form-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sn-form-side { display: flex; flex-direction: column; gap: 12px; }

/* Form sections */
.sn-form-section { background: white; border: 1px solid #d2d6dc; border-radius: 3px; overflow: hidden; }
.sn-section-header { background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%); padding: 10px 14px; border-bottom: 1px solid #d2d6dc; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; font-weight: 600; color: #000; }
.sn-section-header:hover { background: #eaf0f7; }
.sn-section-header .fa-chevron-down, .sn-section-header .fa-chevron-right { font-size: 10px; color: var(--fg-muted); width: 12px; }
.sn-section-title { flex: 1; }
.sn-section-badge { font-size: 10.5px; font-weight: 500; color: var(--fg-muted); background: white; border: 1px solid #d2d6dc; padding: 1px 8px; border-radius: 10px; }
.sn-section-content { padding: 4px 0; }

/* Form rows (ServiceNow signature: label + value 2-up) */
.sn-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid #e5e8eb; }
.sn-form-row:last-child { border-bottom: 0; }
.sn-form-group { display: grid; grid-template-columns: 140px 1fr; align-items: center; min-height: 32px; }
.sn-form-group:first-child { border-right: 1px solid #e5e8eb; }
.sn-field-label { padding: 8px 12px; font-size: 12px; color: #424952; background: #fafbfc; border-right: 1px solid #e5e8eb; height: 100%; display: flex; align-items: center; }
.sn-field-label.required::after { content: " *"; color: #c62828; }
.sn-field-value { padding: 8px 12px; font-size: 12.5px; color: #000; }
.sn-field-value .mono { font-size: 11.5px; }

/* Tables inside sections */
.sn-list-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sn-list-table thead th { background: #fafbfc; padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 600; color: #424952; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #d2d6dc; }
.sn-list-table tbody td { padding: 9px 12px; border-bottom: 1px solid #e5e8eb; vertical-align: middle; color: #000; }
.sn-list-table tbody tr:hover { background: #f4f6f9; }
.sn-list-table tbody tr:last-child td { border-bottom: 0; }
.sn-list-table .sn-link { color: #016; cursor: pointer; font-weight: 500; }
.sn-list-table .sn-link:hover { text-decoration: underline; }

/* Status dots */
.sn-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sn-status-dot.healthy { background: #4caf50; }
.sn-status-dot.degraded { background: #ff9800; }
.sn-status-dot.down { background: #d32f2f; }

/* State pills */
.sn-state-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.sn-state-pill .fa-solid { font-size: 8px; }
.sn-state-pill.state-active { background: #ffebee; color: #c62828; }
.sn-state-pill.state-mitigating { background: #fff3e0; color: #ef6c00; }
.sn-state-pill.state-investigating { background: #e3f2fd; color: #1565c0; }
.sn-state-pill.state-open { background: #fffde7; color: #f57f17; }
.sn-state-pill.svc-healthy { background: #e8f5e9; color: #2e7d32; }
.sn-state-pill.svc-degraded { background: #fff3e0; color: #ef6c00; }
.sn-state-pill.svc-down { background: #ffebee; color: #c62828; }

/* Mini SLA */
.sn-sla { display: flex; align-items: center; gap: 6px; }
.sn-sla-bar { width: 60px; height: 4px; background: #e5e8eb; border-radius: 2px; overflow: hidden; }
.sn-sla-fill { height: 100%; border-radius: 2px; }

/* Activity section (ServiceNow signature) */
.sn-activity-section { background: white; border: 1px solid #d2d6dc; border-radius: 3px; overflow: hidden; }
.sn-activity-tabs { display: flex; border-bottom: 2px solid #d2d6dc; background: #fafbfc; padding: 0 12px; }
.sn-act-tab { padding: 10px 16px; border: 0; background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 500; color: #424952; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sn-act-tab:hover { color: #000; }
.sn-act-tab.active { color: #016; border-bottom-color: #016; font-weight: 600; }
.sn-activity-content { padding: 14px 16px; }

.sn-comment-box { background: #fafbfc; border: 1px solid #d2d6dc; border-radius: 3px; padding: 10px 12px; }
.sn-comment-box textarea { width: 100%; border: 0; background: transparent; resize: vertical; font: inherit; outline: none; color: #000; }
.sn-comment-box textarea::placeholder { color: var(--fg-faint); }
.sn-comment-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e8eb; }

.sn-activity-stream { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.sn-activity-item { display: flex; gap: 12px; }
.sn-activity-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; font-weight: 700; font-size: 12px; flex-shrink: 0; background: linear-gradient(135deg, #016, #2e4a6a); }
.sn-activity-body { flex: 1; min-width: 0; }
.sn-activity-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.sn-activity-head b { color: #000; font-size: 13px; font-weight: 600; }
.sn-activity-head .text-mute { font-size: 12px; }
.sn-activity-time { color: var(--fg-faint); font-size: 11.5px; margin-left: auto; }
.sn-activity-text { font-size: 12.5px; color: #000; line-height: 1.55; }
.sn-activity-text code { background: #eaf0f7; padding: 1px 5px; border-radius: 2px; font-family: var(--font-mono); font-size: 11.5px; color: #c62828; }
.sn-activity-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sn-tag { font-size: 10.5px; padding: 1px 7px; background: #f4f6f9; border: 1px solid #e5e8eb; border-radius: 10px; color: var(--fg-muted); }

/* Sidebar cards */
.sn-side-card { background: white; border: 1px solid #d2d6dc; border-radius: 3px; overflow: hidden; }
.sn-side-head { background: linear-gradient(180deg, #016 0%, #024 100%); color: white; padding: 8px 14px; font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.sn-side-count { background: rgba(255,255,255,.2); padding: 1px 8px; border-radius: 10px; font-size: 11px; }
.sn-side-body { padding: 0; }
.sn-side-body .sn-form-group { grid-template-columns: 110px 1fr; border-bottom: 1px solid #e5e8eb; }
.sn-side-body .sn-form-group:last-child { border-bottom: 0; }

/* Actions grid */
.sn-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e5e8eb; padding: 0; }
.sn-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; background: white; border: 0; cursor: pointer; font-size: 11px; color: #424952; font-weight: 500; transition: all .12s; min-height: 70px; }
.sn-action:hover { background: #eaf0f7; color: #016; }
.sn-action i { font-size: 16px; color: #016; }

/* Related list */
.sn-related-row { padding: 10px 14px; border-bottom: 1px solid #e5e8eb; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; cursor: pointer; }
.sn-related-row:last-child { border-bottom: 0; }
.sn-related-row:hover { background: #fafbfc; }
.sn-related-title { font-size: 12.5px; font-weight: 500; color: #000; }
.sn-related-meta { font-size: 11px; color: var(--fg-subtle); margin-top: 2px; }

/* Tone helpers */
.tone-ok { color: #2e7d32; }
.tone-warn { color: #ef6c00; }
.tone-crit { color: #c62828; }
.tone-neutral { color: var(--fg-muted); }

/* Severity in SN style */
.sn-list-table .sev { font-family: var(--font-mono); font-weight: 700; padding: 2px 6px; border-radius: 3px; font-size: 11px; }

/* Empty state in activity */
.sn-empty { text-align: center; padding: 32px 14px; color: var(--fg-muted); }
.sn-empty i { font-size: 36px; color: var(--fg-faint); margin-bottom: 10px; }
.sn-empty h4 { font-size: 14px; font-weight: 600; color: #000; margin-bottom: 4px; }
.sn-empty p { font-size: 12px; }

[data-theme="dark"] .sn-form-section, [data-theme="dark"] .sn-side-card, [data-theme="dark"] .sn-activity-section, [data-theme="dark"] .sn-form-header, [data-theme="dark"] .sn-kpi { background: var(--bg-raised); border-color: var(--border); }
[data-theme="dark"] .sn-section-header, [data-theme="dark"] .sn-field-label, [data-theme="dark"] .sn-list-table thead th { background: var(--bg-muted); }
[data-theme="dark"] .sn-form-title-meta h1, [data-theme="dark"] .sn-kpi-v, [data-theme="dark"] .sn-field-value, [data-theme="dark"] .sn-list-table tbody td, [data-theme="dark"] .sn-activity-text, [data-theme="dark"] .sn-activity-head b, [data-theme="dark"] .sn-related-title, [data-theme="dark"] .sn-empty h4, [data-theme="dark"] .sn-section-header { color: var(--fg); }



/* SN list-style additions */
.sn-form-layout.single { grid-template-columns: 1fr; }
.sn-list-foot { padding: 12px 14px; border-top: 1px solid #e5e8eb; background: #fafbfc; display: flex; justify-content: space-between; align-items: center; }

.sn-list-table tbody tr td input[type=checkbox] { vertical-align: middle; }
.sn-list-table .sev { display: inline-block; min-width: 32px; text-align: center; }



/* Fix: alias --bg-card to --bg-raised so kind-card / kind-chip / search-input / select / dev-stat resolve */
:root { --bg-card: var(--bg-raised); }

/* Fix: dashboard form header layout — convert actions to flex instead of absolute overlap */
.sn-form-header { position: relative; padding: 14px 24px 12px; }
.sn-form-header .sn-form-actions { position: static; align-self: flex-start; }
.sn-form-title-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.sn-form-title-meta > div:first-child { flex: 1; min-width: 0; }
.sn-form-sub { padding-right: 0; }



/* SN-style kind cards (replaces previous old kind-card layout) */
.sn-kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; padding: 0; background: #e5e8eb; }
.sn-kind-card { background: white; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background .1s; }
.sn-kind-card:hover { background: #fafbfc; }
.sn-kind-icon { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.sn-kind-body { flex: 1; min-width: 0; }
.sn-kind-count { font-size: 20px; font-weight: 700; line-height: 1; color: #000; letter-spacing: -0.02em; }
.sn-kind-label { font-size: 11.5px; color: var(--fg-muted); margin-top: 4px; }



/* ───────── Landing page + auth ───────── */
.landing { background: white; color: #0f1c3f; font-family: var(--font-sans); min-height: 100vh; }

.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; border-bottom: 1px solid #e5e8eb; background: white; position: sticky; top: 0; z-index: 100; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.lp-logo.lg { font-size: 20px; }
.lp-logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #8b5cf6); color: white; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.lp-logo-mark.lg { width: 44px; height: 44px; font-size: 16px; }
.lp-logo-mark.sm { width: 26px; height: 26px; font-size: 11px; }
.lp-nav-links { display: flex; gap: 28px; font-size: 13px; }
.lp-nav-links a { color: #475467; cursor: pointer; }
.lp-nav-links a:hover { color: #016; }
.lp-nav-cta { display: flex; gap: 8px; }

.lp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all .12s; border: 1px solid transparent; }
.lp-btn.primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; }
.lp-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, .35); }
.lp-btn.ghost { background: white; color: #0f1c3f; border-color: #d2d6dc; }
.lp-btn.ghost:hover { border-color: #016; color: #016; }
.lp-btn.lg { padding: 12px 22px; font-size: 14px; }
.lp-btn.full { width: 100%; justify-content: center; }

/* Hero */
.lp-hero { padding: 64px 48px 40px; background: linear-gradient(180deg, #fafbff 0%, white 100%); }
.lp-hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; border-radius: 16px; border: 1px solid #bfdbfe; margin-bottom: 20px; }
.lp-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; animation: lp-pulse 2s infinite; }
.lp-eyebrow-text { font-size: 11.5px; font-weight: 700; color: #016; letter-spacing: 0.1em; text-transform: uppercase; }
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.lp-hero h1 { font-size: 56px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 20px; }
.lp-highlight { background: linear-gradient(135deg, #2563eb, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lp-sub { font-size: 17px; line-height: 1.6; color: #475467; margin-bottom: 32px; max-width: 540px; }
.lp-hero-cta { display: flex; gap: 12px; margin-bottom: 24px; }
.lp-hero-meta { display: flex; gap: 24px; font-size: 12.5px; color: #6b7785; flex-wrap: wrap; }
.lp-hero-meta i { color: #10b981; margin-right: 4px; }

/* Mockup */
.lp-mockup { background: white; border: 1px solid #e5e8eb; border-radius: 12px; box-shadow: 0 24px 60px rgba(15, 28, 63, 0.12); overflow: hidden; }
.lp-mockup-head { background: #f4f6f9; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e5e8eb; }
.lp-traffic { display: flex; gap: 6px; }
.lp-traffic i { width: 10px; height: 10px; border-radius: 50%; background: #d2d6dc; display: block; }
.lp-traffic i:nth-child(1) { background: #ef4444; }
.lp-traffic i:nth-child(2) { background: #f59e0b; }
.lp-traffic i:nth-child(3) { background: #10b981; }
.lp-mockup-url { font-family: var(--font-mono); font-size: 11px; color: #6b7785; }
.lp-mockup-body { padding: 14px; }
.lp-mockup.small .lp-mockup-body { padding: 14px; }
.lp-mock-pill { background: #fef2f2; color: #b42318; border: 1px solid #fecdca; padding: 8px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.lp-pulse { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: lp-pulse 1.5s infinite; }
.lp-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e5e8eb; border-radius: 6px; margin-bottom: 6px; font-size: 12.5px; }
.lp-mock-row.crit { background: #fef2f2; border-color: #fecdca; }
.lp-mock-id { font-family: var(--font-mono); font-weight: 700; color: #016; }
.lp-mock-row.crit .lp-mock-id { color: #dc2626; }
.lp-mock-row > span:nth-child(2) { flex: 1; color: #0f1c3f; }
.lp-mock-sla { font-size: 11.5px; font-weight: 600; color: #dc2626; }
.lp-mock-sla.ok { color: #059669; }
.lp-mock-ai { margin-top: 12px; padding: 12px; background: linear-gradient(135deg, #faf5ff, #eef2ff); border: 1px solid #e9d5ff; border-radius: 6px; display: flex; gap: 10px; font-size: 12px; }
.lp-mock-ai i { color: #8b5cf6; font-size: 16px; }
.lp-mock-ai b { display: block; margin-bottom: 2px; }
.lp-mock-ai code { background: white; padding: 1px 5px; border-radius: 3px; font-size: 11px; color: #c62828; }

/* Logos */
.lp-logos { max-width: 1280px; margin: 80px auto 0; text-align: center; padding-top: 40px; border-top: 1px solid #f4f6f9; }
.lp-logos > div:first-child { font-size: 11.5px; color: #9ca3af; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.lp-logo-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; }
.lp-logo-word { font-size: 16px; font-weight: 700; color: #b0b6bf; letter-spacing: 0.05em; opacity: 0.7; }

/* Sections */
.lp-section { padding: 100px 48px; max-width: 1280px; margin: 0 auto; }
.lp-section-head { text-align: center; margin-bottom: 56px; }
.lp-section-head h2 { font-size: 42px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 10px 0 12px; }
.lp-section-sub { font-size: 17px; color: #475467; max-width: 640px; margin: 0 auto; }

.lp-metrics { display: grid; grid-template-columns: repeat(5, 1fr); padding: 56px 48px; background: #f4f6f9; max-width: none; gap: 0; }
.lp-metric { text-align: center; padding: 16px 8px; border-right: 1px solid #e5e8eb; }
.lp-metric:last-child { border-right: 0; }
.lp-metric-v { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(135deg, #2563eb, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.lp-metric-l { font-size: 13px; color: #6b7785; margin-top: 8px; font-weight: 500; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-feature { padding: 32px 28px; border: 1px solid #e5e8eb; border-radius: 12px; background: white; transition: all .15s; }
.lp-feature:hover { border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, .08); }
.lp-feature-ic { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; margin-bottom: 18px; }
.lp-feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.lp-feature p { font-size: 14px; line-height: 1.55; color: #475467; }

.lp-integ { background: linear-gradient(180deg, white 0%, #fafbff 100%); }
.lp-integ-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lp-integ-card { padding: 18px 12px; background: white; border: 1px solid #e5e8eb; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; transition: all .12s; cursor: pointer; }
.lp-integ-card:hover { border-color: #016; transform: translateY(-2px); }
.lp-integ-card i { font-size: 28px; }

.lp-quote { text-align: center; max-width: 880px; padding: 80px 48px; }
.lp-quote-mark { font-size: 48px; color: #e9d5ff; margin-bottom: 20px; }
.lp-quote-text { font-size: 28px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: #0f1c3f; margin-bottom: 32px; }
.lp-quote-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lp-quote-author b { display: block; font-size: 14px; }
.lp-quote-author span { font-size: 12.5px; color: #6b7785; }

.lp-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #8b5cf6); color: white; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.lp-avatar.amber { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.lp-avatar.teal { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.lp-avatar.pink { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

.lp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-plan { padding: 32px 28px; border: 1px solid #e5e8eb; border-radius: 14px; background: white; position: relative; }
.lp-plan.featured { border: 2px solid #2563eb; box-shadow: 0 12px 40px rgba(37, 99, 235, .15); transform: translateY(-8px); }
.lp-plan-badge { position: absolute; top: -12px; left: 28px; background: linear-gradient(135deg, #2563eb, #8b5cf6); color: white; padding: 4px 12px; border-radius: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.lp-plan h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.lp-plan-price { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.lp-plan-price span { font-size: 16px; color: #6b7785; font-weight: 500; }
.lp-plan-per { font-size: 13px; color: #6b7785; margin: 6px 0 24px; }
.lp-plan ul { list-style: none; margin: 0 0 28px; padding: 0; }
.lp-plan li { font-size: 13.5px; padding: 6px 0; color: #475467; }
.lp-plan li i { color: #10b981; margin-right: 8px; }

.lp-cta { background: linear-gradient(135deg, #0f1c3f 0%, #1e3a8a 100%); color: white; padding: 96px 48px; text-align: center; }
.lp-cta h2 { font-size: 40px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 16px; }
.lp-cta p { font-size: 17px; opacity: 0.85; margin-bottom: 32px; }
.lp-cta-buttons { display: flex; gap: 12px; justify-content: center; }
.lp-cta .lp-btn.ghost { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.2); }
.lp-cta .lp-btn.ghost:hover { background: rgba(255,255,255,0.2); color: white; }

.lp-foot { padding: 64px 48px 32px; background: #0a1430; color: rgba(255,255,255,0.7); }
.lp-foot-cols { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; }
.lp-foot-col h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.04em; }
.lp-foot-col ul { list-style: none; padding: 0; margin: 0; }
.lp-foot-col li { padding: 5px 0; font-size: 13px; cursor: pointer; }
.lp-foot-col li:hover { color: white; }
.lp-foot-col p { font-size: 13px; line-height: 1.6; margin-top: 12px; }
.lp-foot-col .lp-logo { color: white; }
.lp-foot-bar { max-width: 1280px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 12px; }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; background: white; font-family: var(--font-sans); }
.auth-aside { background: linear-gradient(135deg, #0f1c3f 0%, #1e3a8a 50%, #4c1d95 100%); color: white; padding: 48px; display: flex; flex-direction: column; gap: 48px; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%); pointer-events: none; }
.auth-aside .lp-logo { color: white; position: relative; z-index: 1; }
.auth-pitch { position: relative; z-index: 1; }
.auth-pitch h2 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 14px; }
.auth-pitch p { font-size: 16px; opacity: 0.8; margin-bottom: 28px; }
.auth-checks { list-style: none; padding: 0; margin: 0 0 32px; }
.auth-checks li { padding: 6px 0; font-size: 14px; }
.auth-checks i { color: #10b981; margin-right: 10px; }
.auth-trust { display: flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: 0.7; }
.auth-trust .lp-avatar { width: 32px; height: 32px; font-size: 11px; margin-right: -8px; border: 2px solid #1e3a8a; }
.auth-trust span { margin-left: 12px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: #6b7785; margin-bottom: 28px; }

.auth-steps { display: flex; align-items: center; margin-bottom: 28px; }
.auth-step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9ca3af; font-weight: 500; }
.auth-step > span:first-child { width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; color: #6b7785; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.auth-step.on { color: #016; }
.auth-step.on > span:first-child { background: #016; color: white; }
.auth-step-sep { flex: 1; height: 2px; background: #f1f5f9; margin: 0 12px; }

.sso-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.sso-btn { padding: 11px; background: white; border: 1px solid #d2d6dc; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .12s; }
.sso-btn:hover { border-color: #016; }
.sso-btn i { font-size: 15px; }

.auth-or { text-align: center; position: relative; margin: 20px 0; }
.auth-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e5e8eb; }
.auth-or span { position: relative; background: white; padding: 0 12px; font-size: 11.5px; color: #9ca3af; }

.auth-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field label { font-size: 12.5px; font-weight: 500; color: #0f1c3f; display: block; margin-bottom: 5px; }
.auth-field .select { width: 100%; padding: 9px 12px; height: auto; font-size: 13.5px; }
.auth-url { display: flex; align-items: stretch; }
.auth-url-suffix { padding: 9px 12px; background: #f4f6f9; border: 1px solid #d2d6dc; border-left: 0; border-radius: 0 3px 3px 0; font-size: 12.5px; color: #6b7785; }
.auth-buttons { display: flex; gap: 12px; }
.auth-buttons .lp-btn { flex: 1; justify-content: center; }
.auth-foot { font-size: 13px; color: #6b7785; text-align: center; margin-top: 20px; }
.auth-foot a { color: #016; font-weight: 600; cursor: pointer; }

@media (max-width: 1100px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-features, .lp-pricing { grid-template-columns: 1fr 1fr; }
  .lp-integ-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-metrics { grid-template-columns: repeat(3, 1fr); }
  .lp-foot-cols { grid-template-columns: 1fr 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ───────────────── Professional polish: no-wrap + overflow control ───────────────── */

/* Header: keep everything on one row; breadcrumb truncates, search shrinks, right side fixed */
.header { flex-wrap: nowrap; }
.hdr-crumbs { flex: 0 1 auto; min-width: 0; overflow: hidden; flex-wrap: nowrap; }
.hdr-crumbs .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hdr-crumbs .crumb.current { flex-shrink: 0; max-width: 280px; }
.hdr-crumbs .fa-chevron-right { flex-shrink: 0; }
.hdr-command { flex: 1 1 160px; min-width: 120px; }
.hdr-right { flex-shrink: 0; }
.hdr-incident-pill { white-space: nowrap; flex-shrink: 0; }
.hdr-user { flex-shrink: 0; }
.hdr-user b, .hdr-user span { white-space: nowrap; }
.hdr-user > div { min-width: 0; }
.icon-btn { flex-shrink: 0; }

/* Form header: pills and record number never break mid-text; row wraps cleanly */
.sn-form-title-row { flex-wrap: wrap; row-gap: 8px; }
.sn-pill, .sn-rec-number { white-space: nowrap; }
.sn-form-actions { flex-wrap: wrap; }

/* Buttons: never wrap label (fixes "Declare Incident" clip) */
.sn-btn { white-space: nowrap; }

/* State pills in tables stay intact */
.sn-state-pill { white-space: nowrap; }

/* Sidebar card headers stay one line (fixes "Quick Actions" clipping) */
.sn-side-head { white-space: nowrap; }

/* Quick-action tiles: tidy centered two-line labels instead of mid-word breaks */
.sn-action span { text-align: center; line-height: 1.3; }

/* Signup / auth stepper: labels never collapse into the number badge */
.auth-step { white-space: nowrap; flex-shrink: 0; }
.auth-step > span:first-child { flex-shrink: 0; }

/* Landing page: nav + CTA buttons and hero badge never break onto two lines */
.lp-btn { white-space: nowrap; }
.lp-eyebrow { white-space: nowrap; }
.lp-nav-cta { flex-shrink: 0; }

/* Incident "Affected scope" block — client / application / hostname called out */
.inc-scope { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-muted); }
.inc-scope-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-bottom: 1px solid var(--border); }
.inc-scope-row:last-child { border-bottom: none; }
.inc-scope-key { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-subtle); white-space: nowrap; }
.inc-scope-key i { width: 13px; text-align: center; color: var(--fg-subtle); }
.inc-scope-val { font-size: 13px; line-height: 1.35; word-break: break-word; }
.inc-scope-tag { display: block; font-size: 10.5px; color: var(--fg-subtle); font-weight: 500; margin-top: 1px; }

/* ───────── CMDB: clickable + editable CI class taxonomy ───────── */
.sn-kind-hint { display: flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 11.5px; color: var(--fg-muted); background: #f6f8fa; border-bottom: 1px solid #e5e8eb; }
.sn-kind-hint i { color: #016; }

/* class cards are <button> now — reset native styling, keep grid look */
.sn-kind-card { width: 100%; border: none; text-align: left; font: inherit; color: inherit; position: relative; }
.sn-kind-card .sn-kind-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #c2c9d1; opacity: 0; transition: opacity .12s, transform .12s; }
.sn-kind-card:hover { background: #f3f7fc; }
.sn-kind-card:hover .sn-kind-go { opacity: 1; transform: translateY(-50%) translateX(2px); }
.sn-kind-card:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.sn-kind-card.is-active { background: #eaf0f7; box-shadow: inset 3px 0 0 #016; }
.sn-kind-card.is-active .sn-kind-go { opacity: 1; color: #016; }

/* filter bar above the CI table */
.sn-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #f6f8fa; border-bottom: 1px solid #e5e8eb; flex-wrap: wrap; }
.sn-filter-chip { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1px solid #cfd6dd; border-radius: 14px; padding: 3px 6px 3px 11px; font-size: 12px; white-space: nowrap; }
.sn-filter-x { border: none; background: #eef1f4; color: #6b7785; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 10px; }
.sn-filter-x:hover { background: #e0464620; color: #c62828; }

/* attribute tags (class detail) */
.sn-attr-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sn-attr-tag { background: #eef2f7; border: 1px solid #dde3ea; color: #41506b; border-radius: 4px; padding: 1px 7px; font-size: 11.5px; }

/* color swatch picker (class edit) */
.sn-swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sn-swatch { width: 22px; height: 22px; border-radius: 5px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; }
.sn-swatch.on { border-color: #0f1c3f; box-shadow: 0 0 0 2px white inset; }
.row-6 { display: inline-flex; gap: 6px; align-items: center; }

/* ─────────────────────── Shared modal (CI class view/edit · integration connect) ─────────────────────── */
.le-modal-backdrop { position: fixed; inset: 0; background: rgba(10,20,51,0.5); backdrop-filter: blur(3px); z-index: 1200; display: grid; place-items: center; padding: 40px 20px; overflow-y: auto; }
.le-modal { background: var(--bg-raised); border-radius: 12px; width: 620px; max-width: 100%; box-shadow: var(--shadow-pop); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 80px); animation: modalpop 0.16s cubic-bezier(.2,.8,.3,1); }
.le-modal.wide { width: 720px; }
@keyframes modalpop { from { transform: translateY(10px) scale(.985); } to { transform: none; } }
.le-modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.le-modal-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.le-modal-titles { flex: 1; min-width: 0; }
.le-modal-titles h3 { font-size: 15.5px; font-weight: 700; color: var(--fg); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.le-modal-titles p { font-size: 12px; color: var(--fg-subtle); margin-top: 2px; }
.le-modal-x { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-raised); color: var(--fg-subtle); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.le-modal-x:hover { background: var(--bg-muted); color: var(--fg); }
.le-modal-body { padding: 18px; overflow-y: auto; }
.le-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--border); background: var(--bg-muted); flex-wrap: wrap; }
.le-modal-foot .spacer { margin-right: auto; }

/* def-list used in view mode */
.le-dl { display: grid; grid-template-columns: 132px 1fr; gap: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.le-dl dt { padding: 10px 13px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-subtle); background: var(--bg-muted); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.le-dl dd { padding: 10px 13px; font-size: 13px; color: var(--fg); border-bottom: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.le-dl dt:last-of-type, .le-dl dd:last-of-type { border-bottom: none; }

/* form rows inside modal (edit / connect) */
.le-field { margin-bottom: 14px; }
.le-field:last-child { margin-bottom: 0; }
.le-field > label { display: block; font-size: 11.5px; font-weight: 600; color: var(--fg-muted); margin-bottom: 5px; }
.le-field > label .req { color: var(--critical); margin-left: 2px; }
.le-field .hint { font-size: 11px; color: var(--fg-subtle); margin-top: 4px; line-height: 1.4; }
.le-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 7px; font-size: 13px; font-family: var(--font-sans); background: var(--bg-raised); outline: none; }
.le-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }
.le-input.mono { font-family: var(--font-mono); font-size: 12px; }
.le-input-group { display: flex; gap: 6px; }
.le-input-group .le-input { flex: 1; }
.le-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* automation toggle cards (connect modal) */
.le-auto { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 2px; }
.le-auto-card { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; transition: border-color .12s, background .12s; }
.le-auto-card.on { border-color: var(--blue-500); background: var(--blue-50); }
.le-auto-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; background: var(--bg-muted); color: var(--fg-subtle); }
.le-auto-card.on .le-auto-ic { background: var(--blue-600); color: #fff; }
.le-auto-txt { flex: 1; min-width: 0; }
.le-auto-txt b { font-size: 13px; color: var(--fg); display: block; }
.le-auto-txt span { font-size: 11.5px; color: var(--fg-subtle); line-height: 1.45; display: block; margin-top: 2px; }
.le-switch { width: 38px; height: 22px; border-radius: 11px; background: var(--border-strong); position: relative; flex-shrink: 0; transition: background .14s; margin-top: 3px; }
.le-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .14s; }
.le-auto-card.on .le-switch { background: var(--blue-600); }
.le-auto-card.on .le-switch::after { transform: translateX(16px); }

/* connect success state */
.le-connect-success { text-align: center; padding: 8px 6px 4px; }
.le-connect-check { width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-size: 26px; margin: 0 auto 14px; }
.le-connect-success h4 { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 5px; }
.le-connect-success > p { font-size: 12.5px; color: var(--fg-subtle); margin-bottom: 16px; }
.le-pipe { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.le-pipe-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-raised); }
.le-pipe-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.le-pipe-row .dot.live { background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45);} 70%{ box-shadow: 0 0 0 7px rgba(16,185,129,0);} 100%{ box-shadow:0 0 0 0 rgba(16,185,129,0);} }
.le-pipe-row .ic { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.le-pipe-row .body { flex: 1; min-width: 0; }
.le-pipe-row .body b { font-size: 12.5px; color: var(--fg); display: block; }
.le-pipe-row .body span { font-size: 11px; color: var(--fg-subtle); }
.le-pipe-row .mono { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); white-space: nowrap; }

/* kind-hint reused — clickable cue on class cards */
.sn-kind-card { cursor: pointer; }

/* ─────────────── ServiceNow ITSM war-room activity stream ─────────────── */
.sn-act { margin-top: 16px; border-top: 1px solid var(--border); }
.sn-act-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; flex-wrap: wrap; }
.sn-act-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--fg); }
.sn-act-title i { color: var(--fg-subtle); }
.sn-act-sub { font-size: 11px; font-weight: 500; color: var(--fg-subtle); font-family: var(--font-mono); margin-left: 4px; }
.sn-act-filters { display: inline-flex; gap: 2px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 7px; padding: 2px; }
.sn-act-filter { height: 26px; padding: 0 10px; border: 0; background: transparent; font-size: 11.5px; font-weight: 600; color: var(--fg-subtle); cursor: pointer; border-radius: 5px; white-space: nowrap; }
.sn-act-filter:hover { color: var(--fg); }
.sn-act-filter.on { background: var(--bg-raised); color: var(--fg); box-shadow: var(--shadow-sm); }
.sn-act-filter.on.worknote { color: #b45309; }
.sn-act-filter.on.comment { color: var(--blue-600); }
.sn-act-filter.on.ai { color: var(--purple-500); }

/* journal entries with a timeline rail */
.sn-act-stream { position: relative; padding: 4px 0 6px; }
.sn-act-stream::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.sn-act-item { position: relative; display: flex; gap: 12px; padding: 7px 0; }
.sn-act-rail { width: 28px; flex-shrink: 0; display: flex; justify-content: center; z-index: 1; }
.sn-act-rail .avatar { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 0 0 3px var(--bg-raised); }
.sn-act-ai-av { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--purple-500), var(--blue-500)); color: #fff; display: grid; place-items: center; font-size: 13px; box-shadow: 0 0 0 3px var(--bg-raised); }
.sn-act-main { flex: 1; min-width: 0; }
.sn-act-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.sn-act-meta b { font-size: 12.5px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.sn-act-role { font-size: 10px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.sn-act-type { font-size: 10px; font-weight: 700; padding: 1px 7px 1px 6px; border-radius: 4px; border: 1px solid; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sn-act-type i { font-size: 8.5px; }
.sn-act-meta time { font-size: 11px; color: var(--fg-subtle); margin-left: auto; font-family: var(--font-mono); white-space: nowrap; }
.sn-act-bubble { font-size: 12.5px; line-height: 1.55; color: var(--fg); padding: 9px 12px; border-left: 3px solid; border-radius: 0 7px 7px 0; }

/* ServiceNow dual-channel journal composer */
.sn-journal { margin-top: 12px; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; background: var(--bg-raised); }
.sn-journal-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-muted); }
.sn-journal-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--fg-subtle); cursor: pointer; border-bottom: 2px solid transparent; }
.sn-journal-tab i { font-size: 10.5px; }
.sn-journal-tab:hover { color: var(--fg); }
.sn-journal-tab.worknote.on { color: #b45309; background: var(--warning-bg); border-bottom-color: var(--warning); }
.sn-journal-tab.comment.on { color: var(--blue-600); background: var(--blue-50); border-bottom-color: var(--blue-600); }
.sn-journal-vis { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 5px; border-radius: 3px; background: rgba(37,99,235,.12); color: var(--blue-600); }
.sn-journal-input { width: 100%; border: 0; outline: 0; padding: 12px 14px; font-size: 12.5px; font-family: var(--font-sans); line-height: 1.5; resize: vertical; min-height: 64px; background: transparent; color: var(--fg); }
.sn-journal-input.ch-worknote { background: linear-gradient(0deg, transparent, var(--warning-bg) 220%); }
.sn-journal-input.ch-comment { background: linear-gradient(0deg, transparent, var(--blue-50) 220%); }
.sn-journal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg-muted); }
.sn-journal-tools { display: inline-flex; gap: 2px; }
.sn-journal-tool { width: 28px; height: 28px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--fg-subtle); cursor: pointer; display: grid; place-items: center; font-size: 12px; }
.sn-journal-tool:hover { background: var(--bg-raised); border-color: var(--border); color: var(--fg); }
.sn-btn.primary.ch-worknote { background: #b45309; border-color: #b45309; }
.sn-btn.primary.ch-comment { background: var(--blue-600); border-color: var(--blue-600); }
.sn-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }


/* ════════════════════════════════════════════════════════════════════
   ELEVATED THEME · v2  ·  brand duotone = indigo #4f46e5 → violet #7c3aed
   Scope: auth (sign in / sign up) + dashboard (.sn-dash only)
   ════════════════════════════════════════════════════════════════════ */
:root { --brand-1: #4f46e5; --brand-2: #7c3aed; --brand-grad: linear-gradient(135deg, #4f46e5, #7c3aed); }

/* ───────────────────────── AUTH · canvas ───────────────────────── */
.auth-wrap { grid-template-columns: 1.04fr 1fr; background: var(--bg-raised); }
.auth-aside {
  background:
    radial-gradient(1100px 520px at 6% -12%, rgba(124,58,237,.42), transparent 56%),
    radial-gradient(880px 540px at 108% 114%, rgba(37,99,235,.44), transparent 52%),
    linear-gradient(165deg, #080b22 0%, #0c1030 56%, #090c26 100%);
  padding: 52px 52px 46px;
  gap: 32px;
  justify-content: space-between;
}
/* fine grid texture, radially faded */
.auth-aside::before {
  content: ""; position: absolute; inset: 0; top: 0; right: 0; width: auto; height: auto;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; border-radius: 0;
  -webkit-mask-image: radial-gradient(125% 95% at 24% 16%, #000 32%, transparent 78%);
          mask-image: radial-gradient(125% 95% at 24% 16%, #000 32%, transparent 78%);
  pointer-events: none; z-index: 0;
}
/* slow aurora sweep, top-right */
.auth-aside::after {
  content: ""; position: absolute; top: -28%; right: -12%; width: 540px; height: 540px;
  background: conic-gradient(from 150deg, rgba(99,102,241,0), rgba(99,102,241,.40), rgba(168,85,247,.32), rgba(56,189,248,.26), rgba(99,102,241,0));
  filter: blur(58px); border-radius: 50%; z-index: 0; pointer-events: none;
  animation: auroraSpin 26s linear infinite;
}
@keyframes auroraSpin { to { transform: rotate(360deg); } }
.auth-aside > * { position: relative; z-index: 1; }

.auth-aside .lp-logo-mark { background: var(--brand-grad); box-shadow: 0 10px 28px -8px rgba(124,58,237,.7); }
.auth-pitch h2 { font-size: 36px; letter-spacing: -0.025em; }
.auth-pitch h2 .lp-highlight,
.auth-pitch h2 .highlight { background: linear-gradient(90deg, #818cf8, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch p { color: rgba(255,255,255,.72); }

/* feature checklist → tidy divided rows with chip checks */
.auth-checks { margin: 0 0 30px; }
.auth-checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.auth-checks li:last-child { border-bottom: 0; }
.auth-checks i { margin: 0; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(52,211,153,.16); color: #34d399; display: grid; place-items: center; font-size: 11px; }
.auth-trust .lp-avatar { border-color: rgba(255,255,255,.18); }

/* glassy product preview inside the aside (sign-in) */
.auth-aside .lp-mockup {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}

/* ───────────────────────── AUTH · form panel ───────────────────────── */
.auth-main { padding: 44px; background: var(--bg-raised); }
.auth-card { max-width: 424px; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.025em; }

/* premium stepper */
.auth-step.on { color: var(--brand-1); }
.auth-step.on > span:first-child { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 12px -4px rgba(79,70,229,.6); }
.auth-step-sep { border-radius: 2px; }

/* SSO buttons — lifted, rounded */
.auth-card .sso-btn, .auth-main .sso-btn {
  height: 46px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--bg-raised); box-shadow: var(--shadow-sm); font-weight: 600;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.auth-card .sso-btn:hover, .auth-main .sso-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* inputs — taller, soft focus ring */
.auth-field .select, .auth-field textarea.select {
  height: 46px; border-radius: 11px; border: 1px solid var(--border-strong);
  padding: 0 14px; font-size: 14px; background: var(--bg-raised);
  transition: border-color .14s, box-shadow .14s;
}
.auth-field textarea.select { height: auto; padding: 12px 14px; }
.auth-field .select:focus, .auth-field textarea.select:focus {
  outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(79,70,229,.13);
}
.auth-url .select { border-radius: 11px 0 0 11px; }
.auth-url-suffix { border-radius: 0 11px 11px 0; display: flex; align-items: center; }

/* primary / ghost buttons in the auth panel */
.auth-main .lp-btn.primary {
  background: var(--brand-grad); border: 0; color: #fff;
  height: 48px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(79,70,229,.6);
}
.auth-main .lp-btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.auth-main .lp-btn.ghost { height: 48px; border-radius: 12px; border: 1px solid var(--border-strong); }
.auth-main .lp-btn.ghost:hover { background: var(--bg-muted); }
.auth-foot a { color: var(--brand-1); }
.auth-card .auth-field label a { color: var(--brand-1) !important; }

/* ═════════════════════ DASHBOARD · elevated (scoped .sn-dash) ═════════════════════ */
.sn-dash { background: #f5f6fb; }
[data-theme="dark"] .sn-dash { background: var(--bg); }

.sn-dash .sn-breadcrumb { background: transparent; border-bottom: 0; padding: 14px 24px 4px; }
.sn-dash .sn-breadcrumb .sn-link { color: var(--brand-1); }

/* header → clean status bar */
.sn-dash .sn-form-header {
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
  padding: 16px 24px 18px; box-shadow: 0 1px 0 rgba(16,24,64,.03);
}
.sn-dash .sn-form-title-meta h1 { font-size: 23px; font-weight: 700; letter-spacing: -0.022em; }
.sn-dash .sn-rec-number { background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(124,58,237,.12)); color: var(--brand-1); border-radius: 8px; }
.sn-dash .sn-pill { border-radius: 20px; padding: 4px 11px; }
.sn-dash .sn-btn { border-radius: 8px; padding: 6px 13px; }
.sn-dash .sn-btn.primary { background: var(--brand-grad); border: 0; box-shadow: 0 6px 16px -7px rgba(79,70,229,.55); }
.sn-dash .sn-btn.primary:hover { filter: brightness(1.07); background: var(--brand-grad); }

/* KPI strip → elevated metric cards */
.sn-dash .sn-kpi-strip {
  grid-template-columns: repeat(6, 1fr); gap: 14px;
  background: transparent; border-bottom: 0; padding: 20px 24px 6px;
}
@media (max-width: 1200px) { .sn-dash .sn-kpi-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .sn-dash .sn-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.sn-dash .sn-kpi {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 16px 15px 19px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,64,.05); transition: transform .15s, box-shadow .15s;
}
.sn-dash .sn-kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(16,24,64,.3); }
.sn-dash .sn-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-grad); }
.sn-dash .sn-kpi.tone-crit::before { background: linear-gradient(180deg, #f87171, #dc2626); }
.sn-dash .sn-kpi.tone-warn::before { background: linear-gradient(180deg, #fbbf24, #ea580c); }
.sn-dash .sn-kpi.tone-ok::before   { background: linear-gradient(180deg, #34d399, #059669); }
.sn-dash .sn-kpi-v { font-size: 28px; font-weight: 700; margin-top: 2px; }
.sn-dash .sn-kpi-s { font-size: 11.5px; margin-top: 7px; }

/* section + activity cards → soft, rounded */
.sn-dash .sn-form-layout { padding: 8px 24px 28px; gap: 18px; }
.sn-dash .sn-form-section, .sn-dash .sn-activity-section {
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16,24,64,.05); overflow: hidden;
}
.sn-dash .sn-section-header {
  background: var(--bg-raised); border-bottom: 1px solid var(--border-subtle);
  padding: 13px 16px; font-size: 13.5px;
}
.sn-dash .sn-section-header:hover { background: var(--bg-muted); }
.sn-dash .sn-section-title { position: relative; padding-left: 16px; }
.sn-dash .sn-section-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 2px; background: var(--brand-grad);
}
.sn-dash .sn-section-badge { border-radius: 20px; background: var(--bg-muted); border-color: var(--border); }
.sn-dash .sn-field-label { background: var(--bg-muted); }
.sn-dash .sn-field-value { font-size: 13px; }

/* tables */
.sn-dash .sn-list-table tbody td { padding: 11px 12px; }
.sn-dash .sn-list-table tbody tr:hover { background: rgba(79,70,229,.05); }
.sn-dash .sn-state-pill { border-radius: 20px; }

/* sidebar cards → soft indigo headers (replaces heavy navy) */
.sn-dash .sn-side-card { border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,64,.05); overflow: hidden; }
.sn-dash .sn-side-head {
  background: linear-gradient(180deg, #f1f0ff, #ebeefe); color: #3730a3;
  border-bottom: 1px solid var(--border-subtle); padding: 12px 16px; font-weight: 700; position: relative;
}
.sn-dash .sn-side-head::after {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 0 2px 2px 0; background: var(--brand-grad);
}
.sn-dash .sn-side-count { background: rgba(79,70,229,.14); color: var(--brand-1); }

/* quick actions */
.sn-dash .sn-actions-grid { background: var(--border-subtle); }
.sn-dash .sn-action { background: var(--bg-raised); }
.sn-dash .sn-action i { color: var(--brand-1); }
.sn-dash .sn-action:hover { background: rgba(79,70,229,.06); color: var(--brand-1); }

/* activity stream */
.sn-dash .sn-activity-tabs { background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.sn-dash .sn-act-tab.active { color: var(--brand-1); border-bottom-color: var(--brand-1); }
.sn-dash .sn-comment-box { border-radius: 10px; }
.sn-dash .sn-activity-text code { color: var(--brand-2); background: rgba(124,58,237,.09); }

/* dark-mode reconciliation for retinted dashboard surfaces */
[data-theme="dark"] .sn-dash .sn-form-header,
[data-theme="dark"] .sn-dash .sn-kpi,
[data-theme="dark"] .sn-dash .sn-section-header,
[data-theme="dark"] .sn-dash .sn-activity-tabs { background: var(--bg-raised); }
[data-theme="dark"] .sn-dash .sn-side-head { background: var(--bg-muted); color: var(--fg); }
[data-theme="dark"] .sn-dash .sn-field-label { background: var(--bg-muted); }

/* KPI value + sparkline row (Datadog-style trend) */
.sn-dash .sn-kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sn-dash .sn-kpi-spark { flex-shrink: 0; opacity: .92; margin-bottom: 2px; }
.sn-dash .sn-kpi-spark svg { display: block; }

/* On-call card (PagerDuty-style escalation ladder) */
.sn-dash .sn-side-head .sn-oncall-live { display: inline-flex; align-items: center; gap: 7px; }
.sn-oncall-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: oncallPulse 2s infinite; }
@keyframes oncallPulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.sn-oncall-body { padding: 0 !important; }
.sn-oncall-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); position: relative; }
.sn-oncall-row:last-of-type { border-bottom: 0; }
.sn-oncall-row.active { background: linear-gradient(90deg, rgba(79,70,229,.06), transparent 70%); }
.sn-oncall-rail { width: 18px; display: flex; justify-content: center; }
.sn-oncall-tier-n { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-muted); color: var(--fg-muted); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.sn-oncall-row.active .sn-oncall-tier-n { background: var(--brand-grad); color: #fff; }
.sn-oncall-meta { flex: 1; min-width: 0; }
.sn-oncall-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.sn-oncall-badge { font-size: 8.5px; font-weight: 800; letter-spacing: .04em; color: #059669; background: rgba(16,185,129,.14); padding: 2px 6px; border-radius: 5px; }
.sn-oncall-tier { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.sn-oncall-page { flex-shrink: 0; border: 0; background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 4px 12px -5px rgba(79,70,229,.6); transition: filter .14s, transform .14s; }
.sn-oncall-page:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sn-oncall-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--bg-muted); font-size: 11.5px; color: var(--fg-muted); border-top: 1px solid var(--border-subtle); }
.sn-oncall-foot i { margin-right: 4px; }
[data-theme="dark"] .sn-oncall-row.active { background: linear-gradient(90deg, rgba(99,102,241,.12), transparent 70%); }


/* ═══════════════ STATUS PAGE · stakeholder comms ═══════════════ */
.sp-phase-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-phase-chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--bg-raised); font-size: 12.5px; font-weight: 600; color: var(--fg-muted); cursor: pointer; transition: all .14s; }
.sp-phase-chip:hover { border-color: var(--border-strong); }
.sp-affected { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sp-affected-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-subtle); margin-right: 2px; }
.sp-chip { padding: 4px 11px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-muted); font-size: 12px; color: var(--fg-muted); cursor: pointer; }
.sp-chip.on { background: rgba(79,70,229,.1); border-color: rgba(79,70,229,.35); color: var(--brand-1); font-weight: 600; }
.sp-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sp-channels { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-ch-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--bg-raised); font-size: 12px; font-weight: 600; color: var(--fg-muted); cursor: pointer; transition: all .14s; }
.sp-ch-toggle.on { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px -5px rgba(79,70,229,.5); }
.sp-timeline { padding: 14px 16px; }
.sp-tl-item { display: flex; gap: 12px; }
.sp-tl-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 4px; }
.sp-tl-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg-raised); z-index: 1; }
.sp-tl-line { flex: 1; width: 2px; background: var(--border); margin: 3px 0; }
.sp-tl-body { padding-bottom: 20px; flex: 1; min-width: 0; }
.sp-tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-phase-badge { font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 6px; letter-spacing: .02em; }
.sp-tl-time { font-size: 12px; font-weight: 600; }
.sp-tl-title { font-size: 14px; font-weight: 600; margin-top: 6px; }
.sp-tl-text { font-size: 13px; color: var(--fg-muted); margin-top: 3px; line-height: 1.55; }
.sp-tl-channels { display: flex; gap: 12px; margin-top: 8px; }
.sp-sent { font-size: 11px; color: var(--fg-subtle); display: inline-flex; align-items: center; gap: 5px; }
.sp-maint { padding: 4px 0; }
.sp-maint-title { font-size: 13.5px; font-weight: 600; }
.sp-maint-when { font-size: 12px; color: var(--fg-muted); margin-top: 5px; }
.sp-maint-when i { margin-right: 5px; }
.sp-maint-comp { font-size: 11.5px; margin-top: 4px; }

/* ═══════════════ ALERT GROUPING · noise reduction ═══════════════ */
.ag-group-cell { display: flex; align-items: center; gap: 12px; }
.ag-count { flex-shrink: 0; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 9px; background: var(--brand-grad); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.ag-title { font-size: 13.5px; }
.ag-sub { font-size: 11px; margin-top: 1px; }
.ag-strat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; }
.ag-switch { display: inline-block; width: 34px; height: 19px; border-radius: 20px; background: var(--border-strong); position: relative; transition: background .15s; }
.ag-switch.on { background: #059669; }
.ag-knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ag-switch.on .ag-knob { transform: translateX(15px); }
.ag-bigpct { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-bar { height: 9px; border-radius: 6px; background: var(--bg-muted); overflow: hidden; }
.ag-bar-fill { height: 100%; background: var(--brand-grad); border-radius: 6px; }
.ag-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--fg-muted); margin-top: 9px; }
.ag-noisy-row { padding: 7px 0; }
.ag-noisy-head { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.ag-noisy-bar { height: 6px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.ag-noisy-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ea580c); border-radius: 4px; }

/* ═══════════════ RETROSPECTIVE · postmortem ═══════════════ */
.retro-narrative { font-size: 13.5px; line-height: 1.65; color: var(--fg); background: var(--bg-muted); border: 1px solid var(--border-subtle); border-left: 3px solid var(--brand-1); border-radius: 10px; padding: 14px 16px; }
.retro-tl { padding: 16px; }
.retro-tl-item { display: flex; gap: 12px; }
.retro-tl-time { flex-shrink: 0; width: 42px; font-size: 12px; font-weight: 600; color: var(--fg-muted); padding-top: 3px; text-align: right; }
.retro-tl-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 5px; }
.retro-tl-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg-raised); z-index: 1; }
.retro-tl-line { flex: 1; width: 2px; background: var(--border); margin: 3px 0; }
.retro-tl-body { padding-bottom: 18px; flex: 1; min-width: 0; }
.retro-tl-label { font-size: 13px; font-weight: 700; }
.retro-tl-text { font-size: 13px; color: var(--fg); margin-top: 2px; line-height: 1.5; }
.retro-tl-who { font-size: 11.5px; margin-top: 4px; }
.retro-tl-who i { margin-right: 5px; }
.retro-5whys { display: flex; flex-direction: column; gap: 2px; }
.retro-why { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.retro-why:last-child { border-bottom: 0; }
.retro-why-n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(79,70,229,.12); color: var(--brand-1); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.retro-why-q { font-size: 13px; font-weight: 600; }
.retro-why-a { font-size: 12.5px; margin-top: 2px; }
.retro-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.retro-col { padding: 14px 16px; }
.retro-col:first-child { border-right: 1px solid var(--border-subtle); }
.retro-col-head { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.retro-col-head.good { color: #059669; }
.retro-col-head.bad { color: #dc2626; }
.retro-li { font-size: 13px; line-height: 1.5; display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.retro-li i { margin-top: 3px; flex-shrink: 0; font-size: 11px; }
.retro-stages { display: flex; flex-direction: column; gap: 0; margin-bottom: 14px; }
.retro-stage { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 5px 0; color: var(--fg-subtle); position: relative; }
.retro-stage-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--bg-muted); color: var(--fg-subtle); border: 1px solid var(--border); }
.retro-stage.done { color: var(--fg); }
.retro-stage.done .retro-stage-dot { background: #059669; color: #fff; border-color: #059669; }
.retro-stage.active { color: var(--brand-1); font-weight: 600; }
.retro-stage.active .retro-stage-dot { background: var(--brand-grad); color: #fff; border-color: transparent; }
@media (max-width: 720px) { .retro-2col { grid-template-columns: 1fr; } .retro-col:first-child { border-right: 0; border-bottom: 1px solid var(--border-subtle); } }


/* All Quiet-inspired Veltacore landing/auth refresh */
.aq-theme {
  --aq-ink: #101820;
  --aq-muted: #5a6573;
  --aq-line: #dbe4e7;
  --aq-paper: #fbf8ef;
  --aq-surface: #ffffff;
  --aq-teal: #0d9488;
  --aq-teal-dark: #0f766e;
  --aq-coral: #f45d48;
  --aq-gold: #f3b536;
  --aq-blue: #315c98;
  background: var(--aq-paper);
  color: var(--aq-ink);
}
.aq-theme .lp-logo-mark,
.aq-auth .lp-logo-mark {
  background: #101820;
  border-radius: 7px;
  color: #f9f4e8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.aq-nav {
  background: rgba(251,248,239,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--aq-line);
}
.aq-theme .lp-nav-links a { color: #40505d; }
.aq-theme .lp-nav-links a:hover { color: var(--aq-teal-dark); }
.aq-theme .lp-btn,
.aq-auth .lp-btn { border-radius: 5px; }
.aq-theme .lp-btn.primary,
.aq-auth .lp-btn.primary {
  background: #101820;
  color: #fffaf0;
  box-shadow: none;
}
.aq-theme .lp-btn.primary:hover,
.aq-auth .lp-btn.primary:hover {
  background: var(--aq-teal-dark);
  box-shadow: 0 10px 26px rgba(13,148,136,.2);
}
.aq-theme .lp-btn.ghost,
.aq-auth .lp-btn.ghost {
  background: rgba(255,255,255,.66);
  border-color: var(--aq-line);
  color: var(--aq-ink);
}
.aq-theme .lp-btn.ghost:hover,
.aq-auth .lp-btn.ghost:hover { border-color: var(--aq-teal); color: var(--aq-teal-dark); }
.aq-hero {
  min-height: 86vh;
  padding: 74px 48px 36px;
  background:
    linear-gradient(90deg, rgba(16,24,32,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16,24,32,.045) 1px, transparent 1px),
    var(--aq-paper);
  background-size: 44px 44px;
}
.aq-hero-inner { grid-template-columns: minmax(0, 1.02fr) minmax(440px, .9fr); gap: 72px; }
.aq-theme .lp-eyebrow,
.aq-auth .lp-eyebrow {
  background: #eaf7f3;
  color: var(--aq-teal-dark);
  border-color: #bfe5dc;
  border-radius: 999px;
}
.aq-theme .lp-eyebrow-dot,
.aq-auth .lp-eyebrow-dot { background: var(--aq-coral); }
.aq-theme .lp-eyebrow-text { color: var(--aq-teal-dark); }
.aq-hero h1 {
  color: var(--aq-ink);
  font-size: clamp(42px, 6vw, 78px);
  max-width: 880px;
  letter-spacing: 0;
}
.aq-theme .lp-sub { color: var(--aq-muted); font-size: 18px; max-width: 680px; }
.aq-theme .lp-hero-meta { color: #56616e; }
.aq-theme .lp-hero-meta i { color: var(--aq-teal); }
.aq-command-board {
  background: #102029;
  color: #f9f4e8;
  border: 1px solid rgba(16,24,32,.28);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(16,24,32,.22);
  padding: 18px;
  transform: rotate(1deg);
}
.aq-board-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.aq-board-top span { display: block; font-family: var(--font-mono); font-size: 11px; color: rgba(249,244,232,.56); }
.aq-board-top b { display: block; font-size: 22px; line-height: 1.2; margin-top: 5px; }
.aq-live { display: inline-flex !important; align-items: center; gap: 7px; color: #a8f3d6 !important; font-weight: 700; }
.aq-live i { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 5px rgba(45,212,191,.12); }
.aq-timeline { display: grid; gap: 10px; padding: 18px 0; }
.aq-timeline-row { display: grid; grid-template-columns: 54px 1fr 14px; align-items: center; gap: 12px; padding: 13px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.aq-timeline-row .mono { color: rgba(249,244,232,.58); font-size: 11px; }
.aq-timeline-row div { font-size: 13px; line-height: 1.35; }
.aq-timeline-row i { font-size: 8px; color: var(--aq-blue); }
.aq-timeline-row.critical i { color: var(--aq-coral); }
.aq-timeline-row.warn i { color: var(--aq-gold); }
.aq-timeline-row.ok i { color: #2dd4bf; }
.aq-board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aq-board-grid div { background: #f9f4e8; color: var(--aq-ink); border-radius: 5px; padding: 12px; }
.aq-board-grid span { display: block; color: var(--aq-muted); font-size: 11px; margin-bottom: 4px; }
.aq-board-grid b { font-size: 22px; }
.aq-logos { border-top-color: rgba(16,24,32,.1); margin-top: 58px; }
.aq-theme .lp-logo-word { color: #506070; opacity: .72; }
.aq-metrics { background: #101820; color: #f9f4e8; border-top: 1px solid rgba(255,255,255,.08); }
.aq-metrics .lp-metric { border-right-color: rgba(255,255,255,.12); }
.aq-metrics .lp-metric-v { background: none; -webkit-text-fill-color: initial; color: #f3b536; }
.aq-metrics .lp-metric-l { color: rgba(249,244,232,.7); }
.aq-workflow,
.aq-lifecycle,
.aq-faq { background: var(--aq-paper); }
.aq-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aq-flow-card,
.aq-faq-item {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--aq-line);
  border-radius: 7px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(16,24,32,.045);
}
.aq-flow-card .aq-step { font-family: var(--font-mono); color: var(--aq-coral); font-size: 12px; font-weight: 700; }
.aq-flow-card h3,
.aq-faq-item h3 { font-size: 18px; margin: 14px 0 8px; color: var(--aq-ink); }
.aq-flow-card p,
.aq-faq-item p { color: var(--aq-muted); font-size: 14px; line-height: 1.55; }
.aq-split { display: grid; grid-template-columns: .95fr 1fr; gap: 56px; align-items: center; }
.aq-split h2 { font-size: 42px; line-height: 1.12; margin: 12px 0 16px; }
.aq-split .left { margin: 0 0 24px; text-align: left; max-width: none; }
.aq-channel-list { display: flex; flex-wrap: wrap; gap: 10px; }
.aq-channel-list span { display: inline-flex; gap: 7px; align-items: center; background: #fff; border: 1px solid var(--aq-line); border-radius: 999px; padding: 8px 12px; color: #344451; font-size: 13px; }
.aq-channel-list i { color: var(--aq-teal); }
.aq-message-stack { display: grid; gap: 12px; }
.aq-message { background: #fff; border: 1px solid var(--aq-line); border-left: 4px solid var(--aq-blue); border-radius: 6px; padding: 16px 18px; box-shadow: 0 12px 28px rgba(16,24,32,.07); }
.aq-message b { display: block; color: var(--aq-ink); margin-bottom: 4px; }
.aq-message span { color: var(--aq-muted); font-size: 13px; }
.aq-message.critical { border-left-color: var(--aq-coral); }
.aq-message.ok { border-left-color: var(--aq-teal); }
.aq-message-stack.compact { margin-top: 30px; }
.aq-feature { border-radius: 7px; background: rgba(255,255,255,.74); }
.aq-feature:hover { border-color: var(--aq-teal); box-shadow: 0 14px 30px rgba(13,148,136,.1); }
.aq-feature .lp-feature-ic { color: var(--aq-teal-dark); background: #dff4ef; border-radius: 7px; }
.aq-integ { max-width: none; background: #fffdf7; }
.aq-integ .lp-section-head,
.aq-integ .lp-integ-grid { max-width: 1280px; margin-left: auto; margin-right: auto; }
.aq-integ .lp-integ-card { border-radius: 7px; }
.aq-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.aq-cta { background: #0d332f; }
.aq-cta .lp-btn.primary { background: #f9f4e8; color: #0d332f; }
.aq-foot { background: #101820; }
.aq-auth { background: var(--aq-paper); }
.aq-auth .auth-aside {
  background: #102029;
  color: #f9f4e8;
  border-right: 1px solid rgba(16,24,32,.2);
}
.aq-auth .auth-aside::before { display: none; }
.aq-auth .auth-pitch h2 { color: #fffaf0; }
.aq-auth .auth-card { background: rgba(255,255,255,.72); border: 1px solid var(--aq-line); border-radius: 8px; padding: 34px; box-shadow: 0 18px 50px rgba(16,24,32,.08); }
.aq-auth .auth-step.on { color: var(--aq-teal-dark); }
.aq-auth .auth-step.on > span:first-child { background: var(--aq-teal-dark); }
.aq-auth .sso-btn { border-radius: 5px; }
.aq-auth .sso-btn:hover { border-color: var(--aq-teal); color: var(--aq-teal-dark); }
.aq-auth .auth-field label { color: #26343f; }
.aq-auth .auth-foot a { color: var(--aq-teal-dark); }
.auth-check-line { font-size: 12px; display: flex; gap: 8px; align-items: center; color: #4b5865; }
.aq-mini-console { margin-top: 28px; padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(255,255,255,.06); }
.aq-mini-console span { display: block; font-family: var(--font-mono); color: #a8f3d6; font-size: 11px; margin-bottom: 6px; }
.aq-mini-console b { display: block; font-family: var(--font-mono); color: #fffaf0; font-size: 13px; }

@media (max-width: 1100px) {
  .aq-hero-inner,
  .aq-split { grid-template-columns: 1fr; }
  .aq-command-board { transform: none; }
  .aq-flow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .aq-nav { padding: 14px 18px; }
  .aq-nav .lp-nav-links { display: none; }
  .aq-hero { padding: 48px 20px 28px; min-height: auto; }
  .aq-hero h1 { font-size: 40px; }
  .lp-hero-cta,
  .lp-cta-buttons { flex-direction: column; align-items: stretch; }
  .aq-flow-grid,
  .aq-faq-grid,
  .aq-metrics { grid-template-columns: 1fr; }
  .aq-metrics .lp-metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .aq-split { padding-left: 20px; padding-right: 20px; }
  .aq-auth .auth-card { padding: 24px; }
}
