:root {
  --bg: #090d16;
  --card-bg: #111827;
  --limbo-bg: #0d121f;
  --border: #1e293b;
  --border-subtle: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --hover: #334155;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Unified Typography System */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Standardized Type Scale */
  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-lg: 15px;
  --text-xl: 20px;
  --text-2xl: 26px;

  /* Overriding Vaadin Lumo variables */
  --lumo-base-color: #090d16;
  --lumo-body-text-color: #e2e8f0;
  --lumo-secondary-text-color: #94a3b8;
  --lumo-tertiary-text-color: #64748b;
  --lumo-disabled-text-color: #475569;
  --lumo-primary-color: #38bdf8;
  --lumo-primary-text-color: #38bdf8;
  --lumo-error-color: #ef4444;
  --lumo-error-text-color: #ef4444;
  --lumo-success-color: #22c55e;
  --lumo-success-text-color: #22c55e;
  --lumo-header-text-color: #f8fafc;
  --lumo-contrast: #f8fafc;
  --lumo-contrast-5pct: rgba(255, 255, 255, 0.05);
  --lumo-contrast-10pct: #1e293b;
  --lumo-contrast-20pct: #334155;
  --lumo-contrast-30pct: #475569;
  --lumo-font-family: var(--font-sans);
  --lumo-font-family-monospace: var(--font-mono);
  --lumo-font-size-xxs: var(--text-2xs);
  --lumo-font-size-xs: var(--text-xs);
  --lumo-font-size-s: var(--text-sm);
  --lumo-font-size-m: var(--text-md);
  --lumo-font-size-l: var(--text-lg);
  --lumo-font-size-xl: var(--text-xl);
  --lumo-font-size-xxl: var(--text-2xl);
}

/* =============================================================
   Global Hints, Tooltips & Helper Text Typography Overrides
   ============================================================= */

/* 1. Vaadin Tooltips */
vaadin-tooltip-overlay::part(overlay),
.v-tooltip,
.vaadin-tooltip-overlay {
  font-size: 1.25rem !important; /* ~20px - doubled from original ~10-11px */
  line-height: 1.45 !important;
  padding: 8px 14px !important;
  max-width: min(500px, calc(100vw - 24px)) !important;
}

/* 2. Vaadin Input Field Helper Text & Hints */
vaadin-text-field::part(helper-text),
vaadin-combo-box::part(helper-text),
vaadin-select::part(helper-text),
vaadin-number-field::part(helper-text),
vaadin-text-area::part(helper-text),
vaadin-date-picker::part(helper-text),
[part="helper-text"],
.helper-text,
.hint-text,
.run-toolbar-meta {
  font-size: 1.15rem !important; /* ~18px */
  line-height: 1.4 !important;
}

/* 3. Input Field Placeholders (Search & Filter Hints) */
vaadin-text-field::part(value)::placeholder,
vaadin-combo-box::part(value)::placeholder,
vaadin-text-area::part(value)::placeholder,
input::placeholder,
textarea::placeholder {
  font-size: 1.1rem !important;
  opacity: 0.8 !important;
}

/* 4. Filter Indicator Hints & Tooltip Overlays */
.filter-indicator {
  font-size: 1.15rem !important;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* =============================================================
   Top Navbar, Drawer & Branding (MainLayout)
   ============================================================= */
vaadin-app-layout {
  --vaadin-app-layout-drawer-overlay: true;
  --vaadin-app-layout-drawer-width: min(280px, 86vw);
}

vaadin-app-layout::part(navbar) {
  background: #090d16;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

vaadin-app-layout::part(backdrop) {
  background-color: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(2px);
  z-index: 199;
}

vaadin-app-layout::part(drawer) {
  background: #0b1120;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.65);
  z-index: 200;
  padding: 0;
}

.app-navbar-header {
  background: #090d16;
  padding: 0 20px;
  min-height: 48px;
  gap: 10px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.app-drawer-toggle {
  display: none;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #111827;
  cursor: pointer;
  flex-shrink: 0;
}

.app-drawer-toggle:hover {
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.5);
  border-color: #475569;
}

.app-branding-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.app-brand-logo {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.app-brand-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

.app-brand-version {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9999px;
  padding: 1px 7px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  user-select: all;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-top-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  min-width: 0;
}

.nav-link-label {
  margin-left: 6px;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

.top-nav-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.top-nav-link[highlight],
.top-nav-link.router-link-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 600;
}

.system-metrics-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(30, 41, 59, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-order-launch-btn {
  margin-left: 6px;
  flex-shrink: 0;
}

.order-launch-short {
  display: none;
}

/* Slide-out Mobile/Narrow Drawer */
.app-drawer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: #0b1120;
  color: var(--text);
}

.app-drawer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #090d16;
}

.app-drawer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-drawer-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.app-drawer-close-btn {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.app-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  flex: 1;
  overflow-y: auto;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-md);
  text-decoration: none;
  transition: all 0.15s ease;
  background: transparent;
  border: 1px solid transparent;
}

.drawer-nav-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.drawer-nav-link[highlight],
.drawer-nav-link.router-link-active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 600;
}

.app-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 16px 14px;
  border-top: 1px solid var(--border);
  background: #090d16;
}

.drawer-metrics-badge {
  margin-left: 0;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 6px 12px;
}

.drawer-order-launch-btn {
  width: 100%;
  height: 36px;
  min-height: 36px;
  justify-content: center;
}

/* =============================================================
   Run Details View Toolbar & Shared Buttons
   ============================================================= */
.run-view-toolbar {
  background: #090d16;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  flex-wrap: wrap;
}

.run-toolbar-title {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  color: #f8fafc;
}

.run-toolbar-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.run-tab-btn {
  background: #111827;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  height: 28px;
  min-height: 28px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  white-space: nowrap;
}

.unified-run-tabs.compact-tab-labels {
  gap: 4px !important;
}

.unified-run-tabs.compact-tab-labels .tab-label {
  display: none !important;
}

.unified-run-tabs.compact-tab-labels .run-tab-btn {
  padding: 0 4px !important;
  min-width: 28px !important;
  width: 28px !important;
  justify-content: center !important;
}

.run-tab-btn:hover {
  background: rgba(51, 65, 85, 0.5);
  color: #f8fafc;
  border-color: #475569;
}

.run-tab-btn.active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #0284c7;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

.run-tab-btn[disabled],
.run-tab-btn.unavailable {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(30, 41, 59, 0.6);
  color: #475569;
  box-shadow: none;
}

.run-tab-btn.pending {
  opacity: 0.58;
  cursor: progress;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.35);
  color: #64748b;
}

.run-tab-btn.btn-green {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

.run-tab-btn.btn-green:hover {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.run-tab-btn.btn-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

.run-tab-btn.btn-amber:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* =============================================================
   Outcome Plaque & Telemetry Cards (RunDetailsView)
   ============================================================= */
.result-plaque-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin-top: 6px;
  margin-bottom: 4px;
}

.plaque-slot-left {
  display: flex;
  justify-content: flex-start;
  order: 1;
}

.result-plaque {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  text-align: center;
  order: 2;
  box-sizing: border-box;
}

.plaque-slot-right {
  display: flex;
  justify-content: flex-end;
  order: 3;
}

@media (max-width: 640px) {
  .result-plaque-wrap {
    justify-content: center;
  }
  .result-plaque {
    order: 1;
    width: 100%;
  }
  .plaque-slot-left {
    order: 2;
  }
  .plaque-slot-right {
    order: 3;
  }
}

.result-plaque.passed {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2) !important;
}

.result-plaque.failed {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
}

.result-plaque.warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
}

.result-plaque.neutral {
  background: rgba(148, 163, 184, 0.15) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.summary-plaque-card,
#tree-summary-plaque {
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: 8px 12px 10px 12px !important;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.summary-plaque-card .card-title,
#tree-summary-plaque .card-title,
#tree-summary-plaque h1,
#tree-summary-plaque h2,
#tree-summary-plaque h3 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  padding-top: 0 !important;
}

