:root {
  --v2-bg: #ffffff;
  --v2-surface: #ffffff;
  --v2-text: rgba(0, 0, 0, 0.8);
  --v2-text-secondary: rgba(0, 0, 0, 0.5);
  --v2-border: rgba(0, 0, 0, 0.1);
  --v2-border-strong: rgba(0, 0, 0, 0.4);
  --v2-accent: #2298d5;
  --v2-navy: #0e3d55;
  --v2-navy-hover: #071e2b;
  --v2-input-bg: #f3f4f6;
  --v2-control-bg: rgba(0, 0, 0, 0.05);
  --v2-segment-active-bg: rgba(0, 0, 0, 0.05);
  --v2-action-bg: #0e3d55;
  --v2-action-color: #ffffff;
  --v2-action-hover: #071e2b;
  --v2-plot-header-bg: #2298d5;
  --v2-plot-modebar-top: -48px;
  --v2-dropdown-bg: rgba(0, 0, 0, 0.05);
  --v2-dropdown-border: rgba(0, 0, 0, 0.1);
  --v2-dropdown-text: rgba(0, 0, 0, 0.8);
  --v2-dropdown-placeholder: rgba(0, 0, 0, 0.5);
  --v2-dropdown-menu-bg: #ffffff;
  --v2-dropdown-option-hover: rgba(34, 152, 213, 0.12);
  --v2-dropdown-option-selected: rgba(34, 152, 213, 0.18);
  --v2-shimmer-1: #eceff3;
  --v2-shimmer-2: #f5f7fa;
  --v2-shimmer-header-1: #dde1e6;
  --v2-shimmer-header-2: #e8ebef;
  --v2-radius: 6px;
  --v2-radius-card: 8px;
  --v2-legend-trust: #81C784;
  --v2-legend-caution: #ef6c00;
  --v2-legend-extrapolation: #c62828;
  --v2-page-tint: rgba(0, 0, 0, 0.03);
}

* { box-sizing: border-box; }

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

._dash-loading-callback {
  display: none !important;
}

body {
  margin: 0;
  width: 100%;
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: Inter, "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

.v2-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  /* Allow toolbar / back link clicks to pass through while spinner is up */
  pointer-events: none;
}
.v2-busy-overlay.display-none {
  display: none !important;
}
.v2-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-radius: 8px;
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--v2-text);
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
}
.v2-list-loading {
  pointer-events: none;
  opacity: 0.55;
}

.v2-root {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(90deg, var(--v2-page-tint), var(--v2-page-tint)), var(--v2-bg);
  color: var(--v2-text);
}

.v2-page-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  margin: 0;
}
.v2-back-text
{
  color: black;
}

/* Manage Model / Config / Manage Template — flush toolbar */
.v2-page-body.v2-page-body--flush,
.v2-page-body:has(.v2-manage-model-page),
.v2-page-body:has(.v2-config-page),
.v2-page-body:has(.v2-manage-template-page) {
  padding: 0 0 16px !important;
  gap: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

.v2-home-page,
.v2-home-page--top,
.v2-home-page--bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.v2-home-page--top {
  flex: 0 0 auto;
}
.v2-home-page--bottom {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}
.v2-page-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0;
  padding: 0;
  margin: 0;
  overflow-x: clip;
}
.v2-page-stack:has(.v2-home-page--top) {
  padding: 16px;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  flex: 1 1 0%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.08);
}
html:has(.v2-home-page--top),
html:has(.v2-home-page--top) body {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
html:has(.v2-home-page--top) body {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}
html:has(.v2-home-page--top) #react-entry-point,
html:has(.v2-home-page--top) #react-entry-point > div:not(._dash-loading-callback):not(.dash-debug-menu):not(.dash-debug-menu__outer):not(._dash-undo-redo),
html:has(.v2-home-page--top) #_dash-app-content,
html:has(.v2-home-page--top) #_dash-app-content > div:not(._dash-loading-callback):not(.dash-debug-menu):not(.dash-debug-menu__outer):not(._dash-undo-redo),
html:has(.v2-home-page--top) #v2-app-mount {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.dash-debug-menu,
.dash-debug-menu__outer,
.dash-debug-menu--closed,
#_dash-debug-menu,
._dash-undo-redo {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  height: auto !important;
  max-height: none !important;
  width: auto !important;
  overflow: visible !important;
  display: block !important;
  flex: none !important;
  z-index: 100000 !important;
}
.v2-root:has(.v2-home-page--top) {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
.v2-page-body-top,
.v2-page-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
}
.v2-page-body-top--flush,
.v2-page-body--flush {
  gap: 0;
  padding: 0 !important;
  max-width: none;
  margin: 0;
}
.v2-page-body-top:not(.v2-page-body-top--flush),
.v2-page-body:not(.v2-page-body--flush) {
  padding: 0 !important;
  gap: 0 !important;
  max-width: none;
  margin: 0;
}
.v2-home-results-section {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0;
  padding: 0 !important;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 880px;
  height: auto;
  margin: 0;
}
.v2-home-results-section > .v2-home-toolbar-inner {
  padding: 12px;
  border-bottom: 1px solid var(--v2-border);
  background: transparent;
}
.v2-home-results-section > .v2-results-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  padding: 8px 12px 12px;
}
.v2-home-results-section .v2-home-panels-loader,
.v2-home-results-section .v2-home-main-content {
  margin-top: 0;
  padding-top: 0;
}
.v2-home-results-section .v2-home-main-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}
.v2-home-results-section .v2-home-main-content .v2-two-col {
  margin-top: 0;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  height: auto;
  max-height: none;
  position: relative;
  container-type: inline-size;
}
.v2-home-results-section .v2-home-main-content .v2-pvt-plots-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.v2-home-results-section .v2-home-main-content .v2-performance-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.v2-home-results-section .v2-performance-header,
.v2-home-results-section .v2-performance-tabs-wrap,
.v2-home-results-section .v2-oil-filter {
  flex: 0 0 auto;
}
.v2-home-results-section .v2-performance-plots,
.v2-home-results-section .v2-excel-summary {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}
.v2-home-results-section .v2-performance-panel .v2-performance-plots {
  display: flex;
  flex-direction: column;
}
.v2-home-results-section .v2-performance-panel .v2-plot-targets {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.v2-home-results-section .v2-performance-panel #v2-curve-plots-display.v2-plot-display.visible {
  overflow: visible;
}
.v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display.visible {
  display: flex;
  flex-direction: column;
}
.v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display.visible .v2-plot-grid-row {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
}
.v2-home-results-section .v2-performance-plots::-webkit-scrollbar,
.v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display::-webkit-scrollbar {
  width: 8px;
}
.v2-home-results-section .v2-performance-plots::-webkit-scrollbar-track,
.v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}
.v2-home-results-section .v2-performance-plots::-webkit-scrollbar-thumb,
.v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}
.v2-home-results-section .v2-panel {
  gap: 8px;
  min-height: 0;
  height: auto;
}
.v2-home-results-section .v2-plot-card {
  height: auto;
  align-self: start;
}
.v2-home-results-section .v2-plot-card-body {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0 !important;
  max-height: none;
  display: block;
  position: relative;
}
.v2-home-results-section .v2-plotly,
.v2-home-results-section .v2-embedding-plot-graph,
.v2-home-results-section .v2-histogram-plot-graph,
.v2-home-results-section .v2-histogram-plot-col .v2-plotly,
.v2-home-results-section .v2-plot-card-body .dash-graph,
.v2-home-results-section .v2-plot-card-body .js-plotly-plot,
.v2-home-results-section .v2-plot-card-body .plotly,
.v2-home-results-section .v2-plot-card-body > * {
  position: absolute;
  inset: 0;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
}
.v2-home-results-section .v2-performance-panel .v2-plot-col,
.v2-home-results-section .v2-performance-panel .v2-shimmer-col {
  min-width: 0;
  min-height: 0;
}
@media (min-width: 768px) {
  .v2-home-results-section .v2-performance-panel .col-md-6.v2-plot-col,
  .v2-home-results-section .v2-performance-panel .col-md-6.v2-shimmer-col {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    width: calc(50% - 8px);
  }
}
.v2-home-results-section .v2-performance-panel .v2-histogram-plot-col {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
.v2-home-results-section .v2-performance-panel .v2-plot-card,
.v2-home-results-section .v2-performance-panel .v2-shimmer-card {
  width: 100%;
  max-width: 100%;
  height: auto;
  align-self: stretch;
}
.v2-home-results-section .v2-performance-panel .v2-plot-card-body,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body.v2-shimmer-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  padding-bottom: 0;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 0 !important;
}
.v2-home-results-section .v2-performance-panel .v2-plot-card-body > *,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .dash-graph,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .js-plotly-plot,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .plotly,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .plot-container,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .svg-container,
.v2-home-results-section .v2-performance-panel .v2-plotly,
.v2-home-results-section .v2-performance-panel .v2-histogram-plot-graph,
.v2-home-results-section .v2-performance-panel .v2-histogram-plot-col .v2-plotly,
.v2-home-results-section .v2-performance-panel .v2-embedding-plot-graph,
.v2-home-results-section .v2-performance-panel .v2-parity-plot-graph {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .js-plotly-plot,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .js-plotly-plot .svg-container,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .js-plotly-plot .main-svg {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.v2-home-results-section .v2-performance-panel .col-md-6.v2-plot-col .v2-plot-card,
.v2-home-results-section .v2-performance-panel .col-md-6.v2-shimmer-col .v2-shimmer-card {
  height: auto;
  max-height: none;
  overflow: hidden;
}
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .v2-plot-placeholder,
.v2-home-results-section .v2-performance-panel .v2-plot-card-body .v2-shimmer-body {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-bottom: 0;
  min-height: 0 !important;
}
.v2-home-results-section .v2-home-loader-perf .v2-shimmer-card {
  width: 100%;
  max-width: 100%;
}
.v2-home-results-section .v2-home-loader-perf .v2-plot-card-body.v2-shimmer-body,
.v2-home-results-section .v2-home-loader-perf .v2-plot-placeholder,
.v2-home-results-section .v2-home-loader-perf .v2-shimmer-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  padding-bottom: 0;
  overflow: hidden;
  min-height: 0 !important;
}
.v2-page-stack:has(.v2-home-page--top)::-webkit-scrollbar {
  width: 8px;
}
.v2-page-stack:has(.v2-home-page--top)::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}
.v2-page-stack:has(.v2-home-page--top)::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}
/* Progress dock: display:contents so a hidden bar does not leave a flex gap */
.v2-progress-dock {
  display: contents;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: none;
}
.v2-mt-import-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-mt-import-progress-stack.display-none {
  display: none !important;
}
.v2-progress-section.display-none {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  border: none !important;
}
.v2-shimmer-card.v2-plot-card {
  padding: 12px;
  gap: 8px;
  border-radius: var(--v2-radius-card);
}
.v2-shimmer-card .v2-plot-card-header {
  border-radius: 4px;
  padding: 12px;
}

