.speech-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:var(--radius-10px);background:var(--palette-clear);color:var(--legacy-hex-526783);font:inherit;cursor:pointer;touch-action:manipulation;flex:0 0 auto;box-shadow:none;-webkit-tap-highlight-color:var(--palette-clear)}
.speech-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;transition:color .16s ease,transform .16s ease}
.speech-button:hover,.speech-button.is-speaking{background:var(--palette-clear);color:var(--legacy-hex-2459a6)}
.speech-button:hover .speech-icon{transform:scale(1.06)}
.speech-button:focus-visible{outline:2px solid var(--legacy-hex-5683c5);outline-offset:2px}
.speech-button-full{padding:8px 4px;color:var(--legacy-hex-244b83);font-weight:600}
.card-speech{position:absolute;top:48px;right:14px;z-index:2}
.back .card-speech{color:var(--palette-white)}
.lesson-language-heading{display:flex;align-items:flex-start;gap:10px}
.lesson-language-heading .lesson-cn{flex:1;min-width:0;margin-top:0}
.speech-status{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:min(90vw,640px);padding:10px 16px;border-radius:var(--radius-btn);background:var(--legacy-hex-17315b);color:var(--palette-white);z-index:1000;font-size:14px;box-shadow:var(--shadow-speech-15);pointer-events:none}
.speech-status:empty{display:none}

.chinese-voice-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:var(--radius-dialog);background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.chinese-voice-dialog label{display:block;margin:14px 0 6px;font-weight:600}
.chinese-voice-dialog select{width:100%;min-height:44px;font:inherit;font-size:16px;color:var(--ink);background:var(--surface);border:1px solid var(--line-dark);border-radius:var(--radius-btn);padding:8px}
.chinese-voice-dialog progress{width:100%;margin-top:16px}
.chinese-voice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chinese-voice-actions button{min-height:44px}
.chinese-voice-dialog [hidden]{display:none!important}
.chinese-voice-dialog{margin:auto}
.chinese-voice-actions button{padding:10px 14px;border:1px solid var(--button-border);border-radius:var(--radius-btn);background:var(--button-bg);color:var(--button-text);font:inherit;cursor:pointer}
#chineseVoiceApply{background:var(--button-active-bg);color:var(--button-active-text)}
.chinese-voice-actions button:disabled{background:var(--button-disabled-bg);color:var(--button-disabled-text);cursor:default}
