/* PeakFour Voice Analysis — canonical color system.
   Loaded after v104 parity. This file owns all neutral colors of #page-pronunciation.
   Other modules keep their own CSS; behavioral and score states remain untouched. */
:root:not([data-pf-theme="dark"]) #page-pronunciation {
  color-scheme:light;
  --pa-canvas:#f8fafc;--pa-panel:#ffffff;--pa-surface:#f1f5fb;
  --pa-raised:#e9eef8;--pa-input:#f8fafc;--pa-hero:#ffffff;
  --pa-line:#d6e2ef;--pa-line-soft:#e2e9f2;
  --pa-text:#16263f;--pa-muted:#475d78;--pa-subtle:#5c7395;
  --pa-accent:#2563eb;--pa-accent-soft:#4f46e5;
  --pa-ring-track:#d5dfee;--pa-shadow:0 8px 24px rgba(18,38,71,.06);
  --pa-input-placeholder:#627797;
  --pfux-panel:var(--pa-panel);--pfux-surface:var(--pa-surface);
  --pfux-surface-alt:var(--pa-raised);--pfux-line:var(--pa-line);
  --pfux-text:var(--pa-text);--pfux-muted:var(--pa-muted);
  --pfux-label:var(--pa-subtle);--pfux-action:var(--pa-accent);
  --pfux-ring-track:var(--pa-ring-track);--pfux-shadow:rgba(18,38,71,.06);
}
:root[data-pf-theme="dark"] #page-pronunciation {
  color-scheme:dark;
  --pa-canvas:#0f172a;--pa-panel:#1c213d;--pa-surface:#232a48;
  --pa-raised:#2a3354;--pa-input:#252e4d;--pa-hero:#1e293b;
  --pa-line:#354362;--pa-line-soft:#303d5d;
  --pa-text:#f3f6ff;--pa-muted:#c2cee7;--pa-subtle:#a9bde4;
  --pa-accent:#8cc5ff;--pa-accent-soft:#ac9cff;
  --pa-ring-track:#354362;--pa-shadow:0 10px 30px rgba(3,7,18,.14);
  --pa-input-placeholder:#9baed0;
  --pfux-panel:var(--pa-panel);--pfux-surface:var(--pa-surface);
  --pfux-surface-alt:var(--pa-raised);--pfux-line:var(--pa-line);
  --pfux-text:var(--pa-text);--pfux-muted:var(--pa-muted);
  --pfux-label:var(--pa-subtle);--pfux-action:var(--pa-accent);
  --pfux-ring-track:var(--pa-ring-track);--pfux-shadow:rgba(3,7,18,.14);
}
/* Shell and content surfaces: use a single palette for all stages. */
:root[data-pf-theme] #page-pronunciation.pf75-voice-analysis-page {
  background:var(--pa-canvas)!important;
  background-image:none!important;
  border-color:var(--pa-line)!important;
  color:var(--pa-text)!important;
}
:root[data-pf-theme] #page-pronunciation.pf75-voice-analysis-page::before{background:none!important}
:root[data-pf-theme] #page-pronunciation .pf75-va-heading,
:root[data-pf-theme] #page-pronunciation :is(#practice,#result,#loading,#error,.pa76-prompt-card){
  background:var(--pa-panel)!important;
  background-image:none!important;
  border-color:var(--pa-line)!important;
  color:var(--pa-text)!important;
  box-shadow:var(--pa-shadow)!important;
}
:root[data-pf-theme] #page-pronunciation :is(.sentence-card,.record-panel,.score-section,.word-detail,.heard-panel,.charts-panel,.pf75-va-hint,.drop-overlay,.chart-box,.pa76-prompt-card li) {
  background:var(--pa-surface)!important;
  background-image:none!important;
  border-color:var(--pa-line)!important;
  color:var(--pa-text)!important;
  box-shadow:none!important;
}
:root[data-pf-theme] #page-pronunciation .pf75-va-heading :is(h1,h2),
:root[data-pf-theme] #page-pronunciation :is(.practice-heading h2,.results-title-row h2,.score-description h3,.word-detail-main,.detail-title-row,.heard-row,.loading-header h2,.error-panel h2,.record-copy strong,.pa76-prompt-card h2,.pa76-prompt-card strong) {
  color:var(--pa-text)!important;
}
:root[data-pf-theme] #page-pronunciation :is(.pf75-va-heading p,.pf75-va-flow,.pf75-va-hint,.practice-heading p,.results-title-row p,.score-description p,.heard-row>strong,.heard-row>div,.loading-header p,.error-panel>p,.record-copy p,.record-mode-hint,.file-name,.pa76-prompt-card p,.pa76-prompt-card li) {
  color:var(--pa-muted)!important;
}
:root[data-pf-theme] #page-pronunciation :is(.pf-sw-kicker,.panel-topline .section-tag,.panel-index,.examples-title,.voice-english-badge,.audio-review-label,.score-description .eyebrow,.charts-content>div>p,.charts-panel summary small,.small-note,.record-panel-top .mini-hint,.sentence-card-header label,.score-ring-text small,.pf75-va-flow b) {
  color:var(--pa-subtle)!important;
}
/* Keep heading's visual accent readable in either mode. */
:root[data-pf-theme] #page-pronunciation .pf75-va-heading h1 span{
  background:linear-gradient(90deg,var(--pa-accent),var(--pa-accent-soft))!important;
  background-clip:text!important;-webkit-background-clip:text!important;
  color:transparent!important;-webkit-text-fill-color:transparent!important;
}
:root[data-pf-theme] #page-pronunciation :is(#expected-text,.record-settings select,input:not([type="checkbox"]):not([type="radio"])) {
  background:var(--pa-input)!important;
  color:var(--pa-text)!important;
  border-color:var(--pa-line)!important;
  box-shadow:none!important;
}
:root[data-pf-theme] #page-pronunciation #expected-text::placeholder{color:var(--pa-input-placeholder)!important;opacity:1}
:root[data-pf-theme] #page-pronunciation :is(.toggle-setting,.record-settings label,.sentence-card-header label){color:var(--pa-text)!important}
:root[data-pf-theme] #page-pronunciation .toggle-setting input{background:var(--pa-raised)!important;border-color:var(--pa-line)!important}
:root[data-pf-theme] #page-pronunciation :is(.soft-action,.inline-button,.example-list button,#details summary,.charts-panel summary){
  background:var(--pa-raised)!important;
  color:var(--pa-text)!important;
  border-color:var(--pa-line)!important;
  box-shadow:none!important;
}
:root[data-pf-theme] #page-pronunciation :is(.soft-action,.inline-button,.example-list button,#details summary):hover{
  background:var(--pa-surface)!important;
  border-color:var(--pa-accent)!important;
}
:root[data-pf-theme] #page-pronunciation .primary-button:not(:disabled),
:root[data-pf-theme] #page-pronunciation .record-button:not(:disabled){color:#fff!important}
:root[data-pf-theme] #page-pronunciation .chip:not([class*="bg-red-"]):not([class*="bg-emerald-"]){
  background:var(--pa-raised)!important;color:var(--pa-text)!important;border-color:var(--pa-line)!important;
}
:root[data-pf-theme] #page-pronunciation .chip[class*="bg-red-"]{background:rgba(215,83,106,.16)!important;color:var(--pa-text)!important;border-color:#d7536a!important}
:root[data-pf-theme] #page-pronunciation .chip[class*="bg-emerald-"]{background:rgba(22,140,100,.16)!important;color:var(--pa-text)!important;border-color:#168c64!important}
:root[data-pf-theme] #page-pronunciation .audio-review-controls audio{color-scheme:inherit;background:var(--pa-raised)!important;border-radius:14px}
:root[data-pf-theme] #page-pronunciation :is(.heard-row,.heard-panel,.word-detail,.chart-box){border-color:var(--pa-line-soft)!important}
:root[data-pf-theme] #page-pronunciation :is(.app-footer,.field-description,.small-note){color:var(--pa-muted)!important;border-color:var(--pa-line)!important}
:root[data-pf-theme] #page-pronunciation :is(button,select,textarea,summary):focus-visible{
  outline:3px solid var(--pa-accent)!important;outline-offset:3px;
}
/* Shared OpenPronounce report: all nested neutral surfaces inherit the page tokens.
   The source CSS for this component now uses --pfux-* variables, not fixed light colors. */
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback .pfux-report{
  color:var(--pa-text)!important;
  background:var(--pa-panel)!important;
  border-color:var(--pa-line)!important;
  box-shadow:none!important;
}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback :is(.pfux-overview,.pfux-detail,.pfux-reference,.pfux-analysis,.pfux-chart,.pfux-mouth-fallback){
  background:var(--pa-surface)!important;
  border-color:var(--pa-line)!important;
  color:var(--pa-text)!important;
}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback .pfux-ring{
  background:radial-gradient(circle at center,var(--pa-surface) 0 65%,transparent 66%),conic-gradient(var(--color) calc(var(--value)*1%),var(--pa-ring-track) 0)!important;
}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback .pfux-mouth img{
  background:var(--pa-raised)!important;border-color:var(--pa-line)!important;
}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback :is(.pfux-analysis summary,.pfux-replay){
  background:var(--pa-raised)!important;border-color:var(--pa-line)!important;color:var(--pa-text)!important;
}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback :is(.pfux-transcript-line,.pfux-reference){border-color:var(--pa-line)!important}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback .pfux-heard em{color:var(--pa-muted)!important}
:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback .pfux-word[aria-pressed="true"]{
  outline:3px solid var(--pa-accent)!important;outline-offset:2px;
}
:root[data-pf-theme] #page-pronunciation .pfux-pre-speech-ipa,
:root[data-pf-theme] #page-pronunciation .pf96-pre-speech-ipa{background:var(--pa-surface)!important;color:var(--pa-text)!important;border-color:var(--pa-line)!important}
@media(max-width:650px){:root[data-pf-theme] #page-pronunciation #pronunciation-unified-feedback .pfux-report{padding:14px!important}}
