:root {
  --ink: #12211d;
  --muted: #64736d;
  --line: #dce4df;
  --paper: #ffffff;
  --wash: #f2f5f1;
  --green: #135f50;
  --green-dark: #0c453a;
  --green-soft: #e5f1ed;
  --gold: #b8873d;
  --red: #b33a34;
  --shadow: 0 18px 60px rgba(20, 50, 41, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(184, 135, 61, 0.11), transparent 25rem),
    linear-gradient(180deg, #f7f8f5 0, var(--wash) 42rem);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.interview-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(19, 95, 80, 0.12);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--green); font-size: 20px; font-weight: 800; }
.brand-link > span:last-child { display: grid; gap: 2px; }
.brand-link strong { font-size: 17px; }
.brand-link small { color: var(--muted); font-size: 12px; }
.provider-pill { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #b7c0bc; box-shadow: 0 0 0 4px rgba(183, 192, 188, 0.18); }
.provider-pill.ready .status-dot { background: #2b9a78; box-shadow: 0 0 0 4px rgba(43, 154, 120, 0.13); }
.provider-pill.local .status-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(184, 135, 61, 0.13); }

.interview-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 38px; }
.eyebrow, .stage-kicker { display: block; color: var(--green); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: 0.16em; }
.hero h1 { margin: 14px 0 16px; max-width: 760px; font-family: "Microsoft YaHei", sans-serif; font-size: clamp(36px, 5vw, 62px); line-height: 1.12; letter-spacing: -0.045em; }
.hero-copy { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.85; }
.hero-score { display: grid; grid-template-columns: repeat(2, 74px); gap: 8px; flex: 0 0 auto; }
.hero-score span { padding: 13px 8px; text-align: center; border: 1px solid rgba(19, 95, 80, 0.16); background: rgba(255,255,255,.66); color: var(--green); font-size: 13px; }
.hero-score span:last-child { grid-column: 1 / -1; }

.stepper { margin-bottom: 18px; padding: 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.step { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #8a9691; border-right: 1px solid var(--line); font-size: 13px; }
.step:last-child { border-right: 0; }
.step b { font-size: 11px; }
.step.active { color: var(--green); font-weight: 700; }
.step.done { color: #4f6b62; }

.session-progress { margin: -1px 0 18px; padding: 15px 18px 17px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20,50,41,.05); }
.session-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.session-progress > div:first-child span { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.session-progress > div:first-child strong { color: #465a52; font-size: 12px; }
.session-progress-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.session-progress-track > span { min-height: 45px; padding: 8px 12px; display: grid; grid-template-columns: 25px auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; color: #8a9691; background: #f5f7f5; border: 1px solid transparent; }
.session-progress-track i { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #dde4e0; color: #718078; font-size: 11px; font-style: normal; font-weight: 800; }
.session-progress-track b { font-size: 11px; }
.session-progress-track small { font-size: 10px; }
.session-progress-track > span.active { color: var(--green); background: #f1f7f4; border-color: rgba(19,95,80,.2); }
.session-progress-track > span.active i { color: #fff; background: var(--green); }
.session-progress-track > span.done { color: #52675f; }
.session-progress-track > span.done i { color: #fff; background: #50937d; }

.stage-card, .report-panel { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stage-card { padding: clamp(24px, 4vw, 44px); }
.stage-heading, .section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.stage-heading { margin-bottom: 32px; }
.stage-heading h2, .section-title h2 { margin: 9px 0 0; font-size: 26px; }
.privacy-badge { padding: 7px 10px; background: var(--green-soft); color: var(--green); border-radius: 3px; font-size: 12px; }

.setup-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: 52px; }
.setup-form { display: grid; gap: 18px; align-content: start; }
.voice-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.voice-picker .ghost-button { min-width: 68px; min-height: 44px; padding-inline: 12px; }
.voice-source-status { color: var(--green) !important; font-weight: 700; }
.voice-source-status.unavailable { color: #a33b32 !important; }
label { display: grid; gap: 8px; color: #31423c; font-size: 13px; font-weight: 700; }
label > small { color: var(--muted); font-size: 10px; font-weight: 400; }
select, textarea { width: 100%; border: 1px solid #ccd8d2; background: #fbfcfb; color: var(--ink); border-radius: 4px; outline: 0; transition: border .2s, box-shadow .2s; }
select { height: 46px; padding: 0 12px; }
select:disabled { color: #7c8984; background: #eef2ef; cursor: not-allowed; }
textarea { padding: 13px 14px; resize: vertical; line-height: 1.7; }
select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(19, 95, 80, .09); }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-brief { margin-top: -8px; padding: 14px 16px; display: grid; gap: 5px; color: #315248; background: var(--green-soft); border-left: 3px solid var(--green); }
.profile-brief strong { font-size: 12px; }
.profile-brief span { color: #587168; font-size: 11px; line-height: 1.6; }
.protocol-note { padding: 12px 14px; display: grid; gap: 5px; border: 1px dashed #c9d5cf; color: #50625b; background: #fbfcfb; }
.protocol-note b { color: var(--green); font-size: 11px; }
.protocol-note span { font-size: 10px; line-height: 1.6; }
.consent-box { padding: 14px; background: #f6f8f6; border-left: 3px solid var(--green); }
.consent-box label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; line-height: 1.6; }
.consent-box input { margin-top: 4px; accent-color: var(--green); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary-button, .ghost-button, .danger-button, .text-button { border: 0; min-height: 44px; padding: 10px 17px; border-radius: 4px; font-weight: 700; }
.primary-button { background: var(--green); color: #fff; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.ghost-button { border: 1px solid #cbd6d1; background: #fff; color: var(--ink); }
.ghost-button:hover { border-color: var(--green); color: var(--green); }
.danger-button { background: var(--red); color: #fff; }
.text-button { background: transparent; color: var(--green); padding-left: 0; padding-right: 0; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.device-preview { background: #10221d; padding: 12px; align-self: start; }
.video-frame { position: relative; background: #09130f; overflow: hidden; aspect-ratio: 16/10; }
.video-frame video, .live-video-wrap video, #playbackVideo { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b1512; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 9px; color: #f5f9f7; }
.video-placeholder small { color: #9eb0a9; }
.camera-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #bf8e48; }
.device-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.device-list > div { display: flex; align-items: center; gap: 9px; padding: 14px 10px 5px; color: #eaf0ed; }
.device-list > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.device-list span:last-child { min-width: 0; display: grid; gap: 3px; }
.device-list b { font-size: 12px; }
.device-list small { color: #9eb0a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.device-icon { color: #d7ae6f; }

.question-layout { display: grid; grid-template-columns: 1fr 270px; gap: 60px; align-items: start; }
.examiner-room { margin-bottom: 34px; display: grid; grid-template-columns: minmax(340px,.82fr) minmax(0,1.18fr); border: 1px solid var(--line); background: #f7f9f7; }
.examiner-bench { min-height: 250px; padding: 0; aspect-ratio: 16/9; background: #10221d; position: relative; overflow: hidden; }
.examiner-panel-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; filter: saturate(.88) contrast(1.02); }
.examiner-bench::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(7,20,16,.08),transparent 42%,rgba(7,20,16,.16)); }
.chief-focus { position: absolute; z-index: 2; left: 41.5%; top: 34%; width: 17%; height: 43%; border: 1px solid transparent; border-radius: 48% 48% 12px 12px; pointer-events: none; transition: border-color .2s, box-shadow .2s; }
.chief-focus.speaking { border-color: rgba(218,177,111,.7); box-shadow: 0 0 0 5px rgba(218,177,111,.08),0 0 28px rgba(218,177,111,.18); animation: examinerPhotoPulse 1.4s ease-in-out infinite; }
@keyframes examinerPhotoPulse { 50% { box-shadow: 0 0 0 9px rgba(218,177,111,.12),0 0 32px rgba(218,177,111,.24); } }
.examiner-dialogue { padding: 28px 30px; display: grid; align-content: center; gap: 17px; }
.speaking-label { display: flex; align-items: center; gap: 10px; }
.speaking-label strong { font-size: 13px; }
.speaking-label em { color: var(--muted); font-style: normal; font-size: 11px; }
.voice-chip { margin-left: auto; padding: 5px 8px; color: var(--green); background: var(--green-soft); border: 1px solid rgba(19,95,80,.12); font-size: 10px; white-space: nowrap; }
.sound-bars { height: 20px; display: flex; align-items: center; gap: 2px; }
.sound-bars i { display: block; width: 2px; height: 5px; background: var(--green); }
.sound-bars.playing i { animation: soundBar .72s ease-in-out infinite alternate; }
.sound-bars.playing i:nth-child(2) { animation-delay: -.45s; }
.sound-bars.playing i:nth-child(3) { animation-delay: -.2s; }
.sound-bars.playing i:nth-child(4) { animation-delay: -.58s; }
@keyframes soundBar { to { height: 18px; } }
.examiner-dialogue > p { min-height: 58px; margin: 0; color: #243b33; font-size: 16px; line-height: 1.8; }
.examiner-actions { display: flex; align-items: center; gap: 14px; }
.examiner-actions button { min-height: 36px; padding-top: 7px; padding-bottom: 7px; font-size: 11px; }
.immersive-exit { display: none; }

body.immersive-reading { overflow: hidden; background: #08140f; }
body.immersive-reading #prepareStage { position: fixed; z-index: 100; inset: 0; width: 100vw; height: 100vh; padding: 0; border: 0; background: #08140f; box-shadow: none; overflow: hidden; }
body.immersive-reading .examiner-room { position: absolute; inset: 0; display: block; margin: 0; border: 0; background: #08140f; }
body.immersive-reading .examiner-bench { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
body.immersive-reading .examiner-panel-photo { object-position: center center; filter: saturate(.86) contrast(1.04) brightness(.84); }
body.immersive-reading .examiner-bench::after { background: linear-gradient(180deg,rgba(4,12,9,.06) 0,rgba(4,12,9,.02) 45%,rgba(4,12,9,.82) 100%); }
body.immersive-reading .examiner-dialogue { position: absolute; z-index: 4; left: 50%; bottom: clamp(24px,5vh,60px); width: min(1120px,calc(100vw - 48px)); min-height: 170px; padding: 24px 28px; transform: translateX(-50%); color: #fff; background: rgba(8,24,18,.86); border: 1px solid rgba(223,194,147,.32); box-shadow: 0 22px 70px rgba(0,0,0,.38); backdrop-filter: blur(14px); }
body.immersive-reading .speaking-label strong { color: #fff; }
body.immersive-reading .speaking-label em { color: #c0cec8; }
body.immersive-reading .voice-chip { color: #efd2a2; background: rgba(214,169,99,.13); border-color: rgba(231,191,131,.25); }
body.immersive-reading .examiner-dialogue > p { min-height: 0; max-height: 27vh; overflow: auto; color: #f5f7f6; font-size: clamp(16px,1.55vw,21px); line-height: 1.85; }
body.immersive-reading .examiner-actions .ghost-button { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
body.immersive-reading .examiner-actions .text-button { color: #d6b174; }
body.immersive-reading .immersive-exit { display: inline-flex; margin-left: auto; color: #c8d4cf; }
body.immersive-reading .question-layout,
body.immersive-reading .scratchpad-wrap { display: none; }
.question-meta { display: flex; gap: 8px; margin: 20px 0; }
.question-meta span { padding: 6px 9px; background: var(--green-soft); color: var(--green); font-size: 12px; }
.question-text { margin: 0; font-size: clamp(24px, 3.4vw, 39px); line-height: 1.55; font-weight: 650; }
.question-source { color: var(--muted); font-size: 12px; }
.timer-panel { padding: 28px; background: #10221d; color: #fff; text-align: center; }
.timer-panel > span { color: #a9b8b2; font-size: 12px; }
.timer-panel > strong { display: block; margin: 10px 0 18px; font-size: 42px; font-variant-numeric: tabular-nums; }
.timer-track { height: 3px; background: rgba(255,255,255,.15); margin-bottom: 24px; }
.timer-track i { display: block; width: 100%; height: 100%; background: #d5a760; transition: width 1s linear; }
.timer-panel button { width: 100%; background: #f2eadc; color: #18352c; }
.timer-panel.reading > strong { color: #d5a760; }
.timer-panel.reading .timer-track i { width: 0 !important; }
.scratchpad-wrap { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.scratchpad-wrap label, .transcript-editor label { display: flex; justify-content: space-between; }
.scratchpad-wrap label span, .transcript-editor label span { color: var(--muted); font-weight: 400; font-size: 11px; }

#answerStage { padding: 0; overflow: hidden; }
.answer-topbar { min-height: 72px; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; background: #10221d; color: #fff; }
.answer-topbar > div:first-child { display: flex; align-items: center; gap: 9px; }
.answer-topbar small { color: #a8b7b1; }
.recording-dot { width: 10px; height: 10px; border-radius: 50%; background: #e84c45; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(232,76,69,.12); } }
.answer-clock { text-align: center; }
.answer-clock span { color: #9fb0aa; font-size: 11px; margin-right: 8px; }
.answer-clock strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.answer-topbar .danger-button { justify-self: end; }
.answer-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); min-height: 590px; background: #0a1210; }
.live-video-wrap { position: relative; min-width: 0; }
.live-video-wrap video { position: absolute; inset: 0; }
.video-guide { pointer-events: none; position: absolute; inset: 10% 24%; border: 1px solid rgba(255,255,255,.25); border-radius: 50% 50% 44% 44%; opacity: .6; }
.video-guide::before, .video-guide::after { content: ""; position: absolute; background: rgba(255,255,255,.35); }
.video-guide::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.video-guide::after { top: 50%; left: -12px; right: -12px; height: 1px; }
.live-badges { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 8px; }
.live-badges span { padding: 7px 10px; background: rgba(8,22,17,.75); backdrop-filter: blur(8px); color: #e9f0ed; font-size: 11px; border: 1px solid rgba(255,255,255,.14); }
.answer-side { padding: 24px; background: #f8faf8; display: grid; align-content: start; gap: 20px; }
.mini-question { border-left: 3px solid var(--gold); padding-left: 13px; }
.mini-question span, .transcript-live > span { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.mini-question p { margin: 7px 0 0; line-height: 1.7; font-size: 13px; }
.live-metrics { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.live-metrics div { padding: 12px 8px; text-align: center; display: grid; gap: 3px; }
.live-metrics div + div { border-left: 1px solid var(--line); }
.live-metrics span, .live-metrics small { color: var(--muted); font-size: 10px; }
.live-metrics strong { font-size: 18px; }
.transcript-live { padding-top: 18px; border-top: 1px solid var(--line); }
.transcript-live p { max-height: 260px; overflow: auto; color: #465650; line-height: 1.8; font-size: 13px; }

.review-grid { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 38px; }
#playbackVideo { aspect-ratio: 16/10; }
.transcript-editor { display: grid; gap: 13px; align-content: start; }
.metric-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-summary span { padding: 6px 9px; background: #f0f4f1; color: #43574f; font-size: 11px; }
.analysis-loading { min-height: 430px; display: grid; place-items: center; align-content: center; text-align: center; }
.analysis-loading h2 { margin: 22px 0 6px; }
.analysis-loading p { color: var(--muted); }
.loader-ring { width: 58px; height: 58px; border: 3px solid #dce7e2; border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.report-hero { min-height: 230px; padding: 36px 42px; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; background: #10221d; color: #fff; box-shadow: var(--shadow); }
.score-orbit { width: 145px; height: 145px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: inset 0 0 0 9px rgba(255,255,255,.04); }
.score-orbit strong { font-size: 52px; color: #efd7ad; line-height: 1; }
.score-orbit span { color: #aebbb6; font-size: 11px; margin-top: 7px; }
.report-hero h2 { margin: 10px 0 8px; font-size: 32px; }
.report-hero p { max-width: 720px; margin: 0; color: #c0cbc7; line-height: 1.7; }
.report-hero .stage-kicker { color: #d2aa6e; }
.report-tags { display: flex; gap: 8px; margin-top: 16px; }
.report-tags span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); color: #afbeb8; font-size: 10px; }
.ghost-button.light { align-self: start; border-color: rgba(255,255,255,.25); color: #fff; background: transparent; }
.report-actions { align-self: stretch; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 9px; }
.report-actions button { white-space: nowrap; }
.report-next { background: #d5a760; color: #173128; }
.report-next:hover { background: #e3bb7e; }
.dimension-grid { display: grid; grid-template-columns: repeat(7,1fr); margin: 16px 0; background: #fff; border: 1px solid var(--line); }
.dimension-card { padding: 20px; border-right: 1px solid var(--line); }
.dimension-card:last-child { border-right: 0; }
.dimension-card header { display: flex; justify-content: space-between; font-size: 13px; }
.dimension-card strong { color: var(--green); font-size: 20px; }
.score-bar { height: 4px; margin-top: 13px; background: #e7ece9; }
.score-bar i { display: block; height: 100%; background: var(--green); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.report-panel { padding: 28px; box-shadow: none; }
.report-panel.wide { grid-column: 1 / -1; }
.report-panel h3 { margin: 0 0 18px; font-size: 17px; }
.rubric-summary { display: grid; gap: 12px; }
.rubric-summary > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rubric-summary > div span { padding: 7px 10px; color: var(--green); background: var(--green-soft); border: 1px solid rgba(19,95,80,.12); font-size: 11px; font-weight: 700; }
.rubric-summary p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rubric-summary .extreme-reason { padding: 11px 13px; color: #7a402b; background: #fff3e9; border-left: 3px solid #c37942; }
.feedback-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: #42534c; line-height: 1.7; font-size: 13px; }
.feedback-list.positive { list-style: none; padding: 0; }
.feedback-list.positive li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 9px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.evidence-grid p { margin: 0; padding: 13px 14px; background: #f5f7f5; border-left: 2px solid var(--gold); color: #475750; line-height: 1.65; font-size: 12px; }
.answer-guide > p { color: #405149; line-height: 1.85; }
.next-practice { margin-top: 18px; padding: 16px; display: grid; gap: 6px; background: var(--green-soft); color: #28473d; font-size: 13px; }
.next-practice strong { color: var(--green); }

.session-results { margin: 0 0 16px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.session-results-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.session-results-heading h2 { margin: 8px 0 0; font-size: 21px; }
.session-results-heading > p { margin: 0; color: var(--muted); font-size: 11px; }
.question-result-list { display: grid; gap: 9px; }
.question-result-card { display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: center; padding: 17px 18px; background: #f7f9f7; border-left: 3px solid var(--green); }
.question-result-score { display: flex; align-items: baseline; justify-content: center; gap: 3px; color: var(--green); }
.question-result-score strong { font-size: 34px; line-height: 1; }
.question-result-score span { font-size: 10px; }
.question-result-body > div:first-child { display: flex; justify-content: space-between; gap: 16px; color: var(--green); font-size: 11px; }
.question-result-body > div:first-child b { color: var(--gold); }
.question-result-body p { margin: 7px 0 10px; color: #3e5049; font-size: 12px; line-height: 1.6; }
.question-dimensions { display: flex; flex-wrap: wrap; gap: 6px; }
.question-dimensions span { padding: 4px 7px; color: #5e6e68; background: #e9efec; font-size: 9px; }

.history-section { margin-top: 56px; }
.section-title { align-items: flex-end; margin-bottom: 16px; }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 20px; padding: 17px 20px; background: rgba(255,255,255,.76); border: 1px solid var(--line); }
.history-score { display: flex; align-items: baseline; gap: 3px; color: var(--green); }
.history-score strong { font-size: 28px; }
.history-score span { font-size: 11px; }
.history-item h3 { margin: 0 0 5px; font-size: 14px; }
.history-item p, .empty-history { margin: 0; color: var(--muted); font-size: 12px; }
.history-item time { color: #87928e; font-size: 11px; }
.empty-history { padding: 24px; border: 1px dashed #cbd5d0; text-align: center; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; }
  .hero-score { display: none; }
  .setup-grid, .question-layout, .review-grid, .examiner-room { grid-template-columns: 1fr; }
  .question-layout { gap: 30px; }
  .timer-panel { max-width: 320px; }
  .answer-grid { grid-template-columns: 1fr; }
  .live-video-wrap { min-height: 450px; }
  .report-hero { grid-template-columns: auto 1fr; }
  .report-actions { grid-column: 2; justify-self: start; }
  .dimension-grid { grid-template-columns: repeat(3,1fr); }
  .dimension-card { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .interview-header { padding: 0 15px; }
  .provider-pill { max-width: 135px; }
  .provider-pill span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .interview-shell { width: min(100% - 24px, 1240px); padding-top: 32px; }
  .hero { margin-bottom: 26px; }
  .hero h1 { font-size: 36px; }
  .stepper { padding: 0; }
  .step { min-height: 52px; }
  .step span { display: none; }
  .stage-card { padding: 20px; }
  .time-grid, .report-grid, .evidence-grid { grid-template-columns: 1fr; }
  .device-list { grid-template-columns: 1fr; }
  .device-list > div + div { border-left: 0; }
  .answer-topbar { grid-template-columns: 1fr auto; }
  .answer-clock { display: none; }
  .live-video-wrap { min-height: 360px; }
  .answer-side { padding: 18px; }
  .report-hero { padding: 28px 22px; grid-template-columns: 1fr; text-align: center; }
  .score-orbit { margin: auto; }
  .report-hero button { grid-column: 1; justify-self: center; }
  .report-actions { grid-column: 1; justify-self: stretch; width: 100%; }
  .report-tags { justify-content: center; }
  .dimension-grid { grid-template-columns: 1fr 1fr; }
  .dimension-card { border-bottom: 1px solid var(--line); }
  .report-panel.wide { grid-column: auto; }
  .history-item { grid-template-columns: 70px 1fr; }
  .history-item time { grid-column: 2; }
  .session-progress-track { grid-template-columns: 1fr; }
  .session-progress-track > span { min-height: 39px; }
  .session-results { padding: 20px; }
  .session-results-heading { align-items: flex-start; flex-direction: column; }
  .question-result-card { grid-template-columns: 60px 1fr; gap: 10px; padding: 14px 12px; }
  .question-result-score strong { font-size: 28px; }
  body.immersive-reading .examiner-dialogue { bottom: 12px; width: calc(100vw - 20px); min-height: 0; padding: 17px; }
  body.immersive-reading .examiner-dialogue > p { max-height: 34vh; font-size: 15px; }
  body.immersive-reading .speaking-label { flex-wrap: wrap; }
  body.immersive-reading .voice-chip { margin-left: 0; }
  body.immersive-reading .examiner-actions { flex-wrap: wrap; }
  body.immersive-reading .immersive-exit { margin-left: 0; }
}
/* Training entry and report hand-off. */
.practice-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.practice-presets button { text-align: left; padding: 17px 18px; border: 1px solid #dae5e3; border-radius: 12px; background: #f7faf9; color: #193e36; cursor: pointer; font: inherit; }
.practice-presets button strong, .practice-presets button span { display: block; }
.practice-presets button span { margin-top: 5px; font-size: 12px; color: #61766f; line-height: 1.6; }
.practice-presets button[aria-pressed="true"] { border-color: #18836e; background: #edf8f3; box-shadow: 0 0 0 1px #18836e; }
.practice-presets button:focus-visible, .history-report-link:focus-visible { outline: 3px solid #dab35d; outline-offset: 3px; }
.practice-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; background: #edf7f4; border-left: 3px solid #16846c; margin-bottom: 22px; }
.practice-banner p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; }
.history-report-link { display: block; margin-top: 7px; font-size: 13px; color: #147562; text-decoration: none; white-space: nowrap; }
.report-save-status { font-size: 13px; color: #526960; margin: 14px 2px; line-height: 1.7; }
@media (max-width: 680px) { .practice-presets { grid-template-columns: 1fr; gap: 8px; } .practice-banner { align-items: flex-start; } }
/* 进入面试后让考题、计时和复盘处于首屏，避免重复展示大幅介绍区。 */
.interview-page.in-session .hero { display: none; }
.typed-answer { padding: 28px; background: #f7f9fc; color: #1b2843; }
.typed-answer label { font-weight: 700; font-size: 20px; }
.typed-answer p,.typed-answer small { color: #64728b; font-size: 12px; line-height: 1.7; }
.typed-answer textarea { display: block; width: 100%; min-height: 370px; margin: 16px 0 8px; padding: 16px; line-height: 1.9; resize: vertical; border: 1px solid #ccd5e4; border-radius: 10px; background: white; }
.answer-grid.text-mode .live-video-wrap,.answer-grid.text-mode .live-metrics,.answer-grid.text-mode .transcript-live { display: none; }
#downloadRecording { margin-top: 12px; }
.app-health { border: 1px solid #e7bf7d; background: #fff8ec; color: #6c4711; border-radius: 12px; padding: 16px 22px; margin-bottom: 18px; }
.app-health p { margin: 0 0 10px; line-height: 1.7; }
.app-health a,.app-health button { margin-right: 18px; font-size: 13px; text-decoration: underline; color: inherit; }
.app-health button { border: 0; background: transparent; cursor: pointer; }
.app-health[hidden] { display: none; }
.audio-message { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 36px; color: #eef3fb; background: #1b2843; gap: 16px; }
.audio-message strong { font-size: 30px; }
.audio-message p { font-size: 16px; line-height: 1.8; margin: 0; }
.audio-message small { color: #c6d1e4; line-height: 1.8; }
.live-video-wrap.audio-only video,.live-video-wrap.audio-only .video-guide { display: none; }
