
/* Japanese pronunciation controls; sibling buttons remain accessible in quizzes. */
.voice-top-trigger{border:1px solid #d9e6f6;background:#f0f7ff;color:#195aa4;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.voice-top-trigger svg{width:17px;height:17px}.voice-top-trigger:hover{background:#e4f0ff;border-color:#98c2f4}
.audio-play{display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;flex:0 0 auto;width:28px;height:28px;min-width:28px;padding:5px;border:1px solid #d1e1f6;border-radius:9px;color:#145ab0;background:#eff6ff;cursor:pointer;margin-left:7px;transition:background .15s,color .15s,transform .15s}
.audio-play svg{width:15px;height:15px}.audio-play:hover{background:#d7eafd;color:#0a458e;transform:translateY(-1px)}.audio-play:focus-visible{outline:3px solid #61a9f4;outline-offset:2px}.audio-play.is-speaking{background:#1d6bca;color:white;border-color:#1d6bca;box-shadow:0 0 0 3px #b6d8fb}
.jp-inline-pair .audio-play{width:22px;height:22px;min-width:22px;padding:4px;margin:4px 0 0}.jp-inline-pair .audio-play svg{width:13px;height:13px}
.jp-inline-pair{position:relative}.japanese-audio-token{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;max-width:100%;white-space:normal}.japanese-audio-token .inline-romaji{color:#1c65b3;font-size:.82em;font-weight:750}.japanese-audio-token .audio-play{width:22px;height:22px;min-width:22px;margin-left:2px;padding:4px}
.choice-row{display:flex;align-items:stretch;gap:9px;min-width:0}.choice-row>.choice{flex:1;min-width:0;width:100%}.choice-row>.choice-audio{align-self:center;width:45px;height:45px;min-width:45px;margin:0;border-radius:13px}.choice-row>.choice-audio svg{width:20px;height:20px}.choice-row>.choice.correct{background:#e8f8f1}.choice-row>.choice.incorrect{background:#fff0f1}
.phrase>.audio-play{margin-left:0}.chat .audio-play,.grammar-example .audio-play,.example .audio-play,.vocab-card .audio-play{margin:3px 0 0 8px}.data-table td.jp .audio-play{float:right;margin:0 0 0 6px}
.milestone .audio-play{margin-left:auto}.voice-overlay{position:fixed;inset:0;background:#091c35b3;z-index:350;display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px)}.voice-overlay.open{display:flex}.voice-panel{width:min(510px,100%);max-height:90vh;overflow:auto;background:white;border:1px solid #d3e4f9;box-shadow:0 28px 90px #081a3260;border-radius:22px;padding:27px;color:#223d5a}.voice-panel-head{display:flex;align-items:start;gap:8px;justify-content:space-between;margin-bottom:18px}.voice-eyebrow{font-size:10px;font-weight:850;color:#1565bd;letter-spacing:1.5px}.voice-panel h2{font-size:24px;margin:6px 0 10px;color:#122b4b}.voice-panel p{font-size:12.5px;color:#6c7f97;line-height:1.65;margin:0}.voice-close{background:#f1f5fa;border:0;border-radius:9px;padding:8px 11px;font-size:14px;cursor:pointer}.voice-field-label{display:flex;justify-content:space-between;gap:7px;font-weight:850;font-size:12px;color:#294a72;margin:15px 0 9px}.voice-select{width:100%;font:inherit;color:#233b57;border:1px solid #d5e3f4;border-radius:11px;padding:11px 12px;background:#f8fbff}.voice-quality{font-size:11px;color:#657f9e;margin-top:7px;line-height:1.5}.voice-panel input[type=range]{width:100%;accent-color:#176acf;cursor:pointer}.voice-controls{display:flex;flex-wrap:wrap;gap:9px;margin:21px 0 18px}.voice-controls .btn svg{width:17px;height:17px}.voice-panel .voice-note{background:#f1f7ff;border-left:3px solid #2279db;padding:13px 15px;border-radius:8px;font-size:11.5px;color:#56708a}.voice-panel .voice-note strong{color:#18466f}.voice-panel #voiceSpeedValue{font-weight:750;color:#1267ba}
@media(max-width:650px){.voice-top-trigger span{display:none}.voice-top-trigger{width:34px;height:34px;justify-content:center;padding:0}.voice-panel{padding:22px 18px}.voice-panel h2{font-size:21px}.choice-row{gap:7px}.choice-row>.choice-audio{width:40px;min-width:40px;height:40px}}
@media print{.audio-play,.voice-top-trigger,.voice-overlay{display:none!important}}

.search-audio-row{display:flex;align-items:center;gap:5px;border-radius:10px}.search-audio-row:hover{background:#eff6ff}.search-audio-row>.search-result{flex:1;min-width:0}.search-audio-row>.audio-play{margin:0 10px 0 2px}
