/* Golden Batch shared UI theme */
:root {
  --gb-primary: #6f8730;
  --gb-primary-dark: #4f6321;
  --gb-primary-soft: rgba(111, 135, 48, 0.16);
  --gb-gold: #c99a2e;
  --gb-gold-soft: rgba(201, 154, 46, 0.14);
  --gb-ink: #1f2937;
  --gb-ink-soft: #475467;
  --gb-bg: #f5f8f1;
  --gb-surface: #ffffff;
  --gb-border: #d7e3ca;
  --gb-border-strong: #c4d3ae;
  --gb-shadow: 0 10px 26px rgba(18, 33, 13, 0.08);
  --gb-shadow-soft: 0 8px 18px rgba(18, 33, 13, 0.06);
  --gb-accent-border: rgba(201, 154, 46, 0.22);
  --gb-accent-gradient: linear-gradient(135deg, #8fa63d 0%, #6f8730 58%, #c99a2e 100%);
  --gb-accent-shadow: 0 10px 18px rgba(79, 99, 33, 0.24);
  --gb-accent-shadow-hover: 0 14px 24px rgba(79, 99, 33, 0.28);
  --gb-table-head-bg: linear-gradient(180deg, #fbfdf8 0%, #eef5e2 100%);
  --gb-table-row-hover: #f4f8ee;
  --gb-plot-surface-bg: linear-gradient(180deg, #ffffff 0%, #f8fbf3 100%);
}

.golden-workflow #workflow-shell {
  margin-top: 2px;
}

.golden-workflow #rpds-sidebar {
  background: transparent;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

.golden-workflow .left-col-wrap {
  padding: 2px 12px 8px 4px;
  overflow-x: visible;
}

.golden-workflow .left-col-wrap > .d-flex {
  padding-left: 2px;
}

.golden-workflow .gb-sidebar-card {
  border: 1px solid var(--gb-border);
  border-radius: 14px;
  box-shadow: var(--gb-shadow);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf2 70%, #f6f8ef 100%);
  overflow: hidden;
}

.golden-workflow .gb-info-card {
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  background: #fbfdf9;
  box-shadow: 0 8px 18px rgba(18, 33, 13, 0.07);
}

.golden-workflow .gb-star {
  color: #8ca53a;
}

.golden-workflow .gb-dataset-name {
  color: var(--gb-primary-dark);
}

.golden-workflow .gb-workspace-launch {
  margin: 12px 0 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(111, 135, 48, 0.14);
}

.golden-workflow .gb-workspace-btn {
  width: 100%;
  border: 1px solid var(--gb-accent-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 600;
  background: var(--gb-accent-gradient);
  box-shadow: var(--gb-accent-shadow);
  transition: transform 0.14s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.golden-workflow .gb-workspace-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: var(--gb-accent-shadow-hover);
}

.golden-workflow .gb-workspace-btn:disabled,
.golden-workflow .gb-workspace-btn.is-loading {
  opacity: 0.78;
  cursor: wait;
}

.golden-workflow .gb-workspace-caption {
  margin-top: 8px;
  font-size: var(--rpds-text-small);
  line-height: 1.35;
  color: #5d6d52;
}

.golden-workflow .gb-workspace-status {
  margin-top: 10px;
  border: 1px solid #d8e3c9;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fbfdf8;
  color: #33411d;
  font-size: var(--rpds-text-small);
  font-weight: 600;
  line-height: 1.35;
}

.golden-workflow .gb-workspace-status.loading {
  border-color: #d7deea;
  background: #f8fafc;
  color: #475569;
}

.golden-workflow .gb-workspace-status.success {
  border-color: #c5dba6;
  background: #f1f8e5;
  color: #31411b;
}

.golden-workflow .gb-workspace-status.error {
  border-color: #efc9c9;
  background: #fff4f4;
  color: #7f1d1d;
}

.golden-workflow .gb-workspace-status a {
  color: inherit;
  text-decoration: underline;
}

.golden-workflow .gb-step-meta {
  color: #6b7280;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.52px;
}

.golden-workflow .gb-nav {
  gap: 5px;
}

.golden-workflow .gb-step {
  border: 1px solid transparent;
  border-radius: 9px !important;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}

.golden-workflow .gb-step.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.gb-stats-page .gb-card.gb-stats-next-card { position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: 20px; box-shadow: 0 8px 24px #42623b12; }
.gb-stats-page .gb-stats-next-card.gb-next-compare { background: linear-gradient(135deg, #f3fbdc, #fbfff4 65%, #e4f4d4); border-color: #cfe4a1; }
.gb-stats-page .gb-stats-next-card.gb-next-simulator { background: linear-gradient(135deg, #e9f6ff, #f8fdff 65%, #e5eeff); border-color: #c2dff2; }
.gb-next-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; position: relative; z-index: 1; }
.gb-next-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #dbeaab; color: #476c1f; font-size: 20px; }
.gb-next-simulator .gb-next-icon { background: #d1eafe; color: #236698; }
.gb-next-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #476321; }
.gb-next-simulator .gb-next-eyebrow { color: #276491; }
.gb-next-illustration { align-self: flex-end; width: 210px; height: 70px; color: #77a537; margin: -10px 0 18px; }
.gb-next-simulator .gb-next-illustration { color: #4391c2; }
.gb-next-compare .gb-next-card-top,
.gb-next-simulator .gb-next-card-top { width: 100%; min-height: 70px; padding-right: 230px; margin-bottom: 16px; }
.gb-next-compare .gb-next-icon,
.gb-next-simulator .gb-next-icon { flex-shrink: 0; }
.gb-next-compare .gb-next-illustration,
.gb-next-simulator .gb-next-illustration { position: absolute; top: 30px; right: 30px; width: 210px; height: 70px; margin: 0; }
.gb-next-title { font-size: clamp(21px, 2vw, 27px); font-weight: 750; line-height: 1.25; color: #314e22; margin: 0 0 14px; }
.gb-next-simulator .gb-next-title { color: #254d70; }
.gb-next-intro { font-size: 15px; line-height: 1.65; color: #516343; margin-bottom: 18px; }
.gb-next-simulator .gb-next-intro { color: #49677d; }
.gb-next-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.gb-next-tags span { background: #ffffffb8; border: 1px solid #c5deef; border-radius: 20px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: #365f7f; }
.gb-stats-next-card > .gb-next-cta { margin-top: auto; display: inline-flex; gap: 26px; align-items: center; border-radius: 12px; padding: 12px 18px; }
.gb-next-cta span { font-size: 22px; line-height: 1; }
.gb-next-simulator > .gb-next-cta { background: #2e6f9e; border-color: #2e6f9e; }
.gb-next-simulator > .gb-next-cta:hover { background: #245b83; border-color: #245b83; }
.gb-stats-next-benefits { padding-left: 20px; margin: 0 0 22px; }
.gb-stats-next-benefits li { margin-bottom: 12px; line-height: 1.6; }
.gb-page-purpose { background: #f6faef; border: 1px solid var(--gb-border, #d8e0c9); border-radius: 12px; padding: 20px; }
.gb-page-purpose-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-left: 22px; margin: 16px 0 0; }
.gb-page-purpose-list a { color: #435626; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gb-page-purpose-list p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #58614f; }
@media (min-width: 768px) and (max-width: 1199px) {
  .gb-next-compare .gb-next-card-top,
  .gb-next-simulator .gb-next-card-top { min-height: 60px; padding-right: 200px; }
  .gb-next-compare .gb-next-illustration,
  .gb-next-simulator .gb-next-illustration { width: 180px; height: 60px; }
}
@media (max-width: 767px) {
  .gb-page-purpose-list { grid-template-columns: 1fr; gap: 16px; }
  .gb-stats-page .gb-card.gb-stats-next-card { padding: 20px; }
  .gb-next-compare .gb-next-card-top,
  .gb-next-simulator .gb-next-card-top { min-height: 46px; padding-right: 0; }
  .gb-next-compare .gb-next-illustration,
  .gb-next-simulator .gb-next-illustration { display: none; }
}

.golden-workflow .gb-step:hover:not(.disabled) {
  border-color: var(--gb-border);
  background: #f6faef;
  transform: translateX(2px);
}

.golden-workflow .gb-step.active {
  border-color: #b9cf8f;
  background: #edf5de;
  color: #2f3d17;
  box-shadow: inset 0 0 0 1px rgba(111, 135, 48, 0.14);
}

.golden-workflow .gb-step.completed:not(.active) {
  border-color: #ceddb9;
  background: #f2f8e8;
  color: #425826;
}

.golden-workflow .gb-main-frame {
  border: 1px solid var(--gb-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf5 100%);
  box-shadow: 0 12px 24px rgba(18, 33, 13, 0.08);
  padding: 14px;
}

.golden-workflow .gb-main-frame--flat {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.golden-workflow .gb-workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #d2dfbe;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faee 100%);
}

.golden-workflow .gb-workflow-title {
  color: #32401b;
  font-weight: 700;
}

.golden-workflow .gb-workflow-subtitle {
  color: #5c6b52;
}

.golden-workflow .gb-step-pill {
  border-radius: 999px;
  border: 1px solid #c2d2a7;
  background: linear-gradient(180deg, #f8fbf1, #edf5de);
  color: #3f5220;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  letter-spacing: 0.42px;
  padding: 5px 11px;
}

.golden-workflow .gb-progress {
  height: 18px;
  border: 1px solid #d0ddbb;
  background: #edf4e1;
  overflow: hidden;
}

.golden-workflow .gb-progress .progress-bar {
  background: linear-gradient(90deg, #89a038 0%, #6f8730 62%, #5f7529 100%) !important;
  font-weight: 700;
}

.golden-workflow #sidebar-resizer {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 135, 48, 0.2), rgba(111, 135, 48, 0.07));
  box-shadow: inset 0 0 0 1px rgba(111, 135, 48, 0.16);
}

.sidebar-collapsed .golden-workflow #workflow-shell {
  grid-template-areas: "gutter main" !important;
  grid-template-columns: 14px 1fr !important;
}

.sidebar-collapsed .golden-workflow #sidebar-resizer {
  display: block !important;
  width: 14px !important;
}

.sidebar-collapsed .golden-workflow #rpds-sidebar {
  display: none !important;
}

#golden-batch-content .gb-page {
  background:
    radial-gradient(1100px 420px at 92% -10%, rgba(127, 148, 48, 0.13), transparent 60%),
    radial-gradient(900px 360px at -10% 0%, rgba(198, 163, 64, 0.11), transparent 56%),
    var(--gb-bg);
  border: 1px solid var(--gb-border);
  border-radius: 18px;
  padding: 20px;
  min-height: 100%;
}

.gb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.gb-title {
  color: var(--gb-ink);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.gb-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid var(--gb-border-strong);
  background: linear-gradient(180deg, #ffffff, #f4f9ef);
  color: var(--gb-primary-dark);
  font-size: var(--rpds-text-small);
  font-weight: 700;
  letter-spacing: 0.55px;
}

.gb-card {
  border: 1px solid var(--gb-border);
  border-radius: 14px;
  background: var(--gb-surface);
  padding: 18px;
  box-shadow: var(--gb-shadow);
}

.gb-card-compact {
  padding: 14px;
}

.gb-card h6,
.gb-card h5 {
  color: var(--gb-ink);
  font-weight: 700;
}

.gb-action {
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gb-action:hover {
  transform: translateY(-2px);
  border-color: var(--gb-border-strong);
  box-shadow: 0 16px 28px rgba(18, 33, 13, 0.11);
}

.gb-action p {
  color: var(--gb-ink-soft);
}

.gb-btn {
  border: 1px solid var(--gb-accent-border);
  border-radius: 12px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 600;
  background: var(--gb-accent-gradient);
  box-shadow: var(--gb-accent-shadow);
  transition: transform 0.14s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.gb-btn:hover:not(:disabled) {
  background: var(--gb-accent-gradient);
  color: #ffffff;
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: var(--gb-accent-shadow-hover);
}

.gb-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.gb-btn-outline {
  border: 1px solid var(--gb-border-strong);
  border-radius: 10px;
  padding: 10px 18px;
  color: var(--gb-primary-dark);
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff, #f9fcf5);
}

.gb-btn-outline:hover {
  background: #f8fbf4;
}

.gb-simulator-page .gb-simulator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gb-border);
}

.gb-simulator-page .gb-simulator-header h4 {
  color: var(--gb-ink);
  font-weight: 700;
}

.gb-simulator-page .gb-simulator-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-simulator-page .gb-simulator-header-actions .gb-btn,
.gb-simulator-page .gb-simulator-header-actions .gb-btn-outline {
  min-height: 38px;
  padding: 8px 14px;
}

.gb-simulator-page .gb-simulator-guide {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d9e6c6;
  border-radius: 10px;
  background: #f7fbf1;
  color: #40532a;
  font-size: var(--rpds-text-label);
  line-height: 1.45;
}

.gb-simulator-page .gb-simulator-guide i {
  margin-top: 3px;
  color: var(--gb-primary);
}

.gb-simulator-page .gb-sim-controls {
  border: 1px solid var(--gb-border);
  border-radius: 4px;
  padding: 20px;
  background: #fff;
}
.gb-sim-model-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto;
  gap: 16px;
  align-items: end;
}
.gb-sim-model-row > *, .gb-sim-range-row > * { min-width: 0; }
.gb-sim-model-row button { min-height: 40px; }
.gb-sim-model-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; overflow-wrap: anywhere; }
.gb-sim-section { border-top: 1px solid var(--gb-border); margin-top: 18px; padding-top: 18px; }
.gb-sim-section-header, .gb-sim-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.gb-sim-section-header { margin-bottom: 12px; }
.gb-sim-section-header h2, .gb-sim-plot-title { font-size: 18px; font-weight: 700; margin: 0; }
.gb-sim-selection-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gb-sim-selection-actions button, #addInterventionBtn { min-height: 32px; padding: 5px 12px; }
.gb-sim-variable-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px;
  max-height: 220px; overflow-y: auto; padding: 8px; border: 1px solid #dce5d3;
  border-radius: 4px; background: #fafcf7; scrollbar-gutter: stable;
}
.gb-sim-variable-option { display: flex; align-items: flex-start; gap: 9px; padding: 6px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.gb-sim-variable-option input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gb-primary); }
.gb-sim-variable-option span { overflow-wrap: anywhere; }
.gb-sim-range-row {
  display: grid; grid-template-columns: minmax(230px, 2.3fr) repeat(3, minmax(95px, 1fr)) 42px;
  gap: 12px; align-items: end; padding: 14px; border: 1px solid #dce5d3;
  border-radius: 4px; background: #fafcf7;
}
.gb-sim-range-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.gb-sim-range-row .iv-remove { width: 38px; height: 38px; padding: 0; font-size: 24px; line-height: 1; }
.gb-sim-actions { border-top: 1px solid var(--gb-border); padding-top: 18px; margin-top: 18px; }
.gb-sim-actions button { min-width: 110px; }
.gb-sim-results { margin-top: 24px; }
.gb-sim-plot-card { min-width: 0; border: 1px solid var(--gb-border); border-radius: 4px; padding: 16px; background: #fff; }
.gb-sim-plot-title { margin-bottom: 12px; overflow-wrap: anywhere; }
.gb-sim-plots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gb-sim-x-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .gb-sim-plots-grid { grid-template-columns: minmax(0, 1fr); }
  .gb-sim-range-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 42px; }
  .gb-sim-range-variable { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .gb-simulator-page .gb-sim-controls { padding: 14px; }
  .gb-sim-model-row, .gb-sim-variable-grid { grid-template-columns: minmax(0, 1fr); }
  .gb-sim-range-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-sim-range-remove { justify-self: end; }
}

.gb-next-fab-wrap {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 1080;
}

.gb-next-fab-wrap .gb-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(18, 33, 13, 0.24);
}

.gb-active {
  border-left: 4px solid var(--gb-primary);
}

.gb-meta {
  color: var(--gb-ink-soft);
  font-size: var(--rpds-text-label);
}

.gb-preview {
  max-height: 520px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--gb-border);
  margin-top: 10px;
  background: #ffffff;
}

.gb-preview .gb-preview-table {
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
  table-layout: fixed;
}

.gb-preview .gb-preview-table th,
.gb-preview .gb-preview-table td {
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gb-preview .gb-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fbf1;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-inline: 0.8rem;
  text-align: center;
  white-space: normal;
  box-shadow: inset 0 -1px 0 #dfe8d1;
}

.gb-preview .gb-preview-table thead th .gb-preview-head-label {
  min-height: 4.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  line-height: 1.2;
}

.gb-preview .gb-preview-table thead th .gb-preview-head-line {
  display: block;
  white-space: nowrap;
}

.gb-preview .gb-preview-table tbody td {
  text-align: center;
  white-space: nowrap;
  padding-inline: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.gb-preview .gb-preview-table tbody tr:hover > * {
  background: #f4f9ec;
}

.gb-page .form-control,
.gb-page .form-select {
  border-radius: 10px;
  border: 1px solid var(--gb-border-strong);
  box-shadow: none;
}

.gb-page .form-control:focus,
.gb-page .form-select:focus {
  border-color: var(--gb-primary);
  box-shadow: 0 0 0 0.2rem var(--gb-primary-soft);
}

.gb-page .small,
.gb-page .text-muted {
  color: var(--gb-ink-soft) !important;
}

.gb-page .alert {
  border-radius: 10px;
}

.gb-page .gb-plot-surface {
  border: 1px solid #d4e1c4;
  border-radius: 14px;
  background: var(--gb-plot-surface-bg);
  padding: 12px;
  overflow: hidden;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.gb-page .gb-plot-surface > * {
  min-width: 0;
}

.gb-page .gb-plot-area,
.gb-page .gb-flow-plot,
.gb-page .gb-auto-plot {
  width: 100%;
  min-width: 0;
}

.gb-page .gb-plot-area,
.gb-page .gb-auto-plot {
  height: 420px;
}

.gb-page .gb-auto-plot--compact {
  height: 260px;
}

.gb-page .gb-auto-plot--medium {
  height: 360px;
}

.gb-page .gb-auto-plot--tall {
  height: 500px;
}

.gb-page .gb-plot-area.js-plotly-plot,
.gb-page .gb-flow-plot.js-plotly-plot,
.gb-page .gb-auto-plot.js-plotly-plot,
.gb-page .gb-plot-area .js-plotly-plot,
.gb-page .gb-flow-plot .js-plotly-plot,
.gb-page .gb-auto-plot .js-plotly-plot,
.gb-page .gb-plot-area .plot-container,
.gb-page .gb-flow-plot .plot-container,
.gb-page .gb-auto-plot .plot-container,
.gb-page .gb-plot-area .svg-container,
.gb-page .gb-flow-plot .svg-container,
.gb-page .gb-auto-plot .svg-container,
.gb-page .gb-plot-area .main-svg,
.gb-page .gb-flow-plot .main-svg,
.gb-page .gb-auto-plot .main-svg {
  width: 100% !important;
  max-width: 100% !important;
}

.gb-page .table-responsive,
.gb-table-shell,
.gb-scroll-table {
  border: 1px solid #dbe6cf;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf8 100%);
  box-shadow: var(--gb-shadow-soft);
}

.gb-page .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f8fbf5;
  --bs-table-hover-bg: var(--gb-table-row-hover);
  margin-bottom: 0;
  font-size: var(--rpds-text-label);
  line-height: 1.45;
  border-collapse: separate;
  border-spacing: 0;
}

.gb-page .table > :not(caption) > * > * {
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid #e7eee0;
  border-inline-end: 1px solid #edf2e8;
  vertical-align: middle;
  text-align: center;
}

.gb-page .table > :not(caption) > * > *:last-child {
  border-inline-end: 0;
}

.gb-page .table thead th {
  color: #253415;
  font-size: var(--rpds-text-label);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.2px;
  border-bottom: 1px solid var(--gb-border-strong);
  background: var(--gb-table-head-bg);
  box-shadow: inset 0 -1px 0 rgba(111, 135, 48, 0.08);
}

.gb-page .table tbody th,
.gb-page .table tbody td {
  color: #344054;
  font-weight: 500;
}

.gb-page .table tbody tr:last-child > * {
  border-bottom: 0;
}

.gb-page .table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #f9fbf7;
}

.gb-page .table tbody tr:hover > * {
  background: var(--gb-table-row-hover);
}

/* Identify page */
.gb-identify-page .gb-identify-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--gb-border);
  border-radius: 14px;
  background: linear-gradient(140deg, #ffffff 0%, #f6faee 66%, #f5f7ed 100%);
  box-shadow: var(--gb-shadow);
}

.gb-identify-page .gb-identify-meta {
  margin-top: 6px;
  font-size: var(--rpds-text-small);
  color: #556a45;
  font-weight: 600;
}

.gb-identify-page .gb-identify-status {
  border: 1px solid var(--gb-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f7fbf1;
  color: #3f5025;
  font-size: var(--rpds-text-label);
  font-weight: 600;
}

.gb-identify-page .gb-identify-status.success {
  border-color: #b9d39c;
  background: #edf7df;
  color: #2f4a18;
}

.gb-identify-page .gb-identify-status.error {
  border-color: #efc9c9;
  background: #fff4f4;
  color: #7f1d1d;
}

.gb-identify-page .gb-identify-status.loading {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.gb-identify-page .gb-info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gb-identify-page .gb-info-card {
  border: 1px solid #e1e9d5;
  border-radius: 12px;
  background: #fcfef9;
  padding: 12px 14px;
}

.gb-identify-page .gb-info-card h6 {
  font-size: var(--rpds-text-label);
  margin-bottom: 6px;
}

.gb-identify-page .gb-info-card ul {
  padding-left: 18px;
  margin: 0;
}

.gb-identify-page .gb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gb-identify-page .gb-pill {
  border: 1px solid #c2d2a7;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbf1, #edf5de);
  color: #3f5220;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  letter-spacing: 0.35px;
  padding: 4px 10px;
}

.gb-identify-page .gb-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-identify-page .gb-hint {
  margin-top: 8px;
  font-size: var(--rpds-text-label);
  color: var(--gb-ink-soft);
}

.gb-identify-page .gb-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-identify-page .gb-plot-surface {
  border: 1px solid #d4e1c4;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  overflow: hidden;
}

.gb-identify-page .gb-plot-area {
  width: 100%;
  min-width: 0;
  height: 520px;
  overflow: hidden;
}

.gb-identify-page .gb-plot-foot {
  margin-top: 8px;
  font-size: var(--rpds-text-small);
  color: #5d6d52;
}

.gb-identify-page .gb-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-identify-page .gb-action-bar .gb-btn {
  min-width: 220px;
}

.gb-identify-page .gb-mini-btn {
  border: 1px solid #c7d8b0;
  border-radius: 999px;
  font-size: var(--rpds-text-label);
  font-weight: 600;
  color: #30411b;
  padding: 6px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faec 100%);
  box-shadow: 0 4px 10px rgba(18, 33, 13, 0.06);
  transition: transform 0.12s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.gb-identify-page .gb-mini-btn:hover:not(:disabled) {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18, 33, 13, 0.1);
}

.gb-identify-page .gb-mini-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

#statsPlot,
.feature-plot {
  height: 520px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fcf7 0%, #f2f7ed 100%);
  padding: 8px;
  overflow: hidden;
}

.stat-box {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf7 100%);
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  padding: 14px;
}

.top-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-box-compact {
  padding: 10px 12px;
  min-height: 80px;
}

.stat-value {
  color: var(--gb-primary-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-label {
  color: var(--gb-ink-soft);
  font-size: var(--rpds-text-label);
  letter-spacing: 0.2px;
}

.stat-panel {
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  min-height: 160px;
  background: #fcfdfa;
  padding: 14px;
}

.stat-panel-compact {
  min-height: 130px;
  padding: 10px 12px;
}

.feature-plot-compact {
  height: 230px;
}

.feature-influence-plot {
  min-height: 280px;
  max-height: 440px;
  overflow: auto;
  background: #fcfef9;
}

.feature-plot .plot-container,
.feature-plot .svg-container,
.feature-plot .main-svg {
  max-width: 100% !important;
}

#statsPlot .js-plotly-plot,
.feature-plot .js-plotly-plot,
#statsPlot .plot-container,
.feature-plot .plot-container,
#statsPlot .svg-container,
.feature-plot .svg-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Statistics page refinements */
.gb-stats-page .gb-card {
  padding: 16px 18px;
  border-color: #dbe6cf;
  box-shadow: 0 10px 22px rgba(18, 33, 13, 0.07);
  background: #ffffff;
}

.gb-stats-page .gb-card h6 {
  margin-bottom: 0.55rem;
  font-size: 1.04rem;
  letter-spacing: 0.2px;
}

.gb-stats-page .gb-dl-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-stats-page .gb-dl-toolbar .gb-mini-btn {
  border: 1px solid #c7d8b0;
  border-radius: 999px;
  font-size: var(--rpds-text-label);
  font-weight: 600;
  color: #30411b;
  padding: 6px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faec 100%);
  box-shadow: 0 4px 10px rgba(18, 33, 13, 0.06);
  transition: transform 0.12s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.gb-stats-page .gb-dl-toolbar .gb-mini-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18, 33, 13, 0.1);
}

.gb-stats-page .gb-header .gb-mini-btn {
  border: 1px solid #c7d8b0;
  border-radius: 999px;
  font-size: var(--rpds-text-label);
  font-weight: 600;
  color: #30411b;
  padding: 6px 12px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f5faec 100%);
  box-shadow: 0 4px 10px rgba(18, 33, 13, 0.06);
  transition: transform 0.12s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.gb-stats-page .gb-header .gb-mini-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18, 33, 13, 0.1);
}

.gb-stats-page .gb-header .gb-mini-primary {
  min-height: 36px;
  padding: 6px 12px;
  font-size: var(--rpds-text-label);
  border-radius: 999px;
}

.gb-stats-page .gb-stats-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #d3dfc0;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faee 100%);
  color: #30411b;
  font-size: var(--rpds-text-label);
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(18, 33, 13, 0.06);
}

.gb-stats-page .gb-batch-manager-card {
  border-left: 4px solid var(--gb-primary);
}

.gb-stats-page .gb-batch-manager-panel {
  border-top: 1px solid #e2ead6;
  padding-top: 14px;
}

.gb-stats-page .gb-batch-list {
  min-height: 230px;
  font-weight: 600;
}

.gb-stats-page .gb-batch-list option {
  padding: 8px 10px;
}

.gb-stats-page .gb-batch-checkbox-list {
  height: 260px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #fff;
}

.gb-stats-page .gb-batch-check-row,
.gb-stats-page .gb-batch-check-all {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.gb-stats-page .gb-batch-check-row {
  padding: 9px 12px;
  margin: 0;
  border-bottom: 1px solid #eef2e8;
  overflow-wrap: anywhere;
}

.gb-stats-page .gb-batch-check-row:hover,
.gb-stats-page .gb-batch-check-row:focus-within {
  background: #f4f8ec;
}

.gb-stats-page .gb-batch-check-row:has(input:checked) {
  background: #edf4dc;
}

.gb-stats-page .gb-batch-check-row .form-check-input,
.gb-stats-page .gb-batch-check-all .form-check-input {
  margin: 0;
  flex-shrink: 0;
}

.gb-stats-page .gb-stats-trigger {
  width: auto;
  min-height: 36px;
  border-radius: 10px;
  font-size: var(--rpds-text-label);
  padding: 7px 14px;
}

.gb-stats-page .feature-variation-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--gb-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf1 100%);
  color: #3c4b2a;
  font-size: var(--rpds-text-label);
}

.gb-stats-page .feature-variation-chip {
  border: 1px solid #d9e5ca;
  border-radius: 9px;
  padding: 8px 10px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.gb-stats-page .feature-variation-chip span {
  color: #667085;
  font-size: var(--rpds-text-small);
}

.gb-stats-page .feature-variation-chip b {
  color: #1f2d0f;
}

.gb-stats-page #featureVariationTable tbody tr.row-selected-batch > td {
  background: #eef6df !important;
  font-weight: 700;
}

.gb-stats-page .gb-plot-area {
  width: 100%;
  min-width: 0;
  height: 500px;
  overflow: hidden;
}

.gb-stats-page .gb-plot-area.feature-plot,
.gb-stats-page #statsPlot.gb-plot-area {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 10px;
}

.gb-stats-page #xFeatureStatsViz.gb-plot-area {
  height: 280px;
}

.gb-stats-page #featureInfluencePlot.gb-plot-area {
  height: auto;
  min-height: 260px;
  max-height: none;
  overflow: visible;
}

.gb-stats-page #xFeaturePlot.gb-plot-area,
.gb-stats-page #advancedEnvelopePlot.gb-plot-area {
  height: 460px;
}

.gb-stats-page .gb-plot-area .js-plotly-plot,
.gb-stats-page .gb-plot-area .plot-container,
.gb-stats-page .gb-plot-area .svg-container,
.gb-stats-page .gb-plot-area .main-svg {
  width: 100% !important;
  max-width: 100% !important;
}

.gb-stats-page #featureVariationTable th,
.gb-stats-page #featureVariationTable td {
  font-size: var(--rpds-text-label);
  letter-spacing: 0.3px;
}

.gb-scroll-table {
  max-height: clamp(240px, 42vh, 360px);
  overflow: auto;
  min-width: 0;
}

.gb-scroll-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--gb-table-head-bg);
}