.v2-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.224px;
  color: var(--v2-text);
}

.v2-muted {
  color: var(--v2-text-secondary);
  margin: 0 0 8px;
}
.v2-muted.mb-0,
.v2-muted.small.mb-0 {
  margin-bottom: 0;
}
.v2-list-empty {
  margin: 16px !important;
  padding: 0;
}

.v2-card {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-card);
  padding: 12px;
}

.v2-progress-section {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-card);
  padding: 12px;
}
.v2-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.v2-progress-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.v2-progress-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-secondary);
}
.v2-progress-label-strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--v2-text);
  letter-spacing: -0.02em;
}
.v2-progress-dismiss {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: transparent;
  color: var(--v2-text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.v2-progress-dismiss:hover {
  color: var(--v2-text);
  border-color: var(--v2-border-strong, var(--v2-border));
  background: rgba(0, 0, 0, 0.04);
}
.v2-progress-section--failed {
  border-color: rgba(198, 40, 40, 0.35);
}
.v2-progress-section--failed .v2-progress-label-strong {
  color: #c62828;
}
.v2-progress-section--failed .v2-progress-detail {
  color: #c62828;
}
.v2-progress-section--done {
  border-color: rgba(46, 125, 50, 0.35);
}
.v2-progress-section--done .v2-progress-label-strong {
  color: #2e7d32;
}
.v2-progress-section--done .v2-progress-bar {
  display: none;
}
.v2-progress-section--done .v2-progress-header-right #v2-progress-text {
  display: none;
}
.v2-progress-section--failed .v2-progress-dismiss,
.v2-progress-section--done .v2-progress-dismiss {
  display: inline-flex;
}
.v2-progress-detail {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--v2-text-secondary);
}

/* ---- Input / upload (v1-style: dropzone + inline Run config) ---- */
.v2-input-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
#v2-home-input-slot {
  width: 100%;
}
.v2-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.v2-input-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.v2-home-input-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.v2-home-input-row--run-ready {
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
  min-height: 168px;
  height: auto;
}
.v2-home-input-upload-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}
.v2-home-input-row--run-ready .v2-home-input-upload-row {
  width: auto;
}
.v2-input-card--create-open .v2-home-input-row,
.v2-input-card--create-open .v2-home-input-footer {
  display: none !important;
}
.v2-home-upload-box {
  flex: 0 0 clamp(200px, 16vw, 280px);
  width: clamp(200px, 16vw, 280px);
  max-width: 280px;
  height: 168px;
  box-sizing: border-box;
  justify-content: center;
  padding: 10px;
}
.v2-home-input-row:not(.v2-home-input-row--run-ready) .v2-home-upload-box {
  flex: 0 0 clamp(200px, 16vw, 280px);
  width: clamp(200px, 16vw, 280px);
  max-width: 280px;
  height: 168px;
}
.v2-home-input-row--run-ready .v2-home-upload-box {
  flex: 0 0 clamp(200px, 16vw, 280px);
  width: clamp(200px, 16vw, 280px);
  max-width: 280px;
  height: 168px;
}
.v2-home-input-row--run-ready .v2-home-open-box {
  flex: 0 0 168px;
  width: 168px;
  max-width: 168px;
  height: 168px;
}
.v2-home-input-row--run-ready .v2-home-run-config--inline {
  display: flex;
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
}
.v2-home-run-config--inline .v2-home-run-config-body {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 8px;
  align-items: end;
  align-content: end;
  width: 100% !important;
  max-width: none;
  min-width: 0;
}
.v2-home-run-config--inline .v2-home-run-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: auto;
  max-width: none;
  height: auto;
  justify-content: flex-end;
}
.v2-home-run-config--inline .v2-home-run-field--model {
  grid-column: 1;
  grid-row: 1;
}
.v2-home-run-config--inline .v2-home-run-field--tenant {
  grid-column: 2;
  grid-row: 1;
}
.v2-home-run-config--inline .v2-home-run-field--cce {
  grid-column: 3;
  grid-row: 1;
}
.v2-home-run-config--inline .v2-home-run-field--dl {
  grid-column: 4;
  grid-row: 1;
}
.v2-home-run-config--inline .v2-home-run-field--visc {
  grid-column: 5;
  grid-row: 1;
}
.v2-home-run-config--inline .v2-home-run-field-label {
  flex-shrink: 0;
  margin: 0;
  line-height: 16px;
  font-size: 12px;
}
.v2-home-run-config--inline .v2-home-run-field > :not(.v2-home-run-field-label) {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
}
.v2-home-run-config--inline .v2-home-run-field .dash-dropdown-wrapper,
.v2-home-run-config--inline .v2-home-run-field .v2-text-input {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}
.v2-home-run-config--inline .v2-home-run-btn-wrap {
  grid-column: 5;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  flex: none;
  width: auto;
  min-width: 0;
  margin: 0;
}
.v2-home-input-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.v2-home-input-footer--run-ready {
  margin-top: -4px;
}
.v2-home-input-footer .v2-upload-inline-message {
  flex: 1 1 auto;
  min-width: 0;
}
.v2-home-run-config--inline .v2-home-run-btn {
  width: auto;
  min-width: 132px;
}
.v2-home-upload-box #v2-home-upload,
.v2-home-upload-box .v2-home-upload {
  height: 100% !important;
}
.v2-home-upload-box .v2-upload-dropzone-content {
  height: 100%;
  min-height: 0;
  gap: 8px;
}
.v2-home-upload-box .v2-upload-drop-title {
  font-size: 13px;
  line-height: 16px;
}
.v2-home-upload-box .v2-upload-drop-types {
  font-size: 12px;
}
.v2-home-open-box {
  flex: 0 0 168px;
  width: 168px;
  height: 168px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: var(--v2-control-bg);
  color: var(--v2-text);
  cursor: pointer;
  box-sizing: border-box;
}
.v2-home-open-box:hover {
  background: var(--v2-input-bg);
  border-color: var(--v2-border-strong);
}
.v2-home-open-box:hover .v2-upload-excel-hint {
  color: var(--v2-accent);
}
.v2-home-open-box .v2-upload-excel-img {
  width: 36px;
  height: 36px;
}
.v2-home-open-box .v2-upload-excel-hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.v2-home-open-box .v2-upload-excel-name {
  display: block;
  max-width: 100%;
  font-size: 11px;
  line-height: 14px;
  color: var(--v2-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-home-create-input-wrap {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
}
.v2-home-create-input-wrap .v2-mt-create-input-panel {
  display: block;
}
.v2-home-create-input-wrap .v2-card.v2-mt-form {
  background: transparent;
  box-shadow: none;
  border: none !important;
  padding: 0 !important;
}
.v2-upload-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border: 1px dashed var(--v2-border-strong);
  border-radius: var(--v2-radius);
  padding: 16px;
  background: var(--v2-input-bg);
  min-width: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.v2-upload-box--uploaded .v2-upload-box-footer {
  display: none;
}
#v2-home-upload,
.v2-home-upload {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  box-sizing: border-box !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}
.v2-upload-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
}
.v2-upload-drop-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.v2-upload-drop-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--v2-text-secondary);
}
.v2-upload-drop-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.096px;
}
.v2-upload-browse-link {
  color: var(--v2-accent);
  text-decoration: underline;
  font-weight: 500;
}
.v2-upload-drop-types { font-size: 14px; line-height: 16px; }
.v2-upload-box-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.v2-upload-status-badge {
  flex: 0 0 auto;
  min-width: 0;
  text-align: right;
}
.v2-upload-status-badge:empty {
  display: none;
}
.v2-upload-uploaded-badge,
.v2-upload-selected-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  height: 32px;
  padding: 4px 8px;
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  background: var(--v2-control-bg);
  color: var(--v2-text);
}
.v2-upload-uploaded-badge-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: inset 0 0 0 3px #22c55e;
  position: relative;
}
.v2-upload-uploaded-badge-icon::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2.5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.v2-upload-excel-preview {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: var(--v2-control-bg);
  color: var(--v2-text);
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.v2-upload-excel-preview:hover {
  background: var(--v2-input-bg);
  border-color: var(--v2-border-strong);
}
.v2-upload-excel-preview:hover .v2-upload-excel-hint {
  color: var(--v2-accent);
}
.v2-upload-excel-img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}
.v2-upload-excel-hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.v2-upload-excel-name {
  display: none;
}
.v2-upload-inline-message {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--v2-text-secondary);
  min-height: 0;
}
.v2-upload-inline-message:empty {
  display: none;
}
.v2-home-run-config {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 168px;
}
.v2-home-run-config-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  align-items: end;
  flex: 1 1 auto;
}
.v2-home-run-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 240px;
}
.v2-home-run-field-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-secondary);
}
.v2-home-run-btn-wrap {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
  margin-top: auto;
  margin-left: auto;
}
.v2-home-run-btn {
  min-width: 132px;
  width: auto;
}
.v2-upload-btn,
.v2-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  height: 32px;
  padding: 4px 8px !important;
  background: var(--v2-action-bg) !important;
  border: none !important;
  border-radius: var(--v2-radius) !important;
  color: var(--v2-action-color) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.084px;
  white-space: nowrap;
}
.v2-action-btn.v2-is-hidden {
  display: none !important;
}
.v2-upload-btn:hover,
.v2-action-btn:hover {
  background: var(--v2-action-hover) !important;
  color: var(--v2-action-color) !important;
}
.v2-upload-btn:disabled,
.v2-action-btn:disabled,
.v2-upload-btn.disabled,
.v2-action-btn.disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.v2-upload-btn-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}
.v2-action-link { text-decoration: none; }

