:root {
  /* ==========================================================================
     CANONICAL NEURAL OBSIDIAN SYSTEM (PLATFORM PRIMARY & DEFAULT)
     ========================================================================== */
  /* Surfaces & Canvases */
  --paper: #04070D;
  --paper-card: #0A111F;
  --panel: #0E1729;
  --panel-elevated: #121F36;
  --code-bg: #03060B;

  /* Typography */
  --ink: #F8FAFC;
  --ink-light: #CBD5E1;
  --muted: #94A3B8;
  --muted-light: #64748B;

  /* Borders & Dividers */
  --rule: rgba(43, 179, 163, 0.18);
  --rule-subtle: rgba(255, 255, 255, 0.05);
  --rule-strong: rgba(43, 179, 163, 0.35);

  /* Semantic Status & Icon Badges (Luminous Translucent Jewel Tones) */
  --status-green: #34D399;
  --status-green-bg: rgba(16, 185, 129, 0.18);
  --status-green-border: rgba(52, 211, 153, 0.40);

  --status-blue: #38BDF8;
  --status-blue-bg: rgba(56, 189, 248, 0.16);
  --status-blue-border: rgba(56, 189, 248, 0.35);

  --status-amber: #FBBF24;
  --status-amber-bg: rgba(245, 158, 11, 0.18);
  --status-amber-border: rgba(251, 191, 36, 0.40);

  --status-red: #F87171;
  --status-red-bg: rgba(239, 68, 68, 0.18);
  --status-red-border: rgba(248, 113, 113, 0.40);

  --status-purple: #C084FC;
  --status-purple-bg: rgba(168, 85, 247, 0.18);
  --status-purple-border: rgba(192, 132, 252, 0.40);

  --status-slate: #94A3B8;
  --status-slate-bg: rgba(148, 163, 184, 0.14);
  --status-slate-border: rgba(148, 163, 184, 0.25);

  /* Dynamic White-Label Brand Properties (Defaults to Neural Teal & Obsidian) */
  --brand-primary: #2BB3A3;
  --brand-primary-rgb: 43, 179, 163;
  --brand-rgb: 43, 179, 163;
  --brand-primary-hover: #14B8A6;
  --brand-primary-soft: rgba(43, 179, 163, 0.16);
  --brand-primary-border: rgba(43, 179, 163, 0.35);
  --brand-primary-fg: #FFFFFF;
  --brand-secondary: #0B131F;
  --brand-secondary-rgb: 11, 19, 31;
  --brand-secondary-dark: #070C14;
  --brand-secondary-elevated: #101B2B;
  --brand-secondary-border: rgba(255, 255, 255, 0.08);

  --accent: var(--brand-primary);
  --accent-hover: var(--brand-primary-hover);
  --accent-light: #3DD1BF;
  --accent-soft: var(--brand-primary-soft);
  --accent-fg: var(--brand-primary-fg);
  --critical: #FF4757;
  --critical-soft: rgba(255, 71, 87, 0.16);
  --high: #FF7F50;
  --high-soft: rgba(255, 127, 80, 0.16);
  --medium: #FFA502;
  --medium-soft: rgba(255, 165, 2, 0.16);
  --low: #38B6FF;
  --low-soft: rgba(56, 182, 255, 0.16);
  --info: #A4B0BE;
  --info-soft: rgba(164, 176, 190, 0.16);
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* Universal Semantic Aliases */
  --text: var(--ink);
  --text-secondary: var(--muted);
  --bg: var(--paper);
  --card-bg: var(--paper-card);
  --border: var(--rule);
  --ink-secondary: #CBD5E1;
}

/* ==========================================================================
   CAMMIO.UI ALABASTER FROST LIGHT THEME ([data-theme="light"])
   ========================================================================== */
