/* Color-only Product layer; simulation fields and semantic green checks stay. */
.product-hero {
  background: var(--theme-background);
  color: var(--theme-heading);
}
.product-hero .text-purple {
  color: var(--theme-heading);
}
.product-hero-lead,
.product-disclosure,
.product-section-heading > p,
.product-inputs p,
.product-note,
.platform-execution > p,
.evidence-grid p,
.partnership-steps p,
.product-partnership-footer p {
  color: var(--theme-body);
}
.product-lifecycle {
  background: var(--theme-surface);
  color: var(--theme-heading);
}
.product-lifecycle .product-section-heading > p,
.product-lifecycle .product-note,
.investigation-list p,
.study-scope dd {
  color: var(--theme-body);
}
.investigation-list > li,
.investigation-list > li:last-child,
.study-gate,
.product-subsection,
.platform-execution,
.study-scope > div,
.study-scope > div:first-child,
.evidence-grid article,
.partnership-steps > div,
.product-partnership-footer,
.study-layout > .study-scope > div,
.study-layout > .study-scope > div:first-child {
  border-color: var(--theme-border);
}
.study-step-number,
.study-gate .eyebrow {
  color: var(--theme-brand);
}
.platform-execution li {
  color: var(--theme-heading);
}
.product-authority {
  background: var(--theme-showcase);
  color: var(--theme-on-dark);
}
.product-authority .text-purple {
  color: var(--theme-on-dark);
}
.product-authority .eyebrow,
.product-authority-lead,
.authority-points p {
  color: var(--theme-dark-body);
}
.authority-points > div {
  border-color: var(--theme-dark-border);
}
.product-input-entry {
  background: var(--theme-surface);
  border-color: var(--theme-border);
}
.product-input-entry > p,
.product-input-entry > p.product-input-entry-note {
  color: var(--theme-body);
}
.product-input-entry li {
  background: var(--theme-background);
  color: var(--theme-brand);
  border-color: var(--theme-accent-border);
}
.agent-workspace,
.agent-workspace .study-figure {
  background: var(--theme-surface);
  color: var(--theme-heading);
  border-color: var(--theme-border);
}
.agent-story,
.agent-panel-heading,
.agent-artifact-heading {
  background: var(--theme-background);
  color: var(--theme-heading);
  border-color: var(--theme-border);
}
.agent-concept-label,
.agent-context summary,
.agent-context p,
.agent-workspace .agent-knowledge-sources,
.agent-attachment small {
  color: var(--theme-body);
}
.agent-knowledge-sources li,
.agent-attachment {
  border-color: var(--theme-accent-border);
}
.agent-objective {
  background: var(--theme-tint);
  color: var(--theme-heading);
}
.agent-step-list {
  scrollbar-color: var(--theme-accent-border) transparent;
}
.agent-step-list button,
.agent-step-list button > p {
  color: var(--theme-body);
}
.agent-step-list button > span:first-child {
  color: var(--theme-brand);
  border-color: var(--theme-accent-border);
}
.agent-step-list .is-active,
.agent-step-list button:hover {
  color: var(--theme-brand);
}
.agent-step-list .is-active > span:first-child {
  background: var(--theme-tint);
  border-color: var(--theme-brand);
}
.agent-composer {
  background: var(--theme-background);
  border-color: var(--theme-accent-border);
  color: var(--theme-body);
}
.agent-send {
  background: var(--theme-tint);
  color: var(--theme-brand);
}
.agent-restart {
  color: var(--theme-brand);
  border-color: var(--theme-accent-border);
}
.agent-playback-state {
  color: var(--theme-body);
}
.artifact-progress {
  border-color: var(--theme-border);
  color: var(--theme-body);
}
.artifact-progress span[aria-current] {
  color: var(--theme-brand);
  box-shadow: 0 2px var(--theme-brand);
}
.artifact-input {
  background: var(--theme-background);
  border-color: var(--theme-border);
}
.artifact-input > p,
.artifact-input dt,
.artifact-input-footnote,
.artifact-analysis small,
.artifact-result p {
  color: var(--theme-body);
}
.artifact-input dl > div {
  border-color: var(--theme-border);
}
.artifact-analysis,
.artifact-result {
  background: var(--theme-tint);
  border-color: var(--theme-border);
}
.agent-workspace .study-viewer {
  background: radial-gradient(ellipse at center, var(--theme-background), var(--theme-surface));
}
.agent-artifact-note,
.model-inspector,
.model-inspector .model-controls,
.agent-workspace .study-figure figcaption {
  border-color: var(--theme-border);
}
.agent-artifact-note > p,
.model-inspector > summary,
.agent-workspace .study-figure figcaption,
.agent-workspace #model-viewer-hint,
.agent-workspace .model-statistics {
  color: var(--theme-body);
}
.agent-artifact-note .temperature-legend {
  background: var(--theme-background);
  border-color: var(--theme-border);
  color: var(--theme-body);
}
.model-spin-toggle,
.agent-workspace .model-controls button,
.agent-workspace .model-controls select {
  background: var(--theme-background);
  color: var(--theme-brand);
  border-color: var(--theme-accent-border);
}
.agent-workspace .model-controls button[aria-pressed='true'] {
  background: var(--theme-tint);
  color: var(--theme-brand);
  border-color: var(--theme-brand);
}
.agent-workspace .model-downloads {
  color: var(--theme-brand);
}
.model-downloads a {
  border-color: var(--theme-accent-border);
}
.agent-workspace-disclosure {
  background: var(--theme-surface);
  color: var(--theme-body);
  border-color: var(--theme-border);
}
.study-viewer canvas:focus-visible,
.model-controls select:focus-visible,
.agent-step-list button:focus-visible {
  outline-color: var(--theme-brand);
}
/* Higher specificity keeps completion meaning independent of brand selection. */
.agent-step-list .is-complete > span:first-child {
  color: var(--status-success);
  border-color: var(--status-success-border);
  background: var(--status-success-surface);
}
@media (max-width: 760px) {
  .product-inputs > div + div,
  .study-gate {
    border-color: var(--theme-border);
  }
  .authority-points > div:first-child {
    border-color: var(--theme-dark-border);
  }
}

/* Prepared geometry uses the same slate/blue family; scientific field colors stay intact. */
.product-page .agent-workspace {
  --viewer-edge: #64748b;
  --viewer-mesh: #647b99;
  --viewer-solid: #cbd5e1;
  --viewer-mesh-solid: #edf3fa;
}