/* ---- Toolbar ---- */
.v2-toolbar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.v2-toolbar-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.v2-toolbar-card .v2-toolbar-fields {
  max-width: 700px;
}
.v2-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.v2-stacked-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 0;
}
.v2-field-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--v2-text-secondary);
}
.v2-field-test-type { min-width: 220px; }
.v2-field-param-file {
  width: 289px;
  max-width: 100%;
  flex: 0 1 289px;
}

/* Dropdowns */
.v2-dropdown,
.v2-dropdown.dash-dropdown,
.v2-root .dash-dropdown-wrapper,
.v2-field-control .dash-dropdown-wrapper {
  width: 100%;
}
.v2-field-control .v2-text-input,
.v2-home-run-field .v2-text-input {
  width: 100%;
}

.v2-root .dash-dropdown,
.v2-dropdown.dash-dropdown,
.v2-dropdown .dash-dropdown {
  width: 100%;
  border: none !important;
  background: transparent !important;
}

.v2-root .dash-dropdown-trigger,
.v2-dropdown .dash-dropdown-trigger,
.v2-dropdown.dash-dropdown .dash-dropdown-trigger {
  min-height: 32px !important;
  height: 32px !important;
  max-height: 32px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 8px 0 10px !important;
  border-radius: var(--v2-radius) !important;
  border: 1px solid var(--v2-dropdown-border) !important;
  background: var(--v2-dropdown-bg) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  color: var(--v2-dropdown-text) !important;
}

.v2-root .dash-dropdown-trigger:hover,
.v2-dropdown .dash-dropdown-trigger:hover {
  border-color: var(--v2-dropdown-border) !important;
}

.v2-root .dash-dropdown-trigger:focus,
.v2-root .dash-dropdown-trigger:focus-visible,
.v2-dropdown .dash-dropdown-trigger:focus,
.v2-dropdown .dash-dropdown-trigger:focus-visible {
  outline: none !important;
  border-color: var(--v2-dropdown-border) !important;
  box-shadow: none !important;
}

.v2-root .dash-dropdown-value,
.v2-dropdown .dash-dropdown-value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  color: var(--v2-dropdown-text) !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v2-root .dash-dropdown-value-item,
.v2-dropdown .dash-dropdown-value-item {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  color: var(--v2-dropdown-text) !important;
  padding: 0 !important;
}

.v2-root .dash-dropdown-value-item:not(:first-child)::before,
.v2-dropdown .dash-dropdown-value-item:not(:first-child)::before {
  content: "" !important;
}

