/* Native dropdown contrast: Windows/Chromium can otherwise show a white
   popup with near-white option labels despite the closed select being dark. */
body:not([data-gl-theme="light"]) #connection select,
body:not([data-gl-theme="light"]) #connection select option,
body:not([data-gl-theme="light"]) #connection select optgroup,
body:not([data-gl-theme="light"]) #gl-dora-dialog select,
body:not([data-gl-theme="light"]) #gl-dora-dialog select option,
body:not([data-gl-theme="light"]) #gl-dora-dialog select optgroup{
 color-scheme:dark!important;
 background-color:#15232d!important;
 color:#f2f7fb!important;
}
body:not([data-gl-theme="light"]) #connection select,
body:not([data-gl-theme="light"]) #gl-dora-dialog select{
 border-color:#22836d!important;
}
body:not([data-gl-theme="light"]) #connection select option:disabled,
body:not([data-gl-theme="light"]) #gl-dora-dialog select option:disabled{
 color:#a3b4be!important;
}
body:not([data-gl-theme="light"]) #connection select option:checked,
body:not([data-gl-theme="light"]) #gl-dora-dialog select option:checked{
 color:#ffffff!important;
 background-color:#176c72!important;
}
body[data-gl-theme="light"] #connection select,
body[data-gl-theme="light"] #connection select option,
body[data-gl-theme="light"] #connection select optgroup,
body[data-gl-theme="light"] #gl-dora-dialog select,
body[data-gl-theme="light"] #gl-dora-dialog select option,
body[data-gl-theme="light"] #gl-dora-dialog select optgroup{
 color-scheme:light!important;
 background-color:#ffffff!important;
 color:#203544!important;
}
body[data-gl-theme="light"] #connection select option:disabled,
body[data-gl-theme="light"] #gl-dora-dialog select option:disabled{
 color:#697b88!important;
}
body[data-gl-theme="light"] #connection select option:checked,
body[data-gl-theme="light"] #gl-dora-dialog select option:checked{
 color:#12354a!important;
 background-color:#bee8de!important;
}
/* Dora controls — one preference, visible in regular audio settings and
   inside Dora's own expandable audio section. */
.gl-dora-settings-row,.gl-dora-audio-details-body{
 display:grid;gap:9px;min-width:0;
}
.gl-dora-settings-row{
 margin:12px 0;padding:13px;
 border:1px solid #385c58;border-radius:10px;background:#142a2e;
}
.gl-dora-output-label{
 display:block;font-size:12px;font-weight:800;
 color:#d6f8e9;
}
#connection .gl-dora-settings-row select,
#gl-dora-dialog .gl-dora-audio-details select{
 display:block;width:100%;min-width:0;min-height:41px;
 padding:9px 12px;border:1px solid #247963;border-radius:8px;
 outline:none;background:#15232d;color:#f3fcf9;font-size:12px;
}
#connection .gl-dora-settings-row select:focus,
#gl-dora-dialog .gl-dora-audio-details select:focus{
 box-shadow:0 0 0 2px #19b88940;border-color:#18b98d!important;
}
.gl-dora-output-hint,.gl-dora-output-notice{
 display:block;font-size:11px;line-height:1.55;
 color:#a9c8c8;margin:0;
}
.gl-dora-output-notice{color:#91e8be;min-height:12px}
.gl-dora-audio-details{
 padding:11px 12px;border:1px solid #2a615a;border-radius:10px;
 background:#112a29;
}
.gl-dora-audio-details summary{
 cursor:pointer;font-size:12px;font-weight:850;color:#c5f4e4;
 user-select:none;
}
.gl-dora-audio-details-body{padding:13px 0 2px}
body.signed-in .gl-dora-audio-details .gl-dora-output-refresh{
 width:100%;min-height:35px;padding:8px 10px;
 background:#1b4d43;color:#d9fff1;border:1px solid #368677;
 border-radius:8px;cursor:pointer;font-size:12px;font-weight:800;
}
#connection .gl-dora-settings-row select:disabled,
#gl-dora-dialog .gl-dora-audio-details select:disabled{
 opacity:.55;cursor:not-allowed;
}
body[data-gl-theme="light"] .gl-dora-settings-row,
body[data-gl-theme="light"] .gl-dora-audio-details{
 background:#ecfaf6;border-color:#a0cfc1;
}
body[data-gl-theme="light"] .gl-dora-output-label,
body[data-gl-theme="light"] .gl-dora-audio-details summary{
 color:#1e6152;
}
body[data-gl-theme="light"] .gl-dora-output-hint{
 color:#496e75;
}
body[data-gl-theme="light"] .gl-dora-output-notice{
 color:#1b7553;
}
