/* ==========================================================================
   RESULTS & TELEMETRY PAGE STYLES (Figma Replication & Interactive Visualizer)
   ========================================================================== */

/* Top Header Bar */
.result-top-bar {
  width: 100%;
  max-width: 1160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 0 24px;
  position: relative;
  z-index: 50;
}

/* Connected Node Chain in Top Bar */
.node-chain-svg {
  width: 520px;
  height: 70px;
  overflow: visible;
}

.node-pill-group {
  cursor: pointer;
  transition: all 0.25s ease;
}

.node-pill-group:hover {
  filter: brightness(1.2);
}

.node-pill-group.active {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)) brightness(1.25);
  opacity: 1;
}

/* Unselected remaining options rendered in grey depicting they are not selected */
.node-pill-group:not(.active) rect,
.node-pill-group.inactive rect {
  fill: #6B7280 !important;
  stroke: #4B5563 !important;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.node-pill-group:not(.active) text,
.node-pill-group.inactive text {
  fill: #E5E7EB !important;
  opacity: 0.75;
}

.node-pill-group:not(.active),
.node-pill-group.inactive {
  opacity: 0.55;
  filter: grayscale(100%);
}

.node-pill-group:not(.active):hover,
.node-pill-group.inactive:hover {
  opacity: 0.85;
  filter: grayscale(30%);
}

.node-pill-group text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  fill: #FFFFFF;
  text-anchor: middle;
  dominant-baseline: central;
}

.node-connector-line {
  stroke: #FFFFFF;
  stroke-width: 3px;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.result-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--header-badge-bg);
  backdrop-filter: blur(16px);
  border: 3px solid var(--header-badge-border);
  border-radius: 9999px;
  padding: 8px 30px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--header-badge-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

/* Main Results Grid */
.result-layout {
  width: 100%;
  max-width: 1160px;
  height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 24px;
}

