/* MintDS 1.0.0 Dark Theme Design Baseline for DevOps AI Bot Studio */
:root {
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #26354A;
  --bg-input: #090D16;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-mint: rgba(128, 195, 65, 0.4);
  
  --mint-primary: #80C341;
  --mint-hover: #92d452;
  --mint-glow: rgba(128, 195, 65, 0.25);
  
  --text-main: #F1F5F9;
  --text-bright: #FFFFFF;
  --text-muted: #94A3B8;
  --text-secondary: #CBD5E1;
  
  --danger-red: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --warning-amber: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --cyan-accent: #38BDF8;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* MintDS Light Theme (White Mode) Baseline */
body.light-theme, [data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-input: #FFFFFF;
  --border-card: #E2E8F0;
  --border-mint: rgba(128, 195, 65, 0.5);

  --mint-primary: #5E9929;
  --mint-hover: #6EAB34;
  --mint-glow: rgba(128, 195, 65, 0.15);

  --text-main: #0F172A;
  --text-bright: #020617;
  --text-muted: #64748B;
  --text-secondary: #334155;

  --danger-red: #DC2626;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --warning-amber: #D97706;
  --warning-bg: rgba(245, 158, 11, 0.08);
  --cyan-accent: #0284C7;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
}

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

html, body.mint-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Header Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 10px 16px;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  row-gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-tag {
  background: rgba(128, 195, 65, 0.15);
  border: 1px solid var(--border-mint);
  color: var(--mint-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.bot-logo-icon {
  font-size: 26px;
  background: rgba(128, 195, 65, 0.15);
  border: 1px solid var(--border-mint);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--mint-glow);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 3px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--bg-card-hover);
  color: var(--mint-primary);
  border: 1px solid var(--border-mint);
  box-shadow: 0 0 10px var(--mint-glow);
}

.nav-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Telemetry Stat Cards Severity Visual Weight & Color Mapping */
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: all 0.25s ease;
}

/* Receding Zero Cards */
.stat-card.is-zero {
  opacity: 0.55;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.4);
}
.stat-card.is-zero .stat-val { color: var(--text-muted); }