.v2-root .dash-dropdown-placeholder,
.v2-dropdown .dash-dropdown-placeholder {
  flex: 1 1 auto;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  color: var(--v2-dropdown-placeholder) !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v2-root .dash-dropdown-value-count,
.v2-dropdown .dash-dropdown-value-count {
  font-size: 11px !important;
  color: var(--v2-dropdown-placeholder) !important;
  flex-shrink: 0;
}

/* Chevron */
.v2-root .dash-dropdown-trigger-icon,
.v2-dropdown .dash-dropdown-trigger-icon {
  width: 14px !important;
  height: 8px !important;
  margin: 0 0 0 auto !important;
  flex-shrink: 0;
  border: none !important;
  background-color: transparent !important;
  background-image: url("icons/down-arrow.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  opacity: 0.7;
}

.v2-root .dash-dropdown-trigger-icon svg,
.v2-dropdown .dash-dropdown-trigger-icon svg,
.v2-root .dash-dropdown-trigger-icon path,
.v2-dropdown .dash-dropdown-trigger-icon path {
  display: none !important;
}

.v2-root .dash-dropdown-clear,
.v2-dropdown .dash-dropdown-clear,
.v2-root .dash-dropdown-action-button,
.v2-dropdown .dash-dropdown-action-button {
  color: var(--v2-dropdown-text) !important;
  opacity: 0.55;
  flex-shrink: 0;
}

.v2-root .dash-dropdown-clear:hover,
.v2-dropdown .dash-dropdown-clear:hover {
  opacity: 0.9;
}

/* Open menu panel */
.v2-root .dash-dropdown-content,
.v2-dropdown .dash-dropdown-content,
.dash-dropdown-content {
  margin-top: 4px !important;
  border: 1px solid var(--v2-dropdown-border) !important;
  border-radius: var(--v2-radius) !important;
  background: var(--v2-dropdown-menu-bg) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  z-index: 12000 !important;
  max-height: 240px;
  overflow: auto;
  position: absolute;
}

.v2-root .dash-dropdown-search-container,
.v2-dropdown .dash-dropdown-search-container {
  padding: 6px 8px !important;
  border-bottom: 1px solid var(--v2-dropdown-border) !important;
  background: var(--v2-dropdown-menu-bg) !important;
}

.v2-root .dash-dropdown-search,
.v2-dropdown .dash-dropdown-search,
.v2-root .dash-dropdown-search input,
.v2-dropdown .dash-dropdown-search input {
  width: 100%;
  font-size: 12px !important;
  line-height: 16px !important;
  color: var(--v2-dropdown-text) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.v2-root .dash-dropdown-option,
.v2-dropdown .dash-dropdown-option,
.dash-dropdown-option {
  font-size: 12px !important;
  line-height: 16px !important;
  padding: 8px 12px !important;
  color: var(--v2-dropdown-text) !important;
  background: transparent !important;
  cursor: pointer;
}

.v2-root .dash-dropdown-option:hover,
.v2-dropdown .dash-dropdown-option:hover,
.v2-root .dash-dropdown-option[data-focused="true"],
.v2-dropdown .dash-dropdown-option[data-focused="true"],
.dash-dropdown-option:hover {
  background: var(--v2-dropdown-option-hover) !important;
  color: var(--v2-dropdown-text) !important;
}

.v2-root .dash-dropdown-option[aria-selected="true"],
.v2-dropdown .dash-dropdown-option[aria-selected="true"],
.v2-root .dash-dropdown-option[data-selected="true"],
.v2-dropdown .dash-dropdown-option[data-selected="true"] {
  background: var(--v2-dropdown-option-selected) !important;
  color: var(--v2-dropdown-text) !important;
  font-weight: 500;
}

/* Multi-select chips */
.v2-root .dash-dropdown-value-item.dash-dropdown-multi-value,
.v2-dropdown .Select--multi .Select-value,
.v2-dropdown.Select--multi .Select-value {
  background: var(--v2-control-bg);
  border: 1px solid var(--v2-border);
  border-radius: 4px;
  color: var(--v2-text);
  font-size: 11px;
  margin: 2px 4px 2px 0;
  padding: 2px 6px !important;
}

/* Legacy react-select fallbacks (older Dash / nested widgets) */
.v2-dropdown .Select,
.v2-field-control .Select {
  width: 100%;
}

.v2-dropdown .Select-control,
.v2-root .v2-dropdown .Select-control {
  min-height: 32px;
  height: 32px;
  border-radius: var(--v2-radius) !important;
  border: 1px solid var(--v2-dropdown-border) !important;
  background: var(--v2-dropdown-bg) !important;
  box-shadow: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-left: 8px;
  padding-right: 6px;
}

.v2-dropdown .Select-control:hover,
.v2-dropdown .is-focused:not(.is-open) > .Select-control,
.v2-dropdown .is-focused > .Select-control,
.v2-dropdown .is-open > .Select-control {
  border-color: var(--v2-dropdown-border) !important;
  box-shadow: none !important;
}

.v2-dropdown .Select-placeholder,
.v2-dropdown .Select-value-label,
.v2-dropdown .has-value.Select--single > .Select-control .Select-value .Select-value-label {
  font-size: 12px !important;
  font-weight: 400;
  line-height: 16px;
  color: var(--v2-dropdown-text) !important;
}

.v2-dropdown .Select-placeholder {
  color: var(--v2-dropdown-placeholder) !important;
}

.v2-dropdown .Select-arrow {
  border: none !important;
  width: 14px !important;
  height: 8px !important;
  margin-top: -4px !important;
  background-image: url("icons/down-arrow.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-color: transparent;
}

.v2-dropdown .Select-arrow::before,
.v2-dropdown .Select-arrow::after {
  display: none !important;
  content: none !important;
}

.v2-dropdown .Select-clear-zone { display: none; }

.v2-dropdown .Select-menu-outer {
  margin-top: 4px;
  border: 1px solid var(--v2-dropdown-border) !important;
  border-radius: var(--v2-radius) !important;
  background: var(--v2-dropdown-menu-bg) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  z-index: 12000;
  max-height: 240px;
}

.v2-dropdown .Select-option {
  font-size: 12px;
  line-height: 16px;
  padding: 8px 12px;
  color: var(--v2-dropdown-text);
}

.v2-dropdown .Select-option:hover,
.v2-dropdown .Select-option.is-focused {
  background: var(--v2-dropdown-option-hover) !important;
  color: var(--v2-dropdown-text) !important;
}

.v2-dropdown .Select-option.is-selected {
  background: var(--v2-dropdown-option-selected) !important;
  color: var(--v2-dropdown-text) !important;
  font-weight: 500;
}

/* ---- Segmented controls ---- */
.v2-segmented {
  display: inline-flex !important;
  align-items: stretch;
  margin: 0 !important;
  gap: 0;
  width: 100%;
}
.v2-segmented .form-check {
  display: flex !important;
  flex: 1 1 0;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  min-width: 0;
  min-height: 0 !important;
}
.v2-segmented .form-check-input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}
.v2-segmented .form-check-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: var(--v2-text);
  border: 1px solid var(--v2-border);
  border-left-width: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.v2-segmented .form-check:first-child .form-check-label {
  border-left-width: 1px;
  border-radius: var(--v2-radius) 0 0 var(--v2-radius);
}
.v2-segmented .form-check:last-child .form-check-label {
  border-radius: 0 var(--v2-radius) var(--v2-radius) 0;
}
.v2-segmented .form-check-input:checked + .form-check-label {
  background: var(--v2-segment-active-bg);
  font-weight: 500;
}
.v2-segmented-sm {
  width: auto;
}
.v2-segmented-sm .form-check {
  flex: 1 1 auto;
}
.v2-segmented-sm .form-check-label {
  padding: 8px 16px !important;
  min-width: 88px;
}
.v2-result-view-mode-container .v2-segmented-sm .form-check-label {
  padding: 8px 18px !important;
}
.v2-chart-type { width: auto; min-width: 0; max-width: 100%; flex: 1 1 auto; }
.v2-chart-type .form-check-label {
  padding: 8px 12px !important;
  min-width: 0;
}
/* ---- Results workspace ---- */
.v2-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.v2-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.v2-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 0;
}
.v2-pvt-plots-panel > .v2-panel-header {
  align-items: center;
  padding-top: 22px;
  padding-bottom: 8px;
}
.v2-performance-panel > .v2-performance-header {
  align-items: center;
  padding-top: 22px;
  padding-bottom: 8px;
}
.v2-performance-header .v2-section-title,
.v2-pvt-plots-panel > .v2-panel-header .v2-section-title {
  align-self: center;
  flex: 0 0 auto;
  margin: 0;
}
.v2-performance-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  margin-left: auto;
}
.v2-performance-controls .v2-field-param-file {
  margin-top: -20px !important;
  min-width: 160px;
  max-width: 200px;
  flex: 0 0 200px;
  margin-left: 0;
}
.v2-home-results-section .v2-pvt-plots-panel > .v2-panel-header,
.v2-home-results-section .v2-performance-header {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  box-sizing: border-box;
}
.v2-home-results-section .v2-performance-header .v2-section-title,
.v2-home-results-section .v2-pvt-plots-panel > .v2-panel-header .v2-section-title {
  flex: 0 0 auto;
  width: auto;
}
.v2-home-results-section #v2-embedding-type-wrap {
  flex: 0 0 auto;
  margin-left: auto;
}
.v2-home-results-section .v2-chart-type,
.v2-home-results-section .v2-plot-type-toolbar,
.v2-home-results-section .v2-result-view-mode-container {
  flex: 0 0 auto;
  width: auto;
}
.v2-home-results-section .v2-pvt-plots-display,
.v2-home-results-section .v2-pvt-plots-display .v2-shimmer-grid,
.v2-home-results-section .v2-pvt-plots-display .v2-plot-grid-row {
  width: 100%;
  max-width: 100%;
}
.v2-home-results-section .v2-pvt-plots-display .v2-plot-grid-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.v2-home-results-section .v2-pvt-plots-display .v2-shimmer-col--full {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
.v2-home-results-section .v2-pvt-plots-panel > .v2-panel-header {
  flex: 0 0 auto;
}
.v2-home-results-section .v2-pvt-plots-display {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.v2-home-results-section .v2-pvt-plots-display .v2-shimmer-grid,
.v2-home-results-section .v2-pvt-plots-display .v2-plot-grid-row {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.v2-home-results-section .v2-pvt-plots-display .v2-shimmer-col--full,
.v2-home-results-section .v2-pvt-plots-display .col-12.v2-plot-col {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-header {
  flex: 0 0 auto;
}
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body.v2-shimmer-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  padding-bottom: 0;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 0 !important;
}
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body > *,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .dash-graph,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .js-plotly-plot,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .plotly,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .v2-plotly,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .v2-embedding-plot-graph {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .js-plotly-plot .svg-container,
.v2-home-results-section .v2-pvt-plots-panel .v2-plot-card-body .js-plotly-plot .main-svg {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.v2-performance-controls--summary .v2-plot-type-toolbar {
  display: none !important;
}
.v2-plot-card {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  max-width: 100%;
  min-width: 0;
}
.v2-plot-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  padding-right: 72px; /* room for modebar icons */
  border-radius: 4px;
  background: var(--v2-plot-header-bg);
  position: relative;
  z-index: 1;
}
.v2-plot-card-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.252px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v2-plot-card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.v2-plot-card-body {
  min-height: 360px;
  padding: 0;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.v2-performance-plots {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}
.v2-plot-targets .v2-plot-display { display: none; }
.v2-plot-targets .v2-plot-display.visible { display: block; }
/* Plot grid: zero Bootstrap gutters; column-gap separates cards */
.v2-plot-grid-row.row,
.v2-plot-grid-row {
  --bs-gutter-x: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  max-width: 100%;
  column-gap: 16px;
  row-gap: 16px;
}
.v2-plot-col,
.col-12.v2-plot-col,
.col-md-6.v2-plot-col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0;
  min-width: 0;
}
.col-12.v2-plot-col {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
/* col-md-6 width accounts for column-gap so the pair stays on one row */
@media (min-width: 768px) {
  .col-md-6.v2-plot-col {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    width: calc(50% - 8px);
  }
}
.v2-shimmer-col {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (min-width: 768px) {
  .col-md-6.v2-shimmer-col {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    width: calc(50% - 8px);
  }
}
.v2-plotly {
  width: 100%;
  max-width: 100%;
  min-height: 360px;
}
.v2-plot-card-body .js-plotly-plot,
.v2-plot-card-body .dash-graph,
.v2-plot-card-body .plotly {
  max-width: 100% !important;
  overflow: visible !important;
}
.v2-plot-card-body .js-plotly-plot .svg-container,
.v2-plot-card-body .js-plotly-plot .main-svg {
  overflow: visible !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar {
  position: absolute;
  top: 0;
  margin-top: var(--v2-plot-modebar-top) !important;
  z-index: 50 !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar-group {
  display: flex !important;
  background-color: transparent !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar-btn {
  border-radius: 4px;
  margin-left: 3px;
  opacity: 1 !important;
  background-color: transparent !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar-btn svg {
  opacity: 1 !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar-btn svg path:not([fill="none"]) {
  fill: #ffffff !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar-btn svg path[fill="none"] {
  stroke: #ffffff !important;
}
.v2-plot-card-body .js-plotly-plot .plotly .modebar-btn:hover,
.v2-plot-card-body .js-plotly-plot .plotly .modebar-btn.active {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
.v2-histogram-plot-graph,
.v2-histogram-plot-col .v2-plotly {
  min-height: 450px;
}
.v2-embedding-plot-graph {
  min-height: 400px;
}
.v2-shimmer-grid {
  display: block;
  width: 100%;
}
.v2-shimmer-col--full {
  width: 100%;
}
.v2-shimmer-body--histogram {
  min-height: 450px;
}


@keyframes v2-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.v2-plot-placeholder,
.v2-shimmer-body,
.v2-shimmer-header,
.v2-shimmer-line {
  background: linear-gradient(
    90deg,
    var(--v2-shimmer-1) 8%,
    var(--v2-shimmer-2) 18%,
    var(--v2-shimmer-1) 33%
  );
  background-size: 200% 100%;
  animation: v2-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
.v2-plot-placeholder,
.v2-shimmer-body {
  width: 100%;
  height: 420px;
}
.v2-shimmer-header {
  min-height: 48px;
  background: linear-gradient(
    90deg,
    var(--v2-shimmer-header-1) 8%,
    var(--v2-shimmer-header-2) 18%,
    var(--v2-shimmer-header-1) 33%
  );
  background-size: 200% 100%;
}
.v2-shimmer-card .v2-plot-card-header.v2-shimmer-header {
  background: linear-gradient(
    90deg,
    var(--v2-shimmer-header-1) 8%,
    var(--v2-shimmer-header-2) 18%,
    var(--v2-shimmer-header-1) 33%
  );
  background-size: 200% 100%;
  animation: v2-shimmer 1.4s ease-in-out infinite;
}

/* Summary — flush like performance plots (no nested card) */
.v2-excel-summary {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.v2-summary-content {
  width: 100%;
  min-width: 0;
}
/* Engine summary also injects a legend — keep only the panel legend above */
.v2-excel-summary-body > .summary-region-legend,
.v2-excel-summary-body > .predicted-results-legend {
  display: none !important;
}
.v2-summary-region-legend,
.predicted-results-legend,
.summary-region-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  background: transparent;
  min-height: 0;
}
.predicted-results-legend-label {
  font-weight: 600;
  color: var(--v2-text-secondary);
}
.predicted-results-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-left: 0;
}
.predicted-results-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  color: inherit;
}
.predicted-results-legend-dot { font-size: 10px; line-height: 1; }
.summary-region-legend .predicted-results-legend-item.predicted-region-trust,
.predicted-results-legend-item.predicted-region-trust {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}
.summary-region-legend .predicted-results-legend-item.predicted-region-sparse,
.predicted-results-legend-item.predicted-region-sparse {
  background: #fff3e0;
  color: #ef6c00;
  border-color: #ffcc80;
}
.summary-region-legend .predicted-results-legend-item.predicted-region-none,
.predicted-results-legend-item.predicted-region-none {
  background: #fce4ec;
  color: #c62828;
  border-color: #f48fb1;
}
.v2-excel-summary-body .predicted-region-chip,
.predicted-region-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.predicted-region-trust {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}
.predicted-region-sparse {
  background: #fff3e0;
  color: #ef6c00;
  border-color: #ffcc80;
}
.predicted-region-none {
  background: #fce4ec;
  color: #c62828;
  border-color: #f48fb1;
}
.predicted-region-unknown {
  background: #f5f5f5;
  color: #757575;
  border-color: rgba(0, 0, 0, 0.1);
}
/* Sheet tabs — same language as home segmented controls */
.v2-excel-summary .nav-tabs,
.v2-excel-summary-body .nav-tabs,
.v2-excel-summary .v2-summary-tabs.nav-tabs,
.v2-excel-summary-body .v2-summary-tabs.nav-tabs {
  border: none !important;
  margin: 0 0 12px !important;
  gap: 0;
  display: inline-flex !important;
  flex-wrap: wrap;
  width: auto;
  background: transparent;
}
.v2-excel-summary .nav-tabs .nav-item,
.v2-excel-summary-body .nav-tabs .nav-item {
  margin: 0;
}
.v2-excel-summary .nav-tabs .nav-link,
.v2-excel-summary-body .nav-tabs .nav-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--v2-text) !important;
  background: transparent !important;
  border: 1px solid var(--v2-border) !important;
  border-left-width: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap;
}
.v2-excel-summary .nav-tabs .nav-item:first-child .nav-link,
.v2-excel-summary-body .nav-tabs .nav-item:first-child .nav-link {
  border-left-width: 1px !important;
  border-radius: var(--v2-radius) 0 0 var(--v2-radius) !important;
}
.v2-excel-summary .nav-tabs .nav-item:last-child .nav-link,
.v2-excel-summary-body .nav-tabs .nav-item:last-child .nav-link {
  border-radius: 0 var(--v2-radius) var(--v2-radius) 0 !important;
}
.v2-excel-summary .nav-tabs .nav-item:only-child .nav-link,
.v2-excel-summary-body .nav-tabs .nav-item:only-child .nav-link {
  border-radius: var(--v2-radius) !important;
}
.v2-excel-summary .nav-tabs .nav-link:hover,
.v2-excel-summary-body .nav-tabs .nav-link:hover {
  background: var(--v2-control-bg) !important;
  color: var(--v2-text) !important;
}
.v2-excel-summary .nav-tabs .nav-link.active,
.v2-excel-summary-body .nav-tabs .nav-link.active {
  background: var(--v2-segment-active-bg) !important;
  color: var(--v2-text) !important;
  font-weight: 500;
  border-color: var(--v2-border) !important;
}
.v2-excel-summary-body .table {
  color: var(--v2-text);
  background: transparent;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(0, 0, 0, 0.03);
  --bs-table-border-color: var(--v2-border);
  margin-bottom: 0;
  font-size: 13px;
}
.v2-excel-summary-body .table thead th {
  background: var(--v2-navy);
  color: #ffffff;
  border-color: var(--v2-navy);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  vertical-align: middle;
}
.v2-excel-summary-body .table tbody td {
  border-color: var(--v2-border);
  vertical-align: middle;
}
.v2-excel-summary-body .excel-sheet-table-scroll {
  overflow: auto;
  max-height: 520px;
  width: 100%;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
}
.v2-excel-summary-body .excel-sheet-table-scroll table {
  table-layout: auto;
  min-width: max-content;
  margin-bottom: 0;
}
.v2-excel-summary-body .excel-sheet-table-scroll table th,
.v2-excel-summary-body .excel-sheet-table-scroll table td {
  white-space: nowrap;
}
.v2-summary-shimmer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-shimmer-line { height: 14px; width: 100%; }
.v2-shimmer-line--lg { height: 22px; width: 40%; }
.v2-shimmer-line--short { width: 55%; }

.v2-oil-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-oil-filter .v2-dropdown { flex: 1; min-width: 0; }

.v2-empty-state {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-card);
  padding: 24px;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-home-panels-loader {
  width: 100%;
  min-width: 0;
}
.v2-home-panels-loader.display-none {
  display: none !important;
}
.v2-home-results-section:has(.v2-home-panels-loader:not(.display-none)) {
  min-height: 0;
  height: auto;
  overflow: visible;
}
.v2-home-results-section:has(.v2-home-panels-loader:not(.display-none)) > .v2-results-workspace {
  flex: 0 0 auto;
}
.v2-home-results-section .v2-home-panels-loader-inner {
  align-items: start;
  container-type: inline-size;
  height: auto;
  min-height: 0;
}
.v2-home-loader-cluster,
.v2-home-loader-perf {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  height: auto;
}
.v2-home-loader-perf .v2-home-loader-plot-grid {
  flex: 0 0 auto;
  min-height: 0;
}
.v2-home-loader-perf .v2-shimmer-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
}
.v2-home-loader-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding-top: 14px;
  padding-bottom: 8px;
}
.v2-home-loader-controls {
  width: 180px;
  max-width: 40%;
  height: 32px;
  margin: 0;
}
.v2-home-loader-plot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.v2-home-panels-loader .v2-shimmer-card .v2-plot-card-header {
  padding: 0;
  padding-right: 0;
  min-height: 40px;
  width: 100%;
}
.v2-home-panels-loader .v2-plot-card-body.v2-shimmer-body {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  min-height: 0;
}
.v2-home-results-section .v2-home-loader-cluster .v2-shimmer-card {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  height: auto;
}
.v2-home-results-section .v2-home-loader-cluster .v2-plot-card-body.v2-shimmer-body,
.v2-home-results-section .v2-home-loader-cluster .v2-plot-placeholder,
.v2-home-results-section .v2-home-loader-cluster .v2-shimmer-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  padding-bottom: 0;
  overflow: hidden;
  min-height: 0 !important;
}

.v2-auth-checking,
.v2-auth-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 0.75rem;
  padding: 2rem;
}

.v2-page-title { margin: 0 0 0.5rem; font-size: 1.5rem; }
.v2-page-subtitle { margin: 0; color: var(--v2-text-secondary); }

/* ---- Back / chrome ---- */
.v2-back-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.v2-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--v2-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 0;
  margin: 0;
  height: 32px;
  cursor: pointer;
}
.v2-back-icon { width: 16px; height: 16px; display: block; }
.v2-page-toolbar { width: 100%; }

/* Shared subpage chrome (Manage Model / Manage Template / Config) */
.v2-subpage-toolbar {
  padding: 12px 16px;
}
.v2-subpage-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 48px;
}
.v2-subpage-toolbar-row--centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.v2-subpage-toolbar-row--centered .v2-subpage-toolbar-left {
  justify-self: start;
  flex: 0 0 auto;
}
.v2-subpage-toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}
.v2-subpage-toolbar-row--centered .v2-subpage-toolbar-right {
  justify-self: end;
}
.v2-subpage-toolbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}
.v2-subpage-toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.v2-subpage-back {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.v2-subpage-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}
.v2-mt-page-tabs.v2-segmented {
  width: auto;
  min-width: min(760px, 100%);
}
.v2-mt-page-tabs .form-check-label {
  padding: 8px 16px !important;
  white-space: nowrap;
}
.v2-subpage-tabs,
.v2-mt-tabs {
  border: none !important;
  margin: 0 !important;
  gap: 0;
}
.v2-subpage-tabs .nav,
.v2-mt-tabs .nav {
  border-bottom: none !important;
  flex-wrap: nowrap;
  gap: 4px;
}
.v2-subpage-tabs .nav-item,
.v2-mt-tabs .nav-item {
  margin: 0;
}
.v2-subpage-tabs .nav-link,
.v2-mt-tabs .nav-link {
  color: var(--v2-text-secondary) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 6px 10px !important;
  white-space: nowrap;
}
.v2-subpage-tabs .nav-link:hover,
.v2-mt-tabs .nav-link:hover {
  color: var(--v2-text) !important;
}
.v2-subpage-tabs .nav-link.active,
.v2-mt-tabs .nav-link.active {
  color: var(--v2-accent) !important;
  background: transparent !important;
  border-bottom-color: var(--v2-accent) !important;
  font-weight: 600;
}
.v2-subpage-toolbar .v2-field-test-type {
  flex: 0 0 auto;
  min-width: 220px;
}
.v2-subpage-toolbar .v2-action-btn {
  align-self: flex-end;
}

.v2-text-input.form-control,
.v2-text-input {
  min-height: 32px;
  height: 32px;
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-dropdown-border);
  background: var(--v2-dropdown-bg);
  color: var(--v2-dropdown-text);
  font-size: 12px;
  padding: 4px 8px;
  box-shadow: none;
}
.v2-text-input:focus {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 2px rgba(34, 152, 213, 0.2);
  background: var(--v2-dropdown-bg);
  color: var(--v2-dropdown-text);
}

