/* Independent speech preferences alongside the existing Sewlyra screen-language selector. */
#sewlyra-language-bar{flex-wrap:wrap;gap:7px 9px}
#sl-screen-tag{font-size:11px;font-weight:700;color:#315d54}
#sewlyra-language-bar .sl-voice-label,
#sewlyra-language-bar .sl-voice-speed-label{font-size:11px;font-weight:650;line-height:1.5;white-space:normal}
#sewlyra-voice-select{width:152px;max-width:42vw;padding:7px 8px;min-height:38px;font-size:13px;background:#f7fafc;border:1px solid #cedce6;border-radius:7px;color:#17334f;min-width:0}
#sewlyra-language-bar .sl-voice-on-label{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;cursor:pointer;font-size:11px;font-weight:650}
#sewlyra-voice-enabled{width:18px;height:18px;accent-color:#087c62;flex:none}
#sewlyra-voice-rate{width:92px;max-width:100%;padding:7px 4px;min-height:38px;border:1px solid #cedce6;border-radius:7px;background:#f7fafc;color:#17334f;font-size:12px}
#sewlyra-voice-test,.sl-dialog-voice button{border:1px solid #087c62;border-radius:8px;min-height:38px;padding:7px 12px;background:#087c62;color:white;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
#sewlyra-voice-test:focus-visible,#sewlyra-voice-select:focus-visible,#sewlyra-voice-rate:focus-visible,.sl-dialog-voice select:focus-visible,.sl-dialog-voice button:focus-visible{outline:3px solid #23ab88;outline-offset:2px}
#sewlyra-voice-status{max-width:220px;font-size:11px;overflow-wrap:anywhere;color:#167758}
#sewlyra-voice-status[data-error=true],.sl-dialog-voice-status[data-error=true]{color:#b33131}
.sl-dialog-voice{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;margin:0 10px 12px 0;border-radius:9px;background:#f1f8f5;color:#183e2e;font-size:12px;font-weight:650;min-width:0}
.sl-dialog-voice select{min-width:0;max-width:160px;padding:8px 7px;background:white;color:#17334f;border:1px solid #cbded3;border-radius:7px;font-size:14px}
.sl-dialog-voice-status{font-size:11px;font-weight:400;max-width:100%;overflow-wrap:anywhere}
html[dir=rtl] .sl-dialog-voice{direction:rtl}
@media(max-width:760px){
 #sewlyra-language-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;justify-content:stretch;gap:5px 9px;padding:8px 11px}
 #sl-screen-tag{grid-column:1;grid-row:1;align-self:end}
 #sewlyra-language-bar label[for="sewlyra-language-select"]{grid-column:1;grid-row:2}
 #sewlyra-language-select{grid-column:1;grid-row:3;width:100%;max-width:none;min-height:43px;font-size:16px}
 #sewlyra-language-bar .sl-voice-label{grid-column:2;grid-row:2}
 #sewlyra-voice-select{grid-column:2;grid-row:3;width:100%;max-width:none;min-height:43px;font-size:16px}
 #sewlyra-language-bar .sl-voice-on-label{grid-column:1;grid-row:4;min-height:38px}
 #sewlyra-language-bar .sl-voice-speed-label{display:none}
 #sewlyra-voice-rate{grid-column:2;grid-row:4;width:100%;min-height:40px;font-size:14px}
 #sewlyra-voice-test{grid-column:1;grid-row:5;width:100%;min-height:43px}
 #sewlyra-voice-status{grid-column:2;grid-row:5;max-width:100%;font-size:11px}
 #sewlyra-language-feedback{grid-column:1/-1;grid-row:6}
 .sl-dialog-voice{margin:0 6px 10px;flex-wrap:wrap;gap:6px}
 .sl-dialog-voice select{flex:1 1 130px;max-width:100%;min-height:44px;font-size:16px}
 .sl-dialog-voice button{min-height:44px}
}
@media(max-width:340px){#sewlyra-language-bar{padding:7px 6px;gap:4px}#sewlyra-voice-test{font-size:11px;padding:7px 6px}#sewlyra-voice-status{font-size:10px}}
@media print{#sl-screen-tag,#sewlyra-voice-select,#sewlyra-voice-rate,#sewlyra-voice-test,#sewlyra-voice-status,.sl-voice-label,.sl-voice-on-label,.sl-voice-speed-label,.sl-dialog-voice{display:none!important}}
