/* Scale every text tier from the original 13px body to 14px; retain original layout. */
:root{font-size:calc(100% * 14 / 13);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#263d53;background:#f5f7fa;font-synthesis:none;--blue:#287bc1;--muted:#758493;--border:#e6ecf1}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #81b9e7;outline-offset:4px}[hidden]{display:none!important}.header{height:82px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 42px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#263d53;font-size:1.4375rem;font-weight:700;letter-spacing:2px}.brand small{display:block;font-size:0.5625rem;color:#7b8c9a;letter-spacing:2px;margin-top:4px}.brand-icon{background:var(--blue);color:white;border-radius:13px;width:42px;height:42px;display:grid;place-items:center;font-size:2rem}.study-badge{font-size:0.75rem;background:#f1f6fa;padding:7px 13px;border:1px solid var(--border);border-radius:5px;color:#637c91}.shell{display:flex;min-height:calc(100vh - 82px)}.sidebar{width:228px;flex-shrink:0;background:white;border-right:1px solid var(--border);padding:38px 20px;position:relative;display:flex;flex-direction:column}.nav-label{font-size:0.6875rem;letter-spacing:2px;color:#97a2ad;padding:0 16px;margin-bottom:16px}.nav-item{display:flex;align-items:center;gap:12px;padding:16px;border-radius:7px;margin-bottom:9px;font-size:0.875rem;text-decoration:none;color:#65788b}.nav-item.active{background:#edf5fc;color:var(--blue);font-weight:600}.nav-item.disabled{color:#9aa6b1}.nav-item small{font-size:0.625rem;border:1px solid var(--border);border-radius:4px;padding:2px 5px;margin-left:auto;white-space:nowrap}.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--blue);margin-left:auto}.side-note{margin:62px 15px 30px;border-top:1px solid var(--border);padding-top:27px}.note-icon{font-size:1.75rem;color:#8fb2cc;display:block;margin-bottom:18px}.side-note strong{font-size:1.0625rem;line-height:1.9;font-weight:500}.side-note p{font-size:0.75rem;color:#8998a6;line-height:1.9}.side-footer{margin-top:auto;font-size:0.625rem;color:#a0aab3;padding:20px 10px}main{max-width:1310px;margin:0 auto;width:100%;padding:42px 48px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:0.625rem;letter-spacing:2px;color:#8ba2b5;margin-bottom:12px}h1{font-size:1.875rem;letter-spacing:1px;font-weight:600;margin:0 0 12px}h2{font-size:1.1875rem;font-weight:600;margin:0 0 14px}p{line-height:1.8}.page-heading p{font-size:0.8125rem;color:var(--muted);margin:0}.health{background:white;border:1px solid var(--border);padding:11px 13px;border-radius:6px;display:flex;align-items:center;gap:8px;font-size:0.6875rem;white-space:nowrap;color:#697e90}.status-dot{width:7px;height:7px;border-radius:50%;background:#b0bac4}.health.ready .status-dot{background:#39a780}.health.unavailable .status-dot{background:#d09345}.steps{display:flex;list-style:none;margin:30px 0 27px;padding:17px 23px;background:#edf1f5;border-radius:7px;gap:25px}.steps li{font-size:0.75rem;color:#8a98a6;flex:1;display:flex;align-items:center;gap:10px}.steps li:not(:last-child):after{content:"";height:1px;background:#dce3e9;flex:1;margin-left:12px}.steps span{font-size:0.6875rem;border:1px solid #d3dde5;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.steps .current{color:var(--blue);font-weight:600}.steps .current span{background:var(--blue);color:white;border-color:var(--blue)}.workspace{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1.16fr);gap:24px;align-items:start}.card{background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 15px #243e591f;padding:28px}.section-kicker{font-size:0.6875rem;color:var(--blue);letter-spacing:1px;margin-bottom:14px}.muted{font-size:0.8125rem;color:var(--muted)}.tips{list-style:none;padding:0;margin:25px 0}.tips li{display:flex;gap:13px;margin:21px 0}.tips li>span{font-size:0.625rem;color:#7798b1;border:1px solid #dbe8f2;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}.tips strong{font-size:0.8125rem;font-weight:600}.tips p{font-size:0.75rem;color:var(--muted);margin:5px 0 0}.reading{padding:19px;background:#f6f8fa;border-left:3px solid #a7cce6;border-radius:3px}.reading-label{font-size:0.75rem;font-weight:600;display:flex;justify-content:space-between;align-items:center}.reading-label span{font-size:0.625rem;font-weight:400;color:#8999a6}.reading p{font-size:0.8125rem;line-height:2;color:#536b7e;margin:15px 0}.reading small{font-size:0.625rem;color:#83929e;line-height:1.8;display:block}.right-column{display:grid;gap:18px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-heading h2{font-size:1.0625rem;margin:0}.tag{font-size:0.625rem;background:#f4f7fa;color:#8294a3;padding:5px 8px;border-radius:4px;white-space:nowrap}.record-visual{position:relative;display:flex;align-items:center;justify-content:center;height:120px}.mic-circle{width:83px;height:83px;border-radius:50%;display:grid;place-items:center;background:#edf6fd;color:var(--blue);border:7px solid #f6faff;z-index:1}.voice-bars{position:absolute;display:flex;align-items:center;gap:10px}.voice-bars i{height:14px;width:3px;background:#d1e4f4;border-radius:3px}.voice-bars i:nth-child(2n){height:26px}.voice-bars i:nth-child(3n){height:36px}.voice-bars i:nth-child(5){margin:0 30px}.recording .voice-bars i{animation:pulse .8s ease-in-out infinite alternate}.recording .voice-bars i:nth-child(2n){animation-delay:.3s}.recording .mic-circle{color:#db6262;background:#fff0f0;border-color:#fff7f7}@keyframes pulse{to{transform:scaleY(1.8)}}.timer{text-align:center;font-variant-numeric:tabular-nums;font-size:2.3125rem;letter-spacing:3px;font-weight:500;color:#304b62}.centered{text-align:center}.record-actions{display:flex;justify-content:center;gap:12px;margin:21px 0 12px}.button{border-radius:7px;font-size:0.8125rem;font-weight:500;padding:13px 25px;min-height:44px;border:1px solid transparent}.button.primary{background:var(--blue);color:white}.button.primary:hover:not(:disabled){background:#216ba9}.button.ghost{border-color:#cddde9;background:white;color:#587b98}.small{font-size:0.6875rem;color:var(--muted);line-height:1.8}.submit{width:100%;display:flex;align-items:center;justify-content:center;gap:45px;margin-top:22px}.preview{border-top:1px solid var(--border);padding-top:18px;margin-top:20px}.preview-heading{display:flex;gap:10px;justify-content:space-between;align-items:center}.preview-heading strong{font-size:0.75rem;overflow-wrap:anywhere;min-width:0}.text-button{border:0;color:var(--blue);background:transparent;padding:8px 0;font-size:0.6875rem;flex-shrink:0;min-height:36px}audio{width:100%;height:40px;margin-top:12px}.boundary{display:flex;gap:10px;padding:0 5px;color:#93a4b3}.boundary>span{font-size:1.0625rem;margin-top:8px}.boundary p{font-size:0.6875rem;margin:3px 0}.page-footer{display:flex;justify-content:space-between;font-size:0.625rem;color:#97a5b0;margin-top:32px;padding-top:20px;border-top:1px solid var(--border)}.notice,.message,.result-notice{background:#fff8eb;border:1px solid #f1e1bc;border-radius:6px;padding:12px 14px;font-size:0.75rem;color:#8a6d33;line-height:1.8}.notice{margin-bottom:20px}.message{margin-top:15px}.message.error{background:#fff3f2;color:#a24b44;border-color:#f2d6d3}.progress-wrap{margin-top:20px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.progress-wrap label{font-size:0.75rem;color:var(--blue)}progress{width:100%;height:8px;accent-color:var(--blue)}.result{scroll-margin-top:20px}.score-label{font-size:0.75rem;color:var(--muted);margin-top:25px}.score{font-size:2.875rem;line-height:1.5;color:var(--blue);font-variant-numeric:tabular-nums}.score-caption{font-size:0.6875rem;color:var(--muted);margin:0 0 20px}.result-meta{font-size:0.6875rem;margin:20px 0}.result-meta>div{display:flex;justify-content:space-between;gap:20px;margin:12px 0}.result-meta dt{color:var(--muted)}.result-meta dd{margin:0;overflow-wrap:anywhere}.result ul{padding-left:15px}.result>.button{width:100%;margin-top:10px}@media(min-width:1500px){main{padding-top:55px}.workspace{gap:30px}.card{padding:34px}}@media(max-width:1100px){.sidebar{width:190px;padding:30px 13px}main{padding:32px 25px}.workspace{gap:17px}.card{padding:23px}.page-heading{align-items:flex-start;flex-direction:column;gap:16px}}@media(max-width:850px){.header{height:70px;padding:0 22px}.shell{display:block}.sidebar{width:100%;padding:13px 22px;background:#fff;flex-direction:row;border-right:0;border-bottom:1px solid var(--border);gap:12px}.nav-label,.side-note,.side-footer{display:none}.nav-item{margin:0;padding:12px;font-size:0.75rem}.nav-dot{display:none}main{padding:28px 22px}.page-heading{flex-direction:row}.workspace{grid-template-columns:1fr 1.1fr}.card{padding:20px}.steps{gap:12px}}@media(max-width:680px){.header{padding:0 20px}.brand{font-size:1.25rem}.brand-icon{width:36px;height:36px}.brand small{font-size:0.5rem}.sidebar{padding:10px 16px}.page-heading{flex-direction:column;gap:16px}main{padding:27px 16px 20px}h1{font-size:1.625rem}.page-heading p{font-size:0.75rem}.health{font-size:0.625rem;padding:9px 11px}.steps{padding:14px 13px;margin:24px 0 20px;gap:7px}.steps li{font-size:0.625rem;gap:7px}.steps li:not(:last-child):after{margin-left:0}.steps span{width:23px;height:23px;flex-shrink:0}.workspace{grid-template-columns:1fr;gap:18px}.guide{padding:24px}.tips{margin:20px 0}.side-note{display:none}.recorder{padding:24px}.page-footer{font-size:0.5625rem}.record-visual{height:118px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

/* Signal feedback and compact mobile guidance. */
.guide-details summary,.score-help summary{cursor:pointer;font-size:0.75rem;color:var(--blue);line-height:1.8;padding:10px 0;min-height:44px}.guide-details summary:focus-visible,.score-help summary:focus-visible{outline:3px solid #81b9e7;outline-offset:3px}.live-quality{width:100%;max-width:440px;margin:22px auto 8px;padding:20px 24px;background:#f5f8fb;border-radius:10px}.meter-heading{display:flex;justify-content:space-between;font-size:0.875rem;font-weight:500;color:#60768a;gap:12px}#level-meter{display:block;width:100%;height:18px;margin:14px 0;appearance:none;background:#e3ebf1;border-radius:9px;overflow:hidden}#level-meter::-webkit-meter-bar{height:18px;border:0;border-radius:9px;background:#e3ebf1}#level-meter::-webkit-meter-optimum-value{background:#39a780;border-radius:9px}#level-meter::-webkit-meter-suboptimum-value{background:#d7a433;border-radius:9px}#level-meter::-webkit-meter-even-less-good-value{background:#d56959;border-radius:9px}#level-hint{font-size:0.8125rem;color:#60768a;line-height:1.8;margin:0;min-height:24px}.live-quality.attention{background:#fff7e9}.live-quality.attention #level-hint{color:#88692d}.score-help{margin:15px 0;border-bottom:1px solid var(--border);padding-bottom:10px}.score-help p{font-size:0.75rem;color:#65788a;line-height:1.9}.quality-result{background:#f3f7fb;padding:17px;border-radius:8px;margin-top:18px}.quality-result h3{font-size:0.8125rem;margin:0 0 10px}.quality-result>p:not(.small){font-size:0.75rem;line-height:1.8}.quality-result ul{font-size:0.75rem;color:#7f632f;padding-left:18px;line-height:1.9}.quality-result .small{margin-bottom:0}#file-meta{overflow-wrap:anywhere}.recording .voice-bars i{animation:none;transform:scaleY(var(--input-level, .3));transition:transform .15s ease}.guide-details .tips{margin-top:8px}
@media(max-width:680px){.guide .section-kicker{margin-bottom:9px}.guide h2{font-size:1.125rem}.guide .muted{margin-bottom:4px}.record-actions{position:sticky;bottom:12px;background:rgba(255,255,255,.97);padding:9px 4px;z-index:2;border-radius:10px}.record-actions .button{min-height:48px;flex:1}.preview-heading{flex-wrap:wrap}.text-button{min-height:44px}.guide-details:not([open]){margin-bottom:4px}.quality-result{padding:15px}.page-heading .health{white-space:normal;text-align:left}}

/* First-visit recording usage notice. */
.usage-dialog{width:min(480px,calc(100% - 40px));max-height:calc(100dvh - 48px);border:1px solid var(--border);border-radius:16px;padding:32px;color:#263d53;background:white;box-shadow:0 20px 70px #19344b33}
.usage-dialog::backdrop{background:rgba(27,46,65,.42);backdrop-filter:blur(3px)}
.usage-dialog h2{font-size:1.375rem;margin-bottom:20px}
.usage-dialog p{font-size:0.875rem;color:#65788b;line-height:1.9;margin:0 0 16px}
.usage-dialog .button{width:100%;margin-top:8px}
body:has(.usage-dialog[open]){overflow:hidden}
#record-panel{margin-top:20px}
.duration-reminder{text-align:center}

/* Voice guidance always precedes the audio controls, at every viewport width. */
.workspace.voice-workspace{grid-template-columns:minmax(0,1fr)}
.voice-workspace .record-actions{flex-wrap:wrap}

/* Keep the two audio source choices in a vertical sequence. */
.voice-workspace .record-actions{flex-direction:column;align-items:center;gap:10px}
.voice-workspace .record-actions .button{width:min(100%,260px);flex:none}
.audio-choice-separator{color:#8995a1;font-size:0.75rem;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.guide-intro{font-size:0.8125rem;color:#263d53;line-height:1.9}
.environment-hint{max-width:440px;margin:16px auto 0;padding:12px 16px;border-radius:8px;background:#f3f7fb;color:#60768a;font-size:0.75rem;line-height:1.8;text-align:center}
.environment-hint.attention{background:#fff7e9;color:#88692d}

.voice-workspace #start{min-height:60px;padding:17px 25px;font-size:1.125rem;font-weight:600}
.voice-workspace #choose-audio{display:inline-flex;align-items:center;justify-content:center;gap:8px}
#choose-audio .folder-icon{flex-shrink:0}

/* Audio replacement keeps the current preview until the new source is ready. */
.voice-workspace .file-label{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0}
.voice-workspace #file-size{white-space:nowrap}
.voice-workspace .result{display:flex;flex-direction:column}
.voice-workspace .result> *{order:4}
.voice-workspace .result>.card-heading{order:0}
.voice-workspace .score-section{order:2}
.voice-workspace .quality-result{order:3}
.voice-workspace .quality-result.attention{background:#fff7e9;border:1px solid #f1dfb4}
.voice-workspace .score-label{text-align:center;margin:24px 0 14px}
/* A crisp pale-gray disc backs the colored numerals, leaving waves visible around its edge. */
.score-gauge{width:min(240px,100%);aspect-ratio:1;margin:0 auto 26px}
.score-gauge .score{display:none}
.liquid-svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 8px 14px #263d5310)}
.liquid-number{font-family:system-ui,sans-serif;font-size:2.75rem;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.voice-workspace .environment-hint{width:fit-content;max-width:100%;white-space:nowrap;overflow-x:auto;text-align:left}
.voice-workspace .preview-heading{flex-wrap:wrap}
.preview-actions{display:flex;gap:10px;flex-wrap:wrap;margin-left:auto}
.voice-workspace .preview-actions .button{min-height:40px;padding:9px 17px;font-size:0.75rem;border-color:#80add0;color:#287bc1;background:#f7fbff}
.voice-workspace .preview-actions .button:hover:not(:disabled){background:#eaf4fc;border-color:#287bc1}
.voice-workspace #timer.calibrating{font-size:clamp(1.25rem,calc(2.4vw * 14 / 13),1.75rem);font-weight:600;letter-spacing:0;line-height:1.6;color:var(--blue);padding:8px 0}
.score-interpretation{margin:28px 0 8px;padding:24px;border:1px solid #dce7f0;border-radius:12px;background:#f8fbfe;text-align:left}
.interpretation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.interpretation-heading h3{font-size:1.375rem;margin:0;color:#263d53}
.interpretation-band{font-size:0.75rem;color:#326c99;background:#e9f2fa;border-radius:5px;padding:5px 10px}
.score-interpretation .interpretation-lead{font-size:1.0625rem;line-height:1.7;font-weight:600;color:#304e68;margin:22px 0 10px}
.interpretation-message,.interpretation-guidance p{font-size:0.875rem;line-height:1.95;color:#4f6578;margin:10px 0}
.interpretation-guidance{border-top:1px solid #dce7f0;padding-top:18px;margin-top:20px}
.voice-workspace .result p{text-indent:2em}
.interpretation-limit{font-size:0.75rem;color:#647788;line-height:1.85;margin:20px 0 8px}
.interpretation-source{display:inline-block;font-size:0.75rem;color:#287bc1;text-underline-offset:4px;line-height:1.8;padding:6px 0}
@media(max-width:680px){.score-interpretation{padding:20px 18px}.score-interpretation .interpretation-lead{font-size:1rem}}

/* Keep the fixed prompt visible next to the recording workflow at all widths. */
.fixed-reading{margin-top:24px;padding:22px 24px;background:#f1f7fc;border-left:4px solid var(--blue)}
.fixed-reading .reading-label{flex-wrap:wrap;gap:8px}
.fixed-reading h3{margin:0;font-size:1.0625rem;color:#263d53}
.fixed-reading .reading-instruction{font-size:.8125rem;line-height:1.8;margin:12px 0;color:#65788b}
.fixed-reading .reading-passage{font-size:.9375rem;line-height:2.1;color:#263d53;margin:12px 0 0;text-indent:2em}
@media(max-width:680px){.fixed-reading{padding:18px}}

.playback-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.playback-tools .button{padding:9px 16px;flex-shrink:0}
.playback-tools p{margin:0;flex:1;min-width:180px}
.playback-tools [aria-pressed="true"]{background:#edf5fc;color:var(--blue);border-color:var(--blue)}
