.oral-dialog{--oral-ink:#18181b;--oral-secondary:#6b7280;--oral-muted:#9ca3af;--oral-line:#e7e7ea;--oral-soft:#f4f4f5;--oral-wave:#d4d4d8;--oral-good:#16a34a;--oral-mid:#d97706;--oral-bad:#dc2626;box-sizing:border-box;width:min(560px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px 28px 22px;border:0;border-radius:20px;background:#fff;color:var(--oral-ink);font:14px/1.5 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 24px 70px #0004}
.oral-dialog *, .oral-dialog *::before,.oral-dialog *::after{box-sizing:border-box}.oral-dialog::backdrop{background:#0007}.oral-dialog [hidden]{display:none!important}.oral-grab{display:none}
.oral-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.oral-dialog h2{margin:0;font-size:17px;font-weight:700;letter-spacing:.02em}.oral-dialog button{font:inherit;cursor:pointer;color:inherit;border:1px solid var(--oral-line);background:#fff;padding:0}.oral-dialog button:disabled{cursor:default;opacity:.5}.oral-dialog button:focus-visible,.oral-wave:focus-visible{outline:2px solid var(--or,#f0762b);outline-offset:3px}.oral-dialog [data-oral-close]{width:34px;height:34px;border-radius:50%;color:var(--oral-secondary);font-size:22px;line-height:1}.oral-dialog svg{display:block;width:14px;height:14px}
.oral-reference{font-size:26px;line-height:1.5;font-weight:500;letter-spacing:.005em;overflow-wrap:anywhere}.oral-word{display:inline-flex;flex-direction:column;align-items:center;line-height:1.25;margin-bottom:6px;vertical-align:top}.oral-word>span{padding-bottom:3px;border-bottom:3px solid var(--oral-score)}.oral-word small{font-size:11.5px;font-weight:600;line-height:15px;margin-top:3px;color:var(--oral-score);font-variant-numeric:tabular-nums}.oral-dialog .good{--oral-score:var(--oral-good)}.oral-dialog .mid{--oral-score:var(--oral-mid)}.oral-dialog .bad{--oral-score:var(--oral-bad)}.oral-zh{font-size:14px;color:var(--oral-secondary);margin:6px 0 0}
.oral-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:20px}.oral-player{border:1px solid var(--oral-line);border-radius:14px;padding:10px 12px;display:flex;align-items:center;gap:11px;min-width:0}.oral-player.is-empty{border-style:dashed}.oral-dialog .oral-play{flex:none;width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--oral-ink);color:#fff}.oral-player[data-player="mine"] .oral-play{background:var(--or,#f0762b)}.oral-player.is-empty .oral-play{background:var(--oral-soft);color:var(--oral-muted);opacity:1}.oral-player-body{flex:1;min-width:0}.oral-player-top{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--oral-secondary);margin-bottom:5px;gap:3px;white-space:nowrap}.oral-player-top b{color:var(--oral-ink);font-weight:600;font-size:13px;margin-right:6px}.oral-player.is-empty b{color:var(--oral-muted)}.oral-dialog .oral-speed{font-size:11.5px;border-radius:6px;padding:0 5px;color:var(--oral-secondary);line-height:1.2}.oral-player [data-duration]{font-variant-numeric:tabular-nums}.oral-wave{display:flex;align-items:center;gap:2px;height:24px;cursor:pointer;touch-action:manipulation}.oral-wave span{flex:1;min-width:0;border-radius:2px;background:var(--oral-wave);min-height:3px}.oral-wave span.is-played{background:var(--oral-ink)}.oral-player[data-player="mine"] .oral-wave span.is-played{background:var(--or,#f0762b)}.oral-player-hint{font-size:12px;color:var(--oral-muted);min-height:24px;display:flex;align-items:center}.oral-compare{display:flex;justify-content:flex-end;margin-top:8px}.oral-dialog [data-oral-compare]{border:0;font-size:13px;font-weight:600;padding:4px 2px}.oral-compare span{color:var(--or,#f0762b);margin-right:5px}
.oral-result:empty{display:none}.oral-result-card{display:flex;gap:26px;align-items:center;margin-top:20px;padding:18px 20px;border:1px solid var(--oral-line);border-radius:16px}.oral-ring{position:relative;width:96px;height:96px;flex:none}.oral-ring svg{width:100%;height:100%;fill:none;stroke-width:1.75}.oral-ring-track{stroke:var(--oral-soft)}.oral-ring-value{stroke:var(--oral-score);stroke-linecap:round}.oral-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.oral-ring strong{font-size:32px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}.oral-ring small{font-size:12px;color:var(--oral-secondary);margin-top:4px}.oral-metrics{flex:1;display:flex;flex-direction:column;gap:11px;min-width:0}.oral-metric{display:flex;align-items:center;gap:12px;font-size:13px}.oral-metric>span{width:44px;flex:none;color:var(--oral-secondary)}.oral-metric>div{flex:1;height:6px;border-radius:6px;background:var(--oral-soft);overflow:hidden}.oral-metric i{display:block;height:100%;border-radius:6px;background:var(--oral-ink)}.oral-metric b{width:30px;text-align:right;font-variant-numeric:tabular-nums;font-size:14px}.oral-weak{display:flex;align-items:center;gap:8px;margin-top:14px;flex-wrap:wrap}.oral-weak>span{font-size:13px;color:var(--oral-secondary);margin-right:2px}.oral-dialog [data-oral-word]{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:5px 12px 5px 6px;font-size:14px;font-weight:500}.oral-weak i{width:22px;height:22px;border-radius:50%;background:var(--oral-ink);color:#fff;display:grid;place-items:center}.oral-weak svg{width:10px;height:10px}.oral-weak b{font-size:12px;font-weight:700;color:var(--oral-score)}
/* V4: inline capture, successful reports only. */
.oral-inline,.oral-dialog{--oral-ai:linear-gradient(135deg,#f0762b,#e2452d)}
.oral-inline{width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:18px;margin:28px auto 0;box-sizing:border-box}
.oral-inline *{box-sizing:border-box}.oral-inline button{font:inherit;cursor:pointer;background:#fff;color:#6b7280}
.oral-inline kbd,.oral-dialog kbd{font:600 11px/1 system-ui,sans-serif;border:1px solid #e7e7ea;border-bottom-width:2px;border-radius:6px;padding:3px 6px;color:#6b7280;background:#fff}
.oral-entry,.oral-capsule,.oral-busypill{position:relative;background:#fff;border:0;border-radius:999px}
.oral-entry::before,.oral-capsule::before,.oral-busypill::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;background:var(--oral-ai);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.oral-inline .oral-entry{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 9px 0 6px;font-size:15px;font-weight:700}
.oral-entry:disabled{opacity:.65;cursor:wait}.oral-mic-icon{width:34px;height:34px;border-radius:50%;background:var(--oral-ai);display:grid;place-items:center;color:white}.oral-mic-icon svg{width:18px;height:18px}
.oral-gradient-text{background:var(--oral-ai);-webkit-background-clip:text;background-clip:text;color:transparent}
.oral-capsule,.oral-busypill{width:560px;max-width:100%;height:60px;display:flex;align-items:center;gap:12px;padding:0 10px;box-shadow:0 10px 28px #00000012}
.oral-inline .oral-abandon{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid #e7e7ea;display:grid;place-items:center;font-size:20px;line-height:1}
.oral-viz{display:flex;flex:1;min-width:0;height:40px;align-items:center;justify-content:center;gap:3px;overflow:hidden}.oral-viz i{display:block;width:5px;flex:0 1 5px;min-width:1px;height:4px;border-radius:99px;background:var(--oral-ai);transition:height 90ms linear}
.oral-live-time{flex:none;display:inline-flex;align-items:center;gap:6px;font:13px/1.2 system-ui;color:#9ca3af;font-variant-numeric:tabular-nums}.oral-live-time>i{width:7px;height:7px;border-radius:50%;background:#dc2626;animation:oral-blink 1s infinite}
.oral-inline .oral-finish{display:inline-flex;align-items:center;gap:6px;flex:none;height:32px;padding:0 12px;border:1px solid #e7e7ea;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap}.oral-finish kbd{font-size:10px;padding:2px 4px}
.oral-auto-hint{font-size:12.5px;color:#9ca3af;font-weight:400}.oral-busypill{justify-content:center;font-size:15px;font-weight:700;box-shadow:none}
.oral-spinner{width:22px;height:22px;flex:none;border:3px solid #f4f4f5;border-top-color:#f0762b;border-right-color:#e2452d;border-radius:50%;animation:oral-spin 1s linear infinite}
.oral-shimmer{width:160px;max-width:28%;height:6px;background:#f4f4f5;border-radius:99px;overflow:hidden}.oral-shimmer::after{content:"";display:block;width:32%;height:100%;background:var(--oral-ai);border-radius:inherit;animation:oral-flow 1.4s ease-in-out infinite alternate}
.oral-reading-sentence{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:8px 16px;font-size:30px;line-height:1.6;max-width:100%;overflow:hidden}.oral-reading-sentence>span{border-bottom:2px solid #d4d4d8;overflow-wrap:anywhere;max-width:100%}.oral-reading-sentence::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(240,118,43,.09),transparent);width:30%;animation:oral-scan 2.4s ease-in-out infinite alternate}
.oral-dialog{padding:24px 24px 18px;border-radius:22px;overflow-x:hidden;background:#fff;position:fixed}.oral-dialog::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--oral-ai)}
.oral-dialog header{margin-bottom:16px}.oral-dialog h2{display:flex;align-items:center;gap:8px;font-size:16px}.oral-spark{color:#f0762b}.oral-spark svg{width:18px;height:18px}.oral-dialog [data-oral-close]{width:34px;height:34px}
.oral-result-card{margin:0 0 16px;padding:0;border:0;gap:24px}.oral-ring-value{stroke:url(#oral-ring-gradient)}.oral-dialog .oral-word{border:0;border-radius:0;padding:0;display:inline-flex;flex-direction:column;gap:0;font-size:inherit;font-weight:500;min-height:40px;--oral-score:#d4d4d8}.oral-dialog .oral-word.good{--oral-score:var(--oral-good)}.oral-dialog .oral-word.mid{--oral-score:var(--oral-mid)}.oral-dialog .oral-word.bad{--oral-score:var(--oral-bad)}
.oral-reference{font-size:23px}.oral-coach{display:flex;gap:12px;border:1px solid var(--oral-line);border-radius:14px;padding:14px;margin:12px 0}.oral-ai-icon{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--oral-ai);color:white}.oral-ai-icon svg{width:18px;height:18px}.oral-coach>div{min-width:0}.oral-coach strong{font-size:13px}.oral-coach p{font-size:13px;line-height:1.7;margin:3px 0 7px;overflow-wrap:anywhere}.oral-em{color:#e2452d}.oral-dialog .oral-coach [data-oral-word]{font-size:12px;padding:4px 9px;border:1px solid var(--oral-line);border-radius:99px;margin:0 5px 0 0;gap:5px;display:inline-flex}.oral-pair{margin-top:14px}
.oral-status{font-size:12px;color:var(--oral-secondary);margin:8px 0}.oral-status:empty{display:none}.oral-status.is-error{color:var(--oral-bad)}
.oral-actions{display:flex;align-items:center;gap:8px;margin-top:16px}.oral-actions>[data-oral-best]{flex:1;font-size:11.5px;color:var(--oral-muted)}.oral-dialog .oral-actions button{height:38px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:600;border-radius:10px;white-space:nowrap}.oral-dialog [data-oral-next]{background:var(--oral-ink);color:white}.oral-dialog [data-oral-next] kbd{background:transparent;color:inherit;border-color:#666}
html[data-device-layout="phone"] .oral-inline{margin-top:24px;gap:16px}html[data-device-layout="phone"] .oral-inline kbd,html[data-device-layout="phone"] .oral-dialog kbd,html[data-device-layout="phone"] [data-oral-best]{display:none}
html[data-device-layout="phone"] .oral-capsule,html[data-device-layout="phone"] .oral-busypill{height:56px;width:100%;gap:8px;padding:0 8px}html[data-device-layout="phone"] .oral-viz{gap:2px}html[data-device-layout="phone"] .oral-viz i{width:4px;flex-basis:4px}html[data-device-layout="phone"] .oral-finish{padding:0 10px}
html[data-device-layout="phone"] .oral-reading-sentence{font-size:23px;gap:6px 12px}html[data-device-layout="phone"] .oral-dialog{inset:auto 0 0;width:100%;max-width:none;max-height:92dvh;margin:0;border-radius:22px 22px 0 0;padding:12px 16px max(18px,env(safe-area-inset-bottom))}html[data-device-layout="phone"] .oral-grab{display:block;width:40px;height:5px;border-radius:5px;background:#d4d4d8;margin:0 auto 10px}html[data-device-layout="phone"] .oral-dialog header{margin-bottom:14px}html[data-device-layout="phone"] .oral-dialog h2{font-size:15px}
html[data-device-layout="phone"] .oral-result-card{gap:16px}html[data-device-layout="phone"] .oral-reference{font-size:20px}html[data-device-layout="phone"] .oral-pair{gap:8px}html[data-device-layout="phone"] .oral-player{padding:9px 8px;gap:6px}html[data-device-layout="phone"] .oral-player-top{font-size:11px}html[data-device-layout="phone"] .oral-player-top b{font-size:12px;margin-right:3px}html[data-device-layout="phone"] .oral-actions button{flex:1;height:40px}html[data-device-layout="phone"] .oral-metric{gap:6px}html[data-device-layout="phone"] .oral-coach{padding:12px;gap:10px}
@media(pointer:coarse){.oral-inline .oral-abandon,.oral-inline .oral-finish,.oral-dialog [data-oral-close],.oral-dialog .oral-play,.oral-dialog .oral-speed,.oral-dialog [data-oral-compare],.oral-dialog .oral-coach [data-oral-word]{min-width:40px;min-height:40px}}
@keyframes oral-spin{to{transform:rotate(360deg)}}@keyframes oral-blink{50%{opacity:.3}}@keyframes oral-flow{to{transform:translateX(212%)}}@keyframes oral-scan{from{left:-30%}to{left:100%}}
@media(prefers-reduced-motion:reduce){.oral-viz i{transition:none}.oral-spinner,.oral-live-time>i,.oral-shimmer::after,.oral-reading-sentence::after{animation:none}}

.dictation-card:has(.oral-inline){row-gap:28px}.dictation-card .oral-inline{margin-top:0}

.oral-inline,.oral-reading-sentence{font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}

.oral-inline .oral-entry:hover,.oral-inline .oral-entry:focus,.oral-inline .oral-entry:active{background:#fff}
.oral-coach>div{flex:1}.oral-coach-item{padding-top:10px}.oral-coach-item+.oral-coach-item{border-top:1px solid var(--oral-line);margin-top:12px;padding-top:12px}.oral-coach-evidence{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.oral-coach-word{font-size:19px;font-weight:600;overflow-wrap:anywhere}.oral-coach-word em{font-style:normal;color:#dc2626;border-bottom:3px solid #dc2626}.oral-phone{font-size:13px;line-height:1.4;color:#dc2626;border:1px solid #dc2626;border-radius:7px;padding:1px 7px}.oral-coach-low{--coach-color:#dc2626}.oral-coach-mid{--coach-color:#d97706}.oral-word-score{font-size:12px;font-weight:600;color:var(--coach-color);border:1px solid currentColor;border-radius:6px;padding:1px 5px}.oral-coach-level{font-size:12.5px;font-weight:700;color:var(--coach-color)}.oral-coach-item .oral-phone{color:var(--coach-color);border-color:currentColor}.oral-coach-item p{font-size:14px;margin:7px 0 9px}.oral-coach-listen{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.oral-dialog .oral-coach-listen button{font-size:12px;padding:5px 9px;min-height:40px;border:1px solid var(--oral-line);border-radius:20px;margin:0}.oral-coach-listen [data-oral-segment] span{color:#f0762b}
html[data-device-layout="phone"] .dictation-card .oral-inline{margin-top:0}
html[data-device-layout="phone"] .dictation-stage .dictation-card.oral-active{align-self:center;margin-top:0}

/* Keep the inline entry immediately below the English answer after a correct attempt. */
.dictation-card:has(>.oral-inline) .review-answer-analysis{display:flex;flex-direction:column;gap:28px;padding-bottom:0}
.dictation-card:has(>.oral-inline) .review-answer-analysis .review-translation{order:-1;margin:0 auto}
.dictation-card:has(>.oral-inline) .review-answer-analysis .answer-cards{margin-bottom:0}