.gb-stats-page .form-select {
  min-height: 46px;
  font-weight: 600;
  color: #2e3d1f;
  background-color: #ffffff;
}

.gb-stats-page .text-muted {
  font-weight: 400;
  color: #000000 !important;
}

.stat-grid {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  font-size: var(--rpds-text-label);
}

.stat-grid div {
  background: #ffffff;
  border: 1px solid #ebf1e4;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-grid span {
  color: #667085;
}

.stat-grid b {
  color: #243211;
  font-weight: 700;
}

.stat-grid-wide {
  grid-column: span 3;
}

/* Home page: progress-first UX */
.gb-home-page .gb-home-progress-pill {
  font-size: var(--rpds-text-small);
  padding: 5px 10px;
}

.gb-home-page .gb-home-progress-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf2 100%);
}

.gb-home-page .gb-home-entry {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf4 100%);
}

.gb-home-page .gb-home-entry-btn {
  border: 1px solid #dce6cc;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  padding: 12px 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.gb-home-page .gb-home-entry-btn:hover {
  border-color: #b9cf8f;
  box-shadow: 0 10px 20px rgba(18, 33, 13, 0.08);
  transform: translateY(-1px);
}

.gb-home-page .gb-home-entry-btn.active {
  border-color: #b9cf8f;
  background: linear-gradient(180deg, #f9fcf3, #edf5de);
  box-shadow: inset 0 0 0 1px rgba(111, 135, 48, 0.12);
}

.gb-home-page .gb-home-entry-title {
  color: #243211;
  font-size: var(--rpds-text-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.gb-home-page .gb-home-step-list {
  display: grid;
  gap: 8px;
}

.gb-home-page .gb-home-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e5ecda;
  border-radius: 10px;
  background: #fbfdf8;
  padding: 10px 11px;
}

.gb-home-page a.gb-home-step {
  color: inherit;
  text-decoration: none;
}

.gb-home-page .gb-home-step.is-link {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gb-home-page .gb-home-step.is-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(79, 99, 33, 0.12);
  border-color: #b9cf8f;
}

.gb-home-page .gb-home-step.is-link:focus-visible {
  outline: 2px solid rgba(111, 135, 48, 0.28);
  outline-offset: 2px;
}

.gb-home-page .gb-home-step.complete {
  border-color: #cfe0b5;
  background: linear-gradient(180deg, #fbfdf6, #f1f8e5);
}

.gb-home-page .gb-home-step.current {
  border-color: #b9cf8f;
  background: linear-gradient(180deg, #f9fcf3, #edf5de);
  box-shadow: inset 0 0 0 1px rgba(111, 135, 48, 0.12);
}

.gb-home-page .gb-home-step.locked {
  opacity: 0.82;
}

.gb-home-page .gb-home-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #c5d5aa;
  background: #f4f9ea;
  color: #3f5220;
  font-weight: 700;
  font-size: var(--rpds-text-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gb-home-page .gb-home-step-title {
  color: #243211;
  font-weight: 700;
  font-size: var(--rpds-text-label);
  margin-bottom: 2px;
}

.gb-home-page .gb-home-snapshot {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf4 100%);
}

.gb-home-page .gb-home-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e6ecdc;
  font-size: var(--rpds-text-label);
}

.gb-home-page .gb-home-kv:last-child {
  border-bottom: 0;
}

.gb-home-page .gb-home-kv span {
  color: #667085;
}

.gb-home-page .gb-home-kv b {
  color: #2a3a14;
  text-align: right;
}

.gb-home-page .gb-home-mode {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcf5 100%);
}

.gb-home-page .gb-home-mode-panel {
  border: 1px solid #e1e9d5;
  border-radius: 10px;
  background: #fcfef9;
  padding: 12px;
}

/* Merged identify+define flow (scoped to prevent regressions) */
.gb-merged-flow .gb-merged-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--gb-border);
  border-radius: 14px;
  background: linear-gradient(140deg, #ffffff 0%, #f6faee 66%, #f5f7ed 100%);
  box-shadow: var(--gb-shadow);
}

.gb-merged-flow .gb-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.gb-merged-flow .gb-hero-notes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gb-merged-flow .gb-hero-caption {
  color: #5b6b4f;
  font-size: var(--rpds-text-label);
  font-weight: 600;
}

.gb-merged-flow .gb-merged-pill {
  border: 1px solid #c4d4a9;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbf4df, #f3e4bc);
  color: #6c5217;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 12px;
}

.gb-merged-flow .gb-hero-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 430px);
  flex-shrink: 0;
}

