/* PRO_DETAILED_ANALYSIS_V2_PHASE1
   Professional Systems Builder only.
   Full-screen Detailed Analysis workspace, compact report density and compact Stage 7 setup.
   No report calculations, backend queries or Main Builder / Race Profiler presentation are changed. */

/* ========================================================================== */
/* STAGE 7 — COMPACT ANALYSIS SETUP                                            */
/* ========================================================================== */
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(470px, .72fr) !important;
  align-items: center !important;
  gap: 7px 14px !important;
  margin-bottom: 8px !important;
  padding: 9px 11px !important;
  border-radius: 15px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-main {
  min-width: 0 !important;
  grid-column: 1 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-copy h2 {
  margin: 2px 0 !important;
  font-size: clamp(17px, 1.25vw, 23px) !important;
  line-height: 1.05 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-copy p {
  max-width: none !important;
  font-size: 9.5px !important;
  line-height: 1.32 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-heading > span {
  font-size: 8px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-meta {
  gap: 4px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-meta b,
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-intro-meta em {
  font-size: 7.5px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-actions.is-analysis-stage {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(105px, .62fr) minmax(190px, 1.5fr) minmax(105px, .62fr) !important;
  gap: 6px !important;
  margin: 0 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-action {
  min-height: 32px !important;
  height: 32px !important;
  padding: 5px 9px !important;
  border-radius: 9px !important;
  font-size: 9px !important;
  line-height: 1 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-guidance {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 25px !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-guidance strong,
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-guidance span {
  font-size: 8px !important;
  line-height: 1.18 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions {
  border-radius: 16px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .section-body {
  padding: 8px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-groups-card {
  padding: 9px 10px 10px !important;
  border-radius: 14px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-groups-header {
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 7px !important;
  padding-bottom: 7px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-groups-header .card-title {
  font-size: 12px !important;
  letter-spacing: .13em !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-groups-intro {
  margin-top: 2px !important;
  font-size: 8.5px !important;
  line-height: 1.25 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-group-count {
  min-height: 25px !important;
  padding: 4px 9px !important;
  font-size: 8px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-groups-list {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 5px 7px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-group-toggle {
  min-height: 33px !important;
  grid-template-columns: 15px minmax(0, 1fr) auto 18px !important;
  gap: 6px !important;
  padding: 5px 7px !important;
  border-radius: 9px !important;
  font-size: 9px !important;
  line-height: 1.12 !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-group-toggle input {
  width: 14px !important;
  height: 14px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-group-toggle > span:first-of-type {
  justify-content: center !important;
  gap: 5px !important;
  font-size: 9px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-group-toggle small {
  font-size: 7.4px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-group-toggle em {
  padding: 2px 5px !important;
  font-size: 6.8px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-group-help {
  width: 17px !important;
  height: 17px !important;
  font-size: 8px !important;
}
body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #builder-actions .report-table-groups-note {
  margin-top: 6px !important;
  padding: 5px 7px !important;
  font-size: 7.7px !important;
}

/* ========================================================================== */
/* PRO DETAILED ANALYSIS — DEDICATED FULL-SCREEN PAGE                         */
/* ========================================================================== */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report {
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 95% 0%, rgba(65, 197, 222, .16), transparent 33%),
    radial-gradient(circle at 10% 100%, rgba(91, 84, 220, .10), transparent 36%),
    linear-gradient(145deg, #eef5fb 0%, #edf7f5 54%, #f3f1fb 100%) !important;
  backdrop-filter: none !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report > .quick-report-shell {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report > .quick-report-shell.nav-collapsed {
  width: 100vw !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window {
  width: auto !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(247, 250, 255, .76) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-header {
  min-height: 58px !important;
  padding: 8px 12px !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(75, 112, 195, .16) !important;
  background:
    radial-gradient(circle at 96% -80%, rgba(34, 211, 238, .18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 250, 255, .87)) !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-kicker {
  font-size: 7.5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-header h2 {
  margin-top: 2px !important;
  font-size: clamp(19px, 1.35vw, 24px) !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-actions {
  gap: 6px !important;
  flex-wrap: nowrap !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-actions .mini-button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 11px !important;
  border-radius: 9px !important;
  font-size: 8.8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-body {
  min-height: 0 !important;
  padding: 9px 11px 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  scrollbar-width: thin !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-body > * + * {
  margin-top: 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-card {
  padding: 9px 10px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(28, 43, 84, .045), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-card > .card-title {
  margin-bottom: 6px !important;
  font-size: 9px !important;
  letter-spacing: .12em !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report #overlaySummary .quick-report-shell {
  display: grid !important;
  gap: 7px !important;
}

/* ========================================================================== */
/* INTERNAL NAVIGATOR — ALWAYS USEFUL, NARROWER AT LAPTOP WIDTHS              */
/* ========================================================================== */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-navigator-panel {
  width: 224px !important;
  flex: 0 0 224px !important;
  height: 100vh !important;
  border: 0 !important;
  border-right: 1px solid rgba(53, 143, 160, .20) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, .11), transparent 31%),
    linear-gradient(180deg, rgba(250, 253, 255, .96), rgba(236, 249, 247, .94)) !important;
  box-shadow: 9px 0 24px rgba(27, 54, 83, .055) !important;
  backdrop-filter: none !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-navigator-panel.collapsed {
  width: 42px !important;
  flex-basis: 42px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-rail {
  width: 42px !important;
  flex-basis: 42px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-content {
  padding: 8px 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-header {
  padding: 5px 4px 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-header span {
  font-size: 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-header strong {
  margin-top: 1px !important;
  font-size: 14px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-collapse {
  width: 27px !important;
  height: 27px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-tools {
  gap: 4px !important;
  padding: 7px 2px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-tools button {
  height: 25px !important;
  border-radius: 8px !important;
  font-size: 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group {
  margin-bottom: 5px !important;
  border-radius: 10px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-head {
  min-height: 31px !important;
  grid-template-columns: 17px minmax(0, 1fr) auto !important;
  gap: 4px !important;
  padding: 4px 5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-plus {
  font-size: 12px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-title {
  font-size: 8px !important;
  line-height: 1.08 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-count,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-status {
  font-size: 6.5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-item {
  min-height: 27px !important;
  padding: 4px 5px !important;
  gap: 4px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-item-label {
  font-size: 7.8px !important;
  line-height: 1.08 !important;
}

/* ========================================================================== */
/* FIVE-STAGE PROGRESS — RETAINED AFTER COMPLETION, BUT COMPACT                */
/* ========================================================================== */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-card {
  padding: 8px 9px !important;
  border-radius: 13px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-card .card-title {
  margin-bottom: 6px !important;
  font-size: 7.5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-list {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-step {
  min-height: 42px !important;
  gap: 6px !important;
  padding: 5px 6px !important;
  border-radius: 9px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-step > span {
  width: 20px !important;
  height: 20px !important;
  flex-basis: 20px !important;
  font-size: 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-copy {
  gap: 1px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-copy strong {
  font-size: 8.3px !important;
  line-height: 1.08 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-progress-copy em {
  font-size: 6.6px !important;
}

/* ========================================================================== */
/* SUMMARY — SAME HIERARCHY, LESS HEIGHT                                       */
/* ========================================================================== */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-hero-inline {
  min-height: 0 !important;
  padding: 7px 10px !important;
  border-radius: 11px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-hero-inline .quick-verdict-kicker {
  font-size: 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-hero-inline .summary-hero-copy strong {
  font-size: 15px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-hero-inline p {
  font-size: 8.5px !important;
  line-height: 1.25 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-card,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .market-result-card.summary-performance-card {
  padding: 9px !important;
  border-radius: 13px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-primary-toolbar {
  margin-bottom: 6px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-primary-heading-line h3 {
  font-size: 17px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-layout {
  grid-template-columns: minmax(210px, .82fr) minmax(0, 2.5fr) !important;
  gap: 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-pl-hero {
  min-height: 164px !important;
  padding: 9px !important;
  border-radius: 11px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-pl-value {
  font-size: clamp(25px, 2.25vw, 37px) !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-trend-card {
  margin-top: 5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-trend-svg {
  height: 68px !important;
  min-height: 68px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-top-grid,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-bottom-grid {
  gap: 6px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-card .summary-market-tile {
  min-height: 77px !important;
  padding: 7px !important;
  border-radius: 10px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-card .summary-market-tile-value {
  font-size: 18px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-card .summary-market-tile-label {
  font-size: 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-metric-icon-shell {
  width: 31px !important;
  height: 31px !important;
  margin-bottom: 4px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-next-card {
  padding: 6px 8px !important;
  border-radius: 9px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-next-card strong,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-next-card p,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-next-card span {
  font-size: 7.5px !important;
  line-height: 1.18 !important;
}

/* ========================================================================== */
/* SYSTEM DIAGNOSTICS — SLIM, COLLAPSED BY DEFAULT                            */
/* ========================================================================== */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-layer {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-head {
  min-height: 47px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 9px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-title {
  min-width: 0 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-head h3 {
  margin: 1px 0 3px !important;
  font-size: 12px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-head .race-profiler-output-kicker {
  font-size: 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-compact-facts {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-compact-facts span {
  min-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 2px 6px !important;
  border: 1px solid rgba(101, 126, 188, .17) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .74) !important;
  color: #56708d !important;
  font-size: 7px !important;
  line-height: 1 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-compact-facts strong {
  color: #183d73 !important;
  font-size: 7.5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-head .race-profiler-output-actions {
  gap: 5px !important;
  flex-wrap: nowrap !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-head :is(.system-signals-review-button, .race-profiler-market-badge, .system-signals-expand-button) {
  min-height: 27px !important;
  height: 27px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 7.5px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-expand-button {
  border: 1px solid rgba(79, 116, 195, .25) !important;
  background: rgba(255, 255, 255, .84) !important;
  color: #1c477e !important;
  cursor: pointer !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-expandable-body[hidden] {
  display: none !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-expandable-body {
  padding: 0 8px 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-grid {
  gap: 6px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-grid .race-profiler-output-card {
  padding: 8px !important;
  border-radius: 10px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-grid h4 {
  font-size: 11px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .system-signals-output-grid p {
  font-size: 7.8px !important;
  line-height: 1.25 !important;
}

/* ========================================================================== */
/* YEAR AND BREAKDOWN TABLES — ANALYTICAL DENSITY, CENTRED CELLS               */
/* ========================================================================== */
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-year-table-wrap,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table-wrap {
  overflow-x: hidden !important;
  border-radius: 9px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report #overlayYearTable,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  font-variant-numeric: tabular-nums !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report #overlayYearTable th,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report #overlayYearTable td,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table th,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table td,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table th.detail-metric-th,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table td.detail-metric-td {
  height: 27px !important;
  min-height: 27px !important;
  padding: 3px 4px !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-size: 8.2px !important;
  line-height: 1.08 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table th {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 7.4px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table th:first-child,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table td:first-child,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report #overlayYearTable th:first-child,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report #overlayYearTable td:first-child {
  width: 16% !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table td:not(:first-child) {
  white-space: nowrap !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-column-help-label {
  justify-content: center !important;
  gap: 2px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table .metric-help,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table .summary-inline-info-trigger {
  width: 14px !important;
  height: 14px !important;
  font-size: 7px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-breakdown-area {
  gap: 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detailed-breakdowns-card {
  padding: 8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-card {
  padding: 8px !important;
  border-radius: 11px !important;
  box-shadow: 0 6px 15px rgba(25, 47, 85, .035), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-header,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-header-ranking {
  min-height: 31px !important;
  gap: 5px !important;
  margin-bottom: 5px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-title-row h3 {
  font-size: 11px !important;
  line-height: 1.08 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-chart-slot {
  gap: 4px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report :is(.detail-chart-view-button, .race-profiler-evidence-add-button, .detail-table-guide-toggle) {
  min-height: 25px !important;
  height: 25px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 7.2px !important;
  line-height: 1 !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-header-meta {
  min-width: auto !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-meta,
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-badge {
  font-size: 6.8px !important;
}
body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-interpretation {
  margin: 4px 0 5px !important;
  padding: 5px 7px !important;
  border-radius: 8px !important;
  font-size: 7.3px !important;
  line-height: 1.22 !important;
}

/* ========================================================================== */
/* VIEWPORT CONTRACT                                                           */
/* ========================================================================== */
@media (max-width: 1600px) {
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-navigator-panel {
    width: 196px !important;
    flex-basis: 196px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-content {
    padding-inline: 5px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-group-title,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-nav-item-label {
    font-size: 7.2px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table td {
    padding-inline: 3px !important;
    font-size: 7.8px !important;
  }
}
@media (max-width: 1380px) {
  body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro {
    grid-template-columns: minmax(0, 1fr) minmax(410px, .8fr) !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .report-navigator-panel {
    width: 178px !important;
    flex-basis: 178px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .quick-report-window-body {
    padding-inline: 8px !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .summary-performance-layout {
    grid-template-columns: minmax(190px, .8fr) minmax(0, 2.55fr) !important;
  }
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table th,
  body[data-workspace-mode="pro_system_builder"] #quickReportOverlay.pro-canvas-detailed-report .detail-breakdown-table td {
    padding-inline: 2px !important;
    font-size: 7.3px !important;
  }
}
@media (max-width: 1120px) {
  body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro {
    grid-template-columns: 1fr !important;
  }
  body.pro-canvas-shell-active[data-workspace-mode="pro_system_builder"][data-pro-canvas-stage="analysis"] #proCanvasStageIntro .pro-canvas-stage-actions.is-analysis-stage {
    grid-column: 1 !important;
  }
}