.summary-plaque-card table,
#tree-summary-plaque table {
  display: inline-table !important;
  margin-right: 16px !important;
  font-size: var(--text-xs);
  border-collapse: collapse;
}

.summary-plaque-card table th,
.summary-plaque-card table td,
#tree-summary-plaque table th,
#tree-summary-plaque table td {
  padding: 3px 6px !important;
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
}

.summary-plaque-card .tag,
#tree-summary-plaque .tag {
  font-size: 10px !important;
  padding: 2px 6px !important;
}

.summary-plaque-card .card-title,
.card-title {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #f8fafc;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-card .card-title {
  text-transform: none;
  letter-spacing: normal;
}

.plaque-config {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.config-item {
  color: var(--text-muted);
  font-weight: 400;
}

.config-label {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.config-val {
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
}

.config-mode-badge {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #0284c7;
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}

.plaque-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  margin-top: 4px;
}

.plaque-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid #1e293b;
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.05em;
  padding: 8px 14px;
}

.plaque-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plaque-table td.row-label {
  font-weight: 600;
  text-align: left;
  color: #cbd5e1;
  padding-right: 16px;
  font-size: var(--text-xs);
  font-family: var(--font-sans);
}

.plaque-table .col-executed { color: #60a5fa; font-weight: 600; }
.plaque-table .col-passed { color: #22c55e; font-weight: 600; }
.plaque-table .col-warning { color: #f59e0b; font-weight: 600; }
.plaque-table .col-failed { color: #ef4444; font-weight: 600; }

/* =========================================================================
   Runs Overview Chart Component Styling
   ========================================================================= */

.runs-chart-card {
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.runs-chart-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.runs-chart-top-bar .stats-strip {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  gap: 12px;
}

.runs-chart-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.runs-chart-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #cbd5e1;
}

.runs-chart-legend-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.runs-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-swatch.duration {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.legend-swatch.avg {
  background: #38bdf8;
  border-top: 1px dashed #38bdf8;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.passed {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.legend-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.legend-dot.failed {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.chart-toggle-group {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.chart-toggle-btn {
  font-size: var(--text-xs) !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  height: 22px !important;
  min-height: 22px !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #64748b !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  line-height: 1 !important;
}

.chart-toggle-btn:hover {
  color: #f1f5f9 !important;
}

.chart-toggle-btn.active {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

.runs-chart-container {
  position: relative;
  width: 100%;
  overflow: visible;
  border-radius: 8px;
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  box-sizing: border-box;
}

.runs-chart-svg-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.runs-chart-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs);
  color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.15);
  transition: opacity 0.1s ease;
  white-space: nowrap;
}

/* Timeline duration bars card */
.chart-card {
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-group-label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: none;
  font-size: var(--text-2xs);
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.stat-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.stat-item {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.stat-item b {
  color: #38bdf8;
  font-weight: 600;
}

.chart-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}

.chart-scroll-wrap::-webkit-scrollbar { height: 6px; }
.chart-scroll-wrap::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.6); border-radius: 3px; }
.chart-scroll-wrap::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
.chart-scroll-wrap::-webkit-scrollbar-thumb:hover { background: #475569; }

.bars-flex {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 4px;
  width: max-content;
  min-width: 100%;
  transform-style: preserve-3d;
}

.bar-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 44px;
  gap: 8px;
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.bar-col.phase {
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.timeline-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  width: 100%;
  min-height: 0;
}

.exec-stats-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 148px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}

@media (max-width: 768px) {
  .exec-stats-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 8px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.exec-stats-panel .exec-stats-vertical {
  padding-right: 0;
  border-right: none;
  width: 100%;
}

.exec-stats-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 148px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.stat-v-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  line-height: 1.35;
  gap: 8px;
}

.stat-v-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.stat-v-val {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-left: auto;
}

.stat-v-pct {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  opacity: 0.85;
  min-width: 42px;
  text-align: right;
}

.stat-v-row.executed .stat-v-val { color: #f8fafc; }
.stat-v-row.executed .stat-v-pct { color: #cbd5e1; }

.stat-v-row.passed .stat-v-label { color: #86efac; }
.stat-v-row.passed .stat-v-val { color: #22c55e; }
.stat-v-row.passed .stat-v-pct { color: #4ade80; }

.stat-v-row.warning .stat-v-label { color: #fde047; }
.stat-v-row.warning .stat-v-val { color: #f59e0b; }
.stat-v-row.warning .stat-v-pct { color: #fbbf24; }

.stat-v-row.failed .stat-v-label { color: #fca5a5; }
.stat-v-row.failed .stat-v-val { color: #ef4444; }
.stat-v-row.failed .stat-v-pct { color: #f87171; }

.telemetry-content-right {
  display: flex;
  flex-direction: column;
  flex: 1 1 0px;
  min-width: 0;
}

.bar-col.phase, .bar-col.config {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  height: 145px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.bar-col.phase .bar-val, .bar-col.config .bar-val {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
  white-space: nowrap;
}

.bar-col.phase .bar-track, .bar-col.config .bar-track {
  flex: 1;
  width: 100%;
  max-width: 34px;
  display: flex;
  align-items: flex-end;
  background: rgba(30, 41, 59, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

.bar-col.phase .bar-fill, .bar-col.config .bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.2s;
}

.bar-col.phase .bar-lbl, .bar-col.config .bar-lbl {
  font-size: var(--text-2xs);
  color: #64748b;
  font-family: var(--font-mono);
  margin-top: 5px;
  white-space: nowrap;
}

.bar-col.phase:hover .bar-fill, .bar-col.config:hover .bar-fill {
  filter: brightness(1.25);
}

.bar-col.phase:hover .bar-val, .bar-col.config:hover .bar-val {
  color: #38bdf8;
}

.bar-col.phase:hover .bar-lbl, .bar-col.config:hover .bar-lbl {
  color: #f8fafc;
}

.bars-flex.hide-limbo .bar-col.limbo {
  display: none !important;
}

.bars-flex.hide-limbo .bar-col.phase,
.bars-flex.hide-limbo .bar-col.config {
  height: 140px;
}

.bars-flex.hide-limbo .bar-pair {
  gap: 0;
}

.bar-col.test {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 140px;
  cursor: pointer;
  user-select: none;
}

.bar-col.test .bar-val {
  font-size: var(--text-xs);
  color: #cbd5e1;
  font-family: var(--font-mono);
  margin-bottom: 4px;
  white-space: nowrap;
}

.bar-col.test .bar-track {
  flex: 1;
  width: 100%;
  max-width: 34px;
  display: flex;
  align-items: flex-end;
  background: rgba(30, 41, 59, 0.35);
  border-radius: 4px;
  overflow: hidden;
}

.bar-col.test .bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.2s;
}

.bar-col.test .bar-lbl {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: 5px;
  white-space: nowrap;
}

.bar-col.limbo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 52px;
  cursor: pointer;
  user-select: none;
}

.bar-col.limbo .bar-val {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 3px;
  white-space: nowrap;
}

.bar-col.limbo .bar-track {
  flex: 1;
  width: 100%;
  max-width: 34px;
  display: flex;
  align-items: flex-end;
  background: rgba(30, 41, 59, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.bar-col.limbo .bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.2s;
}

.bar-col.limbo .bar-lbl {
  font-size: var(--text-2xs);
  color: #64748b;
  font-family: var(--font-mono);
  margin-top: 4px;
  white-space: nowrap;
}

.bar-col:hover .bar-fill { filter: brightness(1.25); }
.bar-col:hover .bar-val { color: #38bdf8; }
.bar-col:hover .bar-lbl { color: #f8fafc; }

/* =============================================================
   Log Stream & Scenario Tree Grids (RunDetailsView)
   ============================================================= */
.log-terminal {
  background: #070a10;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.4;
}

vaadin-grid.log-terminal {
  --lumo-size-s: 24px;
  --lumo-size-m: 26px;
  --vaadin-grid-cell-padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

vaadin-grid.log-terminal::part(cell) {
  height: 26px !important;
  min-height: 26px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #cbd5e1;
}

vaadin-grid.log-terminal::part(header-cell) {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  background: #0d1322;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.06em;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

vaadin-grid.log-terminal vaadin-grid-cell-content {
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

vaadin-grid.log-terminal vaadin-grid-sorter {
  height: 28px !important;
  min-height: 28px !important;
}

vaadin-grid.log-terminal::part(frozen-cell) {
  background: #070a10 !important;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

vaadin-grid.log-terminal::part(last-frozen) {
  border-right: 1px solid var(--border, #1e293b);
}

.log-line {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.log-line.expanded {
  white-space: pre-wrap;
  word-break: break-word;
}

.log-meta-cycle {
  color: var(--text-muted);
  font-weight: 600;
}

.log-meta-seq {
  color: #64748b;
}

.log-meta-time {
  color: #38bdf8;
}

.log-badge-severity {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.3;
}

.log-badge-debug {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.log-badge-info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.log-badge-notice {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.log-badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.log-badge-error, .log-badge-severe, .log-badge-failure {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.stack-chip {
  display: inline-block;
  background: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
  border-radius: 3px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  margin-left: 8px;
  flex-shrink: 0;
}

.stack-chip:hover {
  background: #334155;
  border-color: #38bdf8;
  color: #f8fafc;
}

/* Tree Grid row and symbol styling */
.tree-sym-branch {
  color: #38bdf8;
  font-weight: 700;
}

.tree-sym-leaf {
  color: #22c55e;
  font-weight: 700;
}

.tree-sym-node {
  color: #a855f7;
}

/* =============================================================
   Log Sections Accordion
   ============================================================= */
.sections-container {
  display: grid;
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-content: start;
  gap: 10px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 880px) {
  .sections-container {
    grid-template-columns: 1fr !important;
  }
  details.log-section.test,
  details.log-section.booting,
  details.log-section.configuring,
  details.log-section.limbo {
    grid-column: 1 / -1 !important;
  }
  .time-range .time-sep,
  .time-range .time-end {
    display: none !important;
  }
}

details.log-section {
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.15s ease-out;
  background: var(--card-bg, #111827);
  box-sizing: border-box;
  min-height: 38px;
  flex-shrink: 0;
  height: auto;
}

details.log-section.preflight,
details.log-section.postflight {
  grid-column: 1 / -1;
  background: var(--card-bg, #111827);
  border-left: 4px solid #38bdf8;
}

details.log-section.booting {
  grid-column: 1;
  background: var(--card-bg, #111827);
  border-left: 4px solid #38bdf8;
}

details.log-section.configuring {
  grid-column: 2;
  border-left: 4px solid #475569;
  background: var(--limbo-bg, #0d121f);
  opacity: 0.85;
}

details.log-section.configuring:hover {
  opacity: 1;
}

details.log-section.test {
  grid-column: 1;
  background: var(--card-bg, #111827);
  border-left: 4px solid #22c55e;
}

details.log-section.test.warning {
  border-left-color: #f59e0b;
}

details.log-section.test.failed {
  border-left-color: #ef4444;
}

details.log-section.limbo {
  grid-column: 2;
  background: var(--limbo-bg, #0d121f);
  border-left: 4px solid #475569;
  opacity: 0.85;
}

details.log-section.limbo:hover {
  opacity: 1;
}

.sections-container.hide-limbo details.log-section.limbo {
  display: none !important;
}

.sections-container.hide-limbo details.log-section.test {
  grid-column: 1 / -1;
}

.sections-container.single-column {
  grid-template-columns: 1fr;
}

.status-bullet-warning {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f59e0b;
  margin-left: 5px;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

.status-bullet-notice {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #06b6d4;
  margin-left: 5px;
  box-shadow: 0 0 4px rgba(6, 182, 212, 0.7);
  flex-shrink: 0;
}

details.log-section.full-width {
  grid-column: 1 / -1;
}

details.log-section.limbo .summary-right {
  gap: 6px;
  font-size: var(--text-xs);
}

details.log-section.limbo .sec-title {
  color: var(--text-muted);
}

details.log-section[open] {
  grid-column: 1 / -1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

details.log-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  min-height: 38px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  background: rgba(30, 41, 59, 0.4);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-sm);
  color: #f8fafc;
}

details.log-section summary:hover {
  background: rgba(51, 65, 85, 0.5);
}

details.log-section summary::-webkit-details-marker,
details.log-section summary::marker {
  display: none;
}

.section-anchor {
  display: none !important;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.sec-title,
.sec-title-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  white-space: nowrap;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  overflow: hidden;
}

.sec-title-link:hover {
  color: var(--accent, #38bdf8);
  text-decoration: underline;
}

.op-range {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  line-height: 1.35;
}

.badge.neutral { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge.limbo { background: rgba(100, 116, 139, 0.2); color: var(--text-muted); }
.badge.passed { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge.failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #cbd5e1;
}

.duration.limbo-duration {
  color: var(--text-muted);
}

.summary-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.time-range {
  color: #64748b;
}

.line-count {
  color: #64748b;
}

.log-section-body {
  border-top: 1px solid var(--border, #1e293b);
  background: #070a10;
  padding: 6px 12px;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

details.log-section.test .log-section-body { background: #06110a; }
details.log-section.test.warning .log-section-body { background: #121005; }
details.log-section.test.failed .log-section-body { background: #170808; }

.log-content {
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.45;
  white-space: normal;
  width: 100%;
  box-sizing: border-box;
  max-height: none;
  overflow: visible;
}

.log-line-entry {
  padding: 1px 0;
  display: flex;
  align-items: baseline;
  border-radius: 2px;
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 6px;
}

.log-line-entry:hover {
  background: rgba(255, 255, 255, 0.04);
}

.log-line-entry.is-scenario {
  background: rgba(56, 189, 248, 0.04);
}

.log-line-entry.is-scenario:hover {
  background: rgba(56, 189, 248, 0.08);
}

.log-line-entry.step-highlight {
  background: rgba(56, 189, 248, 0.14) !important;
  border-left: 4px solid #38bdf8 !important;
  padding-left: 6px;
}

.log-line-entry.step-highlight.step-highlight-first {
  border-top: 1px dashed rgba(56, 189, 248, 0.5) !important;
  border-top-left-radius: 4px;
}

.log-line-entry.step-highlight.step-highlight-last {
  border-bottom: 1px dashed rgba(56, 189, 248, 0.5) !important;
  border-bottom-left-radius: 4px;
}

.log-line-entry.step-highlight-flash {
  animation: stepAreaFlash 3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepAreaFlash {
  0% {
    background: rgba(56, 189, 248, 0.65) !important;
    box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.5);
  }
  30% {
    background: rgba(56, 189, 248, 0.35);
  }
  100% {
    background: rgba(56, 189, 248, 0.14);
  }
}

.highlight {
  outline: 2px solid var(--accent);
}

mark.log-search-highlight {
  background: rgba(250, 204, 21, 0.28);
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 3px;
  padding: 0 2px;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.2);
  font-weight: 600;
}

.log-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.log-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.scenario-anchor {
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
}

.log-gutter {
  display: inline-flex;
  align-items: baseline;
  white-space: pre;
  flex-shrink: 0;
  user-select: none;
}

.log-meta-bracket {
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: pre;
  flex-shrink: 0;
  user-select: none;
}

.log-meta-bracket.bracket-gray {
  color: #64748b;
}

.log-meta-delta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: pre;
  flex-shrink: 0;
  user-select: none;
}

.log-meta-delta.delta-white {
  color: #e2e8f0;
}

.log-meta-delta.delta-gray {
  color: #64748b;
}

.log-meta-delta.delta-red {
  color: #ef4444;
  font-weight: 600;
}

.log-meta-delta.delta-yellow {
  color: #eab308;
  font-weight: 600;
}

.log-meta-delta.delta-green {
  color: #22c55e;
  font-weight: 500;
}

.log-meta-delta.delta-blue {
  color: #38bdf8;
  font-weight: 500;
}

.log-meta-delta.delta-default {
  color: #e2e8f0;
}

.log-artifact-link {
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
}

.log-artifact-link:hover {
  color: #7dd3fc;
}

.log-line-msg {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.scen-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0 4px;
  color: #64748b;
  text-decoration: none;
  font-size: var(--text-xs);
  opacity: 0.35;
  border-radius: 3px;
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
}

.log-line-entry:hover .scen-link-btn,
.scen-link-btn:hover {
  opacity: 1;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.gutter-artifact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 4px;
  font-size: var(--text-xs);
  border-radius: 3px;
  opacity: 0.6;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.log-line-entry:hover .gutter-artifact-badge,
.gutter-artifact-badge:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* Phase filter strip above the log sections */
.phase-filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.tree-mode-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.phase-filter-bar > :not([hidden]) ~ :not([hidden]),
.tree-mode-bar > :not([hidden]) ~ :not([hidden]) {
  margin-inline-start: 0 !important;
  margin-top: 0 !important;
}

.phase-filter-bar::part(container),
.tree-mode-bar::part(container) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

.cylindrical-level-selector {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  min-width: 170px !important;
  white-space: nowrap !important;
}

.phase-filter-right-buttons {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-left: auto !important;
  flex: 1 1 auto !important;
}

.phase-filter-right-buttons::part(container) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: 100% !important;
}

.phase-filter-right-buttons > :not([hidden]) ~ :not([hidden]) {
  margin-inline-start: 0 !important;
  margin-top: 0 !important;
}

.phase-btn,
.tree-action-btn,
.phase-filter-bar vaadin-button,
.tree-mode-bar vaadin-button:not(.tree-level-btn) {
  background: rgba(30, 41, 59, 0.4);
  color: var(--text-muted);
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  padding: 0 10px;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  align-self: center !important;
  gap: 5px;
  box-sizing: border-box !important;
  white-space: nowrap;
}

.phase-filter-bar vaadin-text-field,
.phase-filter-bar vaadin-combo-box,
.tree-mode-bar vaadin-text-field,
.tree-mode-bar vaadin-combo-box {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  vertical-align: middle !important;
  align-self: center !important;
  box-sizing: border-box !important;
}

.phase-filter-bar vaadin-button::part(label),
.tree-mode-bar vaadin-button:not(.tree-level-btn)::part(label),
.phase-btn::part(label),
.tree-action-btn::part(label) {
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.phase-btn:hover, .tree-action-btn:hover {
  background: rgba(51, 65, 85, 0.5);
  color: #f8fafc;
  border-color: #475569;
}

.phase-btn.active, .tree-action-btn.active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #0284c7;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

.tree-mode-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border, #1e293b);
  height: 28px;
  box-sizing: border-box;
}

.tree-mode-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 10px;
  height: 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}

.tree-mode-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.tree-mode-btn.active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #0284c7;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

/* SplitLayout divider matching page background */
vaadin-split-layout::part(splitter),
vaadin-split-layout::part(splitter):hover,
vaadin-split-layout::part(splitter):active {
  background-color: var(--bg);
}

vaadin-split-layout.collapsed::part(splitter),
.run-split-layout.collapsed::part(splitter) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

vaadin-split-layout::part(handle) {
  display: none;
}

/* Media Hover Preview Popover */
.media-hover-preview {
  position: fixed;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  max-width: 440px;
  min-width: 280px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s ease-out;
  pointer-events: none;
}

.media-hover-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.media-hover-preview .mhp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  user-select: none;
}

.media-hover-preview .mhp-badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.media-hover-preview .mhp-filename {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-hover-preview .mhp-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-hover-preview .mhp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.media-hover-preview .mhp-btn:hover {
  color: #f8fafc;
  background: #38bdf8;
  border-color: #38bdf8;
}

.media-hover-preview .mhp-body {
  position: relative;
  min-height: 120px;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  overflow: hidden;
}

.media-hover-preview .mhp-img,
.media-hover-preview .mhp-video {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.media-hover-preview .mhp-loader {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: mhp-spin 0.6s linear infinite;
}

@keyframes mhp-spin {
  to { transform: rotate(360deg); }
}

.media-hover-preview .mhp-error {
  padding: 16px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: #ef4444;
  text-align: center;
}

.media-hover-preview .mhp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  font-size: var(--text-2xs);
  color: #64748b;
  font-family: var(--font-mono);
}

/* =============================================================
   Dashboard, Runs & Historical Views Shared Layout & Typography
   ============================================================= */

.dashboard-root {
  background: var(--bg, #090d16);
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

.dashboard-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #1e293b);
}

.dashboard-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-2xl, 24px);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

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

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.stats-card {
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: 16px 20px;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  border-color: #334155;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--metric-accent, #38bdf8);
}

.stats-card.card-primary { --metric-accent: #38bdf8; }
.stats-card.card-success { --metric-accent: #22c55e; }
.stats-card.card-error { --metric-accent: #ef4444; }
.stats-card.card-purple { --metric-accent: #a855f7; }
.stats-card.card-warning { --metric-accent: #f59e0b; }

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

.stats-card-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stats-card-icon {
  font-size: 16px;
  color: var(--metric-accent, #38bdf8);
}

.stats-card-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 4px;
}

.stats-card-sub,
.stats-card-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #64748b;
  margin-top: 2px;
}

/* Latest Run Quick Banner */
.dashboard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border, #1e293b);
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  padding: 10px 16px;
  box-sizing: border-box;
}

.dashboard-banner.queue-active {
  border-left: 3px solid #a855f7;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.dashboard-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.dashboard-banner-label {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-muted);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: none;
  white-space: nowrap;
}

.dashboard-banner-suite {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #f8fafc;
  font-size: var(--text-md);
  white-space: nowrap;
}

.dashboard-banner-meta {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.dashboard-banner .run-tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  min-width: 0;
  min-height: max-content;
  height: auto;
  flex: 1 0 auto;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #1e293b);
}

.dashboard-section-title {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #f8fafc;
}

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

/* Known Issues Dashboard Action Lists */
.dashboard-issues-lists {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-issues-col {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.dashboard-issues-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #1e293b);
}

.dashboard-issues-col-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-issues-col-title.fix { color: #f87171; }
.dashboard-issues-col-title.verify { color: #4ade80; }
.dashboard-issues-col-title.test { color: #fbbf24; }

.dashboard-issues-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.dashboard-issues-item > * {
  min-width: 0;
}

.dashboard-issues-item:hover {
  background: #1e293b;
  border-color: #334155;
}

.dashboard-issues-item-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.dashboard-issues-item-link:hover {
  text-decoration: underline;
}

.dashboard-issues-item-meta {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: #64748b;
}

/* Unified Data Grid & TreeGrid Typography */
.dashboard-grid {
  --lumo-font-size-s: var(--text-2xs);
  --vaadin-grid-cell-padding: 0 8px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  min-height: 360px !important;
  flex: 1 0 360px !important;
}

.dashboard-grid vaadin-grid-cell-content {
  padding: 2px 6px;
  font-family: inherit;
  font-size: var(--text-sm);
}

.dashboard-grid::part(header-cell) {
  background: #0d1322;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border, #1e293b);
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 30px;
}

.dashboard-grid::part(header-cell):hover {
  background: #111a2e;
}

.dashboard-grid::part(frozen-cell),
.dashboard-grid::part(select-column-cell),
.dashboard-grid::part(select-column-header-cell) {
  background: #0b1120 !important;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.45);
  z-index: 10 !important;
}

.dashboard-grid::part(last-frozen) {
  border-right: 1px solid var(--border, #1e293b);
}

.dashboard-grid::part(footer-cell) {
  background: #0d1322;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-2xs);
  border-top: 1px solid var(--border, #1e293b);
  min-height: 30px;
}

.dashboard-grid vaadin-grid-sorter {
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
  height: 100%;
  display: flex;
  align-items: center;
}

.dashboard-grid vaadin-grid-sorter::part(content) {
  width: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
}

.dashboard-grid vaadin-grid-sorter:hover::part(content) {
  color: #f8fafc;
}

.grid-header-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dashboard-grid::part(cell) {
  min-height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: #cbd5e1;
  padding-top: 2px;
  padding-bottom: 2px;
}

.dashboard-grid::part(cell).grid-mono-cell,
.grid-mono-cell {
  font-family: var(--font-mono) !important;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.dashboard-grid::part(row):hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.dashboard-grid .badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  padding: 2px 7px;
  letter-spacing: 0.04em;
}

.grid-run-link,
.dashboard-grid .grid-run-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  cursor: pointer;
}

.grid-run-link:hover,
.dashboard-grid .grid-run-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

/* =============================================================
   API Documentation Styles (Modern Developer Reference Portal)
   ============================================================= */
.api-doc-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.api-hero-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: 24px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.api-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.api-spec-card {
  background: #0b1120;
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  padding: 12px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.api-spec-card:hover {
  border-color: #334155;
  transform: translateY(-1px);
}

.api-spec-label {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.api-spec-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #38bdf8;
  word-break: break-all;
}

.api-spec-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #64748b;
}

.api-endpoint-card {
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.api-endpoint-card.primary {
  border-top: 3px solid #38bdf8;
}

.api-endpoint-card.queue {
  border-top: 3px solid #a855f7;
}

.api-endpoint-card.status {
  border-top: 3px solid #22c55e;
}

.api-endpoint-card.sync {
  border-top: 3px solid #06b6d4;
}

.api-endpoint-card.links {
  border-top: 3px solid #f59e0b;
}

.api-endpoint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #1e293b);
}

.api-endpoint-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.api-method-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.api-method-badge.post {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.api-method-badge.get {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.api-endpoint-path {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.api-endpoint-alias {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #64748b;
  background: rgba(30, 41, 59, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.api-desc-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.api-desc-text code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: rgba(30, 41, 59, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Rock-Solid Semantic Parameters Table */
.api-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  background: #0b1120;
}

.api-params-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
}

.api-params-table th {
  background: #0d1527;
  color: var(--text-muted);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border, #1e293b);
}

.api-params-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  font-size: var(--text-sm);
  color: #cbd5e1;
  vertical-align: middle;
}

.api-params-table tr:last-child td {
  border-bottom: none;
}

.api-params-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.api-param-name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #38bdf8;
}

.api-param-type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #94a3b8;
}

.api-param-default {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #64748b;
}

/* Two-column Code / Terminal Grid */
.api-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Developer Terminal Box */
.api-terminal-box {
  background: #050811;
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.api-terminal-header {
  background: #0b1120;
  border-bottom: 1px solid var(--border, #1e293b);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.api-dot.red { background: #ef4444; opacity: 0.85; }
.api-dot.yellow { background: #eab308; opacity: 0.85; }
.api-dot.green { background: #22c55e; opacity: 0.85; }

.api-terminal-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.api-terminal-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: 500;
  padding: 3px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.api-terminal-copy-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: #38bdf8;
}

.api-terminal-body {
  padding: 14px 18px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.55;
  color: #e2e8f0;
  background: #050811;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.api-terminal-body .code-comment { color: #64748b; }
.api-terminal-body .code-key { color: #7dd3fc; }
.api-terminal-body .code-str { color: #86efac; }
.api-terminal-body .code-num { color: #fcd34d; }
.api-terminal-body .code-bool { color: #f472b6; }

.dashboard-grid .run-tab-btn {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
}

/* Unified Filter Inputs across all views */
.dashboard-filter-bar vaadin-text-field,
.dashboard-filter-bar vaadin-combo-box,
.phase-filter-bar vaadin-text-field,
.phase-filter-bar vaadin-combo-box,
.historical-matrix-toolbar vaadin-text-field,
.historical-matrix-toolbar vaadin-combo-box {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  margin: 0 !important;
  padding: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  align-self: center !important;
}

.dashboard-filter-bar vaadin-text-field::part(input-field),
.dashboard-filter-bar vaadin-combo-box::part(input-field),
.phase-filter-bar vaadin-text-field::part(input-field),
.phase-filter-bar vaadin-combo-box::part(input-field),
.historical-matrix-toolbar vaadin-text-field::part(input-field),
.historical-matrix-toolbar vaadin-combo-box::part(input-field) {
  background: #0d1322;
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  box-sizing: border-box !important;
}

.dashboard-filter-bar vaadin-text-field::part(input-field):hover,
.dashboard-filter-bar vaadin-combo-box::part(input-field):hover,
.phase-filter-bar vaadin-text-field::part(input-field):hover,
.phase-filter-bar vaadin-combo-box::part(input-field):hover,
.historical-matrix-toolbar vaadin-text-field::part(input-field):hover,
.historical-matrix-toolbar vaadin-combo-box::part(input-field):hover {
  border-color: #334155;
}

.dashboard-filter-bar vaadin-text-field[focus-ring]::part(input-field),
.dashboard-filter-bar vaadin-combo-box[focus-ring]::part(input-field),
.phase-filter-bar vaadin-text-field[focus-ring]::part(input-field),
.phase-filter-bar vaadin-combo-box[focus-ring]::part(input-field),
.historical-matrix-toolbar vaadin-text-field[focus-ring]::part(input-field),
.historical-matrix-toolbar vaadin-combo-box[focus-ring]::part(input-field) {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

vaadin-combo-box,
vaadin-combo-box-overlay,
vaadin-multi-select-combo-box,
vaadin-multi-select-combo-box-overlay,
vaadin-select,
vaadin-select-overlay {
  --lumo-font-size-m: var(--text-sm);
  --lumo-font-size-s: var(--text-sm);
  font-family: var(--font-sans);
  --vaadin-combo-box-width: max-content;
}

vaadin-combo-box-overlay,
vaadin-multi-select-combo-box-overlay,
vaadin-select-overlay {
  min-width: var(--_vaadin-combo-box-default-width, 180px) !important;
  width: auto !important;
  max-width: 520px !important;
}

vaadin-combo-box-overlay::part(overlay),
vaadin-multi-select-combo-box-overlay::part(overlay),
vaadin-select-overlay::part(overlay) {
  min-width: var(--_vaadin-combo-box-default-width, 100%);
  width: max-content !important;
  max-width: 520px !important;
}

vaadin-combo-box-overlay::part(content),
vaadin-multi-select-combo-box-overlay::part(content),
vaadin-select-overlay::part(content) {
  min-width: 100%;
  width: max-content !important;
}

vaadin-combo-box-item {
  font-size: var(--text-sm) !important;
  font-family: var(--font-sans) !important;
  min-height: 28px !important;
  padding: 4px 10px !important;
  white-space: nowrap !important;
}

.dashboard-filter-bar vaadin-text-field input,
.dashboard-filter-bar vaadin-combo-box input,
.phase-filter-bar vaadin-text-field input,
.phase-filter-bar vaadin-combo-box input,
.historical-matrix-toolbar vaadin-text-field input,
.historical-matrix-toolbar vaadin-combo-box input {
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

/* =============================================================
   Historical Data Matrix Mode (TreeGrid per scenario vs all runs)
   ============================================================= */

.historical-matrix-container {
  width: 100%;
  height: 100%;
  flex: 1 1 0px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #111827);
  border: 1px solid var(--border, #1e293b);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.historical-matrix-toolbar {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border, #1e293b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 44px;
  box-sizing: border-box;
}

.week-preset-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border, #1e293b);
  height: 28px;
  box-sizing: border-box;
}

.week-preset-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 9px;
  height: 22px;
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.week-preset-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.week-preset-btn.active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #0284c7;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

.historical-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.historical-col-header:hover {
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.historical-col-header.current-run {
  border: 1px solid #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 5px;
}

.historical-col-header .grid-run-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-align: center;
}

.historical-suite-label {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.05em;
}

.historical-date-label {
  font-size: var(--text-2xs);
  color: #64748b;
  font-family: var(--font-mono);
}

.historical-cell-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.historical-cell-empty {
  color: #475569;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 600;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.historical-tree-grid {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.historical-tree-grid vaadin-grid-cell-content {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow: visible;
}

.historical-tree-grid::part(cell) {
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  padding: 4px 8px;
  background: var(--card-bg, #111827);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #cbd5e1;
  overflow: visible;
}

.historical-tree-grid::part(header-cell) {
  background: #0d1322;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  border-bottom: 1px solid var(--border, #1e293b);
  padding: 4px 4px;
  text-align: center;
  overflow: visible;
}

.historical-tree-grid::part(frozen-cell) {
  background: #0b1120 !important;
  box-shadow: 6px 0 16px rgba(0, 0, 0, 0.6);
  z-index: 10;
  overflow: hidden !important;
}

.historical-tree-grid vaadin-grid-sorter::part(content) {
  font-family: var(--font-sans) !important;
  font-size: var(--text-2xs) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0.05em !important;
  color: var(--text-muted) !important;
}

.historical-tree-grid vaadin-grid-sorter:hover::part(content) {
  color: #f8fafc !important;
}


.tree-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
  gap: 8px;
}

.tree-header-title {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.tree-level-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.4);
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  box-sizing: border-box;
}

.tree-level-btn,
.tree-mode-bar vaadin-button.tree-level-btn {
  background: transparent !important;
  color: #94a3b8 !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.tree-level-btn::part(label),
.tree-mode-bar vaadin-button.tree-level-btn::part(label) {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  font-family: var(--font-mono) !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tree-level-btn:hover,
.tree-mode-bar vaadin-button.tree-level-btn:hover {
  background: rgba(51, 65, 85, 0.5) !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

.tree-level-btn.active,
.tree-mode-bar vaadin-button.tree-level-btn.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
  border-color: #0284c7 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.25) !important;
}

.historical-week-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  font-family: var(--font-mono);
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.historical-week-header .week-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.03em;
}

.historical-week-header .week-count {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
  padding: 1px 5px;
  border-radius: 10px;
}

.historical-compact-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  cursor: pointer;
  user-select: none;
  width: 100%;
  height: 100%;
}

.historical-compact-col-header:hover {
  background: rgba(56, 189, 248, 0.16);
  border-radius: 4px;
}

.historical-compact-col-header.current-run {
  border: 1px solid #38bdf8;
  background: rgba(56, 189, 248, 0.22);
  border-radius: 4px;
}

.historical-compact-col-header.current-run .compact-day-label {
  color: #38bdf8;
  font-weight: 700;
}

.historical-compact-col-header .compact-day-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-muted);
  font-weight: 600;
}

.historical-compact-col-header:hover .compact-day-label {
  color: #f8fafc;
}

.historical-circle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.historical-circle:hover {
  transform: scale(1.35);
  z-index: 5;
}

.historical-circle.passed {
  background: #22c55e !important;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5) !important;
}

.historical-circle.failed {
  background: #ef4444 !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.55) !important;
}

.historical-circle.warning {
  background: #f59e0b !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.55) !important;
}

.historical-circle.neutral {
  background: #64748b !important;
  box-shadow: 0 0 4px rgba(100, 116, 139, 0.4) !important;
}

.historical-circle > span:not([class*="status-bullet"]) {
  display: none !important;
}

.historical-circle .status-bullet-warning {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 50%;
  border: 1px solid #0b1120;
  box-shadow: 0 0 3px #f59e0b;
}

.historical-circle .status-bullet-notice {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  background: #38bdf8;
  border-radius: 50%;
  border: 1px solid #0b1120;
  box-shadow: 0 0 3px #38bdf8;
}

.historical-circle .status-bullet-child-error {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  background: #ef4444;
  border-radius: 50%;
  border: 1px solid #0b1120;
  box-shadow: 0 0 4px #ef4444;
}

.historical-circle .status-bullet-child-warning {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  background: #f59e0b;
  border-radius: 50%;
  border: 1px solid #0b1120;
  box-shadow: 0 0 4px #f59e0b;
}

.historical-circle .status-bullet-child-notice {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  background: #38bdf8;
  border-radius: 50%;
  border: 1px solid #0b1120;
  box-shadow: 0 0 4px #38bdf8;
}

.status-bullet-child-error-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  margin-left: 5px;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.7);
  flex-shrink: 0;
}

.status-bullet-child-warning-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f59e0b;
  margin-left: 5px;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

.status-bullet-child-notice-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #06b6d4;
  margin-left: 5px;
  box-shadow: 0 0 4px rgba(6, 182, 212, 0.7);
  flex-shrink: 0;
}

.historical-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border, #1e293b);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #cbd5e1;
}

.historical-legend .legend-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.historical-legend .legend-title {
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  font-size: var(--text-2xs);
  text-transform: none;
  letter-spacing: 0.04em;
}

.historical-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.historical-legend .legend-sep {
  color: #334155;
  user-select: none;
}

.historical-circle-empty {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #334155;
  opacity: 0.6;
}

.historical-tree-grid.compact-mode {
  --lumo-size-s: 28px;
  --vaadin-grid-cell-padding: 0;
}

.historical-tree-grid.compact-mode::part(cell) {
  padding: 0;
  height: 28px;
  min-height: 28px;
  box-sizing: border-box;
}

.historical-tree-grid.compact-mode::part(frozen-cell) {
  padding: 0 8px !important;
}

.historical-tree-grid.compact-mode::part(header-cell) {
  padding: 0;
}

.historical-tree-grid.compact-mode vaadin-grid-cell-content {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.historical-tree-grid.compact-mode .historical-cell-wrap {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.historical-compact-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  user-select: none;
  width: 28px;
  height: 28px;
  min-height: 28px;
  box-sizing: border-box;
}

.historical-tree-grid::part(last-frozen) {
  border-right: 1px solid var(--border, #1e293b);
}


/* =============================================================
   Modal Dialog Overlays & Backdrop Blurring (Live Logs, Order Launch, etc.)
   ============================================================= */
vaadin-dialog-overlay::part(backdrop),
vaadin-dialog-overlay.order-launch-dialog::part(backdrop),
vaadin-dialog-overlay.live-log-dialog::part(backdrop) {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

vaadin-dialog-overlay.order-launch-dialog::part(overlay) {
  background: #111827 !important;
  background-color: #111827 !important;
  background-image: none !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8) !important;
  border-radius: 12px !important;
}

vaadin-dialog-overlay.order-launch-dialog::part(header) {
  padding: 14px 20px 10px 20px !important;
  border-bottom: 1px solid #1e293b !important;
  background: #090d16 !important;
  background-color: #090d16 !important;
  background-image: none !important;
}

vaadin-dialog-overlay.order-launch-dialog::part(content) {
  padding: 16px 20px !important;
  background: #111827 !important;
  background-color: #111827 !important;
  background-image: none !important;
}

vaadin-dialog-overlay.order-launch-dialog::part(footer) {
  padding: 12px 20px !important;
  border-top: 1px solid #1e293b !important;
  background: #090d16 !important;
  background-color: #090d16 !important;
  background-image: none !important;
}

/* =============================================================
   Live Console Log Viewer Modal
   ============================================================= */
vaadin-dialog-overlay.live-log-dialog::part(backdrop) {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

vaadin-dialog-overlay.live-log-dialog::part(overlay) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  border: 1px solid #262626 !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8) !important;
  border-radius: 12px !important;
}

vaadin-dialog-overlay.live-log-dialog::part(header) {
  padding: 14px 20px 10px 20px !important;
  border-bottom: 1px solid #262626 !important;
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  background-image: none !important;
}

vaadin-dialog-overlay.live-log-dialog::part(content) {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

.live-log-terminal {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: auto;
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.live-log-terminal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.live-log-terminal::-webkit-scrollbar-track {
  background: #000000;
}

.live-log-terminal::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

.live-log-terminal::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.live-log-pre {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.comparison-divider-col {
  background: var(--lumo-contrast-5pct) !important;
  border-left: 1px solid var(--lumo-contrast-10pct);
  border-right: 1px solid var(--lumo-contrast-10pct);
  overflow: hidden !important;
}

.inline-diff-del {
  background-color: rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  font-weight: bold;
  border-radius: 2px;
  padding: 0 2px;
}

.inline-diff-add {
  background-color: rgba(34, 197, 94, 0.35) !important;
  color: #86efac !important;
  font-weight: bold;
  border-radius: 2px;
  padding: 0 2px;
}

/* =============================================================
   Universal Thin Scrollbars & Scroll Shadows
   ============================================================= */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Vertical Scroll Shadows (Dynamic Cue for Vertical Containers) */
.scroll-shadow-v {
  background:
    linear-gradient(var(--bg, #090d16) 30%, rgba(9, 13, 22, 0)),
    linear-gradient(rgba(9, 13, 22, 0), var(--bg, #090d16) 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)) 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
}

/* Horizontal Scroll Shadows (Cylindrical Edge Cue for Horizontal Containers) */
.scroll-shadow-h {
  background:
    linear-gradient(90deg, var(--bg, #090d16) 30%, rgba(9, 13, 22, 0)),
    linear-gradient(90deg, rgba(9, 13, 22, 0), var(--bg, #090d16) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* =============================================================
   Comparison View - Section Panel Scrollbar & Shadow
   ============================================================= */
.comparison-section-panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.comparison-section-panel::-webkit-scrollbar-track {
  background: transparent;
}
.comparison-section-panel::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}
.comparison-section-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* =============================================================
   Semantic Navigation History Pill Buttons
   ============================================================= */

/* Hide semantic key tags when section is closed (collapsed) */
details:not([open]) .semantic-key-tag {
  display: none !important;
}

/* Show semantic history buttons only on unwrapped (open) sections */
details:not([open]) .log-section-summary .semantic-history-group {
  display: none !important;
}

details[open] > .log-section-summary .semantic-history-group {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
}

details[open] .semantic-key-tag {
  display: inline-flex !important;
  align-items: center;
  color: #38bdf8;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  opacity: 0.85;
  font-weight: normal;
  margin-left: 4px;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  overflow: hidden;
  vertical-align: middle;
}

.semantic-key-tag .key-prefix {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 12px;
}

.semantic-key-tag .key-suffix {
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.semantic-history-group.prev-group {
  margin-right: 6px;
}

.semantic-history-group.next-group {
  margin-left: 8px;
}

.semantic-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.semantic-pill-btn svg {
  width: 11px;
  height: 11px;
  display: block;
}

.semantic-pill-btn.passed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.semantic-pill-btn.passed:hover {
  background: rgba(34, 197, 94, 0.45);
  color: #ffffff;
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.semantic-pill-btn.failed {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.semantic-pill-btn.failed:hover {
  background: rgba(239, 68, 68, 0.45);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.semantic-pill-btn.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.semantic-pill-btn.warning:hover {
  background: rgba(245, 158, 11, 0.45);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

/* =========================================================================
   Connection / Loading Indicator Rules
   - User-initiated operations with slowdown (>300ms): Show full-screen dimmed
     overlay with spinning circle.
   - Timed automatic processes / background polling: Show ONLY the standard top
     progress bar (.v-loading-indicator) without full-screen overlay or flash.
   ========================================================================= */

/* Base container: non-intrusive by default */
vaadin-connection-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 99999;
    pointer-events: none;
}

/* Standard top loading indicator (used for timed/background polling and non-overlay states) */
.v-loading-indicator {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background-color: var(--lumo-primary-color, #38bdf8) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8) !important;
    z-index: 100000 !important;
    pointer-events: none !important;
}

/* Clean, Non-Intrusive Vaadin Connection & Loading Indicator */
vaadin-connection-indicator {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background-color: transparent !important;
    pointer-events: none !important;
    z-index: 100000 !important;
}

.v-loading-indicator {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background-color: var(--lumo-primary-color, #38bdf8) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8) !important;
    z-index: 100000 !important;
    pointer-events: none !important;
}

/* Local Deactivation Safeguards */
.live-console-active vaadin-connection-indicator[loading],
.in-progress-run-active vaadin-connection-indicator[loading],
html:has(.live-log-dialog) vaadin-connection-indicator[loading],
body:has(.live-log-dialog) vaadin-connection-indicator[loading] {
    background-color: transparent !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.live-console-active vaadin-connection-indicator[loading]::after,
.in-progress-run-active vaadin-connection-indicator[loading]::after,
html:has(.live-log-dialog) vaadin-connection-indicator[loading]::after,
body:has(.live-log-dialog) vaadin-connection-indicator[loading]::after {
    display: none !important;
    content: none !important;
}

/* Screenshot Gallery Thumbnail Cards & Responsiveness */
.screenshot-gallery-toolbar {
    flex-shrink: 0 !important;
}

.screenshot-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)) !important;
    gap: 12px !important;
    padding: 12px !important;
    flex: 1 1 0px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.screenshot-gallery-pagination {
    flex-shrink: 0 !important;
}

.screenshot-img-wrapper {
    width: 100%;
    height: 180px;
    min-height: 140px;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screenshot-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.screenshot-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25) !important;
}

.screenshot-lightbox-dialog::part(overlay) {
    padding: 0 !important;
}

@media (max-width: 600px) {
    .screenshot-gallery-toolbar {
        padding: 6px 8px !important;
        gap: 6px 8px !important;
    }
    .screenshot-gallery-toolbar vaadin-text-field {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .screenshot-gallery-toolbar vaadin-select {
        flex: 1 1 120px !important;
        min-width: 0 !important;
    }
    .screenshot-gallery-stats {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: right !important;
        font-size: 0.8rem !important;
    }
    .screenshot-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 125px), 1fr)) !important;
        gap: 8px !important;
        padding: 8px !important;
    }
    .screenshot-img-wrapper {
        height: 140px !important;
        min-height: 110px !important;
    }
    .screenshot-lightbox-dialog::part(overlay) {
        width: 98vw !important;
        height: 94vh !important;
        max-width: 100vw !important;
    }
    .screenshot-lightbox-main {
        position: relative !important;
        padding: 4px !important;
    }
    .screenshot-lightbox-prev-btn,
    .screenshot-lightbox-next-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 6px 10px !important;
        min-width: 36px !important;
    }
    .screenshot-lightbox-prev-btn { left: 6px !important; }
    .screenshot-lightbox-next-btn { right: 6px !important; }
    .screenshot-lightbox-header {
        padding: 6px 10px !important;
    }
    .screenshot-lightbox-meta {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }
    .btn-text-responsive {
        display: none !important;
    }
}

/* =============================================================
   Responsive Breakpoints & Narrow-Viewport Adaptations
   ============================================================= */

/* 1. Compact Desktop / Laptop (<= 1380px): condense top navbar spacing */
@media (max-width: 1380px) {
  .app-navbar-header .app-brand-subtitle {
    display: none;
  }

  .app-top-nav-group {
    margin-left: 12px;
    gap: 3px;
  }

  .top-nav-link {
    padding: 5px 8px;
  }
}

/* 2. Narrow Desktop (1101px – 1220px): hide RAM metric in navbar so 7 nav links fit cleanly */
@media (min-width: 1101px) and (max-width: 1220px) {
  #header-ram-metric {
    display: none;
  }
}

/* 3. Tablet & Narrow Window (<= 1100px): switch top nav links into slide-out Drawer */
@media (max-width: 1100px) {
  .app-navbar-header {
    padding: 0 14px;
    gap: 8px;
  }

  .app-drawer-toggle {
    display: inline-flex;
  }

  .app-top-nav-group {
    display: none;
  }
}

/* 3.5. Medium Desktop (<= 1260px): 3 columns in Known Issues Action Center */
@media (max-width: 1260px) {
  .dashboard-issues-lists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 3.8. Narrow Desktop & Tablet (<= 940px): 2 columns in Known Issues Action Center & 1 col API code */
@media (max-width: 940px) {
  .dashboard-issues-lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-code-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Disable CSS forced capitalization across all table & grid headers and badges */
:root {
  --lumo-header-text-transform: none !important;
}

.issue-status-badge {
  text-transform: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.tree-header-title,
.historical-col-header,
.historical-compact-col-header,
.badge {
  text-transform: none !important;
}

/* Issue Column Cell Sizing for Mobile L */
.issue-col-cell {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 4. Mobile & Narrow Tablet (<= 768px): compact cards, headers, and sections */
@media (max-width: 768px) {
  vaadin-tooltip-overlay::part(overlay),
  .v-tooltip,
  .vaadin-tooltip-overlay {
    font-size: 0.95rem !important;
    padding: 6px 10px !important;
  }

  .dashboard-container {
    padding: 6px;
    gap: 6px;
  }

  .dashboard-header {
    gap: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
  }

  .dashboard-title {
    font-size: var(--text-xl, 20px);
  }

  .dashboard-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .dashboard-filter-bar {
    padding: 6px 8px !important;
    gap: 6px 8px !important;
  }

  .dashboard-filter-bar vaadin-combo-box,
  .dashboard-filter-bar vaadin-select {
    flex: 1 1 110px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .dashboard-filter-bar vaadin-text-field {
    flex: 1 1 130px !important;
    max-width: 100% !important;
  }

  .week-preset-group {
    flex-wrap: wrap !important;
    gap: 3px !important;
  }

  .week-preset-btn {
    padding: 3px 6px !important;
    font-size: 0.76rem !important;
  }

  .issues-exclude-group {
    flex-wrap: wrap !important;
    gap: 4px 6px !important;
    font-size: 0.78rem !important;
  }

  .dashboard-filter-bar .badge.limbo {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: right !important;
    font-size: 0.75rem !important;
  }

  .issue-title-span {
    max-width: 120px !important;
  }

  .historical-tree-grid::part(frozen-cell) {
    max-width: 220px !important;
  }

  .historical-tree-grid vaadin-grid-cell-content {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

@media (max-width: 540px) {
  .issue-title-span {
    display: none !important;
  }

  .historical-tree-grid::part(frozen-cell) {
    max-width: 160px !important;
  }

  .dashboard-banner-meta {
    white-space: normal;
  }

  .sections-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 5. Small Mobile (<= 640px): move system metrics exclusively into Drawer */
@media (max-width: 640px) {
  .app-navbar-header .system-metrics-badge {
    display: none;
  }

  .app-order-launch-btn {
    margin-left: auto;
  }
}

/* 5.5. Large Phone (<= 580px): 1 column in Known Issues Action Center */
@media (max-width: 580px) {
  .dashboard-issues-lists {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-section {
    padding: 12px;
  }
}

/* 6. Phone (<= 480px): ultra-compact navbar & 2-col compact KPI cards */
@media (max-width: 480px) {
  .app-navbar-header {
    padding: 0 8px;
    gap: 6px;
  }

  .app-navbar-header .app-brand-version {
    display: none;
  }

  .app-brand-logo {
    font-size: 14px;
  }

  .order-launch-full {
    display: none;
  }

  .order-launch-short {
    display: inline;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    gap: 10px;
  }
}
.compact-elide-prefix { display: none !important; }

/* Responsive buttons in Phase Filter Bar */
.phase-filter-bar.compact-level-1 .resp-level-1 { display: none !important; }
.phase-filter-bar.compact-level-2 .resp-level-2 { display: none !important; }
.phase-filter-bar.compact-level-3 .resp-level-3 { display: none !important; }
.phase-filter-bar.compact-level-4 .resp-level-4 { display: none !important; }
.phase-filter-bar.compact-level-5 .resp-level-5 { display: none !important; }

.chart-collapse-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  padding: 2px 4px !important;
  min-width: 24px !important;
  height: 24px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.chart-collapse-btn:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.chart-card.collapsed {
  padding-bottom: 8px !important;
  margin-bottom: 6px !important;
}

/* Run Details Explorer Layout Rules & Minimum Heights */
.run-split-left-pane {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 380px !important;
  min-width: 240px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.run-split-left-pane > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

.run-split-left-pane.collapsed {
  display: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.run-split-right-pane {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 380px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.run-split-right-pane > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

.tree-pane-grid {
  min-height: 250px !important;
}

.run-split-left-pane:not(.collapsed) {
  min-width: 240px !important;
  min-height: 380px !important;
}

.explorer-content-wrap {
  min-height: 380px !important;
  flex: 1 0 380px !important;
}

.run-split-layout {
  min-height: 380px !important;
}

/* Adaptation for small height viewports (small laptops, landscape phones/tablets) */
@media (max-height: 900px) and (min-width: 769px) {
  .run-details-view {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .run-details-content-area {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: visible !important;
    flex: 1 0 auto !important;
  }

  .run-details-native-explorer {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: visible !important;
    flex: 1 0 auto !important;
  }

  .explorer-content-wrap {
    height: auto !important;
    min-height: 380px !important;
  }

  .run-split-layout {
    min-height: 380px !important;
  }
}

/* Mobile & Narrow Viewport Adaptations for Run Details Explorer */
@media (max-width: 768px) {
  .run-details-view {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .run-details-content-area {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: visible !important;
    flex: 1 0 auto !important;
  }

  .run-details-native-explorer {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: visible !important;
    flex: 1 0 auto !important;
  }

  .explorer-content-wrap {
    min-height: 740px !important;
    height: auto !important;
    flex: 1 0 auto !important;
  }

  .run-split-layout {
    min-height: 740px !important;
  }

  .run-split-left-pane:not(.collapsed) {
    min-height: 300px !important;
    height: 300px !important;
    flex: 1 0 300px !important;
  }

  .run-split-left-pane.collapsed {
    min-height: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: none !important;
  }

  .run-split-right-pane {
    min-height: 420px !important;
    height: 420px !important;
    flex: 1 0 420px !important;
  }

  .chart-card {
    padding: 10px 12px !important;
  }

  .chart-card .card-title {
    font-size: 0.85rem !important;
    gap: 6px !important;
  }

  .plaque-config {
    gap: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .title-test-prefix,
  .tree-test-prefix,
  .log-section-summary .op-range,
  .log-section-summary .badge,
  .log-section-summary .time-range,
  .log-section-summary .line-count {
    display: none !important;
  }

  details.log-section summary {
    padding: 6px 8px !important;
    gap: 4px !important;
  }

  .summary-left {
    gap: 4px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .summary-right {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .semantic-history-group.prev-group {
    margin-right: 2px !important;
  }

  .semantic-history-group.next-group {
    margin-left: 2px !important;
  }

  .semantic-pill-btn {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.65rem !important;
  }
}

/* ==========================================================================
   PRINT STYLESHEET
   ========================================================================== */
@media print {
  vaadin-app-layout::part(navbar),
  vaadin-app-layout::part(drawer),
  .run-view-toolbar,
  .no-print,
  .btn-green,
  .btn-amber,
  .filter-bar,
  .action-center-column,
  button,
  .cylindrical-strip-helper {
    display: none !important;
  }

  html, body, vaadin-app-layout, main, .run-details-view {
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
  }

  .result-plaque {
    border: 1px solid #000000 !important;
    background: #f8fafc !important;
    color: #000000 !important;
  }

  vaadin-grid {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  vaadin-grid-cell-content {
    color: #000000 !important;
    background: #ffffff !important;
  }

  pre, code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    color: #000000 !important;
    background: #f1f5f9 !important;
  }
}