[data-theme="light"] {
  --paper: #F8FAFC;
  --paper-card: #FFFFFF;
  --panel: #F1F5F9;
  --panel-elevated: #FFFFFF;
  --code-bg: #0F172A;

  --ink: #0F172A;
  --ink-light: #334155;
  --ink-secondary: #475569;
  --muted: #475569;
  --muted-light: #64748B;

  --rule: #E2E8F0;
  --rule-subtle: #F1F5F9;
  --rule-strong: #CBD5E1;

  --status-green: #059669;
  --status-green-bg: rgba(16, 185, 129, 0.12);
  --status-green-border: rgba(16, 185, 129, 0.30);

  --status-blue: #0284C7;
  --status-blue-bg: rgba(2, 132, 199, 0.10);
  --status-blue-border: rgba(2, 132, 199, 0.25);

  --status-amber: #D97706;
  --status-amber-bg: rgba(245, 158, 11, 0.12);
  --status-amber-border: rgba(245, 158, 11, 0.30);

  --status-red: #DC2626;
  --status-red-bg: rgba(220, 38, 38, 0.10);
  --status-red-border: rgba(220, 38, 38, 0.28);

  --status-purple: #7C3AED;
  --status-purple-bg: rgba(124, 58, 237, 0.10);
  --status-purple-border: rgba(124, 58, 237, 0.25);

  --status-slate: #475569;
  --status-slate-bg: rgba(100, 116, 139, 0.10);
  --status-slate-border: rgba(100, 116, 139, 0.22);

  --brand-primary: #0D9488;
  --brand-primary-rgb: 13, 148, 136;
  --brand-rgb: 13, 148, 136;
  --brand-primary-hover: #0F766E;
  --brand-primary-soft: rgba(13, 148, 136, 0.10);
  --brand-primary-border: rgba(13, 148, 136, 0.28);
  --brand-primary-fg: #FFFFFF;
  --brand-secondary: #F8FAFC;
  --brand-secondary-dark: #F1F5F9;
  --brand-secondary-elevated: #FFFFFF;
  --brand-secondary-border: #E2E8F0;

  --accent: var(--brand-primary, #0D9488);
  --accent-hover: var(--brand-primary-hover, #0F766E);
  --accent-light: #2BB3A3;
  --accent-soft: var(--brand-primary-soft, rgba(13, 148, 136, 0.10));
  --accent-fg: #FFFFFF;
  --critical: #DC2626;
  --critical-soft: rgba(220, 38, 38, 0.10);
  --high: #EA580C;
  --high-soft: rgba(234, 88, 12, 0.10);
  --medium: #D97706;
  --medium-soft: rgba(217, 119, 6, 0.10);
  --low: #0284C7;
  --low-soft: rgba(2, 132, 199, 0.10);
  --info: #475569;
  --info-soft: rgba(71, 85, 105, 0.10);
}

/* Sovereign Obsidian Dark Ops Theme */
[data-theme="dark"] {
  /* Surfaces & Canvases */
  --paper: #04070D;
  --paper-card: #0A111F;
  --panel: #0E1729;
  --panel-elevated: #121F36;
  --code-bg: #03060B;

  /* Typography */
  --ink: #F8FAFC;
  --ink-light: #CBD5E1;
  --ink-secondary: #94A3B8;
  --muted: #94A3B8;
  --muted-light: #64748B;

  /* Borders & Dividers */
  --rule: rgba(255, 255, 255, 0.08);
  --rule-subtle: rgba(255, 255, 255, 0.04);
  --rule-strong: rgba(255, 255, 255, 0.16);
  --brand-rgb: 43, 179, 163;

  /* Semantic Status & Icon Badges (Luminous Translucent Jewel Tones) */
  --status-green: #34D399;
  --status-green-bg: rgba(16, 185, 129, 0.18);
  --status-green-border: rgba(52, 211, 153, 0.40);

  --status-blue: #38BDF8;
  --status-blue-bg: rgba(56, 189, 248, 0.16);
  --status-blue-border: rgba(56, 189, 248, 0.35);

  --status-amber: #FBBF24;
  --status-amber-bg: rgba(245, 158, 11, 0.18);
  --status-amber-border: rgba(251, 191, 36, 0.40);

  --status-red: #F87171;
  --status-red-bg: rgba(239, 68, 68, 0.18);
  --status-red-border: rgba(248, 113, 113, 0.40);

  --status-purple: #C084FC;
  --status-purple-bg: rgba(168, 85, 247, 0.18);
  --status-purple-border: rgba(192, 132, 252, 0.40);

  --status-slate: #94A3B8;
  --status-slate-bg: rgba(148, 163, 184, 0.14);
  --status-slate-border: rgba(148, 163, 184, 0.25);

  /* Dynamic Brand Accents in Dark Mode */
  --brand-secondary: #0B131F;
  --brand-secondary-dark: #070C14;
  --brand-secondary-elevated: #101B2B;
  --accent: var(--brand-primary-dark-mode, var(--brand-primary, #2BB3A3));
  --accent-hover: var(--brand-primary-hover, #14B8A6);
  --accent-light: #3DD1BF;
  --accent-soft: var(--brand-primary-soft, rgba(43, 179, 163, 0.16));
  --accent-fg: #FFFFFF;
  --critical: #FF4757;
  --critical-soft: rgba(255, 71, 87, 0.16);
  --high: #FF7F50;
  --high-soft: rgba(255, 127, 80, 0.16);
  --medium: #FFA502;
  --medium-soft: rgba(255, 165, 2, 0.16);
  --low: #38B6FF;
  --low-soft: rgba(56, 182, 255, 0.16);
  --info: #A4B0BE;
  --info-soft: rgba(164, 176, 190, 0.16);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  color: currentColor;
}

/* Icon Sizing Utilities */
.material-symbols-outlined.icon-10 { font-size: 10px; }
.material-symbols-outlined.icon-12 { font-size: 12px; }
.material-symbols-outlined.icon-14 { font-size: 14px; }
.material-symbols-outlined.icon-16 { font-size: 16px; }
.material-symbols-outlined.icon-18 { font-size: 18px; }
.material-symbols-outlined.icon-20 { font-size: 20px; }
.material-symbols-outlined.icon-22 { font-size: 22px; }
.material-symbols-outlined.icon-24 { font-size: 24px; }
.material-symbols-outlined.icon-28 { font-size: 28px; }

/* Navigation & Component Icon Styling */
.side-nav-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--muted);
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.side-nav-btn:hover .material-symbols-outlined,
.side-nav-btn.active .material-symbols-outlined {
  color: var(--brand-primary, var(--accent));
}

.settings-dropdown-menu .dropdown-item .material-symbols-outlined {
  font-size: 16px;
  margin-right: 10px;
  color: #94A3B8;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.settings-dropdown-menu .dropdown-item:hover .material-symbols-outlined {
  color: #FFFFFF;
}
[data-theme="light"] .settings-dropdown-menu .dropdown-item:hover .material-symbols-outlined {
  color: #0F172A !important;
}

.settings-rail-btn .material-symbols-outlined {
  font-size: 16px;
  margin-right: 8px;
  color: var(--muted);
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.settings-rail-btn:hover .material-symbols-outlined,
.settings-rail-btn.active .material-symbols-outlined {
  color: var(--brand-primary, var(--accent));
}

.faq-chevron.material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.2s ease;
  color: var(--muted-light);
}
.faq-item.open .faq-chevron.material-symbols-outlined,
.faq-item.active .faq-chevron.material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--brand-primary, var(--accent));
}

html {
  height: 100%;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[id] {
  scroll-margin-top: 84px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100%;
}

/* TOP HEADER */
header {
  background: var(--brand-secondary, var(--ink));
  color: #fff;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--brand-primary, var(--accent-light));
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
}
/* Header Bar & Brand Identity (Permanently Dark Obsidian across all Themes) */
header,
[data-theme="dark"] header,
[data-theme="light"] header,
body.is-authenticated header,
[data-theme="dark"] body.is-authenticated header,
[data-theme="light"] body.is-authenticated header,
body.is-authenticated[data-theme="light"] header,
body.has-custom-brand header,
body.has-custom-brand.is-authenticated header {
  background: rgba(6, 11, 20, 0.98) !important;
  border-bottom: 1px solid rgba(43, 179, 163, 0.25) !important;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.8) !important;
  color: #F8FAFC !important;
}
header .brand-title,
[data-theme="dark"] header .brand-title,
[data-theme="light"] header .brand-title,
body.is-authenticated header .brand-title,
[data-theme="dark"] body.is-authenticated header .brand-title,
[data-theme="light"] body.is-authenticated header .brand-title,
body.is-authenticated[data-theme="light"] header .brand-title,
#header-brand-title {
  color: #F8FAFC !important;
}
header .brand-tag,
[data-theme="dark"] header .brand-tag,
[data-theme="light"] header .brand-tag,
body.is-authenticated header .brand-tag,
[data-theme="dark"] body.is-authenticated header .brand-tag,
[data-theme="light"] body.is-authenticated header .brand-tag,
body.is-authenticated[data-theme="light"] header .brand-tag,
#header-brand-tag {
  color: var(--brand-primary, #2BB3A3) !important;
}

/* Universal Dual-Theme Toggle Button & Command Palette Search Trigger Button (Permanently Dark Glass across all Themes) */
.theme-toggle-btn,
.btn-palette-trigger,
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .btn-palette-trigger,
[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .btn-palette-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  padding: 0 !important;
  background: rgba(14, 23, 41, 0.85) !important;
  border: 1px solid rgba(43, 179, 163, 0.35) !important;
  color: #F8FAFC !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.theme-toggle-btn:hover,
.btn-palette-trigger:hover,
[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .btn-palette-trigger:hover,
[data-theme="light"] .theme-toggle-btn:hover,
[data-theme="light"] .btn-palette-trigger:hover {
  background: rgba(43, 179, 163, 0.2) !important;
  border-color: #2BB3A3 !important;
  color: #3DD1BF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(43, 179, 163, 0.25) !important;
}
.theme-toggle-btn:focus-visible,
.btn-palette-trigger:focus-visible {
  outline: 2px solid var(--accent, #0D9488) !important;
  outline-offset: 2px !important;
}
.theme-toggle-btn .material-symbols-outlined,
.btn-palette-trigger .material-symbols-outlined,
[data-theme="dark"] .theme-toggle-btn .material-symbols-outlined,
[data-theme="dark"] .btn-palette-trigger .material-symbols-outlined,
[data-theme="light"] .theme-toggle-btn .material-symbols-outlined,
[data-theme="light"] .btn-palette-trigger .material-symbols-outlined {
  color: #F8FAFC !important;
}
.theme-toggle-btn:hover .material-symbols-outlined,
.btn-palette-trigger:hover .material-symbols-outlined,
[data-theme="dark"] .theme-toggle-btn:hover .material-symbols-outlined,
[data-theme="dark"] .btn-palette-trigger:hover .material-symbols-outlined,
[data-theme="light"] .theme-toggle-btn:hover .material-symbols-outlined,
[data-theme="light"] .btn-palette-trigger:hover .material-symbols-outlined {
  color: #3DD1BF !important;
}
.palette-trigger-text,
.palette-kbd {
  display: none !important;
}
[data-theme="dark"] .theme-icon-dark {
  display: none !important;
}
[data-theme="dark"] .theme-icon-light {
  display: inline-flex !important;
}
[data-theme="light"] .theme-icon-light {
  display: none !important;
}
[data-theme="light"] .theme-icon-dark {
  display: inline-flex !important;
}
.brand-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-logo { width: 36px; height: 36px; flex-shrink: 0; }
.brand-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; line-height: 1.1; }
.brand-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-primary, var(--accent-light)); transition: color 0.25s ease; }

.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.guest-nav-links { display: flex; align-items: center; gap: 16px; }
.guest-nav-link {
  color: var(--muted-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.guest-nav-link:hover { color: var(--accent, #3DD1BF); }
[data-theme="dark"] .guest-nav-link:hover { color: #FFFFFF; }
[data-theme="light"] .guest-nav-link:hover,
[data-theme="light"] .guest-nav-link.active { color: var(--brand-primary, #0D9488) !important; }
.sandbox-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 3px 6px;
  border-radius: 4px;
}
[data-theme="light"] .sandbox-switcher {
  background: var(--panel, #F1F5F9);
  border-color: var(--rule, #E2E8F0);
}
.sandbox-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  margin-right: 2px;
}
.sandbox-pill {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: #CBD5E1;
  padding: 2px 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.sandbox-pill:hover { background: rgba(255,255,255,0.16); color: #fff; }
.sandbox-pill.active {
  background: var(--accent-light);
  color: var(--ink);
  border-color: var(--accent-light);
  font-weight: 700;
}
[data-theme="light"] .sandbox-pill {
  border: 1px solid var(--rule-strong, #CBD5E1) !important;
  color: #475569 !important;
  background: #FFFFFF !important;
}
[data-theme="light"] .sandbox-pill:hover {
  background: var(--panel, #F1F5F9) !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}
[data-theme="light"] .sandbox-pill.active {
  background: var(--brand-primary, #0D9488) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-primary, #0D9488) !important;
}

.tier-badge {
  background: rgba(43,179,163,0.18);
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.tier-badge:hover { background: rgba(43,179,163,0.3); }
.tier-badge.badge-community { background: rgba(148,163,184,0.15); border-color: var(--muted-light); color: #E2E8F0; }
.tier-badge.badge-professional { background: rgba(43,179,163,0.22); border-color: var(--accent-light); color: var(--accent-light); }
.tier-badge.badge-enterprise { background: rgba(217,154,6,0.22); border-color: #FBBF24; color: #FDE68A; }
.nav-status { font-family: var(--font-mono); font-size: 12px; color: var(--muted-light); }

/* DOMAIN VERIFICATION REAL-TIME BADGES & ALERTS */
.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 28px;
  padding: 0 10px;
  box-sizing: border-box;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}
.verify-badge.verified {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}
[data-theme="dark"] .verify-badge.verified {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34D399 !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}
.verify-badge.unverified {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #D97706 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
[data-theme="dark"] .verify-badge.unverified {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #FBBF24 !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}
/* MORPHING INTERACTIVE UNVERIFIED BADGE */
.verify-badge.btn-verify-morph {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 28px;
  padding: 0 10px;
  margin: 0;
  box-sizing: border-box;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 28px;
  background: var(--medium-soft);
  color: var(--medium);
  border: 1px solid var(--medium);
  outline: none;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.15s ease;
  white-space: nowrap;
  user-select: none;
}
.verify-badge.btn-verify-morph .badge-morph-default,
.verify-badge.btn-verify-morph .badge-morph-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  pointer-events: none;
}
.verify-badge.btn-verify-morph .badge-morph-default {
  opacity: 1;
  transform: translateY(0);
}
.verify-badge.btn-verify-morph .badge-morph-hover {
  position: absolute;
  opacity: 0;
  transform: translateY(8px);
  white-space: nowrap;
}
.verify-badge.btn-verify-morph:hover {
  background: #EBF3FB;
  color: #1D6FB8;
  border-color: #1D6FB8;
  box-shadow: 0 2px 6px rgba(29, 111, 184, 0.22);
  transform: translateY(-1px);
}
[data-theme="dark"] .verify-badge.btn-verify-morph:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25) !important;
}
.verify-badge.btn-verify-morph:hover .badge-morph-default {
  opacity: 0;
  transform: translateY(-8px);
}
.verify-badge.btn-verify-morph:hover .badge-morph-hover {
  opacity: 1;
  transform: translateY(0);
}
.verify-badge.btn-verify-morph:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(29, 111, 184, 0.15);
}
.verify-badge.checking {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--rule);
}

.deep-alert-box {
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 18px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
}
.deep-alert-warning {
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  border-left: 4px solid var(--status-amber);
  color: var(--status-amber);
}
.deep-alert-warning a {
  color: var(--status-amber);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.deep-alert-success {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  border-left: 4px solid var(--status-green);
  color: var(--status-green);
}
.deep-alert-info {
  background: var(--status-blue-bg);
  border: 1px solid var(--status-blue-border);
  border-left: 4px solid var(--status-blue);
  color: var(--ink);
}

/* ACCOUNT & ORGANISATION TAB STYLES */
.upgrade-lock-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--high);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #FBBF24;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.field-locked {
  background: var(--panel) !important;
  color: var(--muted) !important;
  cursor: not-allowed !important;
  border-color: var(--rule) !important;
}
.lock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--high);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sso-btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.billing-status-box {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.account-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.meta-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 14px;
}
.meta-box-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.meta-box-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
}

/* MODALS & AUTH OVERLAY */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 27, 42, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop.active { display: flex; }
#user-delete-modal,
#admin-delete-modal {
  z-index: 1250 !important;
}
.modal-box {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  max-width: 460px;
  width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  background: var(--panel, #0E1729);
  color: var(--ink);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease;
}
.modal-box.is-scrolled-top .modal-head {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.modal-box form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.modal-body {
  padding: 24px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(var(--paper-card) 30%, rgba(0, 0, 0, 0)) center top,
    linear-gradient(rgba(0, 0, 0, 0), var(--paper-card) 70%) center bottom,
    radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0)) center top,
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0)) center bottom;
  background-repeat: no-repeat;
  background-size: 100% 40px, 100% 40px, 100% 16px, 100% 16px;
  background-attachment: local, local, scroll, scroll;
}
.modal-footer {
  flex-shrink: 0;
  padding: 14px 24px;
  background: var(--panel, #0E1729);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  z-index: 10;
  position: relative;
  transition: box-shadow 0.2s ease;
}
.modal-box.has-scroll-below .modal-footer {
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .modal-footer {
  background: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
}
[data-theme="dark"] .modal-footer {
  background: rgba(10, 18, 34, 0.95) !important;
  border-top: 1px solid rgba(43, 179, 163, 0.25) !important;
}
.scroll-fade-mask {
  mask-image: linear-gradient(to bottom, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
}
.modal-title,
.modal-head .modal-title,
.modal-head .modal-title span,
#schedule-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
}
[data-theme="light"] .modal-head {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
[data-theme="light"] .modal-head .modal-title,
[data-theme="light"] .modal-head .modal-title span,
[data-theme="light"] #schedule-modal-title {
  color: #0F172A !important;
}
[data-theme="light"] .modal-close-btn {
  color: #64748B !important;
  background: #EDF2F7 !important;
  border: 1px solid #E2E8F0 !important;
}
[data-theme="light"] .modal-close-btn:hover {
  color: #0F172A !important;
  background: #E2E8F0 !important;
}
[data-theme="dark"] .modal-head {
  background: rgba(10, 18, 34, 0.95) !important;
  border-bottom: 1px solid rgba(43, 179, 163, 0.25) !important;
  color: #F8FAFC !important;
}
[data-theme="dark"] .modal-head .modal-title,
[data-theme="dark"] .modal-head .modal-title span,
[data-theme="dark"] #schedule-modal-title {
  color: #F8FAFC !important;
}
[data-theme="dark"] .modal-close-btn {
  color: #94A3B8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .modal-close-btn:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.16) !important;
}
#user-delete-modal .modal-head,
#admin-delete-modal .modal-head {
  color: #FFFFFF !important;
}
#user-delete-modal .modal-head .modal-title,
#user-delete-modal .modal-head .modal-title span,
#admin-delete-modal .modal-head .modal-title,
#admin-delete-modal .modal-head .modal-title span {
  color: #FFFFFF !important;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted-light);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.modal-body { padding: 24px; }
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
  gap: 16px;
}
.modal-tab-btn {
  background: none;
  border: none;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s ease;
}
.modal-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.auth-divider {
  text-align: center;
  position: relative;
  margin: 22px 0 18px 0;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 1px;
  background: var(--rule);
}
.auth-divider span {
  background: var(--paper-card);
  position: relative;
  padding: 0 12px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.sso-btn:hover {
  background: var(--panel);
  border-color: var(--muted-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

/* CONSOLE LAYOUT & SIDEBAR */
.console-layout {
  display: flex;
  background: var(--paper);
  width: 100%;
}
.console-sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: rgba(6, 11, 20, 0.69);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-right: 1px solid var(--rule, rgba(43, 179, 163, 0.18));
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-x: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
[data-theme="light"] .console-sidebar {
  background: rgba(255, 255, 255, 0.74) !important;
  border-right: 1px solid #E2E8F0 !important;
}
.sidebar-head {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--rule-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent, #2BB3A3) !important;
  font-weight: 800;
  transition: color 0.25s ease;
}
.sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-nav .dropdown-badge-pro {
  display: none !important;
}
.sidebar-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-light, #64748B) !important;
  padding: 16px 10px 6px;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.side-nav-btn,
a.side-nav-btn,
a.side-nav-btn:visited,
a.side-nav-btn:link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #94A3B8) !important;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  white-space: nowrap !important;
  overflow: hidden;
  box-sizing: border-box;
}
.side-nav-btn .side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.side-nav-btn > span:not(.side-icon),
.side-badge,
.dropdown-badge-pro {
  white-space: nowrap !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.side-nav-btn:hover,
a.side-nav-btn:hover {
  background: rgba(var(--brand-rgb, 43, 179, 163), 0.08) !important;
  color: var(--ink, #F8FAFC) !important;
}
.side-nav-btn.active,
a.side-nav-btn.active {
  background: rgba(var(--brand-rgb, 43, 179, 163), 0.14) !important;
  color: var(--ink, #F8FAFC) !important;
  font-weight: 700 !important;
}
[data-theme="dark"] .side-nav-btn.active,
[data-theme="dark"] a.side-nav-btn.active {
  text-shadow: 0 0 12px rgba(43, 179, 163, 0.5) !important;
}
.side-nav-btn.active::before,
a.side-nav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent, #2BB3A3) !important;
  box-shadow: 0 0 10px rgba(var(--brand-rgb, 43, 179, 163), 0.6) !important;
  border-radius: 2px;
  transition: background 0.25s ease;
}
.side-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}
.side-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}
.side-nav-btn.active .side-icon svg {
  stroke: var(--accent, #39D4C2) !important;
}
.side-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb, 43, 179, 163), 0.15) !important;
  color: var(--accent, #39D4C2) !important;
  border: 1px solid rgba(var(--brand-rgb, 43, 179, 163), 0.35) !important;
  font-weight: 700;
  transition: all 0.25s ease;
}
.scan-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.scan-status-pill.queued {
  background: rgba(148, 163, 184, 0.15);
  color: #64748B;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.scan-status-pill.running {
  background: rgba(43, 179, 163, 0.15);
  color: #0D9488;
  border: 1px solid rgba(43, 179, 163, 0.3);
  animation: pulseScan 2s infinite ease-in-out;
}
@keyframes pulseScan {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.spinner-svg {
  animation: spinSvg 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spinSvg {
  100% { transform: rotate(360deg); }
}
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--rule-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted, #94A3B8);
  font-size: 12.5px;
  font-weight: 500;
  background: var(--panel, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.06));
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}
.side-footer-btn:hover {
  background: var(--accent-soft, rgba(255, 255, 255, 0.08));
  color: var(--ink, #fff);
  border-color: var(--rule-strong, rgba(255, 255, 255, 0.15));
}

/* Console Executive Dashboard & Threat Catalog Card Styling */
#tab-dashboard .home-kpi-card,
#tab-catalog .home-kpi-card,
#tab-compliance .home-kpi-card {
  background: var(--paper-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 18px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#tab-dashboard .home-kpi-head,
#tab-catalog .home-kpi-head,
#tab-compliance .home-kpi-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#tab-dashboard .home-kpi-val,
#tab-catalog .home-kpi-val,
#tab-compliance .home-kpi-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink) !important;
  margin: 8px 0 4px;
}
#tab-dashboard .kpi-sub,
#tab-catalog .kpi-sub,
#tab-compliance .kpi-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light, #64748B) !important;
  font-weight: 500;
}
#tab-dashboard .home-kpi-meta,
#tab-catalog .home-kpi-meta,
#tab-compliance .home-kpi-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light, #64748B) !important;
  margin-top: 4px;
}
#tab-dashboard .home-panel-box,
#tab-compliance .home-panel-box {
  background: var(--paper-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px !important;
  overflow: hidden;
}
.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}
#tab-dashboard .home-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
#tab-dashboard .home-panel-badge {
  display: inline-flex;
  align-items: center;
  background: var(--paper-card);
  color: var(--muted);
  border: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#tab-dashboard #dash-risks-badge {
  background: var(--status-amber-bg) !important;
  color: var(--status-amber) !important;
  border: 1px solid var(--status-amber-border) !important;
  font-weight: 700 !important;
}
.priority-action-card {
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .priority-action-card {
  background: rgba(8, 14, 26, 0.70) !important;
  border: 1px solid rgba(43, 179, 163, 0.20) !important;
}
.priority-action-card:hover {
  border-color: rgba(var(--brand-rgb, 43, 179, 163), 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 0 16px rgba(var(--brand-rgb, 43, 179, 163), 0.15) !important;
}
[data-theme="dark"] .priority-action-card:hover {
  background: rgba(10, 18, 34, 0.90) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.8), 0 0 16px rgba(43, 179, 163, 0.2) !important;
}
.priority-action-card:active {
  transform: translateY(0);
}
.dash-findings-link {
  color: var(--status-blue, #38BDF8) !important;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.dash-findings-link:hover {
  color: var(--accent, #2BB3A3) !important;
}
@keyframes findingPulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 179, 163, 0.7); border-color: #2BB3A3; }
  50% { box-shadow: 0 0 0 8px rgba(43, 179, 163, 0.25); border-color: #2BB3A3; background: rgba(43, 179, 163, 0.05); }
  100% { box-shadow: 0 0 0 0 rgba(43, 179, 163, 0); }
}
.finding-item.finding-pulse-highlight {
  animation: findingPulse 1.8s ease-in-out 2;
  border-color: #2BB3A3 !important;
}
#tab-dashboard .posture-chart-wrap {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  position: relative;
}
#tab-dashboard .posture-chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
#tab-dashboard .posture-chart-wrap svg line {
  stroke: rgba(0, 0, 0, 0.08);
}
.spinning {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.console-main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 36px;
  overflow-y: auto;
}

/* SETTINGS COG & DROPDOWN */
.settings-menu-wrap {
  position: relative;
}
.settings-cog-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.settings-cog-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .settings-cog-btn {
  border: 1px solid var(--rule-strong, #CBD5E1) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  color: #334155 !important;
}
[data-theme="light"] .settings-cog-btn:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}
.header-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 179, 163, 0.45);
  background: rgba(43, 179, 163, 0.12);
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  margin: 0;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .header-avatar-btn {
  border-color: rgba(13, 148, 136, 0.45) !important;
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0F172A !important;
}
.header-avatar-btn:hover {
  border-color: var(--accent-light);
  background: rgba(43, 179, 163, 0.24);
  box-shadow: 0 0 10px rgba(43, 179, 163, 0.4);
  transform: scale(1.04);
}
.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.header-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
}
.settings-dropdown-menu {
  position: fixed;
  top: 64px;
  right: 28px;
  min-width: 250px;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.72) 0%, rgba(8, 14, 24, 0.82) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.05), 
              0 24px 60px -12px rgba(0, 0, 0, 0.75), 
              0 0 24px rgba(43, 179, 163, 0.08) !important;
  padding: 6px;
  z-index: 1050;
  display: none;
  animation: modalFadeIn 0.15s ease-out;
}
.settings-dropdown-menu.active {
  display: block;
}
.dropdown-header {
  padding: 10px 12px 8px;
}
.dropdown-user-name {
  font-weight: 600;
  font-size: 13px;
  color: #FFFFFF;
}
[data-theme="light"] .dropdown-user-name {
  color: #0F172A !important;
}
.dropdown-user-email {
  font-size: 11.5px;
  color: #94A3B8;
  font-family: var(--font-mono);
  word-break: break-all;
}
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}
.dropdown-item.danger {
  color: #F87171;
}
.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
}
.dropdown-badge-pro {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  background: rgba(43, 179, 163, 0.25);
  color: #2BB3A3;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

/* SETTINGS HUB MODAL */
.settings-modal-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  max-width: 940px;
  width: 100%;
  height: 680px;
  max-height: calc(100vh - 48px);
  min-height: min(680px, calc(100vh - 48px));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}