.v2-btn-secondary {
  min-height: 32px;
  padding: 4px 12px !important;
  border-radius: var(--v2-radius) !important;
  background: transparent !important;
  border: 1px solid var(--v2-border) !important;
  color: var(--v2-text) !important;
  font-size: 14px !important;
  font-weight: 500;
}
.v2-btn-danger {
  min-height: 32px;
  padding: 4px 12px !important;
  border-radius: var(--v2-radius) !important;
  background: #c62828 !important;
  border: none !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500;
}
.v2-btn-danger:disabled,
.v2-btn-danger.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.v2-modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.v2-btn-spinner {
  width: 0.9rem !important;
  height: 0.9rem !important;
  border-width: 0.15em !important;
  flex-shrink: 0;
}

/* ---- Config ---- */
.v2-config-page--bottom.v2-config-locked {
  pointer-events: none;
  opacity: 0.72;
  user-select: none;
}
.v2-config-page,
.v2-manage-model-page,
.v2-manage-template-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v2-page-body--flush .v2-subpage-toolbar,
.v2-page-body-top--flush .v2-subpage-toolbar,
.v2-manage-model-page > .v2-subpage-toolbar,
.v2-manage-model-page--top > .v2-subpage-toolbar,
.v2-config-page > .v2-subpage-toolbar,
.v2-config-page--top > .v2-subpage-toolbar,
.v2-manage-template-page > .v2-subpage-toolbar,
.v2-manage-template-page--top > .v2-subpage-toolbar,
#v2-config-toolbar.v2-subpage-toolbar,
#v2-manage-model-toolbar.v2-subpage-toolbar,
#v2-mt-toolbar.v2-subpage-toolbar {
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  width: 100%;
  max-width: none;
  padding: 8px 16px;
}

