/* Approved sage Memory palette. */
html[data-page="memory"] {
  --memory-bg:#222530;
  --memory-surface:#2b2e39;
  --memory-model:#293c33;
  --memory-accent:#bfdcc9;
  --memory-accent-bright:#d2ead9;
  --memory-accent-soft:rgba(191,220,201,.13);
  --memory-edge:rgba(191,220,201,.4);
  --memory-line:#82a58e;
  --memory-line-dim:#425d4e;
  --memory-node:#2b3931;
  --memory-ink:#1b2b21;
  --memory-muted:#a8b8af;
  --memory-book:#4b6d57;
  --memory-figure-detail:#2a4635;
}
/* Sage signal: color identifies the model and current state, not every card. */
html[data-memory-style="1"] {
  --memory-model:#1f3d33;
  --memory-accent:#9ccfb0;
  --memory-accent-bright:#bfdcc9;
  --memory-accent-soft:rgba(156,207,176,.13);
  --memory-edge:rgba(95,163,129,.55);
  --memory-line:#9ccfb0;
  --memory-line-dim:rgba(169,184,204,.55);
  --memory-node:#2b2e39;
}
html[data-memory-style="1"] .memory-model-card{stroke:#5fa381}
html[data-memory-style="1"] .memory-model-card[stroke="var(--memory-accent)"]{stroke:var(--memory-accent)}
html[data-memory-style="1"] [data-research-stack] rect,
html[data-memory-style="1"] [data-research-badge] rect,
html[data-memory-style="1"] [data-mcp-badge] rect{fill:#2b2e39;stroke:#404552}
html[data-memory-style="1"] [data-research-badge] text,
html[data-memory-style="1"] [data-mcp-badge] text{fill:#BCBDC1}
html[data-memory-style="1"] [data-state-edge][stroke="var(--memory-line)"]{stroke:var(--memory-line-dim)}
html[data-memory-style="1"] [data-scenario][aria-pressed="false"] .run-shape{stroke:#727e90}
html[data-memory-style="1"] [data-scenario][aria-pressed="true"] .run-shape{stroke:var(--memory-accent);stroke-width:1.8}
html[data-memory-style="1"] [data-scenario]:hover .run-shape{stroke:var(--memory-accent)}
html[data-memory-style="1"] [data-scenario]:focus-visible .run-shape{stroke:#fff;stroke-width:3}
html[data-memory-style="1"] .easy-state[aria-pressed="true"] b{font-weight:600}
html[data-page="memory"],html[data-page="memory"] body{background:var(--memory-bg)!important}
.memory-model-card{fill:var(--memory-model)}
[data-research-stack] rect{fill:var(--memory-surface)}