.settings-sidebar-rail {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  background: var(--brand-secondary-dark, #0B131F);
  border-right: 1px solid var(--brand-secondary-border, rgba(255, 255, 255, 0.08));
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.25s ease;
}
.settings-rail-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  padding: 6px 12px 10px;
}
.settings-rail-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}
.settings-rail-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.settings-rail-btn.active {
  background: var(--brand-primary-soft, rgba(43, 179, 163, 0.15));
  color: var(--brand-primary, #2BB3A3);
  font-weight: 600;
  transition: all 0.25s ease;
}
[data-theme="light"] .settings-sidebar-rail {
  background: #F8FAFC !important;
  border-right: 1px solid #E2E8F0 !important;
}
[data-theme="light"] .settings-rail-btn {
  color: #475569 !important;
}
[data-theme="light"] .settings-rail-btn:hover {
  background: rgba(13, 148, 136, 0.08) !important;
  color: #0F172A !important;
}
[data-theme="light"] .settings-rail-btn.active {
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0D9488 !important;
  font-weight: 700 !important;
}
.settings-content-body {
  flex: 1;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 28px 32px;
  overflow-y: auto;
  background: var(--paper-card);
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 213, 225, 0.7) transparent;
}
.settings-content-body::-webkit-scrollbar {
  width: 6px;
}
.settings-content-body::-webkit-scrollbar-track {
  background: transparent;
}
.settings-content-body::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.7);
  border-radius: 4px;
}
.settings-content-body::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
.settings-panel-tab { display: none; }
.settings-panel-tab.active { display: block; }
.account-plan-badge {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
}
.account-plan-badge.badge-community,
.account-plan-badge.badge-free {
  background: rgba(100, 116, 139, 0.2);
  color: #94A3B8;
  border: 1px solid #475569;
}
.account-plan-badge.badge-professional,
.account-plan-badge.badge-pro {
  background: rgba(43, 179, 163, 0.2);
  color: #2BB3A3;
  border: 1px solid #0B6E6E;
}
.account-plan-badge.badge-business {
  background: rgba(139, 92, 246, 0.2);
  color: #A78BFA;
  border: 1px solid #7C3AED;
}
.account-plan-badge.badge-agency {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid #B45309;
}
.account-plan-badge.badge-enterprise {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid #0284C7;
}

