/* Shared choices: explicit surfaces keep every label readable in both themes. */
:root{--choice-track:#e9e9ed;--choice-face:#fff;--choice-ink:#242428;--choice-muted:#54545c;--choice-border:#d5d5dc;--choice-hover:#dedee5;--choice-focus:#0067d5;--choice-shadow:0 1px 4px #00000016}
html[data-theme="dark"]{--choice-track:#202023;--choice-face:#414146;--choice-ink:#fafafa;--choice-muted:#c4c4cc;--choice-border:#45454c;--choice-hover:#303035;--choice-focus:#70b7ff;--choice-shadow:0 1px 4px #0006}
body [hidden]{display:none!important}
body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch){display:inline-flex;align-items:stretch;gap:4px;width:max-content;max-width:100%;padding:4px;border:1px solid var(--choice-border);border-radius:16px;background:var(--choice-track);box-shadow:none;isolation:isolate}
body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch)>button{display:flex;align-items:center;justify-content:center;flex:1 1 auto;width:auto;min-width:0;min-height:44px;margin:0;padding:10px 18px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--choice-muted);font:600 14px/1.25 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:0;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background .12s ease,color .12s ease}
body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch)>button:hover:not(:disabled){background:var(--choice-hover);color:var(--choice-ink)}
body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch)>button:is([aria-pressed="true"],.is-active){background:var(--choice-face);color:var(--choice-ink);box-shadow:var(--choice-shadow);border-color:var(--choice-border)}
body .speaker-toggle>button[data-speaker="seller"][aria-pressed="true"]{background:#176b35;border-color:#176b35;color:#fff}
body .speaker-toggle>button[data-speaker="buyer"][aria-pressed="true"]{background:#0056b8;border-color:#0056b8;color:#fff}
body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch)>button:focus-visible{outline:3px solid var(--choice-focus);outline-offset:3px}
body :is(.purpose-switch,.mode-switch,.training-source-switch)>button:disabled{cursor:default;opacity:.65}
.purpose-wrap{gap:12px 18px;margin:18px 0 12px}
#callPurposeLabel{font-size:13px;font-weight:600;color:var(--text)}
#callPurposeHint{flex-basis:100%;font-size:13px;line-height:1.45;color:var(--muted)}
.mode-switch-wrap{margin:0 0 24px;gap:18px}
.training-source-switch{margin:8px 0 18px}
#scenarioLoadStatus{display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--text);font-size:13px}
#retryScenarios{min-height:44px}
.rehearsal-brief{background:var(--surface-solid);color:var(--text);border-color:var(--line)}
.rehearsal-column{background:#f1f1f4;border:1px solid var(--line)}
.rehearsal-column ul{color:#55555d}
.rehearsal-brief :is(.mini-label,.section-label,.rehearsal-policy){color:#62626b}
html[data-theme="dark"] .rehearsal-column{background:#27272c}
html[data-theme="dark"] .rehearsal-column ul{color:#d0d0d7}
html[data-theme="dark"] .rehearsal-brief :is(.mini-label,.section-label,.rehearsal-policy){color:#b8b8c1}
html[data-theme="dark"] .rehearsal-brief .confidence-medium{color:#ffd06a}
html[data-theme="dark"] .rehearsal-brief .confidence-high{color:#78dda0}
html[data-theme="dark"] .rehearsal-brief .confidence-low{color:#ff9999}
@media(max-width:600px){body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch)>button{padding:10px 12px;font-size:13px}.purpose-wrap{align-items:flex-start}.purpose-wrap #callPurposeLabel{flex-basis:100%}.training-source-switch{width:100%}.mode-switch-wrap{gap:10px}}
@media(prefers-reduced-motion:reduce){body :is(.purpose-switch,.mode-switch,.speaker-toggle,.training-source-switch)>button{transition:none}}
