:root {
  color-scheme: light;
  --paper: #f7f6f1; --white: #fff; --ink: #18231f; --muted: #51615b;
  --navy: #132b2a; --navy-light: #1d3b38; --accent: #dff0a0; --forest: #235644;
  --line: #dbe1d8; --pale: #edf1e8; --red: #a03132; --radius: 20px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
a { color: inherit; }
:focus-visible { outline: 3px solid #447a61; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
.header { border-bottom: 1px solid var(--line); }
.head-inner, .shell, .footer { width: min(1090px, calc(100% - 48px)); margin-inline: auto; }
.head-inner { min-height: 77px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font: 700 21px/1.08 Georgia, serif; }
.brand small { color: var(--muted); font-size: 13px; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); display: flex; gap: 3px; align-items: center; justify-content: center; }
.brand-icon i { height: 9px; width: 3px; border-radius: 5px; background: var(--accent); }
.brand-icon i:nth-child(2), .brand-icon i:nth-child(4) { height: 17px; }
.brand-icon i:nth-child(3) { height: 24px; }
.head-actions { display: flex; gap: 18px; align-items: center; }
.private { display: flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--muted); white-space: nowrap; }
.private b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3b765b; }
.shell { padding-block: clamp(26px, 5vw, 57px); flex: 1; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 17px 0; gap: 12px; color: var(--muted); font-size: .875rem; }
.hero { background: var(--navy); color: #f8f8ec; border-radius: 28px; display: grid; grid-template-columns: 1fr minmax(210px, 33%); gap: 36px; padding: clamp(27px, 5vw, 54px); align-items: center; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.95rem); letter-spacing: -.055em; margin-block: 14px 18px; }
.hero p { color: #d4e1d8; max-width: 32rem; }
.hero .button { margin-top: 25px; }
.hero-aside { display: grid; gap: 10px; }
.hero-stat { background: var(--navy-light); border: 1px solid #35524a; border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; }
.hero-stat strong { font: 400 32px/1 Georgia, serif; color: var(--accent); min-width: 81px; }
.hero-stat span { font-size: .875rem; color: #edf5ed; }
.eyebrow, .tag { font-size: .875rem; font-weight: 750; color: var(--forest); }
.eyebrow { letter-spacing: .095em; }
.tag { display: inline-block; border-radius: 999px; background: var(--pale); padding: 3px 10px; }
.two, .three { display: grid; gap: 16px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-grid { margin-block: 18px; }
.login-actions { margin-top: 18px; }
.student-list { list-style: none; padding: 0; overflow-wrap: anywhere; }
.student-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.student-list button { flex: none; }
.panel { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: clamp(19px, 3vw, 29px); }
.panel h2 { font-size: 1.25rem; margin: 9px 0 8px; }
.help, .panel p.help, .muted { color: var(--muted); }
.setup { max-width: 460px; margin: 0 auto; }
.setup h1, .intro h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); margin: 8px 0 10px; }
.setup .button { width: 100%; }
form { display: grid; gap: 15px; margin-top: 22px; }
label { font-weight: 700; display: grid; gap: 6px; }
input, select { width: 100%; border: 1px solid #aebeb4; border-radius: 10px; padding: 10px 12px; color: var(--ink); background: white; }
input:focus, select:focus { border-color: var(--forest); }
.password-field { display: grid; gap: 6px; }
.password-control { position: relative; }
.password-control input { padding-inline-end: 50px; }
.password-control input::-ms-reveal { display: none; }
.password-toggle { position: absolute; inset-block: 1px; inset-inline-end: 1px; width: 44px; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--forest); background: transparent; }
.password-toggle:hover { background: var(--pale); }
.password-toggle:focus-visible { outline-offset: -3px; }
.password-eye { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
.password-eye::before { content: ""; width: 15px; height: 15px; border: 1.5px solid; border-radius: 75% 0; transform: rotate(45deg); }
.password-eye::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.password-control input[type="text"] + .password-toggle .password-eye::after { width: 22px; height: 2px; transform: rotate(-45deg); box-shadow: 0 1px 0 var(--white); }
.button, .quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; padding: 9px 15px; font-weight: 750; }
.button { color: white; background: var(--navy); border: 1px solid transparent; }
.button:hover { background: var(--forest); }
.button.acid { background: var(--accent); color: var(--navy); }
.button.acid:hover { background: #edf7c6; }
.button.ghost { background: white; color: var(--navy); border-color: #b4c3b9; }
.button.ghost:hover, .quiet:hover { background: var(--pale); }
.button.stop { background: var(--red); }
.button.stop:hover { background: #852629; }
.quiet { background: transparent; border: 0; color: var(--forest); text-decoration: underline; padding-inline: 5px; }
.tool-row, .button-row, .top-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-row { justify-content: space-between; }
.tool-row h2 { margin: 0; }
.tool-row p { margin-top: 5px; }
.info { margin-top: 14px; color: var(--muted); font-size: .93rem; }
.alert { color: var(--red); margin-top: 10px; font-weight: 650; }
.hero .alert { color: #ffc6bf; }
.intro { margin-bottom: 20px; }
.stepbar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.stepbar span { border: 1px solid var(--line); color: var(--muted); background: #fff; padding: 3px 12px; border-radius: 999px; font-size: .85rem; }
.stepbar span[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff; }
.option { text-align: left; color: var(--ink); min-height: 190px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.option:hover { border-color: var(--forest); background: #fbfdf8; }
.option strong[lang] { font: 700 clamp(1.25rem, 3vw, 1.62rem)/1.28 Georgia, serif; }
.option .pick { color: var(--forest); font-weight: 750; margin-top: auto; }
.exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, 29%); gap: 15px; align-items: start; }
.question { font: 700 clamp(1.55rem, 4vw, 2.28rem)/1.25 Georgia, serif; margin: 12px 0; overflow-wrap: anywhere; }
.cues { margin-top: 18px; padding-left: 22px; color: var(--muted); }
.cues li + li { margin-top: 5px; }
.timer { font: 400 clamp(2.8rem, 5vw, 4.4rem)/1 Georgia, serif; font-variant-numeric: tabular-nums; display: block; margin: 8px 0 9px; }
.timer.red { color: var(--red); }
.reading .button-row, .finish-panel .button-row { margin-top: 18px; }
progress { width: 100%; accent-color: var(--forest); height: 12px; }
.recording { color: var(--red); font-size: .9rem; font-weight: 750; display: inline-flex; gap: 7px; align-items: center; }
.recording::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.answer { margin-top: 14px; }
.answer summary { cursor: pointer; font-weight: 700; }
audio { max-width: 100%; width: 390px; margin: 8px 0 1px; }
.transcript { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--muted); }
.report-grid { margin-top: 17px; }
.report-card .top-row { justify-content: space-between; }
.report-card h2 { margin: 0; }
.report-card p { margin-top: 8px; overflow-wrap: anywhere; }
.score { font: bold 1.5rem/1 Georgia, serif; color: var(--forest); white-space: nowrap; }
.report-total { margin: 16px 0; }
.report-rubric { margin: 16px 0; }
.report-rubric summary { cursor: pointer; font-weight: 750; }
.report-rubric ul { padding-left: 22px; }
.report-rubric li { margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .head-inner, .shell, .footer { width: calc(100% - 28px); }
  .head-inner { min-height: 65px; }
  .head-actions { gap: 7px; }
  .hero, .two, .three, .exam-grid { grid-template-columns: 1fr; }
  .hero { gap: 23px; }
  .hero-aside { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hero-stat { align-items: flex-start; flex-direction: column; gap: 4px; padding: 10px; }
  .hero-stat strong { font-size: 1.35rem; min-width: 0; }
  .hero-stat span { font-size: .83rem; }
  .option { min-height: 130px; }
  .exam-grid > aside { grid-row: 1; }
  .footer { align-items: flex-start; }
}
