*{box-sizing:border-box}body{margin:0;background:#f8fafc;color:#0f172a;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button{border:0;background:#f1f5f9;color:#475569;padding:11px 16px;border-radius:12px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.97)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}button.primary,.segmented button.active,.filters button.active{background:#2563eb;color:#fff}h1,h2,p{margin:0}h2{font-size:16px}p{line-height:1.6}.quiet{color:#64748b}.small{font-size:12px}[hidden]{display:none!important}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brand-mark{display:grid;place-items:center;background:#2563eb;color:#fff;width:44px;height:44px;border-radius:14px;font-size:27px;font-weight:800}.brand strong{font-size:22px}.brand p{font-size:10px;color:#64748b;letter-spacing:1.2px;margin-top:3px}.brand p span{letter-spacing:0}.header-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.prototype{font-size:11px;color:#64748b}.segmented{display:flex;background:#f1f5f9;border-radius:14px;padding:4px;gap:4px}.segmented button{padding:9px 14px;font-size:12px}.nav-caption{display:flex;justify-content:space-between;padding:22px 4px 12px;color:#64748b;font-size:12px}.hiw-compact-list>button{padding:15px 12px;flex-wrap:nowrap}.nav-foot{color:#94a3b8;font-size:11px;padding:20px 4px}.page-intro{width:100%;display:flex;align-items:center;justify-content:space-between;margin:4px 0 23px;gap:10px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#94a3b8}h1{font-size:23px;margin-top:6px}h1 span{font-size:14px;color:#64748b;font-weight:400;margin-left:10px}.page-intro>.quiet{font-size:11px}.exercise{width:100%}.question-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.number{font-size:12px;color:#64748b}.meta{display:flex;gap:8px;align-items:center;margin:14px 0 25px;font-size:11px}.tag{display:inline-block;background:#f1f5f9;color:#64748b;padding:4px 9px;border-radius:6px;font-size:11px;font-weight:400}.tag.prediction{background:#eff6ff;color:#2563eb}.reading-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.compact button{padding:5px 10px}.passage{font-size:23px;line-height:1.95;white-space:pre-wrap;margin:18px 0 29px;min-height:235px;letter-spacing:.08px;overflow-wrap:anywhere}.passage.wide{line-height:2.55}.recorder{background:white;border:1px solid #e2e8f0;border-radius:16px;padding:18px}.record-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.record-heading .quiet{font-size:11px}.status-dot{width:8px;height:8px;background:#94a3b8;border-radius:50%}.status-dot.recording{background:#ef4444}.timer{font-size:20px;font-variant-numeric:tabular-nums}.wave{height:47px;display:flex;gap:4px;align-items:center;margin:8px 0;overflow:hidden}.wave i{display:block;flex:1;min-width:2px;background:#cbd5e1;height:3px;border-radius:3px}.wave.recording i{background:#60a5fa}.actionbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px 0}.actionbar button{font-size:12px}.reference{border-top:1px solid #e2e8f0;padding-top:19px;margin-top:4px}.reference summary{cursor:pointer;font-size:12px;color:#475569;list-style:none}.reference summary span{float:right;color:#94a3b8}.reference-player{display:flex;align-items:center;gap:10px;margin-top:18px}.reference-player input{min-width:0;flex:1;accent-color:#2563eb}.reference-player select{width:auto}.reference>p{font-size:12px;margin-top:15px}.hiw-stats{margin-top:0}.statistics,.contact{padding:20px}.statistics h2{margin:12px 0 4px}.stat{border:1px solid #f1f5f9;background:#fffbeb;border-radius:14px;padding:15px;margin:14px 0}.stat>span{font-size:12px;color:#64748b}.stat p{font-size:11px;color:#64748b;margin-top:7px}.stat strong{font-size:30px;color:#0f172a;line-height:1.1;margin-right:5px}.contact{text-align:center}.contact img{width:100%;max-width:180px;margin:16px 0 5px}.contact p{font-size:11px;color:#64748b}.contact strong{display:block;color:#334155;font-size:13px}.bottom-note{display:flex;justify-content:space-between;width:100%;font-size:10px;color:#94a3b8;padding:17px 2px;gap:10px;flex-wrap:wrap}.editor-panel{background:white;border:1px solid #e2e8f0;border-radius:16px;padding:16px}.modes{width:fit-content;max-width:100%;flex-wrap:wrap;margin-bottom:18px}.editor-panel p{font-size:12px;margin-bottom:14px}textarea,input:not([type=checkbox],[type=range]),select{border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:white;color:#334155;width:100%}textarea{resize:vertical;line-height:1.8}.hiw-layout-textarea{font-size:20px;height:420px;margin-bottom:14px;padding:18px}.field-grid{display:grid;grid-template-columns:2fr 1fr;gap:15px}label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#475569}.check{flex-direction:row;align-items:center;margin:15px 0}.uploads{display:grid;grid-template-columns:1fr 2fr;gap:12px}.audio-drop{padding:14px;border:1px dashed #cbd5e1;border-radius:12px;justify-content:center;text-align:center;overflow-wrap:anywhere}.audio-drop span{color:#2563eb;font-weight:600}.audio-drop input{font-size:10px;padding:4px!important}.publishbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}.result{background:#eff6ff;border-radius:12px;padding:18px;margin-bottom:20px}.result p{font-size:13px;margin-top:10px}.compact-tools{display:flex;gap:5px;margin-bottom:10px}.compact-tools button{padding:10px 7px;font-size:11px}dialog{border:1px solid #e2e8f0;border-radius:20px;padding:24px;color:#0f172a;max-width:calc(100vw - 32px)}dialog::backdrop{background:#0f172a66}#library{margin:0;height:100dvh;max-height:100dvh;width:360px;border-radius:0;overflow-y:auto}#library header{margin-bottom:20px}.filters{display:flex;gap:6px;margin:14px 0}.filters button{font-size:12px;padding:8px 12px}.library-topic{display:block;width:100%;text-align:left;border:1px solid #e2e8f0;background:#f8fafc;margin:10px 0;padding:16px}.library-topic small{display:block;margin-top:8px;color:#64748b}.library-topic.active{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}#account p{margin:15px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:white;border-radius:12px;padding:13px 20px;box-shadow:0 6px 24px #0f172a22;max-width:calc(100vw - 32px);z-index:300;font-size:13px}
.hiw-brand>.brand{text-align:left}.hiw-stats>section:first-child:before{display:none}
@media(min-width:1450px){.hiw-shell{padding-left:48px;padding-right:48px}.hiw-main{max-width:1060px;margin:0 auto}.passage{min-height:260px}}
@media(max-width:1023px){.header-right{margin-left:0}.page-intro{margin-top:0}.hiw-stats{flex-direction:row}.statistics,.contact{width:50%}.hiw-stats>section+section{border-top:0;border-left:1px solid #e2e8f0}.nav-caption,.nav-foot{display:none}.compact-tools{margin-top:10px}.passage{min-height:0}.page-intro>.quiet{display:none}}
@media(max-width:600px){.hiw-brand{gap:14px}.header-right{width:100%;gap:8px}.prototype{width:100%;text-align:left}.header-right>button{margin-left:auto;padding:10px;font-size:12px}h1{font-size:20px}h1 span{font-size:12px}.passage{font-size:20px;line-height:1.85;margin:18px 0 24px}.hiw-question-heading{gap:8px}.question-title{gap:6px}.question-title h2{font-size:15px}.recorder{padding:13px}.record-heading .quiet{width:100%;padding-left:17px}.actionbar{gap:14px}.hiw-stats{flex-direction:column}.statistics,.contact{width:100%}.hiw-stats>section+section{border-left:0;border-top:1px solid #e2e8f0}.stat{display:inline-block;width:calc(50% - 5px);margin-right:5px}.stat+.stat{margin-right:0}.field-grid,.uploads{grid-template-columns:1fr}.editor-panel{padding:12px}.modes button{padding:8px 9px}.hiw-layout-textarea{font-size:18px;min-height:300px}.reference-player{flex-wrap:wrap}.reference-player button{font-size:11px}}
.model-player{margin:24px 0 20px;padding:18px;background:white;border:1px solid #e2e8f0;border-radius:18px}.model-player strong{font-size:13px}.model-player-row{display:flex;align-items:center;gap:14px;margin-top:18px}.model-play{width:48px;height:48px;padding:0;flex-shrink:0;font-size:19px}.wave-zone{flex:1;min-width:0}.model-wave{display:flex;align-items:center;width:100%;height:56px;gap:0}.word-wave{display:flex;align-items:center;gap:1px;justify-content:space-evenly;flex-basis:0;min-width:0;height:56px;padding:0 1px;border-radius:3px;background:transparent;position:relative}.word-wave i{pointer-events:none;display:block;min-width:1px;flex:1;background:#cbd5e1;border-radius:2px}.word-wave.played i{background:#60a5fa}.word-wave.current i{background:#2563eb}.word-wave.hovered{background:#eff6ff}.word-wave.hovered:after{content:'';position:absolute;top:0;bottom:0;left:0;width:2px;background:#2563eb}.word-wave:focus-visible{z-index:1;outline-offset:1px}.wave-time{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:5px;font-size:10px;font-variant-numeric:tabular-nums;color:#64748b}.wave-time output{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2563eb;min-width:0}.wave-time span{flex-shrink:0}.model-player select{width:76px;padding:8px;flex-shrink:0;font-size:12px}.spoken-word{border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.current-word{background:#dbeafe;outline:2px solid #93c5fd;color:#1d4ed8}.target-word{background:#eff6ff;text-decoration:underline;text-decoration-color:#2563eb;text-underline-offset:5px}.reading-top{flex-wrap:wrap}.compact button{padding:8px 12px}.passage{min-height:205px}.actionbar{padding-bottom:0}.model-wave button:hover{filter:none}
@media(max-width:600px){.model-player{padding:13px;margin-top:20px}.model-player-row{gap:8px;flex-wrap:wrap}.model-play{width:38px;height:42px}.wave-zone{flex-basis:calc(100% - 46px)}.model-player select{margin-left:auto}.model-player>.row .small{font-size:10px}.wave-time{font-size:10px}.reading-top>.quiet{width:100%}.reading-top>.segmented{margin-left:auto}.word-wave{padding:0}.word-wave i{border-radius:0}.passage{min-height:0}}
.icon-modes{display:flex;align-items:center;gap:9px;padding:4.5px 7.5px;background:white;border:1px solid #f1f5f9;border-radius:999px;box-shadow:0 2px 5px #0f172a06}.icon-modes button{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;padding:0;background:transparent;color:#94a3b8;font-size:15px}.icon-modes button.active{background:#2563eb;color:white;transform:scale(1.06)}.practice-modes button{font-size:12px;font-weight:700}.reading-top{gap:10px}.selection-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px}.selection-tools p{font-size:12px;color:#64748b}.selection-tools button{font-size:11px;white-space:nowrap;padding:8px 10px}.selecting-sentence .spoken-word{cursor:pointer}.selected-range{background:#fef08a;color:#0f172a}.selection-anchor{outline:2px dashed #2563eb;background:#eff6ff}.selected-range.current-word{background:#dbeafe;outline:2px solid #60a5fa}.outside-scope{opacity:.2!important}.practice-scope{margin-bottom:16px;padding:14px 16px;background:#fffbeb;border-radius:12px;border:1px solid #fde68a}.practice-scope p{font-size:16px;margin:6px 0 10px;line-height:1.8}.spoken-word:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.spoken-word::selection{background:#fef08a;color:#0f172a}
@media(max-width:600px){.reading-top{flex-wrap:nowrap}.reading-top>.segmented{margin-left:0}.practice-modes{gap:2px;padding:3px}.practice-modes button{font-size:11px;padding:9px 8px}.icon-modes{gap:6px;padding:3px 4.5px}.icon-modes button{width:33px;height:33px}.selection-tools{align-items:flex-start}.practice-scope p{font-size:15px}}
.practice-history{width:100%;margin-top:28px}.history-tabs{display:flex;border-bottom:1px solid #e2e8f0;gap:26px}.history-tabs button{border-radius:0;background:transparent;padding:14px 3px;color:#64748b;font-size:15px;border-bottom:3px solid transparent}.history-tabs button.active{color:#2563eb;border-bottom-color:#2563eb}.history-caption{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#94a3b8;padding:20px 0 0}.history-record{padding:24px 0;border-bottom:1px solid #e2e8f0;scroll-margin-top:20px}.record-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dbeafe;color:#2563eb;font-size:12px}.history-record-body{display:flex;align-items:center;gap:16px;margin:16px 0 0 46px;flex-wrap:wrap}.history-audio{display:flex;align-items:center;gap:12px;border-radius:999px;background:#f1f5f9;padding:8px 14px;min-width:200px;flex:1;max-width:420px}.history-play{padding:7px;background:transparent;color:#334155}.audio-time{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.history-audio input{min-width:35px;width:100%;accent-color:#64748b}.score-link,.assessment-button{white-space:nowrap;border:1px solid #bfdbfe;background:#eff6ff;color:#2563eb;font-size:12px;border-radius:12px;padding:11px 14px}.record-links{margin-left:auto;display:flex;gap:6px}.record-links button{background:transparent;color:#94a3b8;font-size:12px;padding:9px}.record-links button:first-child{font-size:22px}.history-empty{padding:38px 12px;text-align:center;color:#94a3b8;font-size:13px}.discussion-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 0}.discussion-heading button{font-size:12px}#discussionForm{padding:16px;background:white;border:1px solid #e2e8f0;border-radius:14px}#discussionForm>.row{justify-content:space-between;margin-top:12px}#discussionForm button{font-size:12px}.discussion-item{padding:22px 0;border-bottom:1px solid #e2e8f0}.discussion-content{margin:12px 0 0 46px;white-space:pre-wrap;overflow-wrap:anywhere}#recordDialog{width:460px}#recordDialogText{margin:20px 0;color:#64748b;font-size:13px}#recordDialog input{margin-bottom:16px}#assessCurrent{color:#2563eb;background:#eff6ff}
@media(max-width:600px){.history-record-body{margin-left:0;gap:12px}.history-audio{flex-basis:100%;max-width:none}.history-caption{flex-wrap:wrap}.record-meta{gap:8px}.record-meta .tag{margin-left:auto}.practice-history{margin-top:22px}.history-tabs{gap:24px}.record-links{margin-left:auto}}
.score-dialog{width:min(940px,calc(100vw - 32px));max-height:88dvh;padding:0;border-radius:22px;overflow:auto;background:#fff}.score-header{position:sticky;top:0;z-index:2;background:white;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e2e8f0}.score-header h2{font-size:18px}.score-header p{margin-top:5px}.score-header button{background:transparent}.score-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:26px;padding:24px}.score-overview{border-right:1px solid #e2e8f0;padding-right:24px}.score-total{padding-bottom:20px}.score-total p{margin:8px 0}.score-total strong{font-size:48px;line-height:1.1;letter-spacing:-2px}.score-total p span{font-size:17px;color:#94a3b8;margin-left:5px}.metric-line{margin:15px 0;font-size:12px}.metric-track{height:5px;background:#f1f5f9;border-radius:9px;margin-top:8px;overflow:hidden}.metric-track span{height:100%;display:block;background:#60a5fa;border-radius:9px}.score-layout h3{font-size:14px;margin:0}.score-advice{margin-top:26px}.advice-item{margin-top:16px}.advice-item strong{font-size:12px;color:#334155}.advice-item p{font-size:12px;color:#64748b;line-height:1.8;margin-top:5px}.score-disclaimer{font-size:10px;color:#94a3b8;margin-top:22px;line-height:1.7}.report-player{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px;margin:14px 0 28px}.report-player button{width:40px;height:40px;padding:0;flex-shrink:0}.report-player input{min-width:35px;flex:1;accent-color:#2563eb}.report-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;margin:18px 0}.report-passage{line-height:2.1;font-size:19px;padding:16px;background:#f8fafc;border-radius:14px;overflow-wrap:anywhere}.report-word{font:inherit;line-height:inherit;padding:0;background:transparent;border-radius:3px;font-weight:400}.word-good{color:#15803d}.word-average{color:#a16e00}.word-bad{color:#dc2626}.word-omit{color:#64748b;text-decoration:line-through;text-decoration-thickness:2px}.pause-mark{color:#64748b;letter-spacing:2px;font-weight:600}.report-speaking{outline:2px solid #93c5fd;background:#eff6ff}.word-detail{padding:13px 0;min-height:50px;font-size:12px;color:#64748b}.pause-note{font-size:11px!important}.comment-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}.comment-actions button{background:transparent;color:#64748b;font-size:12px;padding:7px 11px}.comment-replies{margin:18px 0 0 46px;padding-left:18px;border-left:2px solid #e2e8f0}.comment-reply{padding:12px 0}.comment-reply .discussion-content{margin-left:0}.comment-reply .avatar{width:26px;height:26px}.reply-form{margin:16px 0 0 46px}.reply-form .row{justify-content:flex-end;margin-top:10px}.reply-form button{font-size:12px}.discussion-item:target,.comment-reply:target{background:#eff6ff}
@media(max-width:650px){.score-dialog{max-height:92dvh}.score-header{padding:15px}.score-layout{grid-template-columns:1fr;padding:16px;gap:22px}.score-overview{border-right:0;padding:0;display:grid;grid-template-columns:100px minmax(0,1fr);gap:0 20px}.score-total strong{font-size:40px}.score-advice{grid-column:1/-1;margin-top:15px}.score-disclaimer{grid-column:1/-1;margin-top:12px}.score-total{padding:10px 0}.report-player{flex-wrap:wrap;margin-bottom:22px}.report-player .audio-time{font-size:11px}.report-passage{font-size:18px;padding:12px}.report-legend{gap:10px}.comment-replies{margin-left:16px;padding-left:12px}.reply-form{margin-left:0}}

.history-record-body audio{width:min(360px,100%);height:40px;min-width:0}.word-unknown{color:#78828c}@media(max-width:600px){.history-record-body audio{width:100%;flex-basis:100%}}
/* Compact recorder: preparation time and live signal share one central area. */
.recorder{position:relative;min-height:126px;padding:24px;border:0;background:#f8fafc;border-radius:14px;display:grid;place-items:center}
.recorder>.timer{position:absolute;right:20px;top:16px;font-size:13px;font-variant-numeric:tabular-nums;color:#64748b}
.recorder-center{width:104px;height:56px;display:grid;place-items:center}
#prepareCountdown{font-size:34px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:#334155}
.recorder .wave{width:88px;height:48px;min-height:0;margin:0;padding:0;border:0;background:none;gap:5px;display:flex;align-items:center;justify-content:center}
.recorder .wave i{width:5px;flex:0 0 5px;max-height:38px;background:#2563eb;border-radius:4px;transition:height .12s ease}
.recorder .wave::before,.recorder .wave::after{display:none}
@media(prefers-reduced-motion:reduce){.recorder .wave i{transition:none;animation:none!important;height:12px!important}}
.recorder{background:#e2e8f0}
#draftRecording{display:block;width:min(420px,100%);height:44px;margin:14px 0 0;min-width:0}
.draft-wave-player{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding-top:12px}
.draft-wave-player .wave-zone{flex:1;min-width:0}
.draft-wave{height:56px;display:flex;align-items:center;gap:2px;cursor:pointer;touch-action:none;overflow:hidden}
.draft-wave i{display:block;flex:1;min-width:0;background:#94a3b8;border-radius:2px;pointer-events:none}
.draft-wave i.played{background:#2563eb}
.draft-wave:focus-visible{outline:3px solid #60a5fa;outline-offset:3px;border-radius:4px}
.draft-wave-player select{border:1px solid #cbd5e1;border-radius:8px;padding:7px 4px;background:#f8fafc;color:#475569;font:inherit}
@media(max-width:480px){.draft-wave-player{gap:8px}.draft-wave{gap:1px}.draft-wave-player .model-play{padding:8px;width:34px;min-width:34px}.draft-wave-player select{font-size:12px;width:59px}}
