@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap";.app{min-height:100dvh;display:flex;flex-direction:column;max-width:640px;margin:0 auto;padding:1.5rem 1.25rem 2rem}.app__header{margin-bottom:1.5rem}.app__brand{display:flex;align-items:center;gap:.85rem}.app__logo{font-size:2rem;line-height:1}.app__title{margin:0;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.app__subtitle{margin:.15rem 0 0;font-size:.95rem;color:#9aa3b5}.app__main{flex:1;display:flex;flex-direction:column;gap:1.25rem}.app__controls{display:flex;justify-content:center;padding:.5rem 0 .25rem}.app__actions{display:flex;flex-direction:column;align-items:center;gap:1rem}.app__footer{margin-top:2rem;text-align:center;font-size:.8rem;color:#6b7385}.app__footer-warn{color:#f0a050;margin-top:.35rem}.setup-notice{background:#f0a0501f;border:1px solid rgba(240,160,80,.35);border-radius:12px;padding:.85rem 1rem;font-size:.9rem;line-height:1.5}.status-banner{display:flex;align-items:center;gap:.65rem;padding:.75rem 1rem;background:#1a1e28;border-radius:12px;font-size:.95rem;color:#b8c0d0;border:1px solid #252a36}.status-banner--active{border-color:#3d6fd4;background:#3d6fd41a;color:#d0dff8}.status-banner--error{border-color:#c45050;background:#c450501a;color:#f0b0b0}.status-banner__dot{width:10px;height:10px;border-radius:50%;background:#5a6275;flex-shrink:0}.status-banner--active .status-banner__dot{background:#5b9cff;animation:pulse 1.4s ease-in-out infinite}.status-banner--error .status-banner__dot{background:#e06060}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}.transcript-panel{background:#161a22;border:1px solid #252a36;border-radius:16px;padding:1.25rem;min-height:180px;display:flex;flex-direction:column;gap:1.25rem}.transcript-panel__placeholder{margin:auto;text-align:center;color:#6b7385;font-size:1rem}.transcript-block__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.4rem}.transcript-block__label{margin:0;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#6b7385}.transcript-block__copy{display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;background:transparent;border:1px solid #353d4f;border-radius:6px;color:#9aa3b5;font-size:.75rem;transition:background .15s,border-color .15s,color .15s}.transcript-block__copy:hover{background:#1e2430;border-color:#5b9cff;color:#e8eaef}.transcript-block__copy--done{border-color:#4caf8a;color:#4caf8a}.transcript-block__copy-label{line-height:1}.transcript-block--corrected .transcript-block__label{color:#5b9cff}.transcript-block__text{margin:0;font-size:1.25rem;line-height:1.55;word-break:break-word}.transcript-block__text--raw{color:#9aa3b5}.transcript-block__text--corrected{color:#f0f3f8;font-weight:500;font-size:1.4rem}.transcript-block--corrected{padding-top:1rem;border-top:1px solid #252a36}.mic-button{position:relative;display:flex;flex-direction:column;align-items:center;gap:.65rem;background:none;border:none;padding:.5rem;color:#e8eaef;min-width:120px;min-height:120px}.mic-button__ring{position:absolute;top:50%;left:50%;transform:translate(-50%,-65%);width:96px;height:96px;border-radius:50%;background:linear-gradient(145deg,#2a4a8a,#3d6fd4);transition:transform .2s,box-shadow .2s;box-shadow:0 8px 32px #3d6fd459}.mic-button:hover:not(:disabled) .mic-button__ring{transform:translate(-50%,-65%) scale(1.05);box-shadow:0 12px 40px #3d6fd473}.mic-button--recording .mic-button__ring{background:linear-gradient(145deg,#8a2a2a,#d43d3d);box-shadow:0 8px 32px #d43d3d66;animation:record-pulse 1.2s ease-in-out infinite}.mic-button--busy .mic-button__ring{background:linear-gradient(145deg,#3a3a4a,#5a5a6a);box-shadow:none}.mic-button__icon{position:relative;z-index:1;width:40px;height:40px;margin-top:18px;display:flex;align-items:center;justify-content:center}.mic-button__icon svg{width:36px;height:36px}.mic-button__label{position:relative;z-index:1;font-size:1rem;font-weight:600}@keyframes record-pulse{0%,to{transform:translate(-50%,-65%) scale(1)}50%{transform:translate(-50%,-65%) scale(1.08)}}.speak-button{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem 1.25rem;background:#1e2430;border:1px solid #353d4f;border-radius:999px;color:#c8d0e0;font-size:.95rem;font-weight:500;transition:background .15s,border-color .15s}.speak-button:hover:not(:disabled){background:#252c3a;border-color:#5b9cff;color:#e8eaef}.speak-button--active{background:#5b9cff26;border-color:#5b9cff;color:#5b9cff}.toggle{display:flex;align-items:center;gap:.55rem;font-size:.9rem;color:#9aa3b5;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle input{width:18px;height:18px;accent-color:#5b9cff;cursor:pointer}@media(min-width:480px){.app{padding:2rem 1.5rem 2.5rem}.transcript-block__text--corrected{font-size:1.55rem}}.type-input{background:#161a22;border:1px solid #252a36;border-radius:16px;padding:1rem 1.1rem}.type-input__label{display:block;font-size:.82rem;font-weight:600;color:#9aa3b5;margin-bottom:.6rem;letter-spacing:.02em}.type-input__row{display:flex;gap:.6rem;align-items:flex-end}.type-input__field{flex:1;background:#0f1117;border:1px solid #353d4f;border-radius:10px;padding:.65rem .85rem;color:#e8eaef;font-family:inherit;font-size:1rem;line-height:1.55;resize:none;transition:border-color .15s}.type-input__field::placeholder{color:#4a5265}.type-input__field:focus{outline:none;border-color:#5b9cff}.type-input__field:disabled{opacity:.5;cursor:not-allowed}.type-input__send{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:linear-gradient(145deg,#2a4a8a,#3d6fd4);border:none;color:#fff;transition:opacity .15s,transform .1s}.type-input__send:hover:not(:disabled){opacity:.9;transform:scale(1.05)}.type-input__send:disabled{opacity:.35;cursor:not-allowed;transform:none}.voice-selector{border:1px solid #252a36;border-radius:12px;overflow:hidden}.voice-selector__toggle{width:100%;background:#161a22;border:none;padding:.7rem 1rem;text-align:left;color:#9aa3b5;font-size:.88rem;font-weight:500;cursor:pointer;display:flex;justify-content:space-between;transition:background .15s}.voice-selector__toggle:hover{background:#1a1f2b;color:#e8eaef}.voice-selector__panel{background:#0f1117;padding:.85rem 1rem;border-top:1px solid #252a36;display:flex;flex-direction:column;gap:.5rem}.voice-selector__select{width:100%;background:#1a1e28;border:1px solid #353d4f;border-radius:8px;padding:.55rem .75rem;color:#e8eaef;font-family:inherit;font-size:.9rem}.voice-selector__warn{margin:0;font-size:.85rem;color:#f0a050;line-height:1.6}.voice-selector__hint{margin:0;font-size:.75rem;color:#6b7385}.transcript-block__actions{display:flex;gap:.4rem;align-items:center}.tb-action-btn{display:inline-flex;align-items:center;gap:.28rem;padding:.22rem .55rem;background:transparent;border:1px solid #353d4f;border-radius:6px;color:#9aa3b5;font-size:.75rem;font-family:inherit;transition:background .15s,border-color .15s,color .15s;white-space:nowrap}.tb-action-btn:hover:not(:disabled){background:#1e2430;border-color:#5b9cff;color:#e8eaef}.tb-action-btn--done{border-color:#4caf8a;color:#4caf8a}.transcript-edit{display:flex;flex-direction:column;gap:.5rem;margin-top:.25rem}.transcript-edit__area{width:100%;background:#0f1117;border:1.5px solid #5b9cff;border-radius:10px;padding:.7rem .9rem;color:#f0f3f8;font-family:inherit;font-size:1.25rem;line-height:1.55;resize:vertical;min-height:72px;box-sizing:border-box}.transcript-edit__area:focus{outline:none;border-color:#7eb8ff}.transcript-edit__hint{margin:0;font-size:.75rem;color:#6b7385}.transcript-edit__btns{display:flex;gap:.6rem;flex-wrap:wrap}.transcript-edit__save{flex:1;padding:.55rem 1rem;background:linear-gradient(135deg,#2a4a8a,#3d6fd4);border:none;border-radius:8px;color:#fff;font-family:inherit;font-size:.9rem;font-weight:600;transition:opacity .15s}.transcript-edit__save:hover:not(:disabled){opacity:.88}.transcript-edit__save:disabled{opacity:.45;cursor:not-allowed}.transcript-edit__cancel{padding:.55rem 1rem;background:transparent;border:1px solid #353d4f;border-radius:8px;color:#9aa3b5;font-family:inherit;font-size:.9rem;transition:border-color .15s,color .15s}.transcript-edit__cancel:hover{border-color:#9aa3b5;color:#e8eaef}.transcript-block__save-msg{margin:.25rem 0 0;font-size:.82rem;color:#4caf8a}.corrections-db{border:1px solid #252a36;border-radius:12px;overflow:hidden}.corrections-db__toggle{width:100%;background:#161a22;border:none;padding:.7rem 1rem;text-align:left;color:#9aa3b5;font-size:.88rem;font-weight:500;font-family:inherit;cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:background .15s}.corrections-db__toggle:hover{background:#1a1f2b;color:#e8eaef}.corrections-db__toggle span:last-child{margin-left:auto}.corrections-db__panel{background:#0f1117;padding:.85rem 1rem;border-top:1px solid #252a36;display:flex;flex-direction:column;gap:.65rem}.corrections-db__loading,.corrections-db__empty,.corrections-db__info{margin:0;font-size:.85rem;color:#6b7385;line-height:1.6}.corrections-db__info{color:#9aa3b5}.corrections-db__table-wrap{overflow-x:auto;border-radius:8px;border:1px solid #252a36}.corrections-db__table{width:100%;border-collapse:collapse;font-size:.88rem}.corrections-db__table th{background:#1a1e28;color:#6b7385;font-weight:600;text-align:left;padding:.5rem .75rem;border-bottom:1px solid #252a36;white-space:nowrap}.corrections-db__table td{padding:.5rem .75rem;border-bottom:1px solid #1a1e28;vertical-align:middle}.corrections-db__table tr:last-child td{border-bottom:none}.corrections-db__raw{color:#9aa3b5;font-size:.95rem}.corrections-db__corrected{color:#f0f3f8;font-weight:500;font-size:.95rem}.corrections-db__count{color:#6b7385;text-align:center}.corrections-db__delete{background:transparent;border:1px solid #353d4f;border-radius:5px;color:#9aa3b5;padding:.2rem .45rem;font-size:.75rem;transition:border-color .15s,color .15s,background .15s}.corrections-db__delete:hover:not(:disabled){border-color:#c45050;color:#f0b0b0;background:#c4505014}.corrections-db__refresh{align-self:flex-start;background:transparent;border:1px solid #353d4f;border-radius:6px;color:#9aa3b5;font-family:inherit;font-size:.8rem;padding:.3rem .65rem;transition:border-color .15s,color .15s}.corrections-db__refresh:hover{border-color:#5b9cff;color:#e8eaef}.app__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.test-open-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;background:linear-gradient(135deg,#2a4a8a,#3d6fd4);border:none;border-radius:10px;color:#fff;font-family:inherit;font-size:.88rem;font-weight:600;white-space:nowrap;transition:opacity .15s,transform .1s}.test-open-btn:hover{opacity:.88;transform:scale(1.03)}.test-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f1117;z-index:100;overflow-y:auto;display:flex;justify-content:center;padding:0 0 2rem}.test-mode{width:100%;max-width:640px;padding:1.25rem;display:flex;flex-direction:column;gap:0}.test-mode__header{display:flex;align-items:center;justify-content:space-between;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid #252a36}.test-mode__title{margin:0;font-size:1.3rem;font-weight:700;color:#e8eaef}.test-mode__close{background:transparent;border:1px solid #353d4f;border-radius:8px;color:#9aa3b5;font-size:1rem;padding:.3rem .6rem;transition:border-color .15s,color .15s}.test-mode__close:hover{border-color:#c45050;color:#f0b0b0}.test-mode__section{display:flex;flex-direction:column;gap:1.1rem}.test-mode__desc{margin:0;font-size:1rem;color:#b8c0d0;line-height:1.7;background:#161a22;border:1px solid #252a36;border-radius:12px;padding:1rem 1.1rem}.test-mode__desc--small{font-size:.85rem;color:#6b7385;background:transparent;border:none;padding:0}.test-mode__progress{display:flex;align-items:center;gap:.6rem;font-size:.85rem;color:#6b7385}.test-mode__diff{margin-left:auto;font-size:.8rem}.test-mode__phase-badge{display:inline-block;padding:.35rem .75rem;background:#3d6fd426;border:1px solid rgba(61,111,212,.35);border-radius:999px;font-size:.8rem;font-weight:600;color:#8ab4ff;margin-bottom:.5rem}.test-mode__word-pair{display:flex;align-items:stretch;gap:.75rem;background:#161a22;border:1.5px solid #3d6fd4;border-radius:16px;padding:1rem 1.1rem}.test-mode__word-en,.test-mode__word-hi{flex:1;display:flex;flex-direction:column;align-items:center;gap:.35rem;font-size:1.5rem;font-weight:600;color:#f0f3f8}.test-mode__word-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#6b7385}.test-mode__word-divider{display:flex;align-items:center;color:#353d4f;font-size:1.25rem}.test-mode__results-heading{margin:1rem 0 .5rem;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7385}.test-mode__question{background:#161a22;border:1.5px solid #3d6fd4;border-radius:16px;padding:1.25rem 1.4rem;font-size:1.6rem;font-weight:600;color:#f0f3f8;line-height:1.5;text-align:center}.test-mode__mic-state{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.9rem 1rem;background:#161a22;border:1px solid #252a36;border-radius:12px;font-size:.95rem;color:#9aa3b5;min-height:52px}.test-mode__mic-state--active{border-color:#d43d3d;background:#d43d3d14;color:#f0b0b0}.test-mode__rec-dot{width:10px;height:10px;border-radius:50%;background:#d43d3d;animation:pulse 1.2s ease-in-out infinite;flex-shrink:0}.test-mode__countdown{font-size:1.4rem;font-weight:700;color:#5b9cff}.test-mode__score{display:flex;flex-direction:column;align-items:center;gap:.3rem;font-size:3rem;font-weight:700;text-align:center;padding:.5rem 0}.test-mode__score-label{font-size:1.1rem;font-weight:500;color:#e8eaef}.test-mode__compare{background:#161a22;border:1px solid #252a36;border-radius:12px;padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.7rem}.test-mode__compare-row{display:flex;flex-direction:column;gap:.2rem}.test-mode__compare-label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#6b7385}.test-mode__compare-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.test-mode__edit{margin-top:.15rem}.test-mode__edit-area{font-size:1.05rem;min-height:92px}.test-mode__compare-expected{font-size:1.1rem;color:#4caf8a;font-weight:500}.test-mode__compare-heard{font-size:1rem;color:#9aa3b5}.test-mode__compare-corrected{font-size:1.05rem;color:#5b9cff;font-weight:500}.test-mode__learn-note{margin:0;font-size:.82rem;color:#6b7385;background:#5b9cff0f;border:1px solid rgba(91,156,255,.15);border-radius:8px;padding:.55rem .8rem}.test-mode__final-score{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:1rem 0}.test-mode__final-pct{font-size:4rem;font-weight:700;background:linear-gradient(135deg,#5b9cff,#4caf8a);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.test-mode__final-label{font-size:1.2rem;font-weight:600;color:#e8eaef}.test-mode__results-list{background:#161a22;border:1px solid #252a36;border-radius:12px;overflow:hidden}.test-mode__result-row{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;border-bottom:1px solid #1a1e28;font-size:.95rem}.test-mode__result-row:last-child{border-bottom:none}.test-mode__result-num{color:#6b7385;flex-shrink:0;width:1.4rem}.test-mode__result-text{flex:1;color:#b8c0d0}.test-mode__result-score{font-weight:700;font-size:1rem;flex-shrink:0}.test-mode__btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.75rem 1.4rem;border-radius:10px;font-family:inherit;font-size:1rem;font-weight:600;transition:opacity .15s,transform .1s;border:none;cursor:pointer}.test-mode__btn:disabled{opacity:.4;cursor:not-allowed}.test-mode__btn--primary{background:linear-gradient(135deg,#2a4a8a,#3d6fd4);color:#fff}.test-mode__btn--primary:hover:not(:disabled){opacity:.88}.test-mode__btn--secondary{background:#1e2430;border:1px solid #353d4f;color:#c8d0e0}.test-mode__btn--secondary:hover:not(:disabled){border-color:#5b9cff;color:#e8eaef}.test-mode__btn--stop{background:#d43d3d33;border:1px solid #d43d3d;color:#f0b0b0;font-size:.88rem;padding:.35rem .75rem;border-radius:8px}.test-mode__done-btns{display:flex;gap:.75rem;flex-wrap:wrap}.test-mode__status{margin:0;font-size:.9rem;color:#9aa3b5;text-align:center}.scenario-input{background:#161a22;border:1px solid #252a36;border-radius:16px;padding:1rem 1.1rem}.scenario-input__header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:.6rem}.scenario-input__label{font-size:.82rem;font-weight:600;color:#9aa3b5;letter-spacing:.02em}.scenario-input__help{font-size:.75rem;color:#6b7385}.scenario-input__controls{display:flex;gap:.6rem;align-items:center;margin-bottom:.75rem}.scenario-input__text{flex:1;background:#0f1117;border:1px solid #353d4f;border-radius:10px;padding:.65rem .85rem;color:#e8eaef;font-family:inherit;font-size:.95rem;transition:border-color .15s}.scenario-input__text:focus{outline:none;border-color:#5b9cff}.scenario-input__mic{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:#1e2430;border:1px solid #353d4f;color:#c8d0e0;font-size:1.1rem;cursor:pointer;transition:all .2s}.scenario-input__mic:hover:not(:disabled){background:#252c3a;border-color:#5b9cff}.scenario-input__mic--recording{background:#c450501a;border-color:#c45050;color:#f0b0b0;animation:record-pulse 1.2s infinite}.scenario-input__presets{display:flex;gap:.5rem;flex-wrap:wrap}.scenario-input__preset-btn{background:transparent;border:1px solid #353d4f;border-radius:6px;padding:.25rem .6rem;color:#9aa3b5;font-size:.75rem;font-family:inherit;cursor:pointer;transition:all .15s}.scenario-input__preset-btn:hover:not(:disabled){background:#1e2430;border-color:#5b9cff;color:#e8eaef}.scenario-input__preset-btn--clear{margin-left:auto;border-color:#c45050;color:#c45050}.scenario-input__preset-btn--clear:hover:not(:disabled){background:#c450501a}.scenario-input__status,.scenario-input__error{font-size:.8rem;color:#b8c0d0;margin-bottom:.5rem}.scenario-input__error{color:#f0b0b0}*,*:before,*:after{box-sizing:border-box}html{font-size:16px;-webkit-text-size-adjust:100%}body{margin:0;min-height:100dvh;font-family:Noto Sans Devanagari,system-ui,-apple-system,sans-serif;background:#0f1117;color:#e8eaef;line-height:1.6}#root{min-height:100dvh}button{font-family:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:#7eb8ff}code{background:#ffffff14;padding:.15em .4em;border-radius:4px;font-size:.9em}:focus-visible{outline:3px solid #5b9cff;outline-offset:3px}