/* Healthy Green */
.stat-card.running { border-color: rgba(16, 185, 129, 0.3); }
.stat-card.running .stat-val { color: #34D399; }

/* Amber Warning / Pending / ImagePull */
.stat-card.pending, .stat-card.imagepull { border-color: rgba(245, 158, 11, 0.3); }
.stat-card.pending .stat-val, .stat-card.imagepull .stat-val { color: #FBBF24; }

/* Red Crash / OOM (Standard SRE Severity) */
.stat-card.crashloop { border-color: rgba(239, 68, 68, 0.3); }
.stat-card.crashloop .stat-val { color: #F87171; }

/* Navigation More Dropdown */
.nav-more-dropdown {
  position: relative;
  display: inline-block;
}

.more-menu-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 200;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.more-menu-content.hidden {
  display: none;
}

.more-menu-item {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.more-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Bolder Highlight for Non-Zero Failure Cards */
.stat-card.has-active-faults {
  opacity: 1 !important;
  border: 2px solid #EF4444 !important;
  background: rgba(239, 68, 68, 0.14) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

.stat-val { font-family: var(--font-heading); font-size: 18px; font-weight: 700; display: block; }
.stat-lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; }

/* Single Unified SRE Diagnostic Report Card */
.sre-unified-report-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-mint);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.unified-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 8px;
}

.unified-card-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unified-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.msg-timestamp {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* Prominent Collapsible Investigation Trail */
.investigation-trail-card {
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.trail-summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan-accent);
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38BDF8;
  transition: all 0.2s ease;
}

.trail-summary:hover {
  background: rgba(56, 189, 248, 0.18);
}

.trail-chevron-lg {
  font-size: 12px;
  color: var(--cyan-accent);
  transition: transform 0.25s ease;
}

.investigation-trail-card[open] .trail-chevron-lg {
  transform: rotate(180deg);
}

.trail-list {
  padding: 10px 14px 10px 32px;
  margin: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.trail-list li { margin-bottom: 4px; }

/* Unified Report Action Buttons Bar */
.unified-report-actions {
  display: flex;
  align-items: center;
  gap: 6px !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.btn-report-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-bright);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-report-action:hover {
  background: rgba(128, 195, 65, 0.18);
  border-color: var(--border-mint);
  color: #FFFFFF;
}

.btn-report-action.btn-save-fix {
  background: rgba(128, 195, 65, 0.15);
  border-color: rgba(128, 195, 65, 0.4);
  color: #80C341;
}

.btn-report-action.btn-save-fix:hover {
  background: rgba(128, 195, 65, 0.3);
  color: #FFFFFF;
}

/* ==================================================================== */
/* BOTKUBE-STYLE CHATOPS ALERT CARDS & THREADING */
/* ==================================================================== */
.botkube-alert-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #EF4444; /* Critical alert accent */
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.botkube-alert-card.warning-level {
  border-left-color: #FBBF24;
}

.botkube-alert-card.healthy-level {
  border-left-color: #34D399;
}

/* Header Row First */
.botkube-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.botkube-target-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.botkube-pod-name { color: #FFFFFF; font-weight: 700; }
.botkube-ns-tag { color: var(--text-muted); font-size: 11px; font-weight: 500; }

/* Collapsed Headline View */
.botkube-headline-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-bright);
}

.botkube-headline-text {
  margin-bottom: 2px;
}

/* Show Full Report Toggle Button */
.btn-toggle-expand {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  font-size: 10px !important;
  font-weight: 600;
  padding: 2px 7px !important;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
  transition: all 0.2s ease;
}

.btn-toggle-expand:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #FFFFFF;
}

/* Two Action Button Styles */
.botkube-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px !important;
  margin-top: 4px !important;
  padding-top: 4px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.action-section-hdr {
  width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 2px !important;
  letter-spacing: 0.3px;
}

.action-section-hdr.safe-hdr {
  color: #94A3B8;
  margin-top: 0 !important;
}

.action-section-hdr.mutating-hdr {
  color: #FBBF24;
  margin-top: 4px !important;
}

/* Style 1: Safe Read-Only Diagnostic Button */
.btn-diag-safe {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 11px !important;
  font-weight: 600;
  padding: 4px 8px !important;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.btn-diag-safe:hover {
  background: rgba(16, 185, 129, 0.28);
  color: #FFFFFF;
}

/* Style 2: Mutating kubectl Command Button */
.btn-cmd-mutating {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-size: 11px !important;
  font-weight: 600;
  padding: 4px 8px !important;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.btn-cmd-mutating:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #FFFFFF;
}

/* Threaded Follow-Up Container */
.threaded-reply-container {
  border-left: 3px solid var(--mint-primary);
  background: rgba(128, 195, 65, 0.04);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-top: 10px;
  margin-left: 12px;
}

.threaded-user-hdr {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mint-primary);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.threaded-bot-response {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.status-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.healthy {
  background: var(--mint-primary);
  box-shadow: 0 0 8px var(--mint-primary);
}

.provider-badge {
  background: rgba(128, 195, 65, 0.12);
  border: 1px solid var(--border-mint);
  color: var(--mint-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-center-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-kb-btn {
  background: rgba(128, 195, 65, 0.12);
  border: 1px solid var(--border-mint);
  color: var(--mint-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.nav-kb-btn:hover {
  background: rgba(128, 195, 65, 0.22);
  border-color: var(--mint-primary);
  box-shadow: 0 0 12px var(--mint-glow);
  color: #FFFFFF;
}

.nav-pill-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  color: #FFFFFF;
}

/* App Container Layout */
.app-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.tab-content {
  display: none;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

/* Tab 1: Chat Workspace (Full-Width Diagnostic Stream + Top Command Bar + Collapsible Telemetry Drawer) */
.chat-workspace {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden;
  position: relative !important;
}

/* Target Command Bar (Unified Top Context Ribbon - Un-congested) */
.target-command-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 14px;
  flex-wrap: wrap;
}

.target-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.target-field-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 12px;
  transition: all 0.2s ease;
}

.target-field-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.target-field-item:focus-within {
  border-color: var(--mint-primary);
  box-shadow: 0 0 8px var(--mint-glow);
}

.target-field-icon {
  font-size: 13px;
  opacity: 0.9;
}

.target-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.target-select-clean {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 180px;
}

.target-select-clean option {
  background: #0F172A;
  color: #F1F5F9;
}

.target-select-clean.pod-select {
  max-width: 240px;
}

.pod-item-wrap {
  gap: 8px;
}

.target-search-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 10px;
  width: 170px;
  transition: all 0.2s ease;
}

.target-search-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.target-search-item:focus-within {
  border-color: var(--mint-primary);
  box-shadow: 0 0 8px var(--mint-glow);
  width: 210px;
}

.target-search-icon {
  font-size: 12px;
  opacity: 0.7;
  margin-right: 6px;
}

.target-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
}

.target-search-input::placeholder {
  color: #64748B;
}

.btn-analyze-action {
  background: var(--mint-primary);
  color: #0F172A;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(128, 195, 65, 0.3);
}

.btn-analyze-action:hover {
  background: var(--mint-hover);
  box-shadow: 0 0 14px var(--mint-glow);
  transform: translateY(-1px);
}

.target-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.command-context-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.context-target-title {
  color: #E2E8F0;
  font-weight: 600;
}

.context-divider {
  color: rgba(255, 255, 255, 0.2);
}

.chat-right-panel.telemetry-drawer {
  position: absolute !important;
  top: 0 !important;
  right: -340px !important;
  width: 320px !important;
  height: 100% !important;
  background: #0F172A !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6) !important;
  z-index: 200 !important;
  transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto !important;
  padding: 0 10px 14px 10px;
}

.chat-right-panel.telemetry-drawer.open {
  right: 0 !important;
}

.summary-stats-grid.vertical-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  color: var(--text-bright);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-main-window {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-window-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-card);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-lg { font-size: 24px; }

.chat-header-info h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--text-bright);
}

.chat-sub-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.chat-messages-container {
  flex: 1;
  min-height: 0;
  padding: 14px 16px !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 10px !important;
  max-height: none !important;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 98%;
}

/* Bot replies stretch across the chat pane (status tables, findings, code). */
.message.bot-msg,
.message.system-msg {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.message.bot-msg .msg-content,
.message.system-msg .msg-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.message.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 72%;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(128, 195, 65, 0.15);
  border: 1px solid var(--border-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.user-msg .msg-avatar {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.msg-content {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-main);
}

.user-msg .msg-content {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-bright);
}

.quick-prompts-bar {
  padding: 8px 14px;
  border-top: 1px solid var(--border-card);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  background: rgba(128, 195, 65, 0.15);
  border-color: var(--border-mint);
  color: var(--mint-primary);
}

.chat-input-wrapper {
  padding: 16px 20px;
  background: #0F172A;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.chat-input-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.chat-input-inner:focus-within {
  border-color: var(--mint-primary, #80C341);
  box-shadow: 0 0 0 3px rgba(128, 195, 65, 0.2), 0 4px 20px rgba(0, 0, 0, 0.35);
  background: #1e293be6;
}

.chat-input-icon {
  font-size: 18px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  user-select: none;
}

.chat-input-inner input {
  flex: 1;
  background: transparent;
  border: none;
  color: #F1F5F9;
  font-family: var(--font-sans, inherit);
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
  min-width: 0;
}

.chat-input-inner input::placeholder {
  color: #64748B;
  font-size: 14px;
}

.btn-send-mint {
  background: var(--mint-primary, #80C341);
  color: #0F172A;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(128, 195, 65, 0.25);
}

.btn-send-mint:hover {
  background: #93d84f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(128, 195, 65, 0.4);
}

.btn-send-mint:active {
  transform: translateY(0);
}

.btn-send-mint .send-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.btn-send-mint:hover .send-icon {
  transform: translateX(2px);
}

/* Control Panel Inputs */
.control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 200px 1fr 220px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.control-panel input,
.control-panel select,
.sidebar-section input,
.sidebar-section select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.control-actions {
  display: flex;
  gap: 10px;
}

.btn-primary-mint {
  background: var(--mint-primary);
  color: #0F172A;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-mint:hover { background: var(--mint-hover); }

.btn-secondary-slate {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary-slate:hover { background: rgba(255, 255, 255, 0.1); }
.full-width { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* HUD Grid */
.hud-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
}

.card-body-text { font-size: 13.5px; line-height: 1.6; color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-mint { color: var(--mint-primary); font-weight: 500; }

/* Severity Banner */
.severity-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-left { display: flex; align-items: center; gap: 12px; }
.severity-pill { padding: 4px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 800; }
.severity-pill.critical { background: var(--danger-bg); border: 1px solid rgba(239, 68, 68, 0.5); color: #F87171; }
.severity-pill.warning { background: var(--warning-bg); border: 1px solid rgba(245, 158, 11, 0.5); color: #FBBF24; }
.pod-target-badge { font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan-accent); }
.banner-right { font-family: var(--font-mono); font-size: 12px; color: var(--mint-primary); }

/* Command Items */
.cmd-list { display: flex; flex-direction: column; gap: 10px; }
.cmd-item {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cmd-text { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-accent); word-break: break-all; }
.btn-copy-cmd {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.btn-copy-cmd:hover { background: var(--mint-primary); color: #0F172A; font-weight: 700; }

/* Raw Telemetry Code */
.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  overflow-x: auto;
  max-height: 220px;
  white-space: pre-wrap;
}

/* Empty & Loading States */
.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  min-height: 380px;
}

.empty-icon { font-size: 44px; margin-bottom: 14px; }
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(128, 195, 65, 0.2);
  border-top-color: var(--mint-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Terminal Studio */
.terminal-card { padding: 0; overflow: hidden; }
.terminal-header {
  background: #182232;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
}

.term-dots { display: flex; gap: 6px; margin-right: 12px; }
.term-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dots .dot.red { background: #EF4444; }
.term-dots .dot.yellow { background: #F59E0B; }
.term-dots .dot.green { background: #10B981; }

.terminal-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); display: flex; align-items: center; }
.term-badge { font-family: var(--font-mono); font-size: 11px; color: var(--mint-primary); }

.terminal-body {
  background: #090D16;
  padding: 20px;
  min-height: 400px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.terminal-welcome { margin-bottom: 16px; }
.term-line { margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.term-prompt { color: var(--mint-primary); font-weight: 700; user-select: none; }
.term-code { color: var(--cyan-accent); }

.terminal-footer {
  background: #182232;
  padding: 14px 18px;
  border-top: 1px solid var(--border-card);
}

.term-input-line { display: flex; align-items: center; gap: 12px; }
.term-input-line input {
  flex: 1;
  background: #090D16;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

/* Settings Form */
.settings-workspace { display: flex; justify-content: center; padding-top: 20px; }
.max-w-700 { max-width: 700px; width: 100%; }
.settings-form { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-card);
}

/* ==================================================================== */
/* UI ENHANCEMENTS: REPORT SECTIONS, CODE BLOCKS, BADGES & STICKY BAR   */
/* ==================================================================== */

/* Provider Badge Tooltip */
.provider-badge {
  cursor: help;
  position: relative;
}

.pod-select-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

/* Status Pill Badges */
.status-pill-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status-pill-badge.running {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill-badge.crashloop,
.status-pill-badge.error,
.status-pill-badge.oomkilled {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-pill-badge.pending,
.status-pill-badge.failedscheduling {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-pill-badge.imagepull,
.status-pill-badge.containercreating {
  background: rgba(139, 92, 246, 0.15);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.status-pill-badge.unknown {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Scenario Presets Active Count Pills */
.preset-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.preset-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.preset-status-pill.active {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.preset-status-pill.idle {
  background: rgba(148, 163, 184, 0.1);
  color: #64748B;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Sticky Chat Header Bar */
.chat-window-header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
}

.chat-title-lg {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
}

.context-bar-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.context-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.context-chip strong {
  color: var(--text-bright);
}

/* Stream Sections Target Container (Single Source of Truth for Inter-Block Spacing) */
.stream-sections-target {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* Distinct Report Section Cards */
.report-section-card {
  border-radius: 6px;
  padding: 8px 12px !important;
  margin: 0 !important;
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid var(--mint-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.report-section-card .section-body {
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.report-section-card .section-body p,
.report-section-card .section-body div,
.report-section-card .section-body ul,
.report-section-card .section-body li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  font-size: 13px !important;
}

.section-fix .section-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* 1. Summary Section: Mint Green (#80C341) */
.report-section-card.section-summary {
  border-left-color: #80C341;
  background: rgba(128, 195, 65, 0.04);
}
.report-section-card.section-summary .section-title-hdr {
  color: #80C341;
}

/* 2. Root Cause Section: Amber (#F59E0B) */
.report-section-card.section-rootcause {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.04);
}
.report-section-card.section-rootcause .section-title-hdr {
  color: #F59E0B;
}

/* 3. Fix Section: Cyan (#38BDF8) */
.report-section-card.section-fix {
  border-left-color: #38BDF8;
  background: rgba(56, 189, 248, 0.04);
}
.report-section-card.section-fix .section-title-hdr {
  color: #38BDF8;
}

/* 4. Prevention Section: Teal (#38BDF8) */
.report-section-card.section-prevention {
  border-left-color: #38BDF8;
  background: rgba(56, 189, 248, 0.04);
}
.report-section-card.section-prevention .section-title-hdr {
  color: #38BDF8;
}

.section-title-hdr {
  font-size: 13.5px !important;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 3px !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

/* Ultra-Compact Code Step Rows (~32px height) */
.compact-code-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 3px 8px !important;
  margin: 0 !important;
  overflow: hidden;
  min-height: 30px;
}

.step-tag {
  font-size: 10px !important;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1px 5px !important;
  border-radius: 3px;
  flex-shrink: 0;
}

.compact-cmd-code {
  font-family: var(--font-mono);
  font-size: 12px !important;
  color: #38BDF8;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-mini {
  background: rgba(128, 195, 65, 0.12);
  border: 1px solid rgba(128, 195, 65, 0.35);
  color: #80C341;
  font-size: 10px !important;
  font-weight: 600;
  padding: 2px 6px !important;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-copy-mini:hover {
  background: rgba(128, 195, 65, 0.28);
  color: #FFFFFF;
}

/* Sequential Code Block Cards (Legacy Fallback) */
.step-code-card {
  position: relative;
  background: #090D16;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  margin: 4px 0;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.step-code-card:nth-child(even) {
  background: #111927;
  border-color: rgba(56, 189, 248, 0.35);
}

.step-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-num-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.code-block-text {
  margin: 0;
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

/* Differentiated Suggestion Chips */
.prompt-chip.chip-explanatory {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}
.prompt-chip.chip-explanatory:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38BDF8;
}

.prompt-chip.chip-action {
  background: rgba(128, 195, 65, 0.15);
  border: 1px solid rgba(128, 195, 65, 0.4);
  color: #80C341;
}
.prompt-chip.chip-action:hover {
  background: rgba(128, 195, 65, 0.28);
  border-color: #92d452;
}

/* Neutral Not Selected Pod Status Badge */
.status-pill-badge.not-selected {
  background: rgba(148, 163, 184, 0.08);
  color: #64748B;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Live Cluster Telemetry Summary Banner */
.cluster-summary-banner {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-mint);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.summary-banner-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.summary-hdr-icon { font-size: 22px; }
.summary-sub-txt { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.summary-sub-txt code { color: var(--mint-primary); }

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.stat-card.running { border-color: rgba(16, 185, 129, 0.3); }
.stat-card.running .stat-val { color: #34D399; }

.stat-card.crashloop { border-color: rgba(239, 68, 68, 0.3); }
.stat-card.crashloop .stat-val { color: #F87171; }

.stat-card.pending { border-color: rgba(245, 158, 11, 0.3); }
.stat-card.pending .stat-val { color: #FBBF24; }

.stat-card.imagepull { border-color: rgba(139, 92, 246, 0.3); }
.stat-card.imagepull .stat-val { color: #C084FC; }

.stat-val { font-family: var(--font-heading); font-size: 18px; font-weight: 700; display: block; }
.stat-lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; }

.summary-banner-ftr {
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255,255,255,0.08);
  padding-top: 10px;
}

/* Confidence / Source Badge */
.confidence-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.confidence-badge.rag {
  background: rgba(128, 195, 65, 0.15);
  color: #80C341;
  border: 1px solid rgba(128, 195, 65, 0.4);
}

.confidence-badge.heuristic {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.confidence-badge.llm {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.confidence-badge.clarify {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.confidence-badge.db {
  background: rgba(128, 195, 65, 0.2);
  color: #A3E635;
  border: 1px solid rgba(128, 195, 65, 0.5);
  box-shadow: 0 0 10px rgba(128, 195, 65, 0.2);
}

/* Collapsible Investigation Trail */
.investigation-trail-card {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.trail-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-accent);
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: rgba(56, 189, 248, 0.05);
}

.trail-summary:hover { background: rgba(56, 189, 248, 0.1); }
.trail-arrow { font-size: 10px; transition: transform 0.2s ease; }
.investigation-trail-card[open] .trail-arrow { transform: rotate(180deg); }

.trail-list {
  padding: 10px 14px 10px 32px;
  margin: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.trail-list li { margin-bottom: 4px; }

/* Preset Card Hover Tooltips */
.preset-btn {
  position: relative;
}

.preset-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: -36px;
  z-index: 200;
  background: #0F172A;
  border: 1px solid var(--border-mint);
  color: var(--text-bright);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* Clarification Options Quick Reply Pills */
.clarification-options-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

.clarify-btn {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #E9D5FF;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.clarify-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #C084FC;
  color: #FFFFFF;
}

/* MintDS namespace-choice clarification chips */
.clarification-chip-card {
  background: #1E293B;
  border: 1px solid rgba(128, 195, 65, 0.35);
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-family: 'Lato', var(--font-sans);
}

.clarification-chip-hint {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 8px;
  font-weight: 700;
}

.clarification-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clarification-chip {
  background: rgba(128, 195, 65, 0.08);
  border: 1px solid rgba(128, 195, 65, 0.4);
  color: #F1F5F9;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Lato', var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.clarification-chip:hover {
  background: rgba(128, 195, 65, 0.18);
  border-color: #80C341;
  color: #80C341;
}

body.light-theme .clarification-chip-card {
  background: #FFFFFF;
  border-color: rgba(128, 195, 65, 0.45);
}

body.light-theme .clarification-chip {
  color: #0F172A;
}

/* Stop Generating Button */
.btn-stop-slate {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  cursor: pointer;
}
.btn-stop-slate:hover { background: rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   Compact SRE Diagnostic Card Enhancements (MintDS Standard)
   ========================================================================== */

/* Visual Failure Flow Pipeline */
.failure-flow-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px 0 10px 0;
}

.failure-flow-title {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.failure-flow-node {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.failure-flow-node.terminal {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.failure-flow-arrow {
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
  user-select: none;
}

/* Collapsible Evidence Drawer */
.evidence-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.5);
  margin-bottom: 10px;
  overflow: hidden;
}

.evidence-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: none;
  padding: 10px 14px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.evidence-header-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #CBD5E1;
}

.evidence-drawer-body {
  display: none;
  background: #020617;
  padding: 12px 14px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12.5px;
  color: #FCA5A5;
  max-height: 320px;
  overflow-y: auto;
  line-height: 1.55;
  white-space: pre-wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: max-height 0.3s ease;
}

.evidence-drawer-body.open {
  display: block;
}

.evidence-drawer-body.expanded {
  max-height: 80vh;
}

.evidence-log-snippet {
  color: #FCA5A5;
  font-family: Consolas, Monaco, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.evidence-log-full {
  color: #CBD5E1;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Syntax Code Block Card with Language Header & Copy */
.code-block-card {
  margin: 8px 0;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.code-block-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.8);
  padding: 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-lang {
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-block-body {
  padding: 10px 14px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12.5px;
  color: #38BDF8;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
}

/* ==========================================================================
   Response Origin Telemetry & MintDS Donut Gauge Standard
   ========================================================================== */
.posture-hero-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.posture-hero-card:hover {
  border-color: rgba(128, 195, 65, 0.35);
}

.circular-chart {
  display: block;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.circle-mint {
  stroke: #80C341;
  filter: drop-shadow(0 0 6px rgba(128, 195, 65, 0.45));
}

.origin-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
  box-sizing: border-box;
  width: 100%;
}

.origin-flow-pill.origin-db {
  background: rgba(128, 195, 65, 0.12);
  border: 1px solid rgba(128, 195, 65, 0.35);
  color: #E2E8F0;
}

.origin-flow-pill.origin-db strong {
  color: #80C341;
}

.origin-flow-pill.origin-model {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E2E8F0;
}

.origin-flow-pill.origin-model strong {
  color: #38BDF8;
}

.origin-flow-pill.origin-heuristic {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #E2E8F0;
}

.origin-flow-pill.origin-heuristic strong {
  color: #FBBF24;
}

.origin-flow-pill.origin-prior {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #E2E8F0;
}

.origin-flow-pill.origin-prior strong {
  color: #A78BFA;
}

.origin-flow-pill.origin-circuit-breaker {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FEF3C7;
}

.origin-flow-pill.origin-circuit-breaker strong {
  color: #F59E0B;
}

/* K8sGPT CNCF Analyzer Tier 0.5 — cyan/teal deterministic */
.origin-flow-pill.origin-k8sgpt {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #CFFAFE;
}

.origin-flow-pill.origin-k8sgpt strong {
  color: #22D3EE;
}

/* Healthy Short-Circuit Tier 0 — green */
.origin-flow-pill.origin-healthy {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #D1FAE5;
}

.origin-flow-pill.origin-healthy strong {
  color: #10B981;
}

/* Suggested Fix Pending Confirmation Tier 1.5 — amber */
.origin-flow-pill.origin-suggested {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FEF3C7;
}

.origin-flow-pill.origin-suggested strong {
  color: #F59E0B;
}

/* Tier-Hit Distribution Strip */
.tier-distribution-strip {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 11px;
}

.tier-dist-title {
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tier-dist-bar-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}

.tier-dist-bar-seg {
  height: 100%;
  transition: width 0.4s ease;
}

.tier-dist-bar-seg.seg-healthy   { background: #10B981; }
.tier-dist-bar-seg.seg-workload  { background: #6366F1; }
.tier-dist-bar-seg.seg-db        { background: #80C341; }
.tier-dist-bar-seg.seg-k8sgpt    { background: #22D3EE; }
.tier-dist-bar-seg.seg-heuristic { background: #94A3B8; }
.tier-dist-bar-seg.seg-prior     { background: #F59E0B; }
.tier-dist-bar-seg.seg-gemini    { background: #38BDF8; }

.tier-dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.tier-dist-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #CBD5E1;
  font-size: 10px;
  white-space: nowrap;
}

.tier-dist-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-free-badge {
  display: inline-block;
  background: rgba(128, 195, 65, 0.15);
  border: 1px solid rgba(128, 195, 65, 0.3);
  color: #80C341;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
}

/* Circuit Breaker Warning Banner */
.circuit-breaker-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 16px 4px 16px;
  color: #FEF3C7;
  font-size: 12px;
  line-height: 1.4;
  animation: fadeIn 0.25s ease-in-out;
}

.circuit-breaker-banner.hidden {
  display: none !important;
}

.circuit-breaker-banner .cb-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.circuit-breaker-banner .cb-text strong {
  color: #FBBF24;
}

/* SRE Feedback Buttons */
.btn-feedback-pos {
  transition: all 0.2s ease;
}

.btn-feedback-pos:hover {
  background: rgba(128, 195, 65, 0.2) !important;
  border-color: #80C341 !important;
}

.btn-feedback-neg {
  transition: all 0.2s ease;
}

.btn-feedback-neg:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #EF4444 !important;
}

/* Knowledge Tier Badges */
.knowledge-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.knowledge-tier-badge.badge-verified {
  background: rgba(128, 195, 65, 0.15);
  border: 1px solid rgba(128, 195, 65, 0.4);
  color: #80C341;
}

.knowledge-tier-badge.badge-unverified {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.knowledge-tier-badge.badge-stale {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #FB923C;
}

.knowledge-tier-badge.badge-deprecated {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
}

/* ==========================================================================
   Search Filters for Namespace & Target Pod (MintDS Standard)
   ========================================================================== */
.search-filter-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.search-filter-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.filter-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  padding: 6px 26px 6px 28px !important;
  font-size: 11.5px !important;
  color: #F1F5F9 !important;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.filter-search-input::placeholder {
  color: #64748B;
  font-size: 11.5px;
}

.filter-search-input:focus {
  border-color: #80C341 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 0 0 2px rgba(128, 195, 65, 0.18) !important;
}

.clear-filter-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
  line-height: 1;
}

.clear-filter-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.clear-filter-btn.hidden {
  display: none !important;
}

/* Portability & Cross-Tenant Badges (v1.6.6) */
.badge-portability {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.03em;
}
.badge-portability.generic {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}
.badge-portability.client-specific {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}
.badge-cross-tenant {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
}
.tenant-pill {
  display: inline-block;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 5px;
  color: #CBD5E1;
  font-size: 9.5px;
  font-family: 'SF Mono', Menlo, monospace;
}

/* =========================================================================
   Confirm-Before-Escalate Gate (Suggested Fix Interstitial & Inline Feedback)
   ========================================================================= */
.suggested-fix-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

.suggested-fix-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.suggested-fix-banner-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FBBF24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.suggested-fix-pill {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
}

.suggested-fix-banner-desc {
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 10px;
}

.suggested-fix-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-suggested-confirm {
  background: #80C341;
  color: #020617;
  font-weight: 700;
  font-size: 11.5px;
  border-radius: 5px;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(128, 195, 65, 0.3);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-suggested-confirm:hover {
  background: #90D351;
  transform: translateY(-1px);
}

.btn-suggested-deepdive {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  font-weight: 600;
  font-size: 11.5px;
  border-radius: 5px;
  padding: 6px 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-suggested-deepdive:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38BDF8;
}

.inline-feedback-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* =========================================================================
   Knowledge Base Filtering & High-Density Accordion Styling
   ========================================================================= */
.kb-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kb-pill:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.kb-pill.active {
  background: rgba(128, 195, 65, 0.15);
  color: #80C341;
  border-color: rgba(128, 195, 65, 0.4);
}

.kb-accordion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.kb-accordion-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.kb-accordion-card.healthy-card {
  background: rgba(16, 185, 129, 0.04);
}

.kb-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  border-radius: 8px;
  gap: 12px;
}

.kb-accordion-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.kb-signature-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.kb-signature-text {
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.kb-accordion-body {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0A0F1D;
  border-radius: 0 0 8px 8px;
}

/* Knowledge Base On-Demand Modal Backdrop & Dialog */
.knowledge-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.knowledge-modal-backdrop.hidden {
  display: none !important;
}

.knowledge-modal-dialog {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.knowledge-modal-header {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.knowledge-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 16px;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: #EF4444;
}

/* ====================================================================
   Robusta-Style Single-Narrative Report Card Layout
   ==================================================================== */
.robusta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 4px 0 12px 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  position: relative;
}

/* 1. Headline Header Row */
.robusta-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-card);
  flex-wrap: wrap;
}

.robusta-headline-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-bright);
  flex-wrap: wrap;
}

.robusta-pod-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-bright);
}

.robusta-sep {
  color: var(--text-muted);
  font-weight: 700;
}

.robusta-ns-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.robusta-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.robusta-status-badge.healthy {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}
.robusta-status-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.3);
}

.robusta-restart-badge,
.robusta-workload-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.robusta-headline-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.robusta-timestamp {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.robusta-cause-headline {
  margin: 6px 0 10px 0;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #EF4444;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.robusta-cause-headline.healthy {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  border-left-color: #10B981;
}

.robusta-cause-icon {
  font-size: 15px;
  line-height: 1;
}

.robusta-cause-text {
  font-size: 13.5px;
  color: #FCA5A5;
  font-weight: 600;
}
.robusta-cause-headline.healthy .robusta-cause-text {
  color: #34D399;
}
.robusta-cause-text strong {
  color: #FFFFFF;
}

/* Action Prose & Step Labels */
.robusta-action-prose {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 8px;
}
.robusta-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

/* Action Buttons Container & Hero Execute */
.robusta-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
  flex-wrap: wrap;
}

.btn-execute-solution-hero {
  background: var(--mint-primary);
  color: #020617;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(128, 195, 65, 0.3);
  transition: all 0.2s ease;
}
.btn-execute-solution-hero:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Drawer Indicators and Badges */
.evidence-view-indicator {
  font-size: 11.5px;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.evidence-view-indicator strong {
  color: #F1F5F9;
  font-weight: 700;
}

.evidence-line-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  color: #94A3B8;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-log-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 6px;
}
.audit-log-pre {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.6;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 4px;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Markdown Text Rendering Classes */
.md-h3 { color: var(--text-bright); font-size: 13.5px; margin: 6px 0 3px 0; font-weight: 700; }
.md-h4 { color: var(--text-secondary); font-size: 12.5px; margin: 5px 0 2px 0; font-weight: 600; }
.md-bold { color: var(--text-bright); font-weight: 700; }
.md-inline-code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: #38bdf8;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.md-bullet-item { display: flex; align-items: flex-start; gap: 6px; margin: 3px 0; }
.md-bullet-dot { color: var(--mint-primary); font-size: 10px; margin-top: 2px; }
.md-bullet-text { color: var(--text-secondary); line-height: 1.5; }
.md-num-item { margin: 5px 0 2px 0; font-weight: 600; color: var(--text-main); }
.md-num-badge { color: var(--cyan-accent); font-size: 11px; margin-right: 4px; font-weight: 700; }
/* Codemint-style simple 2-column status digest table — full chat width */
.md-status-table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 0.92rem;
  table-layout: fixed;
}
.md-status-table th,
.md-status-table td {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.md-status-table th[scope="row"],
.md-status-table thead th {
  width: 120px;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.35);
  white-space: nowrap;
}
.md-status-table td {
  color: var(--text-secondary);
  word-break: break-word;
}
body.light-theme .md-status-table th,
body.light-theme .md-status-table td {
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-theme .md-status-table th[scope="row"],
body.light-theme .md-status-table thead th {
  background: rgba(128, 195, 65, 0.08);
}

/* Infra Scheduler Card */
.infra-scheduler-card {
  margin-bottom: 12px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 12px 14px;
}
.infra-scheduler-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.infra-scheduler-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F59E0B;
  font-size: 13px;
  font-weight: 700;
}
.infra-scheduler-status {
  font-size: 11px;
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.infra-scheduler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11.5px;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.infra-scheduler-label {
  color: #94A3B8;
}
.infra-scheduler-grid strong {
  color: #F1F5F9;
}
.infra-scheduler-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.infra-scheduler-note {
  font-size: 11.5px;
  color: #CBD5E1;
}

/* Prominent Origin Header Badge */
.origin-header-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.origin-header-badge.origin-db {
  background: rgba(128, 195, 65, 0.16);
  border: 1px solid rgba(128, 195, 65, 0.4);
  color: #80C341;
}
.origin-header-badge.origin-model {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}
.origin-header-badge.origin-prior {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #A78BFA;
}
.origin-header-badge.origin-heuristic {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}
.origin-header-badge.origin-k8sgpt {
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #22D3EE;
}
.origin-header-badge.origin-healthy {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}
.origin-header-badge.origin-suggested {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
}
.origin-header-badge.origin-cb {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
}

/* Structured Technical Analysis & Probe Audit Panel */
.tech-analysis-panel {
  margin: 12px 0 14px 0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
}

.tech-analysis-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-phases-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-phase-item {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #38BDF8;
  border-radius: 6px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.tech-phase-item.phase-1 {
  border-left-color: #EF4444; /* Phase 1 Exit Code / Crash State: red/coral */
}

.tech-phase-item.phase-2 {
  border-left-color: #F59E0B; /* Phase 2 Log Signatures: amber */
}

.tech-phase-item.phase-3 {
  border-left-color: #38BDF8; /* Phase 3 Probes: cyan */
}

.tech-phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tech-phase-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.tech-phase-title {
  font-size: 12px;
  font-weight: 700;
  color: #F1F5F9;
}

.tech-phase-finding {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.tech-phase-finding-raw {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.6;
}

/* Compact Waterfall Checklist in Details Expander */
.waterfall-trail-box {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  white-space: normal !important;
}

.waterfall-trail-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 6px;
  white-space: normal !important;
}

.waterfall-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 10px;
  white-space: normal !important;
}

.waterfall-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #CBD5E1;
  white-space: normal !important;
}

/* 2. Root Cause Paragraph with Inline Evidence */
.robusta-prose-container {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 14px;
}

.robusta-prose-lead {
  font-weight: 500;
  margin-bottom: 8px;
}

.robusta-inline-evidence-wrap {
  margin: 10px 0;
}

.robusta-inline-evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.robusta-inline-evidence-label {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
}

.robusta-inline-evidence {
  display: block;
  margin: 4px 0 6px 0;
  padding: 8px 12px;
  background: #020617;
  color: #FCA5A5;
  border-left: 3px solid #EF4444;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 3. Ordered Unified Fix Actions List */
.robusta-fix-container {
  margin-bottom: 14px;
  background: rgba(128, 195, 65, 0.05);
  border: 1px solid rgba(128, 195, 65, 0.25);
  border-left: 3px solid var(--mint-primary);
  border-radius: 6px;
  padding: 12px 14px;
}

.robusta-fix-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--mint-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.robusta-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.robusta-action-step {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.robusta-cmd-snippet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 6px 10px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38BDF8;
  gap: 8px;
}

.robusta-cmd-snippet code {
  white-space: pre-wrap;
  word-break: break-all;
  color: #38BDF8;
}

/* 4. Action Buttons & Feedback Row */
.robusta-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 5. Trailing Source Attribution Note */
.robusta-attribution-line {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 6. Collapsed Show Details Expander */
.robusta-details-expander {
  margin-top: 12px;
  border-top: 1px dashed var(--border-card);
  padding-top: 8px;
}

.robusta-details-btn {
  background: transparent;
  border: none;
  color: var(--cyan-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}
.robusta-details-btn:hover {
  text-decoration: underline;
}

.robusta-details-body {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 6px;
  border: 1px solid var(--border-card);
  white-space: normal !important;
  font-family: inherit;
  color: inherit;
  max-height: none !important;
  overflow: visible !important;
}
.robusta-details-body.open {
  display: block;
}

.robusta-logs-section {
  display: block;
  white-space: normal !important;
  margin-bottom: 10px;
  border: none !important;
  max-height: none !important;
}

.robusta-audit-section {
  white-space: normal !important;
}

/* ====================================================================
   Light Theme Specific Component Overrides
   ==================================================================== */
body.light-theme .navbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.light-theme .brand-title {
  color: #0F172A;
}
body.light-theme .brand-subtitle {
  color: #64748B;
}
body.light-theme .sidebar-left {
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
}

/* 1. Top Ribbon & Command Context Bar */
body.light-theme .chat-window-header.sticky-header,
body.light-theme .chat-window-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
body.light-theme .target-command-bar {
  background: transparent !important;
}
body.light-theme .target-field-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
body.light-theme .target-field-item:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}
body.light-theme .target-field-label {
  color: #64748B !important;
}
body.light-theme .target-select-clean {
  color: #0F172A !important;
}
body.light-theme .target-select-clean option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}
body.light-theme .target-search-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme .target-search-input {
  background: transparent !important;
  color: #0F172A !important;
}
body.light-theme .target-search-input::placeholder {
  color: #94A3B8 !important;
}
body.light-theme .btn-secondary-slate {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}
body.light-theme .btn-secondary-slate:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}
body.light-theme .status-pill-badge.not-selected {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
}

/* 2. Welcome Banner */
.welcome-banner-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
}
.welcome-banner-title {
  color: #80C341;
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 700;
}
.welcome-banner-text {
  margin: 0;
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.5;
}
body.light-theme .welcome-banner-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.light-theme .welcome-banner-text {
  color: #475569 !important;
}

/* 3. Code Blocks & In-line Evidence */
body.light-theme .code-block-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
body.light-theme .code-block-card-header {
  background: #F1F5F9 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
body.light-theme .code-block-lang {
  color: #0284C7 !important;
}
body.light-theme .code-block-body {
  background: #F8FAFC !important;
  color: #0F172A !important;
}
body.light-theme .robusta-cmd-snippet {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
body.light-theme .robusta-cmd-snippet code {
  color: #0F172A !important;
}
body.light-theme .robusta-inline-evidence {
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  border-left: 3px solid #DC2626 !important;
  color: #991B1B !important;
}
body.light-theme .robusta-inline-evidence-label {
  color: #64748B !important;
}
body.light-theme .robusta-fix-container {
  background: rgba(128, 195, 65, 0.08) !important;
  border: 1px solid rgba(128, 195, 65, 0.35) !important;
  border-left: 3px solid var(--mint-primary) !important;
}

/* 4. Details Expander Drawer */
body.light-theme .evidence-accordion {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
}
body.light-theme .evidence-header-btn {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  font-weight: 600 !important;
}
body.light-theme .evidence-header-btn:hover {
  background: #F1F5F9 !important;
  color: #020617 !important;
  border-color: #94A3B8 !important;
}
body.light-theme .evidence-drawer-body {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-top: 1px solid #CBD5E1 !important;
}
body.light-theme .robusta-details-body {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  white-space: normal !important;
  max-height: none !important;
  overflow: visible !important;
}
body.light-theme .robusta-logs-section {
  background: transparent !important;
  border: none !important;
  white-space: normal !important;
}
body.light-theme .robusta-audit-section {
  white-space: normal !important;
}
body.light-theme .evidence-log-snippet,
body.light-theme .evidence-log-full {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border: 1px solid #94A3B8 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .evidence-view-indicator {
  color: #334155 !important;
  font-weight: 500 !important;
}
body.light-theme .evidence-view-indicator strong {
  color: #0F172A !important;
  font-weight: 800 !important;
}
body.light-theme .evidence-line-badge {
  background: #E2E8F0 !important;
  color: #1E293B !important;
  font-weight: 700 !important;
  border: 1px solid #CBD5E1 !important;
}
body.light-theme .audit-log-label {
  color: #1E293B !important;
  font-weight: 700 !important;
}
body.light-theme .audit-log-pre {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}

/* 5. Action Buttons & Feedback */
body.light-theme .btn-report-action {
  background: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #0F172A !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .btn-report-action:hover {
  background: #F1F5F9 !important;
  color: #020617 !important;
  border-color: #64748B !important;
}
body.light-theme .btn-copy-mini {
  background: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #0F172A !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .btn-copy-mini:hover {
  background: #F1F5F9 !important;
  color: #020617 !important;
  border-color: #475569 !important;
}
body.light-theme .btn-feedback-pos {
  background: rgba(128, 195, 65, 0.12) !important;
  color: #2E7D32 !important;
  border-color: rgba(128, 195, 65, 0.5) !important;
  font-weight: 700 !important;
}
body.light-theme .btn-feedback-neg {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #DC2626 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  font-weight: 700 !important;
}

/* 6. Chat Input Wrapper */
body.light-theme .chat-input-wrapper {
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}
body.light-theme .chat-input-inner {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.light-theme .chat-input-inner:focus-within {
  background: #FFFFFF !important;
  border-color: var(--mint-primary, #80C341) !important;
  box-shadow: 0 0 0 3px rgba(128, 195, 65, 0.2) !important;
}
body.light-theme .chat-input-inner input {
  color: #0F172A !important;
}
body.light-theme .chat-input-inner input::placeholder {
  color: #94A3B8 !important;
}

/* 7. Slide-Over Telemetry Drawer */
body.light-theme .telemetry-drawer {
  background: #FFFFFF !important;
  border-left: 1px solid #E2E8F0 !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06);
}
body.light-theme .drawer-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
body.light-theme .drawer-header div {
  color: #0F172A !important;
}
body.light-theme .sidebar-section.posture-hero-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme .sidebar-title {
  color: #0F172A !important;
}
body.light-theme .summary-sub-txt {
  color: #64748B !important;
}
body.light-theme .stat-pill-row {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme .stat-pill-label {
  color: #64748B !important;
}
body.light-theme .stat-pill-val {
  color: #0F172A !important;
}

/* 8. Failure Flow Pipeline & Clarifications */
body.light-theme .failure-flow-container {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme .failure-flow-title {
  color: #64748B !important;
}
body.light-theme .failure-flow-node {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme .failure-flow-node.terminal {
  background: #FEF2F2 !important;
  border-color: #FECACA !important;
  color: #991B1B !important;
}
body.light-theme .clarify-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme .clarify-btn:hover {
  background: #F1F5F9 !important;
  border-color: var(--mint-primary) !important;
}

/* 9. Miscellaneous Controls */
body.light-theme .chat-container,
body.light-theme .chat-messages {
  background: #F8FAFC;
}
body.light-theme .nav-pill-btn,
body.light-theme .nav-kb-btn {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}
body.light-theme .nav-pill-btn:hover,
body.light-theme .nav-kb-btn:hover {
  background: #E2E8F0;
}
body.light-theme .status-chip,
body.light-theme .provider-badge {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
}
body.light-theme .preset-chip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}
body.light-theme .preset-chip:hover {
  background: #F1F5F9;
}
body.light-theme .hud-card,
body.light-theme .stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}
body.light-theme .knowledge-modal-content {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
body.light-theme .knowledge-modal-header {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
body.light-theme .kb-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}
body.light-theme .kb-card-header {
  color: #0F172A;
}
body.light-theme .kb-card-desc {
  color: #475569;
}
body.light-theme .kb-modal-search {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}
body.light-theme .msg-user .msg-content {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
}
body.light-theme .robusta-details-body {
  background: #FFFFFF !important;
}

/* Light Theme Overrides for Origin Header Badges */
body.light-theme .origin-header-badge.origin-db {
  background: rgba(128, 195, 65, 0.15);
  border-color: rgba(128, 195, 65, 0.5);
  color: #2E7D32;
}
body.light-theme .origin-header-badge.origin-model {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #0284C7;
}
body.light-theme .origin-header-badge.origin-prior {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  color: #6D28D9;
}
body.light-theme .origin-header-badge.origin-heuristic {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #B45309;
}
body.light-theme .origin-header-badge.origin-k8sgpt {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.5);
  color: #0E7490;
}
body.light-theme .origin-header-badge.origin-healthy {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #047857;
}
body.light-theme .origin-header-badge.origin-suggested {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #D97706;
}
body.light-theme .origin-header-badge.origin-cb {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #DC2626;
}

/* Light Theme Overrides for Origin Flow Pills */
body.light-theme .origin-flow-pill {
  color: #0F172A !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
body.light-theme .origin-flow-pill.origin-db {
  background: rgba(128, 195, 65, 0.12) !important;
  border-color: rgba(128, 195, 65, 0.4) !important;
}
body.light-theme .origin-flow-pill.origin-db strong {
  color: #2E7D32 !important;
}
body.light-theme .origin-flow-pill.origin-model {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}
body.light-theme .origin-flow-pill.origin-model strong {
  color: #0284C7 !important;
}
body.light-theme .origin-flow-pill.origin-heuristic {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
body.light-theme .origin-flow-pill.origin-heuristic strong {
  color: #B45309 !important;
}
body.light-theme .origin-flow-pill.origin-prior {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
}
body.light-theme .origin-flow-pill.origin-prior strong {
  color: #6D28D9 !important;
}
body.light-theme .origin-flow-pill.origin-k8sgpt {
  background: rgba(34, 211, 238, 0.12) !important;
  border-color: rgba(34, 211, 238, 0.4) !important;
}
body.light-theme .origin-flow-pill.origin-k8sgpt strong {
  color: #0E7490 !important;
}
body.light-theme .origin-flow-pill.origin-healthy {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}
body.light-theme .origin-flow-pill.origin-healthy strong {
  color: #047857 !important;
}

/* Light Theme Overrides for Technical Analysis & Audit Phases */
body.light-theme .tech-analysis-panel {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
body.light-theme .tech-analysis-panel-title {
  color: #0284C7 !important;
}
body.light-theme .tech-phase-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme .tech-phase-item.phase-1 {
  border-left: 3px solid #DC2626 !important;
}
body.light-theme .tech-phase-item.phase-2 {
  border-left: 3px solid #D97706 !important;
}
body.light-theme .tech-phase-item.phase-3 {
  border-left: 3px solid #0284C7 !important;
}
body.light-theme .tech-phase-badge {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}
body.light-theme .tech-phase-title {
  color: #0F172A !important;
}
body.light-theme .tech-phase-finding,
body.light-theme .tech-phase-finding-raw {
  color: #334155 !important;
}

/* Light Theme Overrides for Waterfall Trail */
body.light-theme .waterfall-trail-box {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
}
body.light-theme .waterfall-trail-title {
  color: #475569 !important;
  font-weight: 700 !important;
}
body.light-theme .waterfall-check-item {
  color: #1E293B !important;
  font-weight: 500 !important;
}

/* Light Theme Overrides for Robusta Headline & Card */
body.light-theme .robusta-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .robusta-headline-row {
  border-bottom: 1px solid #E2E8F0 !important;
}
body.light-theme .robusta-pod-title {
  color: #0F172A !important;
}
body.light-theme .robusta-sep {
  color: #94A3B8 !important;
}
body.light-theme .robusta-ns-tag {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}
body.light-theme .robusta-status-badge {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA !important;
}
body.light-theme .robusta-status-badge.healthy {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border-color: #A7F3D0 !important;
}
body.light-theme .robusta-status-badge.warning {
  background: #FFFBEB !important;
  color: #B45309 !important;
  border-color: #FDE68A !important;
}
body.light-theme .robusta-restart-badge,
body.light-theme .robusta-workload-badge {
  background: #F8FAFC !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}
body.light-theme .robusta-timestamp {
  color: #64748B !important;
  font-weight: 600 !important;
}

/* Light Theme Overrides for Root Cause Headline Banner */
body.light-theme .robusta-cause-headline {
  background: #FEF2F2 !important;
  border: 1px solid #FECACA !important;
  border-left: 4px solid #DC2626 !important;
}
body.light-theme .robusta-cause-headline.healthy {
  background: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  border-left: 4px solid #059669 !important;
}
body.light-theme .robusta-cause-text {
  color: #7F1D1D !important;
}
body.light-theme .robusta-cause-headline.healthy .robusta-cause-text {
  color: #064E3B !important;
}
body.light-theme .robusta-cause-text strong {
  color: #0F172A !important;
}
body.light-theme .robusta-cause-headline.healthy .robusta-cause-text strong {
  color: #064E3B !important;
}

/* Light Theme Overrides for Action Prose, Step Labels & Solution Hero */
body.light-theme .robusta-action-prose {
  color: #0F172A !important;
}
body.light-theme .robusta-step-label {
  color: #0F172A !important;
  font-weight: 700 !important;
}
body.light-theme .robusta-card-actions {
  border-top: 1px solid #E2E8F0 !important;
}
body.light-theme .btn-execute-solution-hero {
  background: #5E9929 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(94, 153, 41, 0.3) !important;
}
body.light-theme .btn-execute-solution-hero:hover {
  background: #4D8020 !important;
}

/* Light Theme Overrides for Trailing Attribution Line */
body.light-theme .robusta-attribution-line {
  color: #475569 !important;
}
body.light-theme .robusta-attribution-line strong {
  color: #0F172A !important;
}

/* Light Theme Overrides for Markdown Typography */
body.light-theme .md-h3 { color: #0F172A !important; }
body.light-theme .md-h4 { color: #334155 !important; }
body.light-theme .md-bold { color: #0F172A !important; font-weight: 700 !important; }
body.light-theme .md-inline-code {
  background: #F1F5F9 !important;
  color: #0369A1 !important;
  border: 1px solid #CBD5E1 !important;
  font-weight: 600 !important;
}
body.light-theme .md-bullet-text { color: #334155 !important; }
body.light-theme .md-num-item { color: #0F172A !important; }
body.light-theme .md-num-badge { color: #0284C7 !important; font-weight: 700 !important; }

/* Light Theme Overrides for Suggested Fix Banner */
body.light-theme .suggested-fix-banner {
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  border-left: 4px solid #D97706 !important;
}
body.light-theme .suggested-fix-banner-title {
  color: #92400E !important;
}
body.light-theme .suggested-fix-pill {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #B45309 !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
}
body.light-theme .suggested-fix-banner-desc {
  color: #78350F !important;
}

/* Light Theme Overrides for Infra Scheduler Card */
body.light-theme .infra-scheduler-card {
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  border-left: 4px solid #D97706 !important;
}
body.light-theme .infra-scheduler-title {
  color: #B45309 !important;
}
body.light-theme .infra-scheduler-status {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #92400E !important;
}
body.light-theme .infra-scheduler-grid {
  background: #FFFFFF !important;
  border: 1px solid #FDE68A !important;
}
body.light-theme .infra-scheduler-label {
  color: #64748B !important;
}
body.light-theme .infra-scheduler-grid strong {
  color: #0F172A !important;
}
body.light-theme .infra-scheduler-note {
  color: #78350F !important;
}
body.light-theme .infra-scheduler-btn {
  background: #FFFFFF !important;
  border: 1px solid #D97706 !important;
  color: #92400E !important;
}

/* ========================================================================== */
/* MintDS Standard: Automated Test Results & Quality Suite Styling            */
/* ========================================================================== */

.pending-pill-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  display: inline-block;
}

.test-harness-dialog {
  max-width: 1100px;
  max-height: 90vh;
}

.test-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.test-stat-card {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}

.test-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 4px;
}

.test-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: #F8FAFC;
  font-family: 'Fira Code', monospace;
}

.test-stat-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 4px;
}

.text-mint { color: #80C341 !important; }
.text-amber { color: #F59E0B !important; }
.text-red { color: #EF4444 !important; }

.test-tier-bar-wrapper {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.test-tier-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.test-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #E2E8F0;
}

.test-tier-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-dist-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

.tier-dist-pill .pill-count {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
}

.tier-dist-pill.tier-healthy { border-color: rgba(128, 195, 65, 0.4); color: #80C341; }
.tier-dist-pill.tier-db_verified { border-color: rgba(56, 189, 248, 0.4); color: #38BDF8; }
.tier-dist-pill.tier-k8sgpt { border-color: rgba(168, 85, 247, 0.4); color: #C084FC; }
.tier-dist-pill.tier-owner_cache { border-color: rgba(20, 184, 166, 0.4); color: #2DD4BF; }
.tier-dist-pill.tier-heuristic { border-color: rgba(234, 179, 8, 0.4); color: #FACC15; }
.tier-dist-pill.tier-gemini_prior { border-color: rgba(249, 115, 22, 0.4); color: #FB923C; }
.tier-dist-pill.tier-gemini_cold { border-color: rgba(239, 68, 68, 0.4); color: #F87171; }

.test-results-table-body {
  padding: 0;
  max-height: 52vh;
}

.test-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.test-table th {
  background: #0F172A;
  color: #94A3B8;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.test-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  vertical-align: middle;
}

.test-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.badge-auto-pass {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(128, 195, 65, 0.15);
  color: #80C341;
  border: 1px solid rgba(128, 195, 65, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.badge-auto-fail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.badge-auto-smoke {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

.badge-rev-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10.5px;
}

/* Scenario Domain Badge Pills */
.domain-pill {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 0.04em;
  font-family: 'Fira Code', monospace;
}
.domain-pill.dom-database { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.4); color: #38BDF8; }
.domain-pill.dom-compute  { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #FBBF24; }
.domain-pill.dom-storage  { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.4); color: #C084FC; }
.domain-pill.dom-network  { background: rgba(20, 184, 166, 0.15); border: 1px solid rgba(20, 184, 166, 0.4); color: #2DD4BF; }
.domain-pill.dom-security { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #F87171; }
.domain-pill.dom-general  { background: rgba(148, 163, 184, 0.15); border: 1px solid rgba(148, 163, 184, 0.3); color: #94A3B8; }

.badge-rev-approved {
  background: rgba(128, 195, 65, 0.15);
  color: #80C341;
  border: 1px solid rgba(128, 195, 65, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10.5px;
}

.badge-rev-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10.5px;
}

.test-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #0F172A;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.test-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 600;
}

.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: #F8FAFC;
}

.test-fail-callout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #EF4444;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: #FCA5A5;
}

.test-raw-json-box {
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px;
  max-height: 240px;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: #93C5FD;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.test-review-action-box {
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
}

.btn-approve-pill {
  background: #80C341;
  color: #0F172A;
  font-weight: 700;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-approve-pill:hover {
  background: #8ED649;
  box-shadow: 0 4px 12px rgba(128, 195, 65, 0.3);
}

.btn-reject-pill {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reject-pill:hover {
  background: rgba(239, 68, 68, 0.25);
}






/* Round 3: MintDS Slate Neutral investigation and follow-ups. */
.round3-trail, .round3-outcome { background: #1E293B; color: #e2e8f0; border: 1px solid #334155; padding: 12px; border-radius: 8px; }
.round3-steps { white-space: pre-line; }
.round3-elapsed { color: #80C341; margin-right: 12px; font-variant-numeric: tabular-nums; }
.round3-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.round3-chip { background: #1E293B; color: #80C341; border: 1px solid #80C341; border-radius: 16px; padding: 6px 12px; cursor: pointer; }
.round3-chip:hover, .round3-chip:focus-visible { background: #0F172A; outline-color: #80C341; }
.round3-copy-only { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: #cbd5e1; }
.round3-warning { background: #1E293B; border-left: 3px solid #80C341; padding: 10px; }

.round3-digest { width: 100%; border-collapse: collapse; background: #1E293B; color: #e2e8f0; margin: 12px 0; }
.round3-digest th, .round3-digest td { text-align: left; padding: 8px; border-bottom: 1px solid #334155; overflow-wrap: anywhere; }
.round3-digest th { background: #0F172A; color: #80C341; }

/* SQL Fix Simulation Layer: distinct "Database action" card, separate from kubectl actions. */
.sql-fix-card { background: #1E293B; border: 1px solid #334155; border-left: 3px solid var(--mint-primary); border-radius: 8px; padding: 12px; margin: 8px 0; }
.sql-fix-tag { display: inline-block; background: #0F172A; color: var(--mint-primary); border: 1px solid var(--mint-primary); border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.sql-fix-description { color: #cbd5e1; margin: 6px 0; }
.sql-fix-sql { margin: 6px 0; }
.sql-fix-outcome, .sql-fix-note { color: #e2e8f0; margin-top: 8px; }
.sql-fix-apply { opacity: 0.5; cursor: not-allowed; }

.recommended-fix-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-left: 3px solid #80C341;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  color: #e2e8f0;
}
.recommended-fix-kicker {
  color: #80C341;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.recommended-fix-headline {
  margin: 0 0 8px;
  color: #F1F5F9;
  font-size: 16px;
  font-weight: 700;
}
.recommended-fix-impact {
  margin: 0 0 12px;
  color: #CBD5E1;
  font-size: 13px;
}
.recommended-fix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.btn-simulate-primary {
  background: #80C341;
  color: #0F172A;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-simulate-primary:hover, .btn-simulate-primary:focus-visible { filter: brightness(1.08); }
.btn-simulate-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-apply-live {
  background: #0F172A;
  color: #80C341;
  border: 1px solid #80C341;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.recommended-fix-status {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.recommended-fix-status.is-loading { background: #0F172A; color: #CBD5E1; }
.recommended-fix-status.is-success { background: rgba(128, 195, 65, 0.15); color: #80C341; }
.recommended-fix-status.is-failed { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
.recommended-fix-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sim-check-pill {
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #0F172A;
  border: 1px solid #334155;
}
.sim-check-pill.is-pass { color: #80C341; border-color: #80C341; }
.sim-check-pill.is-fail { color: #FCA5A5; border-color: #EF4444; }
.recommended-fix-raw { margin-top: 8px; color: #94A3B8; }
.recommended-fix-raw-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0F172A;
  padding: 8px;
  border-radius: 6px;
  max-height: 180px;
  overflow: auto;
}
.cli-commands-drawer {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  color: #CBD5E1;
}
.cli-commands-drawer > summary {
  cursor: pointer;
  color: #80C341;
  font-weight: 600;
}
.cli-commands-drawer .code-block-card { margin-top: 8px; }