.gb-merged-flow .gb-hero-stat {
  border: 1px solid #dbe6ca;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 238, 0.96));
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gb-merged-flow .gb-hero-stat .label {
  color: #6a7b57;
  font-size: var(--rpds-text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-bottom: 6px;
}

.gb-merged-flow .gb-hero-stat strong {
  color: #273715;
  font-size: var(--rpds-text-label);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gb-merged-flow .gb-flow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gb-merged-flow .gb-flow-step h6 {
  margin: 0;
}

.gb-merged-flow .gb-step-hint {
  font-size: var(--rpds-text-label);
  color: #5b6b4f;
}

.gb-merged-flow .gb-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gb-merged-flow .gb-mode-card {
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfbfd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.gb-merged-flow .gb-mode-card:hover {
  transform: translateY(-1px);
}

.gb-merged-flow .gb-mode-card.active {
  border-color: #b4c98d;
  box-shadow: 0 0 0 2px rgba(111, 135, 48, 0.16);
  background: linear-gradient(180deg, #ffffff, #f2f8e6);
}

.gb-merged-flow .gb-mode-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.gb-merged-flow .gb-status-box {
  border: 1px solid var(--gb-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fafdf6, #f4f9eb);
  color: #3f5025;
  font-size: var(--rpds-text-label);
  font-weight: 600;
}

.gb-merged-flow .gb-status-box.success {
  border-color: #bfd7a5;
  background: linear-gradient(180deg, #f8fcf3, #eaf6da);
  color: #284112;
}

.gb-merged-flow .gb-status-box.error {
  border-color: #efc9c9;
  background: linear-gradient(180deg, #fff6f6, #ffecec);
  color: #8d1f1f;
}

.gb-merged-flow .gb-status-box.loading {
  border-color: #d6deeb;
  background: linear-gradient(180deg, #f8fafc, #eef4f8);
  color: #475569;
}

.gb-merged-flow .gb-visual-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.gb-merged-flow .gb-visual-controls {
  border: 1px solid #dce7cb;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbf2);
  padding: 14px 15px;
}

.gb-merged-flow .gb-field-label {
  display: inline-block;
  margin-bottom: 9px;
}

.gb-merged-flow .gb-inline-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-inline-chip {
  border: 1px solid #d7e3c6;
  border-radius: 999px;
  background: #ffffff;
  color: #485a2c;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  padding: 5px 10px;
}

.gb-merged-flow .gb-field-help {
  margin-top: 9px;
}

.gb-merged-flow .gb-quick-guide {
  border: 1px solid #dce6c9;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7, #f6f8ee);
  padding: 14px 15px;
}

.gb-merged-flow .gb-quick-guide-title {
  color: #32401b;
  font-size: var(--rpds-text-label);
  font-weight: 700;
  letter-spacing: 0.24px;
}

.gb-merged-flow .gb-quick-guide-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin-top: 9px;
}

.gb-merged-flow .gb-quick-guide-item b {
  color: #42582a;
}

.gb-merged-flow .gb-live-tracker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: stretch;
}

.gb-merged-flow .gb-live-node {
  border: 1px solid #d9e4c9;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf2 100%);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.15s ease;
}

.gb-merged-flow .gb-live-node:hover {
  transform: translateY(-1px);
  border-color: #c6d7aa;
}

.gb-merged-flow .gb-live-node .num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #c6d7aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  color: #44562a;
  background: #f2f8e6;
  flex-shrink: 0;
}

.gb-merged-flow .gb-live-node .meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.gb-merged-flow .gb-live-node .meta b {
  color: #2b3a16;
}

.gb-merged-flow .gb-live-node .meta small {
  font-size: var(--rpds-text-small);
  color: #5f6f53;
}

.gb-merged-flow .gb-live-node.current {
  border-color: #b8ce8f;
  box-shadow: 0 0 0 2px rgba(111, 135, 48, 0.12);
}

.gb-merged-flow .gb-live-node.completed {
  border-color: #bfd4a0;
  background: linear-gradient(180deg, #fdfefb 0%, #eef5e1 100%);
}

.gb-merged-flow .gb-live-node.pending {
  opacity: 0.86;
}

.gb-merged-flow .gb-live-tags {
  display: grid;
  gap: 6px;
  align-content: center;
}

.gb-merged-flow .gb-live-tag {
  border: 1px solid #d7e3c6;
  border-radius: 999px;
  background: #ffffff;
  color: #495b2d;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.gb-merged-flow .gb-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gb-merged-flow .gb-step-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-summary-chip {
  border: 1px solid #dbe6c9;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f7fbf1);
  color: #56664b;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  padding: 5px 10px;
}

.gb-merged-flow .gb-plot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #dde7cc;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdf8, #f5faed);
}

.gb-merged-flow .gb-plot-toolbar .hint {
  font-size: var(--rpds-text-label);
  color: #5d6d52;
}

.gb-merged-flow .gb-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-block-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #dde7cd;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdf8, #f5faed);
  padding: 9px 10px;
  color: #5a6a4d;
  font-size: var(--rpds-text-label);
}

.gb-merged-flow .gb-block-note b {
  color: #31411b;
}

.gb-merged-flow .gb-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-selection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-selection-actions-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-selection-search {
  width: 280px;
  max-width: 100%;
}

.gb-merged-flow .gb-selection-search .form-control {
  min-height: 36px;
  font-size: var(--rpds-text-label);
}

.gb-merged-flow .gb-batch-picker .gb-selection-search {
  width: 100%;
}

.gb-merged-flow .gb-batch-add-row > .col-md-4 {
  display: flex;
  align-items: flex-end;
}

.gb-merged-flow .gb-info-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #b9cb97;
  background: #f4f9ea;
  color: #42582a;
  font-size: var(--rpds-text-small);
  cursor: help;
}

.gb-merged-flow .gb-info-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: 250px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d6e2c2;
  background: #ffffff;
  color: #425235;
  box-shadow: 0 10px 18px rgba(18, 33, 13, 0.12);
  font-size: var(--rpds-text-small);
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease;
  z-index: 8;
  pointer-events: none;
}

.gb-merged-flow .gb-info-dot:hover .gb-info-tip {
  opacity: 1;
  visibility: visible;
}

.gb-merged-flow .gb-mini-btn {
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  background: #fff;
  color: #394927;
  font-size: var(--rpds-text-label);
  font-weight: 600;
  padding: 5px 10px;
}

.gb-merged-flow .gb-mini-btn:hover {
  background: #eef6df;
}

.gb-merged-flow .gb-mini-primary {
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 999px;
  background: linear-gradient(180deg, #8da63e 0%, var(--gb-primary) 70%, var(--gb-primary-dark) 100%);
  color: #fff;
  font-size: var(--rpds-text-label);
  font-weight: 600;
  padding: 5px 12px;
  box-shadow: 0 6px 14px rgba(79, 99, 33, 0.28);
}

.gb-merged-flow .gb-mini-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.gb-merged-flow .gb-mini-primary:hover:not(:disabled) {
  filter: brightness(0.96);
}

.gb-merged-flow .gb-cta-pulse {
  animation: gb-cta-pulse 1.35s ease-in-out infinite;
}

@keyframes gb-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 135, 48, 0); }
  50% { box-shadow: 0 0 0 6px rgba(111, 135, 48, 0.14); }
}

.gb-merged-flow .gb-lock-center {
  min-width: 240px;
}

.gb-merged-flow .gb-compact-card {
  padding: 13px 15px;
}

.gb-merged-flow .golden-chip {
  border-radius: 999px;
  border: 1px solid #bfd19f;
  background: linear-gradient(180deg, #f8fcef, #edf6dc);
  color: #2f3d17;
  font-weight: 600;
  font-size: var(--rpds-text-small);
  line-height: 1.15;
  padding: 5px 10px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.16s ease;
}

.gb-merged-flow .golden-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(18, 33, 13, 0.14);
  background: linear-gradient(180deg, #f1f8e3, #e7f1cf);
}

.gb-merged-flow .golden-chip .x {
  display: inline-block;
  margin-left: 6px;
  transform: translateX(2px) scale(1.7);
  color: #7f1d1d;
  font-weight: 700;
}

.gb-merged-flow .gb-counter {
  border: 1px solid #bdd09d;
  background: linear-gradient(180deg, #f8fbef, #ebf5d8);
  color: #304018;
  font-weight: 700;
}

.gb-merged-flow .gb-locked-pill {
  border: 1px solid #d9bd73;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e7, #f6e7bf);
  color: #6f5315;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  padding: 3px 10px;
}

.gb-merged-flow .gb-selection-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gb-merged-flow .gb-cluster-panel {
  border: 1px solid #dbe6c8;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf2 100%);
  padding: 12px 14px;
}

.gb-merged-flow .gb-cluster-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-cluster-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-mode-pill {
  border: 1px solid #c7d8b0;
  border-radius: 999px;
  background: #ffffff;
  color: #2f3d17;
  font-size: var(--rpds-text-small);
  font-weight: 600;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.gb-merged-flow .gb-mode-pill input {
  margin: 0;
}

.gb-merged-flow .gb-mode-pill input:checked + span {
  color: #2f3d17;
  font-weight: 700;
}

.gb-merged-flow .gb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--rpds-text-small);
  color: #3b4b25;
  font-weight: 600;
}

.gb-merged-flow .gb-toggle input {
  margin: 0;
}

.gb-merged-flow .gb-cluster-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-merged-flow .gb-manual-batch-list {
  height: 192px;
  max-height: 192px;
  overflow-y: scroll;
  padding: .375rem .75rem;
  background-image: none;
}

.gb-merged-flow .gb-manual-batch-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 1.5em;
  padding: 0 2px;
  margin: 0;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.gb-merged-flow .gb-manual-batch-option input {
  flex-shrink: 0;
  margin: 0;
}

.gb-merged-flow .gb-cluster-list {
  border: 1px solid #d7e3ca;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  max-height: 200px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.gb-merged-flow .gb-cluster-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--rpds-text-small);
  color: #2f3d17;
  margin: 0;
}

.gb-merged-flow .gb-cluster-option input {
  margin-top: 0;
}

.gb-merged-flow .gb-flow-plot-shell {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(540px 200px at 100% 0%, rgba(201, 154, 46, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fbf3);
}

.gb-merged-flow .gb-flow-plot {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 500px;
}

.gb-merged-flow .gb-plot-empty {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 22px;
  border: 1px dashed #c7d9ab;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 238, 0.95));
  color: #516145;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.gb-merged-flow .gb-flow-plot-shell.is-ready .gb-plot-empty {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  pointer-events: none;
}

.gb-merged-flow .gb-plot-empty h6 {
  margin: 0;
  color: #30411b;
}

.gb-merged-flow .gb-plot-empty p {
  margin: 0;
  max-width: 420px;
  font-size: var(--rpds-text-label);
  line-height: 1.5;
}

.gb-merged-flow .gb-plot-empty-badge {
  justify-self: center;
  border: 1px solid #d7be7c;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7e6, #f6e5bc);
  color: #72571a;
  font-size: var(--rpds-text-small);
  font-weight: 700;
  padding: 5px 11px;
}

.gb-merged-flow .gb-plot-area {
  width: 100%;
  min-width: 0;
  height: 420px;
}

.gb-merged-flow .gb-cluster-panel .gb-plot-surface {
  background: #0b1220;
  border-color: #1f2937;
}

.gb-merged-flow .gb-cluster-panel .gb-plot-area {
  height: 480px;
}

.gb-merged-flow .gb-help-item {
  border: 1px solid #dfe8cf;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbf2);
  padding: 9px 10px;
}

.gb-merged-flow .golden-chip-wrap {
  border: 1px solid #dbe6c8;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfef9, #f5faed);
  padding: 8px;
}

.gb-merged-flow .golden-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
  max-height: 148px;
  overflow: auto;
}

.gb-merged-flow {
  padding-bottom: 100px;
}

.gb-merged-flow .gb-fixed-selection-actions {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid #d4e1bf;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(18, 33, 13, 0.18);
}

@media (max-width: 480px) {
  .gb-merged-flow .gb-fixed-selection-actions {
    right: max(12px, env(safe-area-inset-right));
    gap: 8px;
    padding: 10px;
  }
  .gb-merged-flow .gb-fixed-selection-actions button {
    min-width: 0;
    padding: 10px;
    font-size: 13px;
  }
}

.gb-merged-flow .gb-toast-host {
  position: fixed;
  right: 18px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 1095;
  display: grid;
  gap: 8px;
  width: min(330px, calc(100vw - 24px));
}

.gb-merged-flow .gb-toast {
  border: 1px solid #d4e1bf;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faeb 100%);
  color: #2f3f18;
  box-shadow: 0 12px 24px rgba(18, 33, 13, 0.14);
  padding: 8px 10px;
  font-size: var(--rpds-text-small);
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gb-merged-flow .gb-toast.success {
  border-color: #b9d39c;
  background: linear-gradient(180deg, #fdfef9 0%, #edf7df 100%);
}

.gb-merged-flow .gb-toast.info {
  border-color: #c5d8a8;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7e8 100%);
}

.gb-merged-flow .gb-toast.hide {
  opacity: 0;
  transform: translateY(5px);
}

@media (max-width: 992px) {
  .golden-workflow .gb-main-frame {
    padding: 10px;
    border-radius: 12px;
  }

  .golden-workflow .gb-main-frame--flat {
    padding: 0;
    border-radius: 0;
  }

  .golden-workflow .gb-workflow-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #golden-batch-content .gb-page {
    padding: 14px;
    border-radius: 14px;
  }

  .gb-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #statsPlot,
  .feature-plot {
    height: 380px;
  }

  .gb-page .table {
    font-size: var(--rpds-text-label);
  }

  .gb-page .table > :not(caption) > * > * {
    padding: 0.72rem 0.8rem;
  }

  .gb-page .table thead th {
    font-size: var(--rpds-text-label);
  }

  .gb-stats-page .gb-plot-area {
    height: 380px;
  }

  .gb-stats-page .gb-dl-toolbar {
    gap: 6px;
  }

  .gb-stats-page #xFeaturePlot.gb-plot-area,
  .gb-stats-page #advancedEnvelopePlot.gb-plot-area {
    height: 380px;
  }

  .gb-stats-page .feature-variation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid-wide {
    grid-column: span 2;
  }

  .gb-next-fab-wrap {
    right: 14px;
    bottom: 14px;
  }

  .gb-merged-flow .gb-mode-grid,
  .gb-merged-flow .gb-selection-grid {
    grid-template-columns: 1fr;
  }

  .gb-merged-flow .gb-merged-hero {
    flex-direction: column;
  }

  .gb-merged-flow .gb-visual-top {
    grid-template-columns: 1fr;
  }

  .gb-merged-flow .gb-hero-side {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .gb-merged-flow .gb-selection-help {
    grid-template-columns: 1fr;
  }

  .gb-merged-flow .gb-cluster-list {
    grid-template-columns: 1fr;
    max-height: 240px;
  }

  .gb-merged-flow .gb-flow-plot-shell {
    min-height: 360px;
  }

  .gb-merged-flow .gb-flow-plot {
    height: 340px;
  }

  .gb-merged-flow .gb-plot-area {
    height: 320px;
  }

  .gb-merged-flow .gb-live-tracker {
    grid-template-columns: 1fr;
  }

  .gb-merged-flow .gb-live-tags {
    grid-auto-flow: column;
    justify-content: start;
    gap: 8px;
  }

  .gb-merged-flow .gb-selection-search {
    width: 100%;
  }

  .gb-home-page .gb-home-kv {
    font-size: var(--rpds-text-label);
  }

  .gb-identify-page .gb-info-grid {
    grid-template-columns: 1fr;
  }

  .gb-identify-page .gb-plot-area {
    height: 380px;
  }

  .gb-identify-page .gb-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .gb-identify-page .gb-action-bar .gb-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 576px) {
  .golden-workflow .gb-step-pill {
    padding: 4px 9px;
  }

  .golden-workflow .gb-workflow-title {
    font-size: 1.2rem;
  }

  .gb-title {
    font-size: 1.22rem;
  }

  .gb-page .gb-auto-plot--medium,
  .gb-page .gb-plot-area,
  .gb-page .gb-auto-plot {
    height: 320px;
  }

  .gb-page .gb-auto-plot--tall {
    height: 360px;
  }

  .gb-page .gb-auto-plot--compact {
    height: 230px;
  }

  .gb-page .table {
    font-size: var(--rpds-text-label);
  }

  .gb-page .table > :not(caption) > * > * {
    padding: 0.66rem 0.72rem;
  }

  .gb-page .table thead th {
    font-size: var(--rpds-text-label);
    white-space: normal;
  }

  .gb-card {
    padding: 14px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .top-metrics-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid-wide {
    grid-column: auto;
  }

  .gb-next-fab-wrap {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .gb-next-fab-wrap .gb-next {
    width: 100%;
  }

  .gb-merged-flow .gb-lock-center {
    width: 100%;
    min-width: 0;
  }
}

/* Step 2 ideal reference and matrix */
.gb-ideal-legend::before {
  content: "";
  display: inline-block;
  width: 32px;
  margin-right: .6rem;
  border-top: 5px solid #F2A900;
  vertical-align: middle;
}
.gb-matrix-scroll { max-height: 620px; margin-top: .75rem; overflow: auto; border: 1px solid #d8e1e8; border-radius: 8px; }
.gb-matrix-table { border-collapse: collapse; width: max-content; min-width: 100%; color: inherit; font-size: var(--rpds-text-label); }
.gb-matrix-table th, .gb-matrix-table td { padding: .55rem .7rem; border-bottom: 1px solid #e1e7eb; white-space: nowrap; text-align: center; background: transparent; }
.gb-matrix-table th { font-weight: 600; }
.gb-matrix-table th:first-child, .gb-matrix-table td:first-child { text-align: left; min-width: 210px; }
#matrixTable th:first-child, #matrixTable td:first-child,
#matrixTable th:nth-child(2), #matrixTable td:nth-child(2) { font-weight: var(--rpds-weight-bold, 700); }
.gb-similarity-controls { display: flex; align-items: flex-start; gap: 18px 32px; flex-wrap: wrap; }
.gb-similarity-heading { flex-wrap: wrap; gap: 8px 20px; }
.gb-similarity-heading h6 { flex: 1 1 300px; }
.gb-similarity-controls fieldset { flex: 1 1 360px; min-width: 0; margin: 0; }
.gb-similarity-controls legend { float: none; width: auto; margin-bottom: 10px; }
.gb-similarity-controls .form-check { display: inline-flex; align-items: center; gap: 10px; padding-left: 0; }
.gb-similarity-controls .form-check-input { float: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.gb-similarity-controls .form-check-label { font-size: 14px; font-weight: 600; line-height: 1.5; }
.gb-merged-flow .gb-similarity-summary {
  gap: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.gb-similarity-summary strong { font-size: inherit; }
.gb-similarity-variable { flex: 1 1 300px; min-width: 0; }
.gb-similarity-variable select { width: 100%; }
.gb-similarity-range-panel {
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid #d5e2bd;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faef, #fff);
}
.gb-similarity-range-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gb-similarity-range-head h6 { margin: 0 0 6px; }
.gb-similarity-range-head p { margin: 0; color: #637151; font-size: 13px; max-width: 650px; }
.gb-similarity-range-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.gb-similarity-range-grid label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.gb-similarity-range-grid output { padding: 4px 10px; border: 1px solid #c9d8b4; border-radius: 8px; background: #fff; color: #384922; font-weight: 700; min-width: 60px; text-align: center; }
.gb-similarity-range-grid input[type="range"] { display: block; width: 100%; height: 24px; cursor: pointer; accent-color: #6f8730; }
.gb-similarity-range-grid input:focus-visible { outline: 3px solid #94af5b; outline-offset: 3px; border-radius: 5px; }
.gb-range-ticks { display: flex; justify-content: space-between; color: #677359; font-size: 11px; margin-top: 4px; }
.gb-similarity-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; font-size: 12px; color: #52613f; }
.gb-similarity-key > span { display: inline-flex; gap: 7px; align-items: center; }
.gb-key-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gb-key-dot.available { background: #86a44e; }
.gb-key-dot.selected { background: #3976bf; }
.gb-key-dot.ideal { background: #f2a900; }
.gb-similarity-batches { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.gb-merged-flow .gb-similarity-batches .gb-inline-chip {
  border-color: #bfd19f;
  background: linear-gradient(180deg, #f8fcef, #edf6dc);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 6px 12px;
}
.gb-merged-flow .gb-similarity-chip { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: box-shadow 120ms ease; }
.gb-merged-flow .gb-similarity-chip:hover { box-shadow: 0 2px 8px #34492420; }
.gb-merged-flow .gb-similarity-chip:focus-visible { outline: 3px solid #3976bf; outline-offset: 2px; }
.gb-merged-flow .gb-similarity-batches .gb-inline-chip.is-selected,
.gb-merged-flow .golden-chip.gb-golden-selected {
  border-color: #a9c7eb;
  background: #eaf3ff;
  color: #24558e;
}
.gb-merged-flow .golden-chip.gb-golden-selected:hover { background: #dceaff; }
.gb-similarity-chip-state { border-left: 1px solid currentColor; padding-left: 10px; font-size: 11px; font-weight: 600; }
.gb-similarity-list-empty { color: #667085; font-size: 13px; padding: 8px 0; }
@media (max-width: 640px) {
  .gb-similarity-range-panel { padding: 14px; }
  .gb-similarity-range-grid { grid-template-columns: 1fr; gap: 18px; }
  .gb-merged-flow .gb-similarity-chip { flex-wrap: wrap; gap: 6px; }
}
.gb-merged-flow .golden-chip:focus-visible { outline: 3px solid #6f8730; outline-offset: 2px; }

/* Compare page batch picker */
.gb-stats-page .gb-stats-download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
}
.gb-stats-page .gb-card.gb-stats-download-card {
  padding: 24px;
  gap: 14px;
  border-radius: 20px;
  box-shadow: 0 8px 24px #42623b12;
}
.gb-stats-page .gb-stats-download-card.gb-export-batches { background: linear-gradient(145deg, #f0f9dc, #fcfff5); border-color: #d0e5a8; --gb-export-accent: #527525; --gb-export-icon-bg: #dceeba; }
.gb-stats-page .gb-stats-download-card.gb-export-envelope { background: linear-gradient(145deg, #e4f7f3, #f7fffd); border-color: #bce2d9; --gb-export-accent: #246f60; --gb-export-icon-bg: #c4ebe1; }
.gb-stats-page .gb-stats-download-card.gb-export-report { background: linear-gradient(145deg, #fff0dd, #fffaf3); border-color: #f0d5b3; --gb-export-accent: #956027; --gb-export-icon-bg: #ffe0b7; }
.gb-export-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gb-export-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--gb-export-icon-bg); color: var(--gb-export-accent); font-size: 24px; }
.gb-export-format { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ffffff; background: #ffffffb8; padding: 6px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--gb-export-accent); }
.gb-export-format small { font-size: 11px; font-weight: 500; }
.gb-export-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: var(--gb-export-accent); }
.gb-stats-page .gb-stats-download-card h6 { font-size: 20px; font-weight: 700; line-height: 1.3; color: #33442b; }
.gb-stats-page .gb-stats-download-card p { line-height: 1.7; }
.gb-export-detail { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--gb-export-accent); }
.gb-stats-page .gb-stats-download-card .gb-btn { border-radius: 12px; padding: 11px 12px; }
.gb-stats-download-card .gb-btn i { margin-right: 6px; }
@media (max-width: 767px) { .gb-stats-page .gb-card.gb-stats-download-card { padding: 20px; } }
.gb-stats-page .gb-stats-download-card h6,
.gb-stats-page .gb-stats-download-card p { margin: 0; }
.gb-stats-page .gb-stats-download-card p { flex: 1; }
.gb-stats-page .gb-stats-download-card .gb-btn {
  width: 100%;
  text-align: center;
  white-space: normal;
}

.gb-compare-picker { position: relative; }
.gb-compare-trigger {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  text-align: left;
  color: var(--gb-ink);
  background: #fff;
  border: 1px solid var(--gb-border-strong);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18, 33, 13, 0.04);
}
.gb-compare-trigger:hover { border-color: var(--gb-primary); }
.gb-compare-trigger:focus-visible, .gb-compare-option:focus-visible {
  outline: 3px solid var(--gb-primary-soft);
  outline-offset: 2px;
}
.gb-compare-trigger-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.gb-compare-trigger-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--rpds-text-body); }
.gb-compare-trigger-copy small { color: var(--gb-ink-soft); font-size: var(--rpds-text-small); }
.gb-compare-chevron { width: 9px; height: 9px; flex: none; border-right: 2px solid var(--gb-ink-soft); border-bottom: 2px solid var(--gb-ink-soft); transform: rotate(45deg); }
.gb-compare-trigger[aria-expanded="true"] .gb-compare-chevron { transform: rotate(225deg); }
.gb-compare-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(18, 33, 13, .16);
}
.gb-compare-menu[hidden], .gb-compare-option[hidden], .gb-compare-option-group[hidden], .gb-compare-no-results[hidden] { display: none; }
.gb-compare-menu input { width: 100%; }
.gb-compare-count { padding: 8px 5px 6px; color: var(--gb-ink-soft); font-size: var(--rpds-text-small); }
.gb-compare-options { max-height: 270px; overflow-y: auto; overscroll-behavior: contain; }
.gb-compare-option-heading { padding: 9px 8px 5px; color: var(--gb-ink-soft); font-size: var(--rpds-text-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gb-compare-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gb-ink);
  text-align: left;
  font-size: var(--rpds-text-label);
  overflow-wrap: anywhere;
}
.gb-compare-option:hover, .gb-compare-option:focus-visible { background: var(--gb-table-row-hover); }
.gb-compare-option.is-selected { color: var(--gb-primary-dark); background: #eef5e3; font-weight: 700; }
.gb-compare-no-results { padding: 16px 8px; color: var(--gb-ink-soft); font-size: var(--rpds-text-label); }

/* Compare uses document scrolling; the sidebar may scroll independently when needed. */
body.gb-compare-body .golden-workflow #workflow-shell {
  height: auto;
  min-height: 0;
}
body.gb-compare-body .golden-workflow .main-col-wrap {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
}
body.gb-compare-body #golden-batch-content .gb-compare-page {
  min-height: 0;
}
body.gb-compare-body #comparePlots > [class*="col-"] {
  min-width: 0;
}
body.gb-compare-body .gb-compare-page [hidden] {
  display: none;
}
.gb-compare-page #batchSelect {
  min-height: 58px;
}
.gb-compare-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: stretch;
}
.gb-compare-upload-form .form-control {
  min-width: 0;
  min-height: 58px;
}
.gb-compare-upload-form .gb-btn {
  min-height: 58px;
  white-space: nowrap;
}
.gb-compare-field-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  min-height: 44px;
  margin-top: .5rem;
}
.gb-compare-page #comparePlots h6 {
  overflow-wrap: anywhere;
}
.gb-compare-page button {
  min-height: 44px;
}
.gb-compare-skeleton-label {
  width: min(60%, 15rem);
  height: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: #e7eddf;
}
.gb-compare-skeleton-plot,
.gb-compare-chart-pending {
  height: 260px;
  border-radius: 8px;
  background: #f2f5ed;
}

@media (min-width: 992px) {
  body.gb-compare-body .golden-workflow .left-col-wrap {
    align-self: start;
    height: auto;
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow-y: auto;
  }
  body.gb-compare-body .golden-workflow #sidebar-resizer {
    height: auto;
  }
}

@media (max-width: 575px) {
  .gb-compare-upload-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .gb-compare-skeleton-plot,
  .gb-compare-chart-pending {
    height: 230px;
  }
}
/* Deviation Statistics layout. */
.gb-deviation { min-width: 0; }
.gb-deviation-controls { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.gb-deviation-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; }
.gb-deviation-heading #deviationHeading { font-size: 28px; font-weight: 700; line-height: 1.3; }
.gb-deviation-selected-batch { margin-left: auto; max-width: 100%; font-size: var(--rpds-text-section); line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.gb-deviation-selected-batch strong { font-weight: 700; }
.gb-deviation-controls label { display: grid; gap: 8px; width: 360px; max-width: 100%; min-width: 0; margin: 0; }
.gb-deviation-controls input { width: 100%; accent-color: #0ea5a4; }
.gb-deviation-help { margin: 12px 0; font-size: var(--rpds-text-small); line-height: 1.5; }
.gb-deviation-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gb-deviation-level { display: inline-block; color: var(--gb-deviation-color); font-size: var(--rpds-text-small); font-weight: 600; line-height: 1.35; }
.gb-deviation-level small { font-size: inherit; font-weight: 400; }
.gb-deviation-table .gb-deviation-level { color: var(--gb-deviation-color) !important; background: transparent; font-weight: 700; }
.gb-deviation-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 20px 0; }
.gb-deviation-summary-item { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.gb-deviation-table-wrap { max-height: 480px; max-width: 100%; overflow: auto; border: 1px solid var(--gb-border); border-radius: 10px; }
.gb-deviation-table { width: 100%; min-width: 1000px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: var(--rpds-text-label); line-height: 1.5; font-variant-numeric: tabular-nums; }
.gb-deviation-parameter-column { width: 23%; }
.gb-deviation-count-column { width: 9%; }
.gb-deviation-percentage-column { width: 11%; }
.gb-deviation-ratio-column { width: 12%; }
.gb-deviation-direction-column { width: 10%; }
.gb-deviation-severity-column { width: 16%; }
.gb-deviation-status-column { width: 9%; }
.gb-deviation-time-column { width: 10%; }
.gb-deviation-table th, .gb-deviation-table td { padding: 12px 8px; border-bottom: 1px solid #dde4d7; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.gb-deviation-table thead th { position: sticky; top: 0; background: #f4f8ee; z-index: 1; vertical-align: top; font-weight: 600; line-height: 1.45; overflow-wrap: normal; cursor: default; }
.gb-deviation-table tbody th { overflow-wrap: anywhere; }
.gb-deviation-table tbody tr:last-child > * { border-bottom: 0; }
.gb-deviation-critical { --gb-deviation-color: #c62828; }
.gb-deviation-warning { --gb-deviation-color: #a66b00; }
.gb-deviation-info { --gb-deviation-color: #0369a1; }
.gb-deviation-normal { --gb-deviation-color: #2e7d32; }
.gb-deviation-insufficient { --gb-deviation-color: #6b7280; }
.gb-deviation-legend small { color: var(--rpds-text-color, #374151); }
.gb-compare-actions { display: flex; justify-content: flex-end; align-items: stretch; flex-wrap: wrap; gap: 12px; }
.gb-workflow-back-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; }
.gb-compare-actions .gb-workflow-back-link { margin-right: auto; }
.gb-page-back-actions { display: flex; justify-content: flex-start; }
@media (max-width: 575px) {
  .gb-deviation-selected-batch { margin-left: 0; }
  .gb-deviation-controls label { width: 100%; }
  .gb-compare-actions .gb-btn { flex: 1 1 200px; }
}

/* Carry the golden reference into Ferment IQ. */
.gb-stats-page .gb-card.gb-ferment-iq-card { display: grid; height: auto; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px; align-items: center; background: linear-gradient(135deg, #e4f7f3, #f7fffd); border-color: #bce2d9; --gb-export-accent: #246f60; }
.gb-ferment-iq-card .gb-next-icon { background: #c4ebe1; color: #246f60; }
.gb-ferment-iq-card .gb-next-eyebrow, .gb-ferment-iq-card .gb-next-title { color: #246f60; }
.gb-ferment-iq-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.gb-ferment-iq-card .gb-next-title { margin-bottom: 12px; }
.gb-ferment-iq-card .gb-export-detail { margin: 0; }
@media (max-width: 767px) {
  .gb-stats-page .gb-card.gb-ferment-iq-card { grid-template-columns: minmax(0, 1fr); }
  .gb-ferment-iq-action .gb-btn { width: 100%; }
}
/* Additive Step 3 workspace */
.gb-step3-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--gb-border,#dfe4d4);margin-bottom:14px}
.gb-step3-tab{border:0;background:transparent;color:var(--gb-text,#30411b);padding:10px 14px;font-weight:600;border-bottom:3px solid transparent}
.gb-step3-tab.active{border-bottom-color:var(--gb-brand-green,#6f8730);background:#f4f7ec}
.gb-step3-stale-slot{display:inline-block;min-width:8px;min-height:8px;margin-left:4px}
.gb-step3-schema-panel{padding:18px}
.gb-step3-schema-table{min-width:900px;table-layout:fixed}
.gb-step3-schema-table th{white-space:nowrap;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:#69745a}
.gb-step3-schema-table th:nth-child(1){width:24%}.gb-step3-schema-table th:nth-child(2){width:36%}.gb-step3-schema-table th:nth-child(3){width:18%}.gb-step3-schema-table th:nth-child(4){width:22%}
.gb-step3-schema-table td{overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.gb-step3-schema-table .step3-role{display:block;width:100%;height:38px;min-width:0;padding:.35rem 2rem .35rem .65rem;font-size:.78rem;font-weight:700;line-height:1.2;letter-spacing:0;border-radius:8px;background-color:#fff;white-space:nowrap}
.gb-step3-schema-table .step3-role option{font-size:.78rem;font-weight:700}
.gb-step3-schema-table .step3-resuggest{min-width:92px;padding-inline:8px;white-space:nowrap}
.gb-step3-schema-scroll,.gb-step3-kpi-scroll{max-height:418px;overflow-y:scroll}
.gb-step3-schema-scroll thead th,.gb-step3-kpi-scroll thead th{position:sticky;top:0;z-index:1;background:var(--gb-surface,#fff)}
.gb-step3-kpi-scroll #step3KpiGrid tbody tr{height:38px}
.step3-cost-remove-heading,.step3-cost-remove-cell{width:44px;text-align:center;vertical-align:middle}
.step3-cost-remove{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #e3b6b1;border-radius:50%;background:#fff7f6;color:#b23b32;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.step3-cost-remove svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.step3-cost-remove:hover{background:#b23b32;border-color:#b23b32;color:#fff;transform:scale(1.06)}
.step3-cost-remove:focus-visible{outline:3px solid rgba(178,59,50,.32);outline-offset:2px}
@media (max-width:780px){.gb-step3-schema-table{min-width:100%}.gb-step3-schema-table th:nth-child(2),.gb-step3-schema-table td:nth-child(2){display:none}.gb-step3-schema-table th:nth-child(1){width:34%}.gb-step3-schema-table th:nth-child(3){width:26%}.gb-step3-schema-table th:nth-child(4){width:40%}.gb-step3-schema-table th,.gb-step3-schema-table td{padding:.45rem .3rem}}
.gb-confidence-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:.76rem;font-weight:700;background:#e4f2dc;color:#2d6a32}
.gb-confidence-chip.low{background:#fff1cf;color:#8a5a00}
.gb-step3-status,.gb-step3-validation{border-radius:6px;padding:9px 11px;font-size:.88rem}
.gb-step3-status.info{background:#f0f4f8;color:#3f5365}.gb-step3-status.success,.gb-step3-validation.success{background:#e7f4e4;color:#2f6634}.gb-step3-status.error,.gb-step3-validation.error{background:#fbe8e6;color:#8a2f2a}
.gb-step3-summary{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px;color:#536044;font-size:.86rem}
.gb-step3-summary span{border:1px solid #dfe6d3;border-radius:999px;padding:4px 9px;background:#f8faf4}
.gb-step3-stub{padding:18px}
.step3-kpi-summary{margin-top:26px;padding:20px;border:1px solid #e7ebf2;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(21,38,70,.06)}
.step3-kpi-summary__header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 2px 18px;padding-bottom:15px;border-bottom:1px solid #eef1f6}.step3-kpi-summary__header p{margin:0 0 4px;color:#74809a;font-size:.7rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.step3-kpi-summary__header h6{margin:0;color:#223049;font-size:1.12rem;font-weight:800}.step3-kpi-summary__header>span{padding:6px 11px;border:1px solid #e0e6f0;border-radius:999px;background:#f8faff;color:#66748c;font-size:.75rem;font-weight:750;white-space:nowrap}
.step3-kpi-summary__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.step3-kpi-card{position:relative;isolation:isolate;overflow:hidden;display:flex;min-width:0;min-height:188px;flex-direction:column;padding:22px;border:0;border-radius:22px;background:linear-gradient(135deg,#173ee6 0%,#4263f4 58%,#7a96ff 100%);box-shadow:0 14px 26px rgba(39,72,202,.22);transition:transform .2s ease,box-shadow .2s ease}.step3-kpi-card:hover{transform:translateY(-4px);box-shadow:0 20px 32px rgba(39,72,202,.3)}
.step3-kpi-card::before{content:"";position:absolute;z-index:-1;right:-35px;bottom:-52px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.12)}.step3-kpi-card::after{content:"";position:absolute;z-index:-1;top:-55px;left:-35px;width:125px;height:125px;border-radius:50%;background:rgba(255,255,255,.09)}
.step3-kpi-card--consumption{background:linear-gradient(135deg,#5035c7 0%,#7859e1 58%,#a18cff 100%);box-shadow:0 14px 26px rgba(92,63,190,.21)}.step3-kpi-card--cost{background:linear-gradient(135deg,#b7620a 0%,#de8e25 58%,#f4bc61 100%);box-shadow:0 14px 26px rgba(183,98,10,.2)}.step3-kpi-card--unit-cost{background:linear-gradient(135deg,#087d7e 0%,#21a9a6 58%,#69d2c7 100%);box-shadow:0 14px 26px rgba(8,125,126,.2)}
.step3-kpi-card__top{display:flex;align-items:center;justify-content:space-between}.step3-kpi-card__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.17);color:#fff;font-size:.88rem;font-weight:900;backdrop-filter:blur(4px)}.step3-kpi-card__badge{padding:4px 8px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.13);color:#fff;font-size:.64rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.step3-kpi-card__label{min-height:31px;margin-top:16px;color:rgba(255,255,255,.82);font-size:.72rem;font-weight:800;letter-spacing:.065em;line-height:1.28;text-transform:uppercase}.step3-kpi-card__value{min-width:0;margin-top:5px;color:#fff;font-size:clamp(1.65rem,2.3vw,2.28rem);font-weight:900;letter-spacing:-.045em;line-height:1.06;overflow-wrap:anywhere;text-shadow:0 1px 1px rgba(14,25,90,.12)}.step3-kpi-card__value span{margin-left:5px;color:rgba(255,255,255,.84);font-size:.78rem;font-weight:800;letter-spacing:0;white-space:nowrap}.step3-kpi-card__footer{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:17px;color:rgba(255,255,255,.8);font-size:.73rem;line-height:1.3}.step3-kpi-card__footer span{min-width:0}.step3-kpi-card__footer b{flex:none;padding:3px 6px;border-radius:6px;background:rgba(0,0,0,.1);color:#fff;font-size:.68rem;white-space:nowrap}
@media (max-width:1050px){.step3-kpi-summary__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:560px){.step3-kpi-summary{padding:15px}.step3-kpi-summary__header{align-items:flex-start;flex-direction:column;gap:8px}.step3-kpi-summary__grid{grid-template-columns:1fr}.step3-kpi-card{min-height:174px}}
.step3-inline-sparkline { min-width: 180px; height: 40px; }
#step3FilterSurvivors tr.is-highlighted, #goldenList .is-highlighted { outline: 2px solid #2563eb; outline-offset: 1px; background: #eff6ff; }
.gb-step3-importance-chart .progress { min-width: 260px; }
.gb-step3-golden-rail { position: relative; z-index: 1; }
.gb-step3-rail-list { max-height: 180px; overflow-y: auto; }