[data-theme="light"] .account-plan-badge.badge-community,
[data-theme="light"] .account-plan-badge.badge-free { background: rgba(100, 116, 139, 0.12); color: #334155; border-color: rgba(100, 116, 139, 0.3); }
[data-theme="light"] .account-plan-badge.badge-professional,
[data-theme="light"] .account-plan-badge.badge-pro { background: rgba(13, 148, 136, 0.12); color: #0D9488; border-color: rgba(13, 148, 136, 0.35); }
[data-theme="light"] .account-plan-badge.badge-business { background: rgba(124, 58, 237, 0.12); color: #7C3AED; border-color: rgba(124, 58, 237, 0.35); }
[data-theme="light"] .account-plan-badge.badge-agency { background: rgba(217, 119, 6, 0.12); color: #B45309; border-color: rgba(217, 119, 6, 0.35); }
[data-theme="light"] .account-plan-badge.badge-enterprise { background: rgba(2, 132, 199, 0.12); color: #0284C7; border-color: rgba(2, 132, 199, 0.35); }

/* DANGER ZONE */
.danger-card {
  background: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  border-left: 5px solid var(--critical);
  padding: 24px;
  margin-top: 24px;
  border-radius: 4px;
}
.danger-btn {
  background: transparent;
  color: var(--critical);
  border: 1px solid var(--critical);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.danger-btn:hover {
  background: var(--critical);
  color: #fff;
}

/* ADMIN BACKSTAGE BADGES */
.badge-role-admin {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  font-family: var(--font-mono);
}
.badge-role-user {
  background: var(--panel);
  color: var(--ink-secondary);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  font-family: var(--font-mono);
}
.sku-select {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  color: var(--ink);
  font-family: var(--font-body);
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
}

/* MAIN CONTAINER */
main { width: 100%; margin: 0 auto; }

/* AUTHENTICATED APP CONSOLE (100% VIEWPORT HEIGHT, FIXED SIDEBAR, ZERO FOOTER GAP) */
body.is-authenticated {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 !important;
}
body.is-authenticated header {
  display: flex !important;
  flex-shrink: 0;
  height: 64px;
  padding: 12px 36px;
  background: var(--brand-secondary, var(--ink));
  border-bottom: 3px solid var(--brand-primary, var(--accent-light));
  position: relative;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* UNAUTHENTICATED GUEST FRONT-DOOR (TOP NAV BAR REMOVED, PERFECT VIEWPORT CENTERING) */
body:not(.is-authenticated) header {
  display: none !important;
}
body:not(.is-authenticated) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 !important;
  background: #04070D !important;
}
body:not(.is-authenticated) main {
  width: 100vw;
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  padding: 0 !important;
}
body:not(.is-authenticated) #landing-page-view {
  width: 100%;
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto !important;
  padding: 24px !important;
  box-sizing: border-box;
}
body:not(.is-authenticated) .auth-card-container {
  position: relative;
  margin: 0 auto !important;
}

/* MOBILE SHIELD OVERRIDES & INPUT NEUTRALIZATION */
html.is-mobile-device #landing-page-view,
html.is-mobile-device main {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.is-mobile-device #mobile-restricted-shield {
  display: flex !important;
}
[data-theme="light"] body.is-authenticated header,
body.is-authenticated[data-theme="light"] header {
  background: rgba(6, 11, 20, 0.95) !important;
  border-bottom: 1px solid rgba(43, 179, 163, 0.25) !important;
  color: #F8FAFC !important;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.8) !important;
}
[data-theme="light"] body.is-authenticated header .brand-title,
body.is-authenticated[data-theme="light"] header .brand-title {
  color: #F8FAFC !important;
}
[data-theme="light"] body.is-authenticated header .brand-tag,
body.is-authenticated[data-theme="light"] header .brand-tag {
  color: var(--brand-primary, #2BB3A3) !important;
}
body.is-authenticated #theme-toggle-btn-guest {
  display: none !important;
}
body.is-authenticated main {
  flex: 1;
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  min-height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  display: flex;
}
body.is-authenticated #app-workspace-view.console-layout {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  background: var(--paper);
  margin: 0;
  padding: 0;
}
body.is-authenticated .console-sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  height: 100%;
  flex-shrink: 0;
  background: var(--brand-secondary-dark, #0B131F);
  border-right: 1px solid var(--brand-secondary-border, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  position: static;
  top: auto;
  overflow: hidden;
  z-index: 20;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.console-main-content {
  flex: 1;
  min-width: 0;
  transition: margin-left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sidebar Head & Minimalist Pin Toggle Button */
#sidebar-role-badge {
  display: none !important;
}

.sidebar-head {
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 56px;
  box-sizing: border-box;
}

.btn-sidebar-pin {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.14));
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, #94A3B8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-sidebar-pin:hover {
  background: rgba(43, 179, 163, 0.15);
  color: var(--accent, #2BB3A3);
  border-color: var(--accent, #2BB3A3);
  transform: scale(1.04);
}
.btn-sidebar-pin.is-pinned {
  color: var(--accent, #2BB3A3);
  background: rgba(43, 179, 163, 0.12);
  border-color: rgba(43, 179, 163, 0.35);
}
.btn-sidebar-pin.is-pinned:hover {
  background: rgba(43, 179, 163, 0.22);
  border-color: var(--accent, #2BB3A3);
}
[data-theme="light"] .btn-sidebar-pin {
  border-color: #CBD5E1;
  background: rgba(0, 0, 0, 0.04);
  color: #475569;
}
[data-theme="light"] .btn-sidebar-pin:hover {
  background: rgba(43, 179, 163, 0.08);
  color: var(--accent, #2BB3A3);
}
[data-theme="light"] .btn-sidebar-pin.is-pinned {
  color: #0D9488;
  background: rgba(13, 148, 136, 0.10);
  border-color: rgba(13, 148, 136, 0.35);
}

/* ==========================================================================
   COLLAPSED RAIL MODE & SPATIAL HOVER FLYOUT (ZERO-JITTER ARCHITECTURE)
   ========================================================================== */
body.sidebar-collapsed #app-workspace-view.console-layout {
  position: relative;
}

body.sidebar-collapsed .console-main-content {
  margin-left: 64px;
  width: calc(100% - 64px);
}

/* 1. Base Collapsed Slim Rail (64px) */
body.sidebar-collapsed .console-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  cursor: pointer;
  z-index: 50;
  overflow-x: hidden;
  background: rgba(11, 19, 31, 0.64);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              min-width 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease;
}
[data-theme="light"] body.sidebar-collapsed .console-sidebar {
  background: rgba(255, 255, 255, 0.66);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
body.sidebar-collapsed .console-sidebar .sidebar-head {
  padding: 12px 0;
  justify-content: center;
  height: 56px;
}
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .sidebar-nav {
  padding: 16px 0;
  align-items: center;
}
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .side-nav-btn {
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 8px;
  gap: 0;
}
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .side-nav-btn .side-icon {
  margin: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .side-nav-btn.active::before {
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
}

/* In collapsed rail when flyout is NOT active: smoothly glide text labels away and remove from flex flow */
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .sidebar-brand-group,
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .sidebar-section-title {
  display: none !important;
}

body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .side-nav-btn > span:not(.side-icon),
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .side-badge,
body.sidebar-collapsed .console-sidebar:not(.is-flyout-active) .dropdown-badge-pro {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-6px) !important;
  pointer-events: none !important;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

/* 2. Spatial Hover Flyout (Floats smoothly OVER main content) */
body.sidebar-collapsed .console-sidebar.is-flyout-active {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  z-index: 100;
  cursor: default;
  overflow-x: hidden;
  background: rgba(11, 19, 31, 0.67) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
[data-theme="light"] body.sidebar-collapsed .console-sidebar.is-flyout-active {
  background: rgba(255, 255, 255, 0.70) !important;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

body.sidebar-collapsed .console-sidebar.is-flyout-active .sidebar-head {
  padding: 12px 14px;
  justify-content: flex-start;
}
body.sidebar-collapsed .console-sidebar.is-flyout-active .sidebar-section-title {
  display: block !important;
  opacity: 1;
  visibility: visible;
}
body.sidebar-collapsed .console-sidebar.is-flyout-active .side-nav-btn > span:not(.side-icon),
body.sidebar-collapsed .console-sidebar.is-flyout-active .side-badge,
body.sidebar-collapsed .console-sidebar.is-flyout-active .dropdown-badge-pro {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.04s, 
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}
body.sidebar-collapsed .console-sidebar.is-flyout-active .sidebar-nav {
  padding: 16px 8px;
  align-items: stretch;
}
body.sidebar-collapsed .console-sidebar.is-flyout-active .side-nav-btn {
  justify-content: flex-start;
  padding: 9px 12px;
  width: 100%;
  height: auto;
  margin: 0;
  gap: 10px;
}
body.sidebar-collapsed .console-sidebar.is-flyout-active .btn-sidebar-pin {
  display: inline-flex;
}

body.is-authenticated .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
body.is-authenticated .sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.is-authenticated .console-main-content {
  flex: 1;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 36px 48px;
  -webkit-overflow-scrolling: touch;
}

/* HERO STRIP */
.hero-strip {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.hero-strip h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}
.hero-strip p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
  max-width: 780px;
}
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* TABS NAVIGATION */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--ink); border-bottom-color: var(--rule); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* PANELS */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* CARDS & PANELS */
.card {
  background: rgba(8, 14, 26, 0.82) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(43, 179, 163, 0.22) !important;
  border-radius: 14px !important;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), inset 0 1px 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.card-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* FORMS */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  border-radius: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
select, .form-select {
  width: 100%;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: var(--paper-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 14px 14px !important;
  padding: 10px 42px 10px 14px !important;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
select:hover, .form-select:hover {
  border-color: var(--muted-light);
  background-color: var(--panel);
}
.filter-select {
  width: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  height: 36px;
  padding: 6px 34px 6px 12px !important;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background-color: var(--paper-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}
.filter-select:hover {
  border-color: var(--muted-light);
  background-color: var(--panel);
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 110, 110, 0.18);
}
input[type="text"], input[type="url"] {
  font-family: var(--font-mono);
  font-size: 13px;
}
input[type="text"], input[type="url"], input[type="email"], select, .form-select, .filter-select, textarea, .domain-cell-text {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  letter-spacing: normal;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="url"]:focus, select:focus, .form-select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-card);
  box-shadow: 0 0 0 3px rgba(11, 110, 110, 0.18), 0 1px 2px rgba(0, 0, 0, 0.05);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--paper-card) inset !important;
  box-shadow: 0 0 0px 1000px var(--paper-card) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #F8FAFC !important;
  -webkit-box-shadow: 0 0 0px 1000px #080D17 inset !important;
  box-shadow: 0 0 0px 1000px #080D17 inset !important;
}
textarea {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  min-height: 180px;
}

/* BUTTONS */
.btn-submit {
  background: linear-gradient(135deg, #2BB3A3 0%, #06B6D4 100%) !important;
  color: #04070D !important;
  border: 1px solid rgba(43, 179, 163, 0.4) !important;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 0 20px -3px rgba(43, 179, 163, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #39D4C2 0%, #22D3EE 100%) !important;
  color: #04070D !important;
  box-shadow: 0 0 30px -2px rgba(43, 179, 163, 0.7) !important;
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* BRANDED BUTTON THEME - HARMONIZED WITH NEURAL OBSIDIAN */
body.has-custom-brand .btn-hero-primary,
body.has-custom-brand .btn-start-scan,
body.has-custom-brand #btn-save-account-profile,
body.has-custom-brand #btn-save-localisation,
body.has-custom-brand .btn-tier-featured {
  background: linear-gradient(135deg, #2BB3A3 0%, #06B6D4 100%) !important;
  border: 1px solid rgba(43, 179, 163, 0.4) !important;
  color: #04070D !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px -3px rgba(43, 179, 163, 0.45) !important;
  transition: all 0.2s ease !important;
}
body.has-custom-brand .btn-hero-primary:hover,
body.has-custom-brand .btn-start-scan:hover,
body.has-custom-brand #btn-save-account-profile:hover,
body.has-custom-brand #btn-save-localisation:hover,
body.has-custom-brand .btn-tier-featured:hover {
  background: linear-gradient(135deg, #39D4C2 0%, #22D3EE 100%) !important;
  box-shadow: 0 0 30px -2px rgba(43, 179, 163, 0.7) !important;
  transform: translateY(-1px) !important;
  color: #04070D !important;
}

/* TOP HEADER & BORDER BRANDING OVERRIDE (NEURAL OBSIDIAN) */
body.has-custom-brand header,
body.has-custom-brand.is-authenticated header {
  background: rgba(6, 11, 20, 0.98) !important;
  border-bottom: 1px solid rgba(43, 179, 163, 0.25) !important;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.8) !important;
}

/* IN-LINE SETTINGS NOTIFICATION BANNERS */
.inline-status-banner {
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  animation: inlineBannerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@keyframes inlineBannerSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.inline-status-banner.success {
  background: rgba(43, 179, 163, 0.12) !important;
  border: 1px solid #2BB3A3 !important;
  color: var(--ink) !important;
}
.inline-status-banner.success .banner-icon svg {
  color: #2BB3A3 !important;
  stroke: #2BB3A3 !important;
}
.inline-status-banner.error {
  background: rgba(155, 28, 49, 0.10);
  border: 1px solid var(--critical);
  color: var(--critical);
}
.inline-status-banner .banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inline-status-banner .banner-text {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}
.inline-status-banner .banner-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
.inline-status-banner .banner-close:hover { opacity: 1; }

/* Dual-Theme Responsive Secondary & Table Action Buttons */
.btn-secondary,
.table-action-btn {
  font-family: var(--font-body);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}
.table-action-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

/* Light Mode: Alabaster Frost Button with Crisp Slate/Ink text */
[data-theme="light"] .btn-secondary,
[data-theme="light"] .table-action-btn {
  background: var(--panel, #F1F5F9) !important;
  color: var(--ink, #0F172A) !important;
  border: 1px solid var(--rule-strong, #CBD5E1) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .table-action-btn:hover {
  background: #FFFFFF !important;
  color: var(--brand-primary, #0D9488) !important;
  border-color: var(--brand-primary, #0D9488) !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.16) !important;
  transform: translateY(-1px);
}

/* Dark Mode: Obsidian Translucent Glass Button with Crisp White text */
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .table-action-btn,
.btn-secondary,
.table-action-btn {
  background: rgba(8, 14, 26, 0.70);
  color: #F8FAFC;
  border: 1px solid rgba(43, 179, 163, 0.30);
}
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .table-action-btn:hover,
.btn-secondary:hover,
.table-action-btn:hover {
  background: rgba(43, 179, 163, 0.16);
  border-color: rgba(43, 179, 163, 0.60);
  color: #3DD1BF;
  box-shadow: 0 0 16px rgba(43, 179, 163, 0.25);
  transform: translateY(-1px);
}

/* SUB TABS (FOR CODE STUDIO) */
.subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.subtab-btn {
  background: none;
  border: 1px solid var(--rule);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  border-radius: 2px;
}
.subtab-btn.active {
  background: var(--ink);
  color: #070D19 !important;
  border-color: var(--ink);
  font-weight: 700;
}
.subtab-btn.active .material-symbols-outlined {
  color: #070D19 !important;
}
[data-theme="light"] .subtab-btn.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}
[data-theme="light"] .subtab-btn.active .material-symbols-outlined {
  color: #FFFFFF !important;
}

/* PRESETS TOOLBAR */
.presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.preset-chip {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  color: var(--ink);
  transition: all 0.15s;
}
.preset-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* LIVE SCAN PROGRESS TICKER */
#ticker-steps { margin-top: 14px; border-top: 1px solid #1E293B; padding-top: 12px; font-family: var(--font-mono); font-size: 12px; }
.tstep { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; color: #64748B; }
.tstep .ticon { width: 16px; flex: 0 0 16px; text-align: center; }
.tstep .tlabel { flex: 1; }
.tstep .tdetail { display: block; font-size: 11px; color: #94A3B8; margin-top: 1px; word-break: break-all; }
.tstep .ttime { color: #64748B; font-size: 11px; }
.tstep.running { color: #E2E8F0; }
.tstep.done { color: #86EFAC; }
.tstep.failed { color: #FCA5A5; }
.tstep.skipped { color: #475569; }
#scan-progress-box {
  display: none;
  background: var(--code-bg);
  border: 1px solid #1E293B;
  color: #E2E8F0;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
}
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #1E293B;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.4s ease;
}
.ticker-stage {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
  margin-top: 6px;
  padding-left: 24px;
}

/* RESULTS AREA */
#results-area { display: none; margin-top: 32px; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}
.download-btn {
  background: var(--ink);
  color: #070D19 !important;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  transition: background 0.15s;
}
[data-theme="light"] .download-btn {
  background: #0F172A !important;
  color: #FFFFFF !important;
}
.download-btn:hover { background: #1B2E47; }
.scan-action-btn {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border-radius: 8px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: var(--paper-card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule-strong, rgba(43, 179, 163, 0.25)) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .scan-action-btn {
  background: rgba(8, 14, 26, 0.70) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(43, 179, 163, 0.25) !important;
}
.scan-action-btn:hover {
  background: rgba(var(--brand-rgb, 43, 179, 163), 0.14) !important;
  border-color: rgba(var(--brand-rgb, 43, 179, 163), 0.50) !important;
  color: var(--accent, #2BB3A3) !important;
  box-shadow: 0 0 16px rgba(var(--brand-rgb, 43, 179, 163), 0.22) !important;
  transform: translateY(-1px);
}
.download-btn.scan-action-btn {
  background: linear-gradient(135deg, rgba(43, 179, 163, 0.20) 0%, rgba(6, 182, 212, 0.20) 100%) !important;
  border: 1px solid rgba(43, 179, 163, 0.5) !important;
  color: var(--accent, #2BB3A3) !important;
}
.download-btn.scan-action-btn:hover {
  background: linear-gradient(135deg, #2BB3A3 0%, #06B6D4 100%) !important;
  color: #04070D !important;
  box-shadow: 0 0 20px rgba(43, 179, 163, 0.6) !important;
}

/* EXECUTIVE SUMMARY BANNER */
.exec-summary-bar {
  background: var(--paper-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.rating-A {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.45) 100%) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}
.rating-B {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0.45) 100%) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}
.rating-C {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.45) 100%) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}
.rating-D {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(249, 115, 22, 0.45) 100%) !important;
  color: #FB923C !important;
  border: 1px solid rgba(249, 115, 22, 0.5) !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35) !important;
}
.rating-F {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.45) 100%) !important;
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
}

.sev-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sev-pill {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}
.sev-pill.critical { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.35); box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
.sev-pill.high { background: rgba(249, 115, 22, 0.15); color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.35); box-shadow: 0 0 10px rgba(249, 115, 22, 0.2); }
.sev-pill.medium { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.35); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
.sev-pill.low { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.35); box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
.sev-pill.info { background: rgba(148, 163, 184, 0.15); color: #94A3B8; border: 1px solid rgba(148, 163, 184, 0.35); }

/* FILTER BAR */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 4px;
  color: var(--muted);
  transition: all 0.15s ease;
}
.filter-btn:hover {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--muted-light);
}
.filter-btn.active {
  background: var(--ink);
  color: #070D19 !important;
  border-color: var(--ink);
  font-weight: 700;
}
[data-theme="light"] .filter-btn.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}
.search-input {
  max-width: 260px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-body) !important;
  box-sizing: border-box;
}
.search-input::placeholder,
.faq-search-input::placeholder,
#finding-search::placeholder,
#history-archive-search::placeholder,
#history-finding-search::placeholder,
#code-history-archive-search::placeholder,
#code-history-finding-search::placeholder,
#tab-cve-search::placeholder {
  font-family: var(--font-body) !important;
}

/* Command Palette Text Input Typography & Focus Reset (Eliminates Monospace & Unwanted Focus Border) */
.palette-input,
#command-palette-input,
.palette-input:focus,
#command-palette-input:focus {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--ink, #F8FAFC) !important;
  padding: 0 !important;
  width: 100% !important;
  flex: 1 !important;
}
.palette-input::placeholder,
#command-palette-input::placeholder {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 15px !important;
  color: var(--muted, #64748B) !important;
}

/* Standardized 38px Height for Paired Modal and Form Actions */
.modal-card .btn-submit,
.modal-card .btn-secondary,
.modal-card .danger-btn,
.modal-box .btn-submit,
.modal-box .btn-secondary,
.modal-box .danger-btn,
#btn-save-schedule,
.confirm-dialog-footer .btn-secondary,
.confirm-dialog-footer .btn-danger-confirm,
.confirm-dialog-footer .btn-cancel,
.fleet-actions .btn-submit,
.fleet-actions .btn-secondary,
#btn-generate-api-key,
#btn-revoke-api-key,
#btn-save-alert-config,
#btn-test-alert-config,
#tab-cve-btn-prev,
#tab-cve-btn-next {
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 12.5px !important;
}

/* FINDING ACCORDION ITEM */
.finding-item {
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--ink);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15,27,42,0.02);
}
.finding-item.sev-critical { border-left-color: var(--critical); }
.finding-item.sev-high { border-left-color: var(--high); }
.finding-item.sev-medium { border-left-color: var(--medium); }
.finding-item.sev-low { border-left-color: var(--low); }
.finding-item.sev-info { border-left-color: var(--info); }

.finding-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-radius: 2px;
}
.badge.sev-critical { background: var(--critical); }
.badge.sev-high { background: var(--high); }
.badge.sev-medium { background: var(--medium); }
.badge.sev-low { background: var(--low); }
.badge.sev-info { background: var(--info); }
[data-theme="dark"] .badge.sev-medium,
[data-theme="dark"] .badge.sev-low {
  color: #0B131F !important;
  font-weight: 800 !important;
}

.tag-kev {
  background: var(--critical);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.tag-epss {
  background: #3B82F6;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.finding-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}
.finding-desc {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.5;
}

.finding-meta-row {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.code-block {
  background: var(--code-bg);
  color: #E2E8F0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  border-radius: 2px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
}
.remediation-box {
  background: var(--panel);
  padding: 12px 16px;
  font-size: 12.5px;
  border-left: 3px solid var(--accent);
  margin-top: 10px;
}
.ladder-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  vertical-align: middle;
}
.ladder-badge.ladder-l0_advisory {
  background: rgba(100, 116, 139, 0.16);
  color: #64748B;
  border: 1px solid #94A3B8;
}
.ladder-badge.ladder-l1_version_checked {
  background: rgba(37, 99, 235, 0.15);
  color: #2563EB;
  border: 1px solid #60A5FA;
}
.ladder-badge.ladder-l2_corroborated {
  background: rgba(5, 150, 105, 0.15);
  color: #059669;
  border: 1px solid #34D399;
}
.ladder-badge.ladder-l3_proven {
  background: rgba(124, 58, 237, 0.15);
  color: #7C3AED;
  border: 1px solid #A78BFA;
}
[data-theme="dark"] .ladder-badge.ladder-l0_advisory {
  color: #94A3B8 !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
}
[data-theme="dark"] .ladder-badge.ladder-l1_version_checked {
  color: #60A5FA !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
}
[data-theme="dark"] .ladder-badge.ladder-l2_corroborated {
  color: #34D399 !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
}
[data-theme="dark"] .ladder-badge.ladder-l3_proven {
  color: #C084FC !important;
  border-color: rgba(192, 132, 252, 0.4) !important;
}
.badge-capped {
  background: #D97706;
  color: #FFF;
  font-size: 9.5px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 700;
  vertical-align: middle;
}
.btn-remediation-tab {
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: all 0.15s ease;
}
.btn-remediation-tab:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.btn-remediation-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF !important;
  font-weight: 700;
}
.remediation-snippet-pane.pane-hidden {
  display: none !important;
}
.ai-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: 12.5px;
  margin-top: 10px;
}

/* FINDING STATUS & ACTION BUTTONS */
.finding-status-select {
  width: auto !important;
  max-width: 145px !important;
  height: 28px !important;
  line-height: 26px !important;
  padding: 0 24px 0 8px !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: 1px solid var(--rule) !important;
  background-color: var(--card-bg, #FFFFFF) !important;
  background-position: right 6px center !important;
  background-size: 10px 10px !important;
  color: var(--ink) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
.finding-status-select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
}
.btn-copy-ticket {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
  border: 1px solid var(--rule) !important;
  background: var(--card-bg, #FFFFFF) !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease;
}
.btn-copy-ticket:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background: var(--accent-soft, rgba(11,110,110,0.08)) !important;
}

/* HOW WE VERIFIED THIS (CALLOUT) */
.verification-evidence-box {
  margin: 10px 0 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 3px solid #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.verification-evidence-box summary {
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.15);
  font-size: 12px;
  font-weight: 700;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  cursor: pointer;
}
.verification-evidence-box summary .material-symbols-outlined {
  font-size: 16px;
  color: #0284C7;
}
.verification-evidence-box summary .signal-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #0284C7;
  font-weight: 600;
}
.verification-evidence-box .evidence-body {
  padding: 10px 14px;
  cursor: default;
  background: var(--panel);
}
.verification-evidence-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 1.55;
  color: var(--ink);
}


/* SCAN HISTORY TABLE */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.history-table th {
  background: var(--panel);
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--rule);
}
.history-table td {
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.history-table tr:hover { background: rgba(11,110,110,0.02); }

/* PRICING & TIERS GRID */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.tier-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 30px 26px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 1px 3px rgba(15,27,42,0.03);
}
.tier-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(11,110,110,0.12);
}
.tier-pill-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tier-tagline {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 36px;
}
.tier-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.tier-price-period {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.tier-features-list {
  list-style: none;
  margin-bottom: 26px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.tier-features-list li {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-icon {
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}
.btn-tier {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #070D19 !important;
  transition: all 0.15s;
}
[data-theme="light"] .btn-tier {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}
.btn-tier:hover { background: #1B2E47; }
.btn-tier.btn-tier-featured {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-tier.btn-tier-featured:hover { background: var(--accent-hover); }

/* WHITE LABEL BRAND STUDIO */
.color-preview-box {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* SPINNER */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FRONT-DOOR LANDING PAGE STYLES */
.landing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
.landing-hero {
  text-align: center;
  padding: 56px 20px 48px;
  background: radial-gradient(circle at top, rgba(11,110,110,0.08) 0%, transparent 70%);
  border-radius: 4px;
  margin-bottom: 40px;
}
.landing-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  max-width: 860px;
  margin: 0 auto 18px;
  letter-spacing: -0.01em;
}
.landing-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.landing-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  height: 48px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 6px;
  border: 1px solid var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(11,110,110,0.25);
  transition: all 0.2s;
}
.btn-hero-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-hero-secondary {
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  height: 48px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-secondary:hover {
  background: var(--panel);
  border-color: var(--muted);
}

/* STANDARDS & THREAT INTEL BAR */
.standards-trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: -16px auto 44px;
  max-width: 960px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.trust-sep {
  color: #94A3B8;
  font-weight: 400;
}

/* MODERN SAAS PRODUCT PREVIEW (BENCHMARK: INTRUDER / LINEAR) */
.product-preview-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-bottom: 60px;
  overflow: hidden;
}
.window-header {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }
.preview-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  max-width: 440px;
  width: 100%;
}
.preview-url-bar code {
  color: var(--ink);
  font-weight: 500;
  background: none;
  padding: 0;
}
.preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}
.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(43, 179, 163, 0.25);
}
.preview-body {
  padding: 24px 28px;
}
.preview-meta-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .preview-meta-row {
    grid-template-columns: 1fr;
  }
}
.preview-grade-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}
.preview-grade-val {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: #34D399;
  line-height: 1;
}
.preview-grade-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.preview-target-info h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.preview-target-info p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.preview-stat-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-stat-box {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
  min-width: 84px;
}
.preview-stat-box .num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.preview-stat-box .lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 2px;
}
.preview-findings-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-finding-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 18px;
  transition: border-color 0.15s ease;
}
.preview-finding-card:hover {
  border-color: #2BB3A3;
}
.preview-finding-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.preview-finding-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.preview-finding-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--status-blue-bg);
  color: var(--status-blue);
  border: 1px solid var(--status-blue-border);
}
.preview-finding-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.preview-finding-remedy {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--brand-primary-soft);
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
}
.preview-card-footer {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* CAPABILITY CARDS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.feature-box {
  background: var(--paper-card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15,27,42,0.05);
  border-color: var(--accent-light);
}
.feature-icon-svg {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* FLEET RADAR STYLES */
.fleet-quota-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 1024px) {
  #scans-anniversary-reset-note,
  #code-anniversary-reset-note {
    display: none !important;
  }
}
.quota-remaining-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink-secondary);
  border: 1px solid var(--rule);
  white-space: nowrap;
}
.fleet-progress-bar {
  width: 220px;
  height: 8px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px !important;
  overflow: hidden;
  margin-top: 6px;
  margin-left: auto;
}
[data-theme="dark"] .fleet-progress-bar {
  background: rgba(4, 7, 13, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.fleet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2BB3A3 0%, #38BDF8 100%) !important;
  box-shadow: 0 0 12px rgba(43, 179, 163, 0.6) !important;
  transition: width 0.3s;
}
.fleet-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.fleet-actions .btn-secondary,
.btn-fleet-bulk-add {
  background: var(--paper-card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule-strong, rgba(43, 179, 163, 0.25)) !important;
  padding: 10px 18px !important;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .fleet-actions .btn-secondary,
[data-theme="dark"] .btn-fleet-bulk-add {
  background: rgba(8, 14, 26, 0.70) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(43, 179, 163, 0.25) !important;
}
.fleet-actions .btn-secondary:hover,
.btn-fleet-bulk-add:hover {
  background: rgba(var(--brand-rgb, 43, 179, 163), 0.14) !important;
  border-color: rgba(var(--brand-rgb, 43, 179, 163), 0.50) !important;
  color: var(--accent, #2BB3A3) !important;
  box-shadow: 0 0 16px rgba(var(--brand-rgb, 43, 179, 163), 0.22) !important;
  transform: translateY(-1px);
}
.btn-schedule-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-schedule-pill:hover {
  background: var(--panel);
  border-color: var(--muted-light);
  color: var(--ink);
}
.btn-schedule-pill.active-daily {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-weight: 700;
}
.btn-schedule-pill.active-weekly {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-weight: 700;
}
.btn-schedule-pill.locked {
  background: var(--panel);
  border-color: var(--rule);
  color: var(--ink-muted);
}

/* STREAMLINED MONITORED FLEET TABLE */
#fleet-table-body tr {
  background: transparent !important;
}
.fleet-main-row td,
[data-theme="dark"] #fleet-table-body tr.fleet-main-row td,
[data-theme="light"] #fleet-table-body tr.fleet-main-row td {
  padding-top: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: none !important;
  vertical-align: middle;
  background: transparent !important;
  transition: background 0.15s ease;
}
.fleet-tags-row td,
[data-theme="dark"] #fleet-table-body tr.fleet-tags-row td,
[data-theme="light"] #fleet-table-body tr.fleet-tags-row td {
  padding-top: 6px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--rule) !important;
  vertical-align: middle;
  background: transparent !important;
  transition: background 0.15s ease;
}
/* Uniform synchronized highlight across ALL cells of BOTH rows */
#fleet-table-body tr.fleet-group-hover td,
#fleet-table-body tr.fleet-main-row:hover td,
#fleet-table-body tr.fleet-main-row:hover + tr.fleet-tags-row td,
#fleet-table-body tr.fleet-tags-row:hover td,
#fleet-table-body tr.fleet-main-row:has(+ tr.fleet-tags-row:hover) td {
  background: rgba(43, 179, 163, 0.045) !important;
}
[data-theme="light"] #fleet-table-body tr.fleet-group-hover td,
[data-theme="light"] #fleet-table-body tr.fleet-main-row:hover td,
[data-theme="light"] #fleet-table-body tr.fleet-main-row:hover + tr.fleet-tags-row td,
[data-theme="light"] #fleet-table-body tr.fleet-tags-row:hover td,
[data-theme="light"] #fleet-table-body tr.fleet-main-row:has(+ tr.fleet-tags-row:hover) td {
  background: rgba(13, 148, 136, 0.04) !important;
}
#fleet-table-container .history-table th,
[data-theme="dark"] #fleet-table-container .history-table th,
[data-theme="light"] #fleet-table-container .history-table th {
  padding: 10px 8px !important;
  white-space: nowrap;
}
#fleet-table-container .history-table td,
[data-theme="dark"] #fleet-table-container .history-table td,
[data-theme="light"] #fleet-table-container .history-table td {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.fleet-domain-cell {
  max-width: 135px;
  min-width: 110px;
  width: 135px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.fleet-domain-scroll-wrap {
  width: 100%;
  max-width: 135px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.fleet-domain-scroll-wrap.can-scroll {
  mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%);
  transition: mask-image 0.25s ease, -webkit-mask-image 0.25s ease;
}
.fleet-domain-cell:hover .fleet-domain-scroll-wrap.can-scroll,
.fleet-domain-scroll-wrap.can-scroll:hover,
.fleet-domain-scroll-wrap.can-scroll.is-scrolling {
  mask-image: linear-gradient(to right, transparent 0%, #000 14px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.fleet-domain-link {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.15s ease;
  will-change: transform;
}
.fleet-domain-link:hover {
  color: var(--accent);
}
@keyframes domain-pendulum {
  0% {
    transform: translateX(0);
  }
  48%, 62% {
    transform: translateX(var(--scroll-dist, 0px));
  }
  94%, 100% {
    transform: translateX(0);
  }
}
.fleet-domain-cell:hover .fleet-domain-scroll-wrap.can-scroll .fleet-domain-link,
.fleet-domain-scroll-wrap.can-scroll:hover .fleet-domain-link,
.fleet-domain-scroll-wrap.can-scroll.is-scrolling .fleet-domain-link {
  animation: domain-pendulum var(--scroll-dur, 4s) ease-in-out infinite;
}
.fleet-tags-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-left: 2px;
}
.fleet-tags-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  user-select: none;
}
#fleet-table-body .rating-badge {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-family: var(--font-mono) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
.findings-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  line-height: 28px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}
.findings-badge.clean {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .findings-badge.clean {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.35);
}
.findings-badge.alert {
  background: rgba(245, 158, 11, 0.14);
  color: #D97706;
  border-color: rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .findings-badge.alert {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.4);
}
.findings-badge.muted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  border-color: var(--rule);
  cursor: default;
}
.findings-badge:hover:not(.muted) {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
#fleet-table-body .btn-secondary {
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  margin: 0 !important;
}
#fleet-table-body .btn-fleet-remove {
  color: var(--critical) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}
