/* Quiet themed header; reserve solid fills for the main menu and playback. */
html[data-theme] body.reader-mode #readerView .reader-header{
 background:var(--pale,#eef5f0)!important;
 background:color-mix(in srgb,var(--green,#286447) 7%,var(--surface,#fff))!important;
 border-bottom:1px solid color-mix(in srgb,var(--green,#286447) 25%,var(--line,#dbe3de))!important;
 box-shadow:0 2px 8px #142e2309!important;
}
html[data-theme] body.reader-mode #readerView :is(.translation-toggle,.word-gloss-toggle){
 background:var(--surface,#fff)!important;color:var(--ink,#193229)!important;
 border-color:color-mix(in srgb,var(--green,#286447) 38%,var(--line,#dbe3de))!important;
 box-shadow:none!important;min-height:44px!important;
}
html[data-theme] body.reader-mode #readerView :is(.translation-toggle,.word-gloss-toggle)[aria-pressed="true"]{
 background:var(--pale,#eef5f0)!important;background:color-mix(in srgb,var(--green,#286447) 17%,var(--surface,#fff))!important;
 color:var(--ink,#193229)!important;border-bottom:3px solid var(--green,#286447)!important;
}
html[data-theme] body.reader-mode #readerView :is(.translation-toggle,.word-gloss-toggle):disabled{
 background:var(--pale,#eef5f0)!important;color:var(--muted,#65736d)!important;
 border-color:var(--line,#dbe3de)!important;opacity:1!important;filter:none!important;
}
html[data-theme] body.reader-mode #readerView #correctionToggle{
 background:#f3e5ce!important;color:#69451e!important;border:1px solid #c8b18b!important;box-shadow:none!important;
}
html[data-theme] body.reader-mode #readerView #correctionToggle::after{color:inherit!important}
html[data-theme] body.reader-mode.correction-active #readerView #correctionToggle{background:#82592e!important;color:#fff6e9!important;border-color:#82592e!important}
html[data-theme] .qm-audio-entry{
 min-height:44px!important;padding:11px 22px!important;font-size:14px!important;
 background:var(--pale,#eef5f0)!important;background:color-mix(in srgb,var(--green,#286447) 14%,var(--surface,#fff))!important;
 border:1px solid color-mix(in srgb,var(--green,#286447) 55%,var(--line,#dbe3de))!important;
 color:var(--ink,#193229)!important;box-shadow:0 3px 9px #142e230a!important;
}
html[data-theme] #qmAudioDock{
 background:var(--pale,#e7f1eb)!important;
 background:color-mix(in srgb,var(--green,#286447) 16%,var(--surface,#fff))!important;
 border:1px solid color-mix(in srgb,var(--green,#286447) 50%,var(--line,#dbe3de))!important;
 padding:7px!important;gap:5px!important;color:var(--ink,#193229)!important;box-shadow:0 6px 18px #142e2324!important;
}
html[data-theme] #qmAudioDock .qm-audio-dock-title{background:transparent!important;padding-inline:4px!important}
html[data-theme] #qmAudioDock strong{font-size:12px!important;color:var(--ink,#193229)!important}
html[data-theme] #qmAudioDock small{font-size:11px!important;color:var(--muted,#65736d)!important}
html[data-theme] #qmAudioDock :is(#qmAudioDockPause,#qmAudioDockStop){min-height:44px!important;min-width:44px!important;flex:0 0 44px!important;padding:0!important;border-radius:11px!important}
html[data-theme] #qmAudioDock #qmAudioDockPause{background:var(--green,#286447)!important;color:#fff!important;border:1px solid transparent!important}
html[data-theme] #qmAudioDock #qmAudioDockStop{background:var(--surface,#fff)!important;background:color-mix(in srgb,var(--surface,#fff) 80%,transparent)!important;color:var(--ink,#193229)!important;border:1px solid color-mix(in srgb,var(--green,#286447) 20%,var(--line,#dbe3de))!important}
html[data-theme] #qmAudioDialog>header{background:color-mix(in srgb,var(--green,#286447) 7%,var(--surface,#fff))!important}
html[data-theme] #qmAudioDialog #qmAudioPlayAyah{background:var(--pale,#eef5f0)!important;background:color-mix(in srgb,var(--green,#286447) 12%,var(--surface,#fff))!important;color:var(--ink,#193229)!important;border-color:color-mix(in srgb,var(--green,#286447) 45%,var(--line,#dbe3de))!important}
html[data-theme] #qmAudioDialog #qmAudioPlaySurah{background:var(--green,#286447)!important;color:#fff!important;border-color:var(--green,#286447)!important}
html[data-theme="night"] body.reader-mode #readerView .reader-header{background:#142019!important;border-color:#3d5143!important;box-shadow:none!important}
html[data-theme="night"] body.reader-mode #readerView :is(.translation-toggle,.word-gloss-toggle){background:#15221a!important;color:#cbd5c6!important;border-color:#465d4c!important}
html[data-theme="night"] body.reader-mode #readerView :is(.translation-toggle,.word-gloss-toggle)[aria-pressed="true"]{background:#2a4132!important;color:#d7dfcf!important;border-bottom-color:#8fa99a!important}
html[data-theme="night"] body.reader-mode #readerView #correctionToggle{background:#382d20!important;color:#d7bd91!important;border-color:#796744!important}
html[data-theme="night"] body.reader-mode.correction-active #readerView #correctionToggle{background:#5a4125!important;color:#e7d4b2!important}
html[data-theme="night"] .qm-audio-entry{background:#23382b!important;color:#d7dfcf!important;border-color:#637d68!important;box-shadow:none!important}
html[data-theme="night"] #qmAudioDock{background:#203228!important;color:#d7dfcf!important;border-color:#536f5c!important;box-shadow:none!important}
html[data-theme="night"] #qmAudioDock #qmAudioDockPause,
html[data-theme="night"] #qmAudioDialog #qmAudioPlaySurah{background:#375840!important;color:#e0e7d8!important;border-color:#637d68!important}
html[data-theme="night"] #qmAudioDock #qmAudioDockStop{background:#142219!important;color:#cbd5c6!important;border-color:#465d4c!important}
html[data-theme="night"] #qmAudioDialog>header{background:#18271e!important}
html[data-theme="night"] #qmAudioDialog #qmAudioPlayAyah{background:#23382b!important;color:#d7dfcf!important;border-color:#536f5c!important}