.v2-manage-model-page--bottom > .v2-manage-model-workspace,
.v2-config-page--bottom > .v2-card,
.v2-config-page--bottom > .v2-config-two-col,
.v2-config-page--bottom > .v2-config-results-area,
.v2-manage-template-page--bottom > .v2-mt-visualization-panel,
.v2-manage-template-page--bottom > .v2-mt-predicted-results-panel,
.v2-manage-template-page--bottom > .v2-mt-create-input-panel,
.v2-manage-model-page > .v2-manage-model-workspace,
.v2-config-page > .v2-card,
.v2-config-page > .v2-config-two-col,
.v2-config-page > .v2-config-results-area,
.v2-manage-template-page > .v2-mt-visualization-panel,
.v2-manage-template-page > .v2-mt-predicted-results-panel,
.v2-manage-template-page > .v2-mt-create-input-panel {
  margin: 12px 12px 0;
}
/* Flush subpages: progress needs side inset (home stack already has padding) */
.v2-page-stack:has(.v2-page-body-top--flush) .v2-progress-section:not(.display-none) {
  margin: 12px 16px 0;
}
.v2-page-stack:has(.v2-page-body-top--flush) .v2-mt-import-progress-stack:not(.display-none) {
  margin: 12px 16px 0;
}
.v2-page-stack:has(.v2-home-page--top) .v2-progress-section:not(.display-none) {
  margin: 0;
}
/* Progress sits under Input (not above) — space from the upload card only while visible */
.v2-home-page--top > #v2-home-upload-progress-section:not(.display-none) {
  margin-top: 16px;
}
.v2-config-metadata {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px 16px;
  align-items: end;
  margin: 12px 16px 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.v2-config-page--bottom > .v2-config-metadata,
.v2-config-page > .v2-config-metadata {
  margin: 12px 16px 0;
}
.v2-config-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.v2-config-page--bottom > .v2-config-two-col,
.v2-config-page > .v2-config-two-col {
  margin: 12px 16px 16px;
}
.v2-config-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px !important;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}
.v2-config-main-col,
.v2-config-side-col {
  min-width: 0;
}
.v2-config-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v2-config-runner-slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.v2-config-form-area { min-height: 160px; }
.v2-builder-form,
.v2-assembler-form,
.v2-runner-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* ---- Manage model list ---- */
.v2-manage-model-workspace { padding: 0; overflow: hidden; }
.v2-model-list-header-row,
.v2-model-list-shimmer-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.3fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
}
.v2-model-list-header-row {
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-accent);
  min-height: 48px;
  padding: 14px;
}
.v2-model-list-col-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.084px;
}
.v2-model-list-header-row .v2-model-list-col-title:last-child {
  text-align: right;
  justify-self: end;
}
.v2-model-list-shimmer-row { border-bottom: 1px solid var(--v2-border); }
.v2-model-list-shimmer-cell {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--v2-shimmer-1) 8%, var(--v2-shimmer-2) 18%, var(--v2-shimmer-1) 33%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.4s ease-in-out infinite;
}
.v2-model-list-shimmer-wide { width: 80%; }
.v2-model-list-shimmer-actions { width: 60%; justify-self: end; }

/* ---- Modals ---- */
.v2-app-modal .modal-content,
.v2-modal-content {
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-card);
  color: var(--v2-text);
}
.v2-modal-header {
  border-bottom: 1px solid var(--v2-border);
  color: var(--v2-text);
}
.v2-modal-header-warning { color: #ef6c00; }
.v2-modal-header-success { color: #2e7d32; }
.v2-modal-header-inner { display: flex; align-items: center; gap: 8px; }
.v2-modal-success-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
}
.v2-modal-body { color: var(--v2-text); }
.v2-modal-footer {
  border-top: 1px solid var(--v2-border);
  gap: 8px;
}
.v2-modal-hint { font-size: 12px; margin-top: 6px; }
.v2-modal-field-block { margin-bottom: 12px; }
.v2-modal-divider { border-color: var(--v2-border); opacity: 1; }
.v2-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.v2-modal-body-success { text-align: center; }
.v2-modal-success-badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(34, 152, 213, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-modal-success-badge-mark {
  color: var(--v2-accent);
  font-size: 24px;
  font-weight: 700;
}
.v2-modal-success-title { margin: 0 0 8px; font-size: 18px; }
.v2-modal-model-name-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
}
.v2-modal-model-name-label { color: var(--v2-text-secondary); }
.v2-modal-model-name-value { font-weight: 600; }
.v2-modal-success-message { color: var(--v2-text-secondary); font-size: 13px; }
.v2-delete-checklist .form-check-label { color: var(--v2-text); font-size: 13px; }

/* Global bottom-left toast notifications */
.app-toast-container {
  position: fixed;
  top: auto;
  bottom: 16px;
  left: 16px;
  right: auto;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.app-toast-container:not(:empty) {
  pointer-events: auto;
}
.app-toast-item {
  pointer-events: auto;
  animation: toastSlideIn 0.2s ease-out;
}
.app-toast-item .alert,
.app-toast-alert {
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.14);
  border-radius: 6px !important;
}
.app-toast-item .alert-dismissible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-right: 2rem !important;
}
.app-toast-item .btn-close {
  width: 0.65em !important;
  height: 0.65em !important;
  padding: 0.35em !important;
  margin: 2px 0 0 auto !important;
  font-size: 10px !important;
  background-size: 0.65em !important;
  opacity: 0.55;
  flex-shrink: 0;
}
.app-toast-item .btn-close:hover {
  opacity: 0.85;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.v2-model-list-body { display: flex; flex-direction: column; gap: 0; }
.v2-model-list-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.3fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px 14px;
  min-height: 48px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-model-list-row-stripe { background: rgba(0, 0, 0, 0.03); }
.v2-model-list-row-selected { background: rgba(34, 152, 213, 0.08); }
.v2-model-list-row-last-run .v2-model-list-col-last-run {
  color: var(--v2-accent);
  font-weight: 600;
}
.v2-model-list-row-default .v2-model-list-secondary::after {
  content: " · default";
  color: var(--v2-text-secondary);
}
.v2-model-list-primary { font-weight: 600; color: var(--v2-text); }
.v2-model-list-secondary { font-size: 12px; color: var(--v2-text-secondary); margin-top: 2px; }
.v2-model-list-col { font-size: 14px; color: var(--v2-text); }
.v2-model-list-col-actions { justify-self: end; }
.v2-model-list-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.v2-mm-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  min-height: 32px;
  height: 32px;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 20px;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  text-decoration: none !important;
  box-sizing: border-box;
  box-shadow: none !important;
}
.v2-mm-view-btn {
  color: var(--v2-text) !important;
  border: none !important;
  background: transparent !important;
  min-width: auto;
  width: auto;
  padding-left: 0 !important;
  padding-right: 4px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0;
}
.v2-mm-view-chevron {
  width: 12px;
  height: 7px;
  margin-left: 8px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.15s ease;
  opacity: 0.85;
  vertical-align: middle;
}
.v2-mm-view-chevron--open {
  transform: rotate(180deg);
}
.v2-mm-edit-btn,
.v2-mm-clone-btn {
  background: #a7d6ee !important;
  border: 1px solid var(--v2-border) !important;
  color: var(--v2-text) !important;
  min-width: 76px;
}
.v2-mm-edit-btn:hover,
.v2-mm-clone-btn:hover,
.v2-mm-edit-btn:focus,
.v2-mm-clone-btn:focus {
  background: #93cce8 !important;
  border-color: var(--v2-border) !important;
  color: var(--v2-text) !important;
}
.v2-mm-edit-btn:disabled,
.v2-mm-clone-btn:disabled,
.v2-mm-delete-btn:disabled {
  opacity: 0.45;
}
.v2-mm-delete-btn {
  min-width: 32px !important;
  width: 32px;
  height: 32px;
  padding: 6px !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid #ef4444 !important;
  color: #ef4444 !important;
}
.v2-mm-delete-btn:hover,
.v2-mm-delete-btn:focus {
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.v2-mm-action-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.v2-mm-edit-btn .v2-mm-action-icon {
  width: 14px;
  height: 14px;
}
.v2-text-input[readonly],
.v2-text-input:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: var(--v2-input-bg);
}

.v2-mm-inline-detail {
  padding: 16px;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-mm-inline-detail-header { margin: 0; }
.v2-mm-inline-detail-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: var(--v2-text);
}
.v2-mm-inline-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.v2-mm-inline-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  min-width: 0;
}
.v2-mm-inline-col-builder {
  background: rgba(34, 197, 94, 0.24);
  border-color: #22c55e;
}
.v2-mm-inline-col-lump {
  background: rgba(251, 191, 36, 0.24);
  border-color: #f59e0b;
}
.v2-mm-inline-col-runner {
  background: rgba(34, 152, 213, 0.18);
  border-color: #2298d5;
}
.v2-mm-inline-col-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: var(--v2-text);
}
.v2-mm-inline-col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-mm-inline-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v2-mm-inline-block-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: var(--v2-text);
}
.v2-mm-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}
.v2-mm-inline-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
}
.v2-mm-inline-field-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  color: var(--v2-text-secondary);
}
.v2-mm-inline-field-value {
  flex: 0 0 auto;
  max-width: 48%;
  min-width: 48px;
  text-align: right;
  font-weight: 600;
  color: var(--v2-text);
  word-break: break-word;
}
.v2-mm-inline-lump-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-mm-inline-lump-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-mm-inline-lump-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.072px;
  color: var(--v2-text);
}
.v2-mm-inline-lump-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v2-mm-inline-lump-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid var(--v2-border);
  background: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--v2-text);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .v2-mm-inline-columns { grid-template-columns: 1fr; }
  .v2-mm-inline-fields { grid-template-columns: 1fr; }
}