#fleet-table-body .btn-fleet-remove:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: var(--critical) !important;
  color: #EF4444 !important;
}
.logo-dropzone {
  border: 2px dashed var(--rule);
  background: var(--paper);
  padding: 24px;
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
/* THREAT CATALOG IN-PLATFORM STYLING */
.cve-jurisdiction-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 20px;
}
.cve-jurisdiction-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-jur-pill {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-jur-pill:hover, .btn-jur-pill.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.cve-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.cve-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cve-pill-btn {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cve-pill-btn:hover {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--muted-light);
}
.cve-pill-btn.active {
  background: var(--accent);
  color: var(--accent-fg, #FFFFFF);
  border-color: var(--accent);
}
[data-theme="dark"] .cve-pill-btn.active {
  background: var(--accent) !important;
  color: var(--accent-fg, #FFFFFF) !important;
  border-color: var(--accent) !important;
}
.cve-search-wrap {
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.cve-search-icon {
  position: absolute;
  left: 12px;
  color: #94A3B8;
  pointer-events: none;
}
.cve-search-wrap .search-input {
  width: 100%;
  padding-left: 36px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13px;
}
.cve-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 18px 22px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.cve-card:hover {
  border-color: var(--muted-light);
  box-shadow: 0 4px 12px rgba(15, 27, 42, 0.05);
}
.cve-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.cve-id-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.badge-sev {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-crit { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.badge-high { background: rgba(249, 115, 22, 0.15); color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.35); }
.badge-med { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-acsc {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-kev {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-ransomware {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.cve-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.cve-meta-line {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cve-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.cve-remedy {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cve-remedy:hover {
  background: var(--paper-card);
}
.cve-remedy-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  user-select: none;
}
.cve-remedy-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.55;
  color: var(--ink-light, #CBD5E1);
  white-space: pre-line;
  transition: max-height 0.25s ease;
}
.cve-remedy.expanded .cve-remedy-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.cve-remedy-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.cve-remedy.expanded .cve-remedy-toggle-btn .material-symbols-outlined {
  transform: rotate(180deg);
}
.cve-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.cve-link-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-right: 4px;
}
.cve-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.cve-link-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cve-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}

/* Standard Platform Icon System (SecIcons) */
.sec-icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sec-icon-12 { width: 12px; height: 12px; }
.sec-icon-14 { width: 14px; height: 14px; }
.sec-icon-16 { width: 16px; height: 16px; }
.sec-icon-18 { width: 18px; height: 18px; }
.sec-icon-20 { width: 20px; height: 20px; }
.sec-icon-22 { width: 22px; height: 22px; }
.sec-icon-24 { width: 24px; height: 24px; }

/* Executive KPI Card Icon Badges */
.sec-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.sec-icon-box svg {
  display: block;
  margin: auto;
}
.sec-icon-box.sm {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.sec-icon-box.teal {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: var(--status-green);
}
.sec-icon-box.red {
  background: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  color: var(--status-red);
}
.sec-icon-box.blue {
  background: var(--status-blue-bg);
  border: 1px solid var(--status-blue-border);
  color: var(--status-blue);
}
.sec-icon-box.amber {
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  color: var(--status-amber);
}
.sec-icon-box.purple {
  background: var(--status-purple-bg);
  border: 1px solid var(--status-purple-border);
  color: var(--status-purple);
}
.sec-icon-box.slate {
  background: var(--status-slate-bg);
  border: 1px solid var(--status-slate-border);
  color: var(--status-slate);
}

/* ==========================================================================
   ANIMATED ROW DELETION (Right-to-Left Red Sweep & Slide-Up Collapse)
   ========================================================================== */
@keyframes row-sweep-red {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

tr.row-deleting-sweep {
  background-color: rgba(239, 68, 68, 0.16) !important;
  transition: background-color 0.25s ease;
}

tr.row-deleting-sweep td {
  position: relative !important;
  background-color: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #DC2626 !important;
  transition: background-color 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

tr.row-collapsing {
  pointer-events: none !important;
}

tr.row-collapsing td {
  height: 0 !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  transform: translateY(-12px);
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              line-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden !important;
}

tr.row-collapsing td * {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: scaleY(0);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none !important;
}

/* ==========================================================================
   CUSTOM CONFIRMATION MODAL
   ========================================================================== */
.confirm-dialog-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 48px -12px rgba(15, 27, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.confirm-dialog-header {
  padding: 24px 24px 18px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.confirm-dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-dialog-icon.danger {
  background: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  color: var(--status-red);
}

.confirm-dialog-icon.warning {
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
  color: var(--status-amber);
}

.confirm-dialog-icon.info {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: var(--status-green);
}

.confirm-dialog-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.confirm-dialog-message {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.confirm-dialog-message strong {
  color: var(--ink);
  font-weight: 600;
}

.confirm-dialog-footer {
  padding: 14px 24px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.btn-danger-confirm {
  background: #DC2626;
  color: #FFFFFF;
  border: 1px solid #B91C1C;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.btn-danger-confirm:hover {
  background: #B91C1C;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.btn-danger-confirm:active {
  transform: translateY(0);
}

/* ==========================================================================
   ENVIRONMENT PREPARATION ONBOARDING MODAL
   ========================================================================== */
.env-prep-card {
  background: var(--brand-secondary, #0F1B2A);
  border: 1px solid rgba(43, 179, 163, 0.3);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(43, 179, 163, 0.15);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.env-prep-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(43, 179, 163, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.env-prep-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.cyber-radar-outer {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(43, 179, 163, 0.45);
  animation: radarSpin 12s linear infinite;
}

.cyber-radar-ring.ring-2 {
  inset: 12px;
  border: 1px solid rgba(43, 179, 163, 0.3);
  border-style: dotted;
  animation: radarSpinReverse 8s linear infinite;
}

.cyber-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(43, 179, 163, 0.12) 320deg,
    rgba(43, 179, 163, 0.45) 360deg
  );
  animation: radarSpin 2.4s linear infinite;
}

.cyber-radar-core {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 27, 42, 0.95);
  border: 1.5px solid #2BB3A3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(43, 179, 163, 0.5), inset 0 0 10px rgba(43, 179, 163, 0.3);
  animation: radarPulse 2s ease-in-out infinite alternate;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes radarPulse {
  0% { transform: scale(0.96); box-shadow: 0 0 12px rgba(43, 179, 163, 0.4); }
  100% { transform: scale(1.04); box-shadow: 0 0 24px rgba(43, 179, 163, 0.7); }
}

.env-prep-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 6px 0;
  color: var(--ink, #FFFFFF);
}

.env-prep-subtitle {
  font-size: 13.5px;
  color: var(--muted, #94A3B8);
  margin: 0 0 22px 0;
  line-height: 1.5;
}

.env-prep-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.env-prep-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2BB3A3 0%, #10B981 100%);
  border-radius: 999px;
  transition: width 0.4s ease-out;
  box-shadow: 0 0 10px rgba(43, 179, 163, 0.6);
}

.env-prep-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: var(--panel, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.06));
  border-radius: 10px;
  padding: 14px 16px;
}

.env-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted-light, #64748B);
  transition: color 0.25s ease;
}

.env-step-item.active {
  color: var(--ink, #E2E8F0);
  font-weight: 600;
}

.env-step-item.completed {
  color: var(--status-green, #2BB3A3);
  font-weight: 600;
}

[data-theme="light"] .env-prep-title { color: #0F172A !important; }
[data-theme="light"] .env-prep-subtitle { color: #475569 !important; }
[data-theme="light"] .env-prep-steps { background: #F1F5F9 !important; border-color: #E2E8F0 !important; }
[data-theme="light"] .env-step-item { color: #64748B !important; }
[data-theme="light"] .env-step-item.active { color: #0F172A !important; }
[data-theme="light"] .env-step-item.completed { color: #059669 !important; }

.env-step-indicator {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.env-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.env-step-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(43, 179, 163, 0.25);
  border-top-color: #2BB3A3;
  border-radius: 50%;
  animation: radarSpin 0.8s linear infinite;
}

.env-step-check {
  color: #2BB3A3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   GLOBAL TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.secscan-toast {
  pointer-events: auto;
  background: var(--brand-secondary, #0F1B2A);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.secscan-toast.toast-hiding {
  animation: toastSlideOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }
}

.secscan-toast.toast-success {
  border-left: 3px solid #10B981;
}
.secscan-toast.toast-error {
  border-left: 3px solid #EF4444;
}
.secscan-toast.toast-warning {
  border-left: 3px solid #F59E0B;
}
.secscan-toast.toast-info {
  border-left: 3px solid #2BB3A3;
}

.secscan-toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.toast-success .secscan-toast-icon { color: #10B981; }
.toast-error .secscan-toast-icon { color: #EF4444; }
.toast-warning .secscan-toast-icon { color: #F59E0B; }
.toast-info .secscan-toast-icon { color: #2BB3A3; }

.secscan-toast-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: #E2E8F0;
}

.secscan-toast-title {
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.secscan-toast-close {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.secscan-toast-close:hover {
  color: #FFFFFF;
}

.secscan-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.secscan-toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
}
.toast-success .secscan-toast-progress-bar { background: #10B981; }
.toast-error .secscan-toast-progress-bar { background: #EF4444; }
.toast-warning .secscan-toast-progress-bar { background: #F59E0B; }
.toast-info .secscan-toast-progress-bar { background: #2BB3A3; }

/* ========================================================= */
/* SECURITY FAQ & KNOWLEDGE BASE COMPONENT STYLES            */
/* ========================================================= */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-search-bar {
  position: relative;
  width: 100%;
  margin-top: 14px;
}
.faq-search-bar input.faq-search-input,
input[type="text"].faq-search-input {
  width: 100%;
  background: var(--paper-card);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 12px 16px 12px 46px !important;
  font-size: 14px;
  font-family: var(--font-body) !important;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}
.faq-search-bar input.faq-search-input:focus,
input[type="text"].faq-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 110, 0.12);
}
.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.faq-pills-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.faq-pill {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.faq-pill:hover {
  background: var(--panel);
  border-color: var(--muted-light);
  color: var(--ink);
}
.faq-pill.active {
  background: var(--ink);
  color: #070D19 !important;
  border-color: var(--ink);
  font-weight: 700;
}
[data-theme="light"] .faq-pill.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}
.faq-item {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 27, 42, 0.04);
}
.faq-item.open {
  border-color: var(--accent-light);
  box-shadow: 0 4px 14px rgba(11, 110, 110, 0.08);
}
.faq-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  background: var(--paper-card);
  transition: background 0.15s ease;
}
.faq-header:hover {
  background: var(--panel);
}
.faq-item.open .faq-header {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.faq-question-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.faq-chevron {
  color: var(--ink-muted);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-content {
  display: none;
  padding: 20px 22px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
  background: var(--paper-card);
}
.faq-item.open .faq-content {
  display: block;
  animation: faqSlideDown 0.2s ease-out;
}
@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-badge-tier {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.faq-badge-all {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}
.faq-badge-pro {
  background: rgba(11, 110, 110, 0.12);
  color: #0B6E6E;
  border: 1px solid rgba(43, 179, 163, 0.45);
}
.faq-badge-ent {
  background: rgba(126, 34, 206, 0.12);
  color: #7E22CE;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

/* ========================================================= */
/* MULTI-SCENARIO DEVELOPER API PORTAL STYLES                */
/* ========================================================= */
.docs-portal-head {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.docs-scenario-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.docs-scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.docs-endpoint-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
}
.http-method {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.method-get { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.method-post { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.method-delete { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.method-put { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }

.docs-code-container {
  background: var(--code-bg);
  border-radius: 6px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #1E293B;
}
.docs-code-header {
  background: #111B27;
  border-bottom: 1px solid #1E293B;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.docs-code-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.docs-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.docs-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.docs-code-content {
  padding: 14px 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #E2E8F0;
  white-space: pre;
  overflow-x: auto;
}

/* COMPLIANCE FINDINGS DRILLDOWN MODAL */
.compliance-findings-box {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.compliance-finding-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--panel);
  transition: all 0.15s ease;
}
.compliance-finding-card:hover {
  background: var(--paper-card);
  border-color: var(--rule-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* SUBDOMAIN ATTACK SURFACE STYLES */
.subdomain-surface-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.subdomain-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.subdomain-kpi-box {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 14px;
}
.subdomain-kpi-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.subdomain-kpi-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.subdomain-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.subdomain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}
.subdomain-table th {
  background: var(--panel);
  padding: 10px 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--rule);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.subdomain-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: middle;
}
.subdomain-table tr:last-child td {
  border-bottom: none;
}
.subdomain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.subdomain-badge-prod { background: var(--panel); color: var(--ink-secondary); }
.subdomain-badge-dev { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.subdomain-badge-admin { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }
.subdomain-badge-api { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.subdomain-badge-auth { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.subdomain-badge-infra { background: rgba(148, 163, 184, 0.15); color: #CBD5E1; }
.subdomain-badge-takeover { background: rgba(239, 68, 68, 0.15); color: #F87171; font-weight: 700; border: 1px solid rgba(239, 68, 68, 0.35); }
.subdomain-badge-clean { background: rgba(16, 185, 129, 0.15); color: #34D399; }

[data-theme="light"] .subdomain-badge-prod { background: var(--panel, #F1F5F9); color: var(--ink-secondary, #475569); border: 1px solid var(--rule, #E2E8F0); }
[data-theme="light"] .subdomain-badge-dev { background: rgba(217, 119, 6, 0.12); color: #B45309; border: 1px solid rgba(217, 119, 6, 0.28); }
[data-theme="light"] .subdomain-badge-admin { background: rgba(124, 58, 237, 0.12); color: #6D28D9; border: 1px solid rgba(124, 58, 237, 0.28); }
[data-theme="light"] .subdomain-badge-api { background: rgba(2, 132, 199, 0.12); color: #0369A1; border: 1px solid rgba(2, 132, 199, 0.28); }
[data-theme="light"] .subdomain-badge-auth { background: rgba(219, 39, 119, 0.12); color: #BE185D; border: 1px solid rgba(219, 39, 119, 0.28); }
[data-theme="light"] .subdomain-badge-infra { background: rgba(100, 116, 139, 0.12); color: #334155; border: 1px solid rgba(100, 116, 139, 0.28); }
[data-theme="light"] .subdomain-badge-takeover { background: rgba(220, 38, 38, 0.12); color: #B91C1C; border: 1px solid rgba(220, 38, 38, 0.35); }
[data-theme="light"] .subdomain-badge-clean { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.28); }

/* TEASER CARD */
.subdomain-teaser-card {
  background: linear-gradient(135deg, var(--brand-secondary, #0F1B2A) 0%, var(--brand-secondary-dark, #162436) 100%);
  border: 1px solid rgba(43, 179, 163, 0.35);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 20px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.subdomain-teaser-btn {
  background: var(--accent);
  color: var(--accent-fg, #FFFFFF);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.subdomain-teaser-btn:hover {
  background: #22998B;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 24-HOUR DOMAIN UPTIME & HEARTBEAT HEALTH STRIP */
td.uptime-cell {
  min-width: 175px;
  max-width: 220px;
}
div.uptime-cell {
  width: 100%;
  min-width: 175px;
  max-width: 220px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.uptime-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 0;
  line-height: 1;
  font-family: var(--font-mono);
  font-size: 11px;
}
.uptime-telemetry-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  cursor: pointer;
}
.uptime-telemetry-sep {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  opacity: 0.5;
  user-select: none;
}
.uptime-range-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  opacity: 0.65;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.uptime-range-pill:hover {
  opacity: 1;
  color: var(--ink);
}
.uptime-status-row .btn-schedule-pill {
  height: 14px;
  line-height: 12px;
  padding: 0 6px;
  font-size: 9px;
  border-radius: 3px;
}
.uptime-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.uptime-badge-pill:hover {
  opacity: 0.8;
}
.uptime-badge-up {
  color: #34D399;
}
[data-theme="light"] .uptime-badge-up {
  color: #059669;
}
.uptime-badge-degraded {
  color: #FBBF24;
}
[data-theme="light"] .uptime-badge-degraded {
  color: #D97706;
}
.uptime-badge-down {
  color: #F87171;
  animation: pulse-down-badge 2s infinite ease-in-out;
}
[data-theme="light"] .uptime-badge-down {
  color: #DC2626;
}
.uptime-badge-paused {
  color: var(--muted);
}
.uptime-badge-paused:hover {
  color: var(--ink);
}
.uptime-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.uptime-dot-up {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}
.uptime-dot-degraded {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}
.uptime-dot-down {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}
.uptime-dot-paused {
  background: #94A3B8;
}
.uptime-latency-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  transition: color 0.15s ease;
}
.uptime-latency-tag:hover {
  color: var(--ink);
}
.uptime-bar-container {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 10px;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 3px;
  position: relative;
}
[data-theme="light"] .uptime-bar-container {
  background: rgba(226, 232, 240, 0.65);
}
.uptime-seg {
  flex: 1 1 0;
  height: 10px;
  min-width: 3px;
  border-radius: 1.5px;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.uptime-seg:hover {
  transform: scaleY(1.4);
  z-index: 10;
  filter: brightness(1.25);
}
.uptime-seg.seg-fast {
  background: #10B981;
}
.uptime-seg.seg-normal {
  background: #2BB3A3;
}
.uptime-seg.seg-degraded {
  background: #F59E0B;
}
.uptime-seg.seg-down {
  background: #EF4444;
}
.uptime-seg.seg-paused {
  background: rgba(148, 163, 184, 0.2);
}
.uptime-legend-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 3px;
  font-family: var(--font-mono);
}
.uptime-modal-latency-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.uptime-modal-latency-text .uptime-latency-bolt {
  color: #F8FAFC;
}
.uptime-modal-latency-text .uptime-latency-val {
  color: #F8FAFC;
  font-weight: 700;
}
[data-theme="light"] .uptime-modal-latency-text .uptime-latency-bolt {
  color: #0F172A;
}
[data-theme="light"] .uptime-modal-latency-text .uptime-latency-val {
  color: #0F172A;
  font-weight: 700;
}
.app-tooltip-popup,
.uptime-tooltip-popup {
  position: fixed;
  z-index: 100000 !important;
  pointer-events: none !important;
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  border: 1px solid rgba(43, 179, 163, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -100%);
  margin-top: -8px;
  display: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .app-tooltip-popup,
[data-theme="light"] .uptime-tooltip-popup {
  background: rgba(255, 255, 255, 0.96);
  color: #0F172A;
  border: 1px solid rgba(43, 179, 163, 0.45);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
@keyframes pulse-down-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==========================================================================
   SERVICE RELIABILITY & UPTIME COMMAND CENTER (90-DAY SLA & SAAS MONITORING)
   ========================================================================== */
.rel-hero-banner {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.rel-banner-operational {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 78, 59, 0.45) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.rel-banner-degraded {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(120, 53, 15, 0.45) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.rel-banner-outage {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(127, 29, 29, 0.55) 100%);
  border: 1px solid rgba(239, 68, 68, 0.55);
}
[data-theme="light"] .rel-banner-operational {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #10B981;
}
#rel-hero-status-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
[data-theme="light"] .rel-banner-operational #rel-hero-status-heading {
  color: #065F46 !important;
}
[data-theme="light"] .rel-banner-degraded #rel-hero-status-heading {
  color: #92400E !important;
}
[data-theme="light"] .rel-banner-outage #rel-hero-status-heading {
  color: #991B1B !important;
}
.rel-status-orb-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rel-status-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
  z-index: 2;
}
.rel-banner-degraded .rel-status-orb {
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9);
}
.rel-banner-outage .rel-status-orb {
  background: #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.95);
}
.rel-status-orb-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: orb-radar-pulse 2s infinite ease-out;
  z-index: 1;
}
@keyframes orb-radar-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.rel-ticker-capsule {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}
.rel-ticker-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}
.rel-ticker-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.2s ease;
}

/* Operational Status Colors */
.rel-banner-operational .rel-ticker-val {
  color: #34D399; /* lighter green on dark green */
}
.rel-banner-operational .rel-ticker-label {
  color: #6EE7B7;
  opacity: 0.85;
}
[data-theme="light"] .rel-banner-operational .rel-ticker-val {
  color: #065F46 !important; /* dark green on light green */
}
[data-theme="light"] .rel-banner-operational .rel-ticker-label {
  color: #047857 !important;
}

/* Degraded Status Colors */
.rel-banner-degraded .rel-ticker-val {
  color: #FBBF24; /* lighter amber on dark amber */
}
.rel-banner-degraded .rel-ticker-label {
  color: #FCD34D;
  opacity: 0.85;
}
[data-theme="light"] .rel-banner-degraded .rel-ticker-val {
  color: #92400E !important; /* dark amber on light amber */
}
[data-theme="light"] .rel-banner-degraded .rel-ticker-label {
  color: #B45309 !important;
}

/* Outage Status Colors */
.rel-banner-outage .rel-ticker-val {
  color: #F87171; /* lighter red on dark red */
}
.rel-banner-outage .rel-ticker-label {
  color: #FCA5A5;
  opacity: 0.85;
}
[data-theme="light"] .rel-banner-outage .rel-ticker-val {
  color: #991B1B !important; /* dark red on light red */
}
[data-theme="light"] .rel-banner-outage .rel-ticker-label {
  color: #DC2626 !important;
}
.rel-kpi-card {
  background: var(--paper-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.rel-kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 179, 163, 0.4);
}
.rel-kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.rel-kpi-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 3px;
  letter-spacing: -0.01em;
}
.rel-kpi-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-light, #64748B);
}
.rel-controls-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.rel-filter-pill {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.rel-filter-pill:hover,
.rel-filter-pill.active {
  background: rgba(43, 179, 163, 0.18);
  border-color: var(--accent);
  color: var(--ink);
}
.rel-timeframe-group {
  display: inline-flex;
  align-items: center;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.rel-tf-btn {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.rel-tf-btn:hover {
  color: var(--ink);
}
.rel-tf-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(43, 179, 163, 0.35);
}

/* SERVICE RELIABILITY CARD & 90-DAY TIMELINE */
.rel-service-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rel-service-card:hover {
  border-color: rgba(43, 179, 163, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.rel-service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.rel-service-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.rel-service-endpoint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.rel-service-endpoint:hover {
  color: var(--accent);
}
.rel-type-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
}
.rel-type-saas {
  background: rgba(147, 51, 234, 0.16);
  color: #C084FC;
  border: 1px solid rgba(147, 51, 234, 0.35);
}
.rel-type-fleet {
  background: rgba(56, 189, 248, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.rel-type-api {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.rel-type-internal {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.rel-sched-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--muted);
}
.rel-assert-badge.fleet-domain-cell {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: default;
  vertical-align: middle;
}
[data-theme="light"] .rel-assert-badge.fleet-domain-cell {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.rel-assert-badge .fleet-domain-scroll-wrap {
  max-width: 174px;
  width: 100%;
}
.rel-assert-badge .fleet-domain-link {
  color: inherit;
  font-size: 10.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  text-decoration: none;
  cursor: default;
}
.rel-assert-badge .fleet-domain-link:hover {
  color: inherit;
}
.rel-timeline-container {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 16px;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}
[data-theme="light"] .rel-timeline-container {
  background: rgba(226, 232, 240, 0.65);
}
.rel-timeline-seg {
  flex: 1 1 0;
  height: 16px;
  min-width: 2px;
  border-radius: 1.5px;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.rel-timeline-seg:hover {
  transform: scaleY(1.35);
  z-index: 10;
  filter: brightness(1.3);
}
.rel-timeline-seg.seg-heat-100,
.rel-timeline-seg.seg-90d-up {
  background: #10B981;
}
.rel-timeline-seg.seg-heat-99 {
  background: #34D399;
}
.rel-timeline-seg.seg-heat-95 {
  background: #EAB308;
}
.rel-timeline-seg.seg-heat-degraded,
.rel-timeline-seg.seg-90d-degraded {
  background: #F59E0B;
}
.rel-timeline-seg.seg-heat-major {
  background: #F97316;
}
.rel-timeline-seg.seg-heat-outage,
.rel-timeline-seg.seg-90d-down {
  background: #EF4444;
}
.rel-timeline-seg.seg-90d-maint {
  background: #64748B;
}

[data-theme="light"] .rel-timeline-seg.seg-heat-100,
[data-theme="light"] .rel-timeline-seg.seg-90d-up {
  background: #059669;
}
[data-theme="light"] .rel-timeline-seg.seg-heat-99 {
  background: #10B981;
}
[data-theme="light"] .rel-timeline-seg.seg-heat-95 {
  background: #D97706;
}
[data-theme="light"] .rel-timeline-seg.seg-heat-degraded,
[data-theme="light"] .rel-timeline-seg.seg-90d-degraded {
  background: #B45309;
}
[data-theme="light"] .rel-timeline-seg.seg-heat-major {
  background: #C2410C;
}
[data-theme="light"] .rel-timeline-seg.seg-heat-outage,
[data-theme="light"] .rel-timeline-seg.seg-90d-down {
  background: #DC2626;
}
[data-theme="light"] .rel-timeline-seg.seg-90d-maint {
  background: #94A3B8;
}
.rel-timeline-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.rel-timeline-stat {
  color: var(--ink);
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CODE SAST STUDIO - TRI-PANEL SPATIAL BENTO ARCHITECTURE & HARDWARE DROPZONE
   ========================================================================== */
.sast-tri-panel-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.05fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .sast-tri-panel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sast-panel {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sast-panel-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.sast-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.sast-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(43, 179, 163, 0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(43, 179, 163, 0.4);
}

.sast-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sast-panel-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.sast-panel-ingest {
  display: flex;
  flex-direction: column;
}

.sast-ingest-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Accessible standard hidden file input for cross-browser file picking */
.sast-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Dropzone styling */
.sast-dropzone {
  border: 2px dashed var(--rule);
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(15, 23, 42, 0.35);
  user-select: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

[data-theme="light"] .sast-dropzone {
  background: rgba(241, 245, 249, 0.5);
}

.sast-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto 0;
  pointer-events: none !important;
}

.sast-dropzone-inner * {
  pointer-events: none !important;
}

.sast-dropzone:hover {
  border-color: rgba(43, 179, 163, 0.6);
  background: rgba(43, 179, 163, 0.04);
}

.sast-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(43, 179, 163, 0.12);
  box-shadow: 0 0 24px rgba(43, 179, 163, 0.25);
  transform: scale(1.01);
}

.sast-upload-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(43, 179, 163, 0.1);
  border: 1px solid rgba(43, 179, 163, 0.25);
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sast-upload-icon {
  font-size: 24px;
  color: var(--accent);
}

.sast-dropzone.dragover .sast-upload-icon-ring {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--accent);
}

.sast-dropzone-primary-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.sast-dropzone-subtext {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.sast-browse-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.sast-dropzone-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sast-type-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 4px;
}

.sast-dropzone-security-note {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Staged file card */
.sast-staged-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(43, 179, 163, 0.12);
  animation: sastCardIn 0.2s ease-out;
}

#sast-staged-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Real-time upload progress card */
.sast-upload-progress-card {
  animation: sastCardIn 0.2s ease-out;
}

.sast-upload-progress-box {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(43, 179, 163, 0.15);
}

.sast-upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sast-upload-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .sast-upload-progress-track {
  background: rgba(15, 23, 42, 0.08);
}

.sast-upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2bb3a3 0%, #38bdf8 100%);
  border-radius: 4px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(43, 179, 163, 0.5);
}

/* Script Pasteboard full height */
.sast-pasteboard-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.sast-snippet-textarea {
  flex: 1;
  width: 100%;
  min-height: 250px;
  height: 100%;
  resize: none;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  box-sizing: border-box;
}

@keyframes sastCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sast-staged-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(43, 179, 163, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sast-staged-details {
  flex: 1;
  min-width: 0;
}

.sast-staged-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.sast-staged-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sast-badge-ready {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
}

.sast-remove-staged-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.sast-remove-staged-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Input with icon */
.sast-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.sast-input-with-icon .sast-input-icon {
  position: absolute;
  left: 10px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

.sast-input-with-icon input {
  padding-left: 34px !important;
}

/* Tiles checkbox stack */
.sast-tiles-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sast-tile-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sast-tile-checkbox:hover {
  border-color: rgba(43, 179, 163, 0.4);
}

.sast-tile-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.sast-tile-content {
  flex: 1;
}

.sast-tile-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sast-tile-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Preflight Checklist Card */
.sast-preflight-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.sast-preflight-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.sast-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sast-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sast-check-icon {
  font-size: 16px;
  margin-top: 1px;
}

.sast-check-icon.check {
  color: var(--accent);
}

.sast-check-icon.uncheck {
  color: var(--muted);
}

.sast-check-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.sast-check-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

/* Audit profile & summary */
.sast-profile-summary {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

[data-theme="light"] .sast-profile-summary {
  background: rgba(241, 245, 249, 0.5);
}

.sast-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.sast-summary-label {
  color: var(--muted);
  font-weight: 500;
}

.sast-summary-value {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-mono);
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Launch button */
.sast-launch-btn {
  width: 100%;
  height: 44px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sast-launch-btn:not(:disabled) {
  background: linear-gradient(135deg, #2bb3a3 0%, #1ea596 100%);
  box-shadow: 0 4px 18px rgba(43, 179, 163, 0.35);
  cursor: pointer;
}

.sast-launch-btn:not(:disabled):hover {
  box-shadow: 0 6px 24px rgba(43, 179, 163, 0.5);
  transform: translateY(-1px);
}

.sast-launch-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(43, 179, 163, 0.3);
}

.sast-launch-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(40%);
}
