.voice-panel{border:2px solid #acc8b9;border-radius:22px;padding:24px;margin:28px 0;background:#f5faf5}.voice-panel label{display:block;margin:12px 0;line-height:1.6}.voice-panel input[type=checkbox]{width:22px;height:22px;vertical-align:middle}.voice-panel audio{display:block;width:100%;max-width:580px;margin:12px 0}.voice-panel button{min-height:44px;margin:4px}.voice-record{padding:18px 0;border-top:1px solid #c9d7cf;overflow-wrap:anywhere}.voice-record p{white-space:pre-wrap}.voice-clock{font-size:1.8rem;font-variant-numeric:tabular-nums}.voice-panel details{margin:12px 0}.voice-panel [hidden]{display:none!important}@media(max-width:600px){.voice-panel{padding:16px}.voice-panel .actions{display:flex;flex-wrap:wrap}.voice-panel button{max-width:100%}}@media print{.voice-panel{display:none}}
/* One clear action, matching the learning garden's rounded, playful cards. */
.voice-panel{background:linear-gradient(145deg,#fff9ed,#f0f9ef);border:2px solid #d8e9c9;box-shadow:0 8px 24px #346b3810;border-radius:28px}.voice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.voice-heading h2{margin:0;font-size:1.45rem}.voice-heading button{flex-shrink:0;background:#fff;border-radius:24px}.voice-stage{text-align:center;padding:8px 0 20px}.voice-panel .voice-main{display:block;min-height:90px;width:min(100%,320px);margin:14px auto;border:0;border-radius:28px;background:#487b47;color:#fff;font-size:1.55rem;font-weight:750;box-shadow:0 6px 0 #315a30;touch-action:manipulation}.voice-panel .voice-main:hover{background:#396a38}.voice-panel .voice-main:active{transform:translateY(3px);box-shadow:0 3px 0 #315a30}.voice-panel .voice-main.is-recording{background:#ca514f;box-shadow:0 6px 0 #933a39}.voice-panel button:disabled{opacity:.5;cursor:default}.voice-clock{font-size:1.4rem;min-height:2em;margin:8px 0;color:#466044;font-weight:650}.voice-panel #voice-status{max-width:40em;margin:20px auto 10px;min-height:1.8em;font-size:1.05rem;line-height:1.6}.voice-panel #voice-mode-note{font-size:.86rem;color:#53694c;margin:12px 0}.voice-panel progress{width:min(80%,300px);height:8px;accent-color:#6a9b54}.voice-panel #voice-recovery{text-align:center}.voice-panel details{border-top:1px solid #d8e2cb}.voice-panel #voice-parent-settings{font-size:.86rem;color:#56634e}.voice-panel #voice-parent-settings select{max-width:180px}.voice-panel audio{margin-inline:auto}.voice-record{background:white;padding:16px;border:1px solid #e1e8db;border-radius:20px;margin:14px 0}.voice-record h3{font-size:1rem;margin-top:0}.voice-record>p{font-size:.85rem}.voice-record button{font-size:.9rem}.voice-panel summary{min-height:44px}.voice-panel #voice-history-panel{margin-bottom:0}@media(max-width:600px){.voice-panel{padding:18px 14px}.voice-heading h2{font-size:1.2rem}.voice-heading button{font-size:.85rem;padding:8px 11px}.voice-stage{padding-bottom:8px}.voice-panel .voice-main{min-height:88px;font-size:1.4rem}}
/* Keep the answer action attached to its question, rather than a separate form. */
#practice{scroll-margin-top:12px}#practice .voice-panel{margin:12px 0;padding:14px;border-radius:22px;box-shadow:none}#practice .voice-heading h2{font-size:1rem}#practice .voice-heading button{min-height:44px;padding:6px 12px}#practice .voice-clock{font-size:1.1rem;min-height:1.6em;margin:0}#practice .voice-stage{padding:0}#practice .voice-main{min-height:70px;margin:8px auto;font-size:1.35rem;max-width:290px;border-radius:22px}#practice #voice-status{margin:12px auto 6px;font-size:.9rem}#practice #voice-mode-note{font-size:.75rem;margin:6px 0}#practice .voice-panel details{margin:4px 0 0;padding-top:2px}#practice .voice-panel summary{padding:4px 0;min-height:36px;font-size:.85rem}#practice .question-row{margin:12px 0}#practice #speech-status:empty{display:none}#practice #material:empty{display:none}#practice #material+.actions:has(button[hidden]):not(:has(button:not([hidden]))){display:none}#practice>.actions{margin-bottom:0}#practice .card-top{font-size:.75rem}@media(max-width:600px){main{padding:12px}#practice{padding:16px;border-radius:24px}#practice #prompt{font-size:1.35rem;line-height:1.4}#practice .question-row{gap:8px}#practice .read{padding:8px;min-width:44px}#practice>.actions{gap:6px;display:grid;grid-template-columns:1fr 1.3fr 1fr}#practice>.actions button{padding:8px 4px;font-size:.88rem}#practice .voice-panel{padding:10px}}
#voice-result{padding:12px;border-radius:16px;background:white;border:1px solid #d8e2cb;margin:8px 0}#voice-result h3{margin:0;font-size:1.05rem}#voice-result p{font-size:.95rem;margin:8px 0}#voice-result small{display:block;color:#61715d;font-size:.75rem}

/* B: question and recorder beside a persistent, multi-record history. */
.speaking-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);gap:20px;align-items:start;margin:20px 0}.speaking-workspace>#practice{min-width:0;margin:0}.voice-history-sidebar{min-width:0;background:#f5f2ff;border:2px solid #ded5f0;border-radius:26px;padding:18px;position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}.voice-history-heading{display:flex;gap:8px;align-items:center;justify-content:space-between}.voice-history-heading h2{font-size:1.1rem;margin:0}.voice-history-sidebar>p{font-size:.85rem;color:#61715d}.voice-history-sidebar button{min-height:44px}.voice-history-sidebar audio{width:100%;margin:8px 0}.voice-record>summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:48px}.voice-record>summary strong{flex:1 1 65%;line-height:1.5}.voice-record>summary small{flex:1 1 60%;font-size:.72rem;color:#66745e}.voice-score{border-radius:14px;padding:6px 10px;background:#e7f3cf;color:#385626;font-weight:800}.voice-model-info{display:block;font-size:.7rem;line-height:1.6;color:#647260;overflow-wrap:anywhere}.voice-record[open]>summary{border-bottom:1px solid #e4e8df;padding-bottom:10px;margin-bottom:12px}.voice-record-status{font-size:.85rem;color:#426354}.voice-history-sidebar .voice-record{margin:12px 0}.voice-history-sidebar p{line-height:1.6}.voice-history-sidebar details details{padding:8px 0}
@media(max-width:850px){.speaking-workspace{grid-template-columns:minmax(0,1fr)}.voice-history-sidebar{position:static;max-height:none;overflow:visible}.voice-history-heading h2{font-size:1rem}}@media print{.voice-history-sidebar{display:none}.speaking-workspace{display:block}}
