/* model-lab.css - Model Lab surface
 *
 * Extracted verbatim from style.css. Rules keep their original
 * relative order, and @media rules travel with the surface so its
 * responsive overrides still land after the rules they override.
 */
.model-lab-view { padding: 24px; max-width: 1600px; margin: 0 auto; }
.model-lab-selector-hint { flex-basis: 100%; margin: 0; color: var(--text-secondary); font-size: 12px; }
.model-lab-pill:hover,
.model-lab-pill.is-open {
  background: var(--overlay-w-12, rgba(255,255,255,0.12));
  border-color: var(--overlay-w-18, rgba(255,255,255,0.18));
}
.model-lab-pill-label {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}
.model-lab-pill-value {
  font-size: 13px; font-weight: 500;
  color: inherit;
}
.model-lab-pill-chevron {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-left: 2px;
  transition: transform .15s ease;
}
.model-lab-pill.is-open .model-lab-pill-chevron { transform: rotate(180deg); }
.model-lab-pop-item:hover {
  background: var(--overlay-w-08, rgba(255,255,255,0.08));
}
.model-lab-pop-item.is-selected {
  background: var(--overlay-w-05, rgba(255,255,255,0.05));
  color: var(--fg-primary-alpha, rgba(255,255,255,0.98));
  font-weight: 600;
}
.model-lab-pop-item-check {
  color: rgba(255,255,255,0.72);
  font-size: 12px; font-weight: 500;
}
[data-app-theme="light"] .model-lab-pill,
[data-app-theme="og"] .model-lab-pill,
html[data-app-theme="light"] .model-lab-pill,
html[data-app-theme="og"] .model-lab-pill {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
  color: rgba(30,29,28,0.92);
}
[data-app-theme="light"] .model-lab-pill-label,
[data-app-theme="og"] .model-lab-pill-label,
[data-app-theme="light"] .model-lab-pill-chevron,
[data-app-theme="og"] .model-lab-pill-chevron {
  color: rgba(30,29,28,0.55);
}
[data-app-theme="light"] .model-lab-pop,
[data-app-theme="og"] .model-lab-pop {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  color: rgba(30,29,28,0.92);
}
[data-app-theme="light"] .model-lab-pop-item,
[data-app-theme="og"] .model-lab-pop-item {
  color: rgba(30,29,28,0.92);
}
[data-app-theme="light"] .model-lab-pop-item:hover,
[data-app-theme="og"] .model-lab-pop-item:hover {
  background: rgba(0,0,0,0.05);
}
[data-app-theme="light"] .model-lab-pop-item.is-selected,
[data-app-theme="og"] .model-lab-pop-item.is-selected {
  background: rgba(0,0,0,0.04);
  color: rgba(30,29,28,0.98);
}
.model-lab-section.is-switching { opacity: 0.55; transition: opacity .18s ease; }
.model-lab-section.is-switching::after {
  content: 'Loading model...'; position: absolute; top: 8px; right: 12px;
  font-size: 11px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  pointer-events: none;
}
.model-lab-section { position: relative; }
.model-lab-section { margin-bottom: 32px; }
.model-lab-section-head {
  font-size: 16px; font-weight: 600; margin: 0 0 12px 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.model-lab-caption {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 8px; font-style: normal;
}
.model-lab-banner-warn {
  background: #FEF3C7; color: #92400E;
  padding: 12px 16px; border-radius: 8px;
  margin-bottom: 16px; font-size: 14px;
}
.model-lab-explain-card { padding: 20px; }

@media (min-width: 1200px) {
  .model-lab-grid > #model-lab-section-overview,
  .model-lab-grid > #model-lab-section-explainability,
  .model-lab-grid > #model-lab-section-training,
  .model-lab-grid > #model-lab-section-embedding {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .model-lab-view { padding: 16px; }
  .model-lab-pop { min-width: 200px; }
}