.v2-config-json {
  margin: 0;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.v2-config-json-sm { max-height: 160px; }

.v2-upload-info-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v2-config-subsection { margin-bottom: 16px; }
.v2-config-subsection:last-child { margin-bottom: 0; }
.v2-config-subsection-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
}
.v2-config-subsection-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--v2-text);
}
.v2-config-subsection-rule {
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
}
.v2-runner-head {
  padding-right: 0;
  min-height: auto;
}
.v2-runner-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.v2-runner-head .v2-runner-type-row {
  position: static;
  margin: 0;
  flex-shrink: 0;
}
.v2-runner-options .v2-config-subsection-rule {
  display: none;
}
.v2-config-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 0;
}
.v2-config-field-grid + .v2-config-field-grid {
  margin-top: 12px;
}
.v2-config-field-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.v2-config-field-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.v2-config-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v2-config-field .v2-field-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.5);
}
.v2-config-field-span-2 { grid-column: span 2; }
.v2-config-field-span-3 { grid-column: span 3; }
.v2-lump-params-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.v2-lump-inline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
  margin-bottom: 0;
  align-items: end;
  min-width: 0;
  flex: 1 1 240px;
}
.v2-lump-inline-row--dual {
  grid-template-columns: 1.4fr 0.8fr;
}
.v2-lump-preview-wrap {
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: #ffffff;
}
.v2-lump-preview { width: 100%; }
.v2-lump-preview-title {
  background: #717171;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  padding: 10px 12px;
  margin: 0;
}
.v2-lump-preview-table {
  width: 100%;
  font-size: 13px;
  margin: 0 !important;
  border: none !important;
  border-collapse: collapse;
}
.v2-lump-preview-table thead th {
  background: var(--v2-accent) !important;
  color: #ffffff !important;
  font-weight: 500;
  white-space: nowrap;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding: 10px 12px;
}
.v2-lump-preview-table thead th:last-child {
  border-right: none !important;
}
.v2-lump-preview-table tbody td {
  border: none !important;
  border-bottom: 1px solid #efefef !important;
  border-right: 1px solid #efefef !important;
  vertical-align: middle;
  padding: 10px 12px;
  color: var(--v2-text);
}
.v2-lump-preview-table tbody td:last-child {
  border-right: none !important;
}
.v2-lump-preview-table tbody tr:last-child td {
  border-bottom: none !important;
}
.v2-lump-preview-table tbody tr:nth-child(even) td {
  background: #f9f9f9;
}
.v2-lump-preview-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}
.v2-lump-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v2-lump-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  line-height: 18px;
  color: var(--v2-text);
}
.v2-feature-scales-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.v2-feature-scale-list { display: flex; flex-direction: column; gap: 8px; }
.v2-feature-scale-row {
  display: grid;
  grid-template-columns: 1fr 100px 28px;
  gap: 8px;
  align-items: center;
}
.v2-icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: var(--v2-control-bg);
  color: var(--v2-text);
  cursor: pointer;
  line-height: 1;
}
.v2-icon-btn-muted { color: var(--v2-text-secondary); cursor: default; }
.v2-config-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}
.v2-config-checks--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 20px;
  padding-bottom: 0;
  min-width: 0;
  flex: 0 0 auto;
}
.v2-config-check {
  color: var(--v2-text);
  font-size: 12px;
  margin: 0 !important;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-config-check .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  flex-shrink: 0;
}
.v2-config-check .form-check-input:checked {
  background-color: var(--v2-accent);
  border-color: var(--v2-accent);
}
.v2-config-check .form-check-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--v2-text-secondary);
  line-height: 16px;
  padding-top: 8px;
  text-align: center;
}
.v2-runner-type-row { margin: 8px 0 12px; }
.v2-runner-options { display: flex; flex-direction: column; gap: 12px; }
.v2-page-stack:has(.v2-config-page) {
  background: #f7f7f7;
}
.v2-config-page--bottom > .v2-card.v2-config-panel,
.v2-config-page > .v2-card.v2-config-panel {
  margin: 0;
}
#v2-config-toolbar .v2-config-update-btn,
#v2-config-toolbar .v2-config-run-btn {
  min-width: 110px;
}
.v2-textarea {
  width: 100%;
  min-height: 100px;
  font-size: 12px;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: var(--v2-dropdown-bg);
  color: var(--v2-text);
  padding: 8px;
}

/* Manage template content — Figma Visualization Results + Predicted Results */
.v2-mt-viz-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
.v2-mt-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: flex-start;
  max-width: 960px;
  width: 100%;
}
.v2-mt-filter-field {
  min-width: 0;
  max-width: none;
}
.v2-mt-viz-divider {
  height: 1px;
  width: 100%;
  background: var(--v2-border);
  border: none;
}
.v2-mt-viz-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  container-type: inline-size;
  --v2-mt-viz-plot-h: calc((100cqi * 2 / 3 - 32px) / 2);
}
.v2-mt-viz-shell .v2-mt-panel-header {
  min-height: 10px;
  align-items: flex-start;
}
.v2-mt-pvt-col,
.v2-mt-prediction-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.v2-mt-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.v2-mt-prediction-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.v2-mt-prediction-hint {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--v2-text-secondary);
  letter-spacing: -0.168px;
}
.v2-mt-prediction-tabs {
  min-width: 280px;
  flex-shrink: 0;
}
.v2-mt-prediction-plots-body {
  width: 100%;
  min-width: 0;
}
.v2-mt-prediction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.v2-mt-prediction-grid > .v2-mt-plot-card:only-child {
  grid-column: 1 / -1;
}
.v2-mt-prediction-grid .v2-mt-plot-card {
  padding: 8px;
}
.v2-mt-prediction-grid .v2-plot-card-body {
  padding: 0;
}
.v2-manage-template-page .v2-mt-viz-shell {
  --v2-mt-viz-plot-h: clamp(240px, 24vw, 320px);
}
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px;
}
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0 !important;
  height: var(--v2-mt-viz-plot-h, clamp(240px, 24vw, 320px)) !important;
  max-height: var(--v2-mt-viz-plot-h, clamp(240px, 24vw, 320px)) !important;
  overflow: hidden;
}
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body > *,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .dash-graph,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .js-plotly-plot,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .plotly,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .plot-container,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .svg-container,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .v2-plotly,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .v2-embedding-plot-graph {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .js-plotly-plot .svg-container,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .js-plotly-plot .main-svg {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .v2-mt-plot-empty,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .v2-plot-placeholder,
.v2-manage-template-page .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body .v2-shimmer-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  width: 100%;
  height: 100%;
}
.v2-mt-plot-card .v2-plot-card-header.v2-shimmer-header > * {
  visibility: hidden;
}

/* Predicted results table */
.v2-pr-list-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.v2-pr-list-legend-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 48px;
  padding: 8px 8px 8px 12px;
  background: #071e2b;
  border-bottom: 1px solid var(--v2-border);
}
/* Light page: slightly softer navy strip so chips stay readable */
.v2-root:not(.dark-mode) .v2-pr-list-legend-bar {
  background: #717171;
}
.v2-mt-tier-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}
.v2-mt-tier-legend-label {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.252px;
  color: #ffffff;
  white-space: nowrap;
}
.v2-mt-tier-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.v2-pr-list-content {
  overflow: auto;
  max-height: calc(100vh - 220px);
}
.v2-pr-list-header,
.v2-pr-list-shimmer-row,
.v2-pr-list-row {
  display: grid;
  grid-template-columns:
    minmax(72px, 0.55fr)
    minmax(56px, 0.45fr)
    minmax(56px, 0.45fr)
    minmax(56px, 0.45fr)
    minmax(64px, 0.5fr)
    minmax(64px, 0.5fr)
    minmax(190px, 1.55fr)
    minmax(168px, 0.95fr)
    minmax(460px, 1.8fr);
  gap: 12px;
  padding: 6px 14px;
  align-items: center;
  min-width: 1240px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-pr-list-header {
  background: var(--v2-accent, #2298d5);
  border-bottom: 1px solid var(--v2-border);
  min-height: 48px;
  padding: 14px;
}
.v2-pr-list-col-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.084px;
  color: #ffffff;
}
.v2-pr-list-header .v2-pr-list-col-title:last-child {
  text-align: right;
  justify-self: end;
}
.v2-pr-list-row {
  min-height: 48px;
}
.v2-pr-list-row-stripe {
  background: rgba(0, 0, 0, 0.03);
}
.v2-pr-list-col {
  font-size: 14px;
  color: var(--v2-text);
  min-width: 0;
}
.v2-pr-list-col-tier {
  min-width: 0;
}
.v2-pr-list-col-tier .predicted-results-legend-item {
  display: inline-flex;
  white-space: nowrap;
}
.v2-pr-list-col-actions {
  justify-self: stretch;
  min-width: 0;
}
.v2-pr-action-btns {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.v2-pr-list-shimmer-row {
  border-bottom: 1px solid var(--v2-border);
}
.v2-pr-list-row-selected {
  background: rgba(34, 152, 213, 0.08);
}
.v2-pr-param-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  text-align: left;
  color: var(--v2-accent, #2298d5);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.v2-pr-param-link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v2-pr-param-link:hover {
  color: #18587a;
}
.v2-pr-list-content > .v2-mm-inline-detail,
.v2-pr-param-empty {
  min-width: 1320px;
}
.v2-pr-param-shimmer-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-pr-param-shimmer-lines .v2-shimmer-line {
  height: 12px;
  width: 100%;
}
.v2-pr-param-shimmer .v2-mm-inline-detail-header .v2-shimmer-line {
  height: 16px;
  max-width: 280px;
}
.v2-pr-param-shimmer .v2-mm-inline-col {
  min-height: 140px;
}
.v2-pr-param-empty {
  padding: 12px 14px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-pr-sample-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  color: var(--v2-accent, #2298d5);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v2-pr-sample-link:hover {
  color: #18587a;
}
.v2-mt-plot-empty {
  padding: 16px;
}
.v2-pr-list-shimmer-cell {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--v2-shimmer-1) 8%, var(--v2-shimmer-2) 18%, var(--v2-shimmer-1) 33%);
  background-size: 200% 100%;
  animation: v2-shimmer 1.4s ease-in-out infinite;
}
.v2-pr-empty { padding: 24px 16px; }

.v2-pr-input-btn {
  background: transparent !important;
  border: 1px solid var(--v2-accent) !important;
  color: var(--v2-text) !important;
  border-radius: var(--v2-radius) !important;
  min-height: 28px;
  padding: 4px 10px !important;
  font-size: 12px !important;
  white-space: nowrap;
}
.v2-pr-output-btn {
  background: #a7d6ee !important;
  border: none !important;
  color: rgba(0, 0, 0, 0.8) !important;
  border-radius: var(--v2-radius) !important;
  min-height: 28px;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500;
  white-space: nowrap;
}
.v2-pr-import-btn {
  background: transparent !important;
  border: 1px solid var(--v2-border-strong, var(--v2-border)) !important;
  color: var(--v2-text) !important;
  border-radius: var(--v2-radius) !important;
  min-height: 28px;
  padding: 4px 10px !important;
  font-size: 12px !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.v2-pr-import-btn:hover,
.v2-pr-import-btn:focus {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--v2-text) !important;
  box-shadow: none !important;
}
.v2-pr-delete-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 32px !important;
  width: 32px;
  height: 32px;
  padding: 6px !important;
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid #ef4444 !important;
  border-radius: var(--v2-radius) !important;
  color: #ef4444 !important;
  box-shadow: none !important;
}
.v2-pr-delete-btn:hover,
.v2-pr-delete-btn:focus {
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}
.v2-pr-delete-btn img,
.v2-pr-delete-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.v2-btn-secondary {
  background: transparent !important;
  border: 1px solid var(--v2-border) !important;
  color: var(--v2-text) !important;
  border-radius: var(--v2-radius) !important;
  min-height: 32px;
}
.v2-btn-secondary:hover {
  background: var(--v2-control-bg) !important;
  color: var(--v2-text) !important;
}
.v2-btn-danger {
  background: #c62828 !important;
  border: none !important;
  color: #fff !important;
  border-radius: var(--v2-radius) !important;
}