/* Left/Center: Main Results Visualizer Card */
.result-display-card {
  flex: 1;
  max-width: 820px;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 32px;
  border: 3.5px solid var(--result-display-border);
  background: var(--result-display-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.result-scrollable-body {
  flex: 1;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Right Side: Available Metrics Sidebar */
.available-metrics-card {
  width: 250px;
  height: 520px;
  border-radius: 32px;
  border: 4px solid var(--available-metrics-border);
  background: var(--available-metrics-bg);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.available-metrics-header {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--sub-panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-sidebar-info {
  background: rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0D142D;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.btn-sidebar-info:hover {
  background: #0A6563;
  color: #FFFFFF;
  border-color: #0A6563;
}

.btn-sidebar-info.active {
  background: #0D142D;
  color: #FFFFFF;
  border-color: #0D142D;
}

.available-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

/* Metric Buttons in Available Metrics */
.btn-metric-item {
  width: 100%;
  height: 72px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 2.5px solid #0C4A37 !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 14px;
  color: #FFFFFF;
  text-align: left;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: filter 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  box-sizing: border-box;
  transform: none !important;
  margin: 0;
  outline: none;
}

.btn-metric-item:hover {
  filter: brightness(1.1);
  transform: none !important;
}

.btn-metric-item:active {
  filter: brightness(0.96);
  transform: none !important;
}

.btn-metric-item.active {
  border: 2.5px solid #FFFFFF !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  filter: brightness(1.12) !important;
  transform: none !important;
}

.metric-item-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.metric-item-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  color: #FFFFFF;
  white-space: nowrap;
}

.metric-item-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.metric-item-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2px;
  opacity: 0.9;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Custom Colors for Available Metrics matching Figma (resultsvg.svg) */
.btn-metric-item.verdict {
  background: #79A248 !important;
  border-color: #0C4A37 !important;
}

.btn-metric-item.latency {
  background: #4899A2 !important;
  border-color: #0C4A37 !important;
}

.btn-metric-item.telemetry {
  background: #484BA2 !important;
  border-color: #0C4A37 !important;
}

.btn-metric-item.diagnostics {
  background: #A2487F !important;
  border-color: #0C4A37 !important;
}

.btn-metric-item.active.verdict,
.btn-metric-item.active.latency,
.btn-metric-item.active.telemetry,
.btn-metric-item.active.diagnostics {
  border-color: #FFFFFF !important;
}

/* Notice Card in Available Metrics Sidebar */
.metric-notice-box {
  margin-top: 10px;
  background: #EBE8A3;
  border: 2px solid #0D2D1C;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  max-height: 90px;
  overflow-y: auto;
  scrollbar-width: none;
}

.metric-notice-box::-webkit-scrollbar {
  display: none;
}

.metric-notice-box.hidden {
  display: none !important;
}

.metric-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-notice-pill {
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 2px 8px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0D2D1C;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.metric-notice-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: #0D2D1C;
  padding: 0 3px;
  transition: transform 0.18s ease;
}

.metric-notice-close:hover {
  transform: scale(1.3);
}

.metric-notice-body {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  color: #2D150D;
}

/* ==========================================================================
   VIEW 1: EXECUTIVE VERDICT (HIGH-IMPACT DASHBOARD)
   ========================================================================== */
.verdict-header-box {
  background: #111625;
  border-radius: 20px;
  padding: 18px 22px;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.verdict-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 9999px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verdict-chip:hover {
  transform: scale(1.03);
}

.verdict-chip.healthy {
  background: rgba(34, 197, 94, 0.22);
  color: #4ADE80;
  border: 1.5px solid #22C55E;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.verdict-chip.degraded {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
  border: 1.5px solid #F59E0B;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.verdict-chip.critical {
  background: rgba(239, 68, 68, 0.22);
  color: #F87171;
  border: 1.5px solid #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.verdict-stats-row {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.verdict-stats-row span.highlight {
  color: #F1F5F9;
  font-weight: 800;
}

.verdict-summary-quote {
  font-style: italic;
  font-size: 12.5px;
  color: #CBD5E1;
  max-width: 650px;
  line-height: 1.4;
}

/* Status Code Distribution Bar & Clickable Pills */
.verdict-status-section {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}

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

.status-bar-seg.s2xx { background: #10B981; }
.status-bar-seg.s3xx { background: #38BDF8; }
.status-bar-seg.s4xx { background: #F59E0B; }
.status-bar-seg.s5xx { background: #EF4444; }

.status-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.status-pill-clickable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.25, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.status-pill-clickable:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  filter: brightness(1.2);
}

.status-pill-clickable.s2xx {
  background: #065F46;
  border-color: #10B981;
}

.status-pill-clickable.s3xx {
  background: #0369A1;
  border-color: #38BDF8;
}

.status-pill-clickable.s4xx {
  background: #92400E;
  border-color: #F59E0B;
}

.status-pill-clickable.s5xx {
  background: #991B1B;
  border-color: #EF4444;
}

/* Core Numbers KPI Grid */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi-stat-card {
  background: var(--item-card-bg);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--item-card-border);
  box-shadow: var(--item-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.kpi-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.kpi-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #0A6563;
  font-weight: 700;
  line-height: 1.25;
}

/* Quick Health Recommendations & Next Steps */
.verdict-recs-box {
  background: var(--item-card-bg);
  border-radius: 18px;
  padding: 14px 18px;
  border: 1.5px solid var(--item-card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--item-card-shadow);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.verdict-recs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verdict-recs-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 12.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verdict-recs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verdict-rec-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.verdict-rec-item b {
  color: var(--text-primary);
}

.verdict-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--sub-panel-border);
}

.btn-quick-nav {
  background: var(--sub-panel-bg);
  border: 1px solid var(--sub-panel-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-quick-nav:hover {
  background: #0A6563;
  color: #FFFFFF;
  border-color: #0A6563;
  transform: translateY(-1px);
}

/* ==========================================================================
   VIEW 2: LATENCY PERCENTILES & SLA PROFILER
   ========================================================================== */
.chart-container-box {
  background: var(--item-card-bg);
  border-radius: 20px;
  padding: 18px 20px;
  border: 1.5px solid var(--item-card-border);
  box-shadow: var(--item-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.chart-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sla-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sla-presets {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sub-panel-bg);
  padding: 2px 6px;
  border-radius: 9999px;
  border: 1px solid var(--sub-panel-border);
}

.sla-preset-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  padding-left: 4px;
}

.sla-preset-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sla-preset-btn:hover {
  background: var(--sub-panel-bg);
  color: var(--text-primary);
}

.sla-preset-btn.active {
  background: #0A6563;
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sla-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.sla-badge.compliant {
  background: rgba(34, 197, 94, 0.15);
  color: #15803D;
  border: 1px solid #22C55E;
}

.sla-badge.breached {
  background: rgba(239, 68, 68, 0.15);
  color: #B91C1C;
  border: 1px solid #EF4444;
}

.latency-svg-wrapper {
  width: 100%;
  position: relative;
  background: var(--sub-panel-bg);
  border-radius: 14px;
  padding: 8px 12px;
  border: 1px solid var(--sub-panel-border);
}

.latency-svg-chart {
  width: 100%;
  height: 180px;
  overflow: visible;
  display: block;
}

/* SVG Chart Elements */
.svg-latency-point {
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease;
}

.svg-latency-point:hover,
.svg-latency-point.active {
  r: 8;
  fill: #FFFFFF !important;
  stroke: #0F172A !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Active Milestone Inspector Card */
.latency-milestone-card {
  background: #181B26;
  border-radius: 14px;
  padding: 12px 18px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-badge {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 16px;
  color: #38BDF8;
}

.milestone-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.milestone-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  color: #F1F5F9;
}

.milestone-desc {
  font-size: 11px;
  color: #94A3B8;
}

.milestone-val-badge {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #4ADE80;
  text-align: right;
}

.milestone-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #F59E0B;
  font-weight: 700;
  text-align: right;
}

/* Percentile Ribbon Comparison Table */
.percentile-ribbon-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--sub-panel-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sub-panel-border);
}

.percentile-ribbon-table th {
  background: var(--sub-panel-bg);
  padding: 8px 12px;
  color: var(--text-secondary);
  font-weight: 800;
  text-align: left;
  border-bottom: 1.5px solid var(--sub-panel-border);
}

.percentile-ribbon-table td {
  padding: 7px 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--sub-panel-border);
  transition: background 0.15s ease;
}

.percentile-ribbon-table tr:last-child td {
  border-bottom: none;
}

.percentile-ribbon-table tr:hover td,
.percentile-ribbon-table tr.highlight td {
  background: #E0F2FE;
  color: #0369A1;
  font-weight: 800;
}

/* ==========================================================================
   VIEW 3: ENGINE TELEMETRY (CONCURRENCY, SEQUENCE, FUZZY)
   ========================================================================== */
.breaking-point-banner {
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991B1B;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
}

.breaking-point-banner.clean {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #166534;
}

.cycle-tracks-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cycle-row-card {
  background: var(--item-card-bg);
  border-radius: 14px;
  padding: 10px 16px;
  border: 1.5px solid var(--item-card-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cycle-row-card:hover {
  transform: translateX(4px);
  border-color: #0A6563;
  box-shadow: 0 4px 12px rgba(10, 101, 99, 0.15);
}

.cycle-row-card.active {
  border-color: #0A6563;
  background: var(--sub-panel-bg);
  box-shadow: 0 0 0 2px #0A6563, 0 6px 16px rgba(10, 101, 99, 0.2);
}

.cycle-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.cycle-progress-bar {
  width: 100%;
  height: 12px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}

.cycle-bar-pass {
  background: #10B981;
  height: 100%;
  transition: width 0.3s ease;
}

.cycle-bar-fail {
  background: #EF4444;
  height: 100%;
  transition: width 0.3s ease;
}

/* Selected Cycle Batch Explorer Panel */
.cycle-batch-panel {
  background: var(--item-card-bg);
  border-radius: 16px;
  padding: 14px 18px;
  border: 2px solid #0A6563;
  box-shadow: 0 6px 20px rgba(10, 101, 99, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cycle-batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cycle-batch-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cycle-batch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sequence Pipeline Flowchart */
.sequence-pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sequence-flowchart-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 12px 4px;
}

.sequence-stage-node {
  flex: 1;
  min-width: 200px;
  background: var(--item-card-bg);
  border-radius: 16px;
  padding: 14px;
  border: 2px solid var(--item-card-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.25, 1);
  box-shadow: var(--item-card-shadow);
}

.sequence-stage-node:hover {
  transform: translateY(-3px);
  border-color: #542A73;
  box-shadow: 0 8px 18px rgba(84, 42, 115, 0.2);
}

.sequence-stage-node.active {
  border-color: #542A73;
  background: #FAF5FF;
  box-shadow: 0 0 0 2px #542A73, 0 8px 20px rgba(84, 42, 115, 0.25);
}

.stage-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-number-pill {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 900;
  background: #542A73;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.stage-status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.stage-status-badge.pass {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.stage-status-badge.fail {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.stage-endpoint-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  word-break: break-all;
}

.stage-condition-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #475569;
  background: #F1F5F9;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  line-height: 1.3;
}

.stage-tokens-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #7C3AED;
  background: #EDE9FE;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
}

/* Side-by-side Stage Inspector */
.stage-inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stage-col-card {
  background: #181B26;
  border-radius: 14px;
  padding: 12px 14px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-col-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  color: #38BDF8;
}

/* Fuzzy Parameter Grid */
.fuzzy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.fuzzy-card {
  background: var(--item-card-bg);
  border-radius: 14px;
  padding: 14px;
  border: 1.5px solid var(--item-card-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--item-card-shadow);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.fuzzy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fuzzy-param-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.fuzzy-type-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

/* ==========================================================================
   VIEW 4: DIAGNOSTICS & INSPECTED REQUESTS EXPLORER
   ========================================================================== */
.diagnostics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.diag-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.diag-filter-btn {
  background: var(--item-card-bg);
  border: 1.5px solid var(--item-card-border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.diag-filter-btn:hover {
  background: var(--sub-panel-bg);
  color: var(--text-primary);
}

.diag-filter-btn.active {
  background: #A2487F;
  border-color: #A2487F;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(162, 72, 127, 0.35);
}

.diag-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}

.diag-search-input {
  width: 100%;
  background: var(--item-card-bg);
  border: 1.5px solid var(--item-card-border);
  border-radius: 9999px;
  padding: 5px 28px 5px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, background 0.25s ease;
}

.diag-search-input:focus {
  border-color: #A2487F;
  box-shadow: 0 0 0 2px rgba(162, 72, 127, 0.2);
}

.diag-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* Interactive Request Table */
.requests-table-container {
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  border: 1.5px solid var(--item-card-border);
  border-radius: 14px;
  background: var(--item-card-bg);
  box-shadow: var(--item-card-shadow);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.requests-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
}

.requests-table thead tr {
  position: sticky;
  top: 0;
  background: var(--sub-panel-bg);
  z-index: 10;
  border-bottom: 1.5px solid var(--sub-panel-border);
  text-align: left;
}

.requests-table th {
  padding: 8px 12px;
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.requests-table tbody tr {
  border-bottom: 1px solid var(--sub-panel-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.requests-table tbody tr:hover {
  background: var(--sub-panel-bg);
}

.requests-table tbody tr.active-row {
  background: rgba(2, 132, 199, 0.2) !important;
  border-left: 3px solid #0284C7;
}

.requests-table td {
  padding: 7px 12px;
  color: var(--text-primary);
  white-space: nowrap;
}

.method-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #334155;
}

.method-tag.post { background: #E0E7FF; color: #4338CA; }
.method-tag.get { background: #DCFCE7; color: #15803D; }

.status-badge-mini {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge-mini.s2xx { background: #DCFCE7; color: #166534; }
.status-badge-mini.s4xx { background: #FEF3C7; color: #92400E; }
.status-badge-mini.s5xx { background: #FEE2E2; color: #991B1B; }

/* Collapsible Inspector Drawer */
.inspector-drawer {
  background: #111625;
  border-radius: 16px;
  padding: 16px;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspector-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.inspector-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 900;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inspector-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inspector-pane-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.json-code-box {
  background: #0B0F19;
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  color: #E2E8F0;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
  word-break: break-all;
}

/* Syntax Highlighting Tokens */
.json-key { color: #38BDF8; font-weight: 700; }
.json-string { color: #4ADE80; }
.json-number { color: #FBBF24; font-weight: 700; }
.json-boolean { color: #F472B6; font-weight: 700; }
.json-null { color: #94A3B8; font-style: italic; }

.btn-copy-code {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-code:hover {
  background: #0A6563;
  border-color: #0A6563;
}

/* Diagnostics Payloads Cards */
.failure-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.failure-triage-card {
  background: #1E222B;
  border-radius: 12px;
  padding: 12px 14px;
  color: #FFFFFF;
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.failure-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.failure-status-code {
  background: #EF4444;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
}

.failure-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
}

.failure-snippet {
  background: #12141A;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FFB3B8;
  max-height: 100px;
  overflow-y: auto;
}

/* Empty State (Data not available yet) */
.empty-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  height: 100%;
  gap: 14px;
}

.empty-state-icon {
  font-size: 40px;
  opacity: 0.85;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 0.5px;
}

.empty-state-message {
  font-size: 13px;
  color: #475569;
  max-width: 480px;
  line-height: 1.5;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #0A6563;
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(10, 101, 99, 0.4);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.empty-state-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.empty-state-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  background: #E2E8F0;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breaking-badge {
  background: #DC2626;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SCROLLBAR ELIMINATION (Clean, zero visible scrollbars)
   ========================================================================== */
*, *::before, *::after {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
