/* Story-specific treatments. All colours are inherited from theme-tokens.css. */
body{background:var(--paper)}
/* Keep the form above the background field, including reduced-motion mode. */
.cinema #message-interaction{position:relative;z-index:1;background:transparent}
::selection{background:var(--selection-bg);color:var(--selection-ink)}
:is(button,a,input,textarea):focus-visible{outline:2px solid var(--ai);outline-offset:4px}
:is(input,textarea)::placeholder{color:var(--muted);opacity:1}
.adya-launcher-badge i{background:var(--on-ai);border-color:var(--ai)}
.cinema-actions button:hover,#send-result:not(:disabled):hover{background:var(--control-hover)}
:is(.cinema-start,#send-message,#retry-message){color:var(--on-ai)}
:is(.cinema-start,#send-message:not(:disabled),#retry-message):hover{background:var(--ai-hover);color:var(--on-ai)}

/* Match the homepage's two voices: white for the visitor, ice for the AI. */
[data-theme="dark"] :is(.intro-copy .headline, .flow-input h2, .prompt-context blockquote) {
  color: var(--human);
}
[data-theme="dark"] :is(.plan-title, .tools-head, .route-title, .response-heading, .layouts-heading) .section-heading,
[data-theme="dark"] :is(.flow-engine h2, .tool-tile.selected .tool-title, .route-card.deep h3,
                        .response-task h3, .response-task-top, .compact-tool-heading h2) {
  color: var(--ai);
}
[data-theme="dark"] :is(.flow-output p, .response-copy, .response-task .response-need,
                        .result-page-content, .radar-description) {
  color: var(--body-ai);
}
[data-theme="dark"] .plan-flow {
  --flow-accent: var(--ai);
}
[data-theme="dark"] .flow-wire-active {
  stroke: var(--flow-accent);
}
[data-theme="dark"] .flow-wires circle {
  fill: var(--flow-accent);
}
[data-theme="dark"] .radar-field {
  --radar-accent: var(--ai);
}
[data-theme="dark"] :is(.visit-browser, .flow-engine, .response-task, .compact-output-card .response-task) {
  background: var(--card-cool);
}
[data-theme="dark"] :is(.flow-engine, .tool-tile.selected, .route-card.deep) {
  border-color: var(--round-line);
}