@media (max-width: 1100px) {
  .v2-page-stack:has(.v2-home-page--top) {
    padding-left: 8px;
    padding-right: 8px;
  }
  .v2-two-col { grid-template-columns: 1fr; }
  .v2-home-results-section .v2-home-main-content .v2-performance-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
    inset: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .v2-home-results-section .v2-performance-plots,
  .v2-home-results-section .v2-excel-summary {
    flex: none;
    overflow: visible;
  }
  .v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display.visible {
    max-height: none;
  }
  .v2-home-results-section .v2-home-loader-plot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-home-results-section .v2-performance-panel .v2-plot-targets > .v2-plot-display.visible .v2-plot-grid-row {
    width: 100%;
    max-width: 100%;
  }
  .v2-home-results-section .v2-performance-panel .col-md-6.v2-plot-col,
  .v2-home-results-section .v2-performance-panel .col-md-6.v2-shimmer-col {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
  .v2-home-input-row { flex-wrap: nowrap; }
  .v2-home-input-upload-row { flex-wrap: wrap; }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-config-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-field--model {
    grid-column: 1;
    grid-row: 1;
  }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-field--tenant {
    grid-column: 2;
    grid-row: 1;
  }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-field--cce {
    grid-column: 1;
    grid-row: 2;
  }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-field--dl {
    grid-column: 2;
    grid-row: 2;
  }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-field--visc {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .v2-home-input-row--run-ready .v2-home-run-config--inline .v2-home-run-btn-wrap {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: end;
  }
  .v2-subpage-toolbar-row--centered {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .v2-subpage-toolbar-row--centered .v2-subpage-toolbar-left,
  .v2-subpage-toolbar-row--centered .v2-subpage-toolbar-center,
  .v2-subpage-toolbar-row--centered .v2-subpage-toolbar-right {
    justify-self: stretch;
  }
  .v2-mt-page-tabs.v2-segmented {
    width: 100%;
    min-width: 0;
  }
  .v2-toolbar-fields { max-width: none; }
  .v2-config-two-col,
  .v2-config-metadata,
  .v2-modal-grid,
  .v2-config-field-grid,
  .v2-config-field-grid-3,
  .v2-config-field-grid-4,
  .v2-lump-params-row,
  .v2-lump-inline-row,
  .v2-mt-viz-two-col,
  .v2-mt-prediction-grid,
  .v2-mt-filter-row { grid-template-columns: 1fr; max-width: none; }
  .v2-mt-viz-shell .v2-mt-plot-card .v2-plot-card-body {
    height: clamp(240px, 70vw, 320px) !important;
    max-height: clamp(240px, 70vw, 320px) !important;
  }
  .v2-model-list-header-row,
  .v2-model-list-shimmer-row,
  .v2-model-list-row {
    grid-template-columns: 1fr;
  }
}

.v2-mt-form {
  padding: 8px;
}
.v2-mt-form-required {
  color: #dc3545;
  font-weight: 600;
}
.v2-mt-form-required-hint {
  font-size: 13px;
  font-weight: 600;
  color: #5c4a00;
  background: #fff3b0;
  border: 1px solid #d4b106;
  border-radius: var(--v2-radius);
  padding: 6px 10px;
  margin-bottom: 8px;
}
.v2-mt-form-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
  color: var(--v2-text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-mt-form .v2-mt-form-input.v2-text-input {
  min-height: 24px;
  height: 24px;
  padding: 1px 6px;
  font-size: 11px;
  width: 100%;
}
.v2-mt-form .v2-mt-form-input.v2-mt-form-input--required.v2-text-input,
.v2-mt-form .v2-mt-form-input.v2-mt-form-input--required.v2-text-input:focus {
  background: #fff3b0;
  border-color: #d4b106;
}
.v2-mt-form-alert:has(.alert.show) {
  margin: 0 0 6px;
}
.v2-mt-form-alert-box {
  max-height: 160px;
  overflow: auto;
  font-size: 12px;
}
.v2-mt-form-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 4px 4px 4px;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
}
.v2-mt-form-step-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.v2-mt-form-step-item {
  height: 34px;
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text);
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  line-height: 34px;
  white-space: nowrap;
}
.v2-mt-form-step-item:hover {
  color: var(--v2-text);
  background: rgba(0, 0, 0, 0.05);
}
.v2-mt-form-step-item-active,
.v2-mt-form-step-item-active:hover {
  background: #062d42;
  color: #fff;
}
.v2-mt-form-step-item-complete {
  color: var(--v2-text);
}
.v2-mt-form-wizard-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.v2-mt-form-composition-wrap,
.v2-mt-form-cce-full-wrap {
  max-height: calc(100vh - 220px);
  overflow: auto;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
}
.v2-mt-form-comp-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--v2-border);
}
.v2-mt-form-comp-tab {
  flex: 1;
  border: none;
  border-left: 1px solid var(--v2-border);
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 6px;
  cursor: pointer;
}
.v2-mt-form-comp-tab:first-child {
  border-left: none;
}
.v2-mt-form-comp-tab:hover,
.v2-mt-form-comp-tab-active {
  background: #062d42;
  color: #fff;
}
.v2-mt-form-composition-table--overall .v2-mt-form-comp-col--vapor,
.v2-mt-form-composition-table--overall .v2-mt-form-comp-col--liquid,
.v2-mt-form-composition-table--vapor .v2-mt-form-comp-col--overall,
.v2-mt-form-composition-table--vapor .v2-mt-form-comp-col--liquid,
.v2-mt-form-composition-table--liquid .v2-mt-form-comp-col--overall,
.v2-mt-form-composition-table--liquid .v2-mt-form-comp-col--vapor {
  display: none;
}
.v2-mt-form-composition-table th {
  white-space: nowrap;
}
.v2-mt-form-composition-table .v2-mt-form-comp-name {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--v2-dropdown-bg);
  min-width: 56px;
}
.v2-mt-form-composition-table .v2-mt-form-comp-input {
  min-width: 72px;
}
.v2-mt-form-composition-table th,
.v2-mt-form-composition-table td,
.v2-mt-form-cce-full-table th,
.v2-mt-form-cce-full-table td {
  padding: 2px 6px;
  vertical-align: middle;
  font-size: 11px;
}
.v2-mt-form-property-group {
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 6px 8px;
  background: var(--v2-dropdown-bg);
}
.v2-mt-form-property-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--v2-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-mt-form-property-subtitle {
  font-size: 12px;
  font-weight: 500;
}
.v2-mt-form-total-zi-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-top: 1px solid var(--v2-border);
}
.v2-mt-form-total-zi-value {
  font-weight: 600;
  font-size: 12px;
}
.v2-mt-form-composition-table,
.v2-mt-form-cce-full-table,
.v2-mt-form-cce-basic-table {
  color: var(--v2-text);
  --bs-table-color: var(--v2-text);
  --bs-table-bg: transparent;
  --bs-table-striped-color: var(--v2-text);
}
.v2-mt-form-cce-basic-wrap {
  max-width: 720px;
}
.v2-mt-form-cce-basic-temp {
  max-width: 180px;
  margin-bottom: 8px;
}
.v2-mt-form-cce-basic-table {
  width: auto;
  min-width: 560px;
}
.v2-mt-form-cce-basic-table th,
.v2-mt-form-cce-basic-table td {
  padding: 4px 8px;
  vertical-align: middle;
  font-size: 11px;
}
.v2-mt-form-cce-row-label {
  font-weight: 600;
  white-space: nowrap;
  width: 72px;
}
.v2-mt-form-comp-name,
.v2-mt-form-cce-row-num,
.v2-mt-form-cce-row-label,
.v2-mt-form-composition-table th,
.v2-mt-form-cce-full-table th,
.v2-mt-form-cce-basic-table th,
.v2-mt-form-composition-table td,
.v2-mt-form-cce-full-table td,
.v2-mt-form-cce-basic-table td {
  color: var(--v2-text);
}
.v2-mt-form-cce-row-num {
  font-size: 11px;
  width: 28px;
}
.v2-mt-form-fields-one-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px 6px;
  overflow-x: auto;
}
.v2-mt-form-fields-one-row .v2-mt-form-col {
  min-width: 108px;
  width: auto;
  max-width: none;
}
.v2-mt-form-run-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  max-width: none;
}
@media (max-width: 1200px) {
  .v2-mt-form-run-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.v2-mt-form-run-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.v2-mt-form-sample-groups,
.v2-mt-form-fluid-properties-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v2-mt-form-cce-full-table {
  min-width: 920px;
}
