:root {
  --navy: #18233d;
  --navy-soft: #293956;
  --paper: #f4f0e9;
  --surface: #fffdf9;
  --surface-blue: #edf3f6;
  --ink: #172033;
  --muted: #626d7e;
  --muted-soft: #e8eaed;
  --line: #d5d9de;
  --border: #d5d9de;
  --card: #ffffff;
  --coral: #df6d5f;
  --coral-soft: #fae9e4;
  --blue: #5279b9;
  --blue-soft: #e9f0f6;
  --gold: #d6a548;
  --green: #3d806b;
  --success: #3d806b;
  --danger: #b9473d;
  --brand: #df6d5f;
  --brand-soft: #fae9e4;
  --shadow: 0 12px 28px rgba(23, 32, 51, 0.065);
  --radius: 4px;
  --sidebar-width: 232px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
#mainContent:focus { outline: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  padding: 22px 16px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  color: #fff;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
  border-right: 4px solid var(--coral);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; border: 0; color: #fff; background: transparent; text-align: left; padding: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--coral); font: 800 24px/1 Georgia, serif; }
.brand b { display: block; font: 800 18px/1.1 Georgia, serif; letter-spacing: 0; }
.brand small { display: block; margin-top: 4px; color: #bac2d1; font-size: 10px; letter-spacing: .16em; }
.main-nav { display: grid; align-content: start; gap: 5px; }
.nav-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #cbd1dc;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.nav-item span { width: 26px; height: 26px; display: grid; place-items: center; color: #f0a497; font-weight: 800; }
.nav-item:hover, .nav-item.active { color: #fff; background: #26334d; border-color: #3b4964; }
.nav-item.active { box-shadow: inset 3px 0 var(--coral); }
.sidebar-foot { display: grid; gap: 12px; }
.season-stamp { display: flex; align-items: center; gap: 10px; padding: 10px; color: #cbd1dc; border: 1px solid #3b4964; }
.season-stamp span { color: var(--coral); font: 800 20px/1 Georgia, serif; }
.season-stamp b { font-size: 12px; }
.account-compact { display: grid; grid-template-columns: 36px 1fr; gap: 9px; align-items: center; border: 0; color: #fff; background: transparent; padding: 4px; text-align: left; }
.account-compact .avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #f7c5bb; font-weight: 800; }
.account-compact b, .account-compact small { display: block; }
.account-compact small { color: #9ea8ba; font-size: 11px; }

.page-column { min-width: 0; padding: 0 28px 48px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #cdd2d9;
  background: rgba(244, 240, 233, .94);
  backdrop-filter: blur(12px);
}
.topbar p, .section-kicker { margin-bottom: 4px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topbar h1 { margin: 0; font: 800 clamp(24px, 2.4vw, 36px)/1.16 Georgia, "Microsoft YaHei", serif; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
main { width: min(1540px, 100%); margin: 0 auto; padding-top: 24px; }
.view { display: none; animation: enter .28s ease-out both; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

.primary-btn, .secondary-btn, .quiet-btn, .icon-btn, .danger-btn {
  min-height: 40px;
  border-radius: 5px;
  border: 1px solid var(--navy);
  padding: 8px 14px;
  font-weight: 800;
}
.primary-btn { color: #fff; background: var(--navy); }
.primary-btn:hover { background: var(--navy-soft); }
.secondary-btn { color: var(--navy); background: var(--surface); }
.secondary-btn:hover, .quiet-btn:hover { border-color: var(--coral); color: var(--coral); }
.quiet-btn { color: var(--muted); background: transparent; border-color: var(--line); }
.danger-btn { color: var(--danger); border-color: #efc5bf; background: #fff8f6; }
.icon-btn { width: 40px; padding: 0; color: var(--navy); background: var(--surface); }
.full { width: 100%; display: grid; place-items: center; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}
input, select { min-height: 42px; padding: 0 11px; }
textarea { min-height: 110px; padding: 11px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 114, 216, .16); outline: 0; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, .98); box-shadow: var(--shadow); }
.panel-pad { padding: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-head h2, .section-head h3 { margin: 0; font-family: Georgia, "Microsoft YaHei", serif; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.new { color: var(--green); border-color: #b9d9ce; background: #edf7f3; }
.pill.coral { color: var(--coral); border-color: #f0c7bf; background: #fff6f3; }
.pill.blue { color: var(--blue); border-color: #c7d2f3; background: var(--blue-soft); }
.empty-state { min-height: 240px; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; }

.dashboard-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; margin-bottom: 16px; }
.today-band { min-height: 246px; padding: 24px; color: #fff; background: var(--navy); position: relative; overflow: hidden; }
.today-band::after { content: "SPEAK"; position: absolute; right: 18px; bottom: -18px; color: rgba(255,255,255,.045); font: 900 88px/1 Georgia, serif; }
.today-band h2 { max-width: 720px; margin: 10px 0; font: 800 clamp(28px, 3vw, 46px)/1.12 Georgia, "Microsoft YaHei", serif; }
.today-band p { max-width: 680px; color: #cbd1dc; }
.today-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.today-actions .primary-btn { color: var(--navy); background: #fff; border-color: #fff; }
.today-actions .secondary-btn { color: #fff; background: transparent; border-color: #56627a; }
.profile-form { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.profile-form .wide { grid-column: 1 / -1; }
.profile-form h3 { grid-column: 1 / -1; margin: 0 0 4px; font-family: Georgia, "Microsoft YaHei", serif; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { padding: 17px; border-left: 4px solid var(--blue); }
.stat-card:nth-child(2) { border-left-color: var(--coral); }
.stat-card:nth-child(3) { border-left-color: var(--gold); }
.stat-card:nth-child(4) { border-left-color: var(--green); }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 7px; font: 800 30px/1 Georgia, serif; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 16px; }
.heatmap { display: grid; grid-template-columns: repeat(14, minmax(13px, 1fr)); gap: 6px; }
.heat-cell { aspect-ratio: 1; min-width: 12px; border: 1px solid #e0e3e7; background: #f3f2ef; }
.heat-cell.l1 { background: #f7d9d2; border-color: #efc7be; }
.heat-cell.l2 { background: #f1aa9c; border-color: #e89181; }
.heat-cell.l3 { background: var(--coral); border-color: var(--coral); }
.heat-cell.today { outline: 2px solid var(--navy); outline-offset: 2px; }
.task-list, .activity-list { display: grid; gap: 8px; }
.task-row, .activity-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e6e7e9; }
.task-row:last-child, .activity-row:last-child { border-bottom: 0; }
.task-row input { width: 18px; min-height: 18px; }
.activity-row time { color: var(--muted); font-size: 11px; }
.study-note { margin-top: 14px; padding: 14px 16px; border-left: 4px solid var(--coral); background: var(--coral-soft); color: #71352d; }

.workspace-grid { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 16px; align-items: start; }
.filters { position: sticky; top: 18px; height: calc(100dvh - 154px); min-height: 560px; max-height: 850px; padding: 16px; overflow: hidden; }
.bank-picker-toggle { display: none; }
.bank-picker-fields { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 12px; overflow: hidden; }
.search-field { position: relative; }
.search-field input { padding-left: 36px; }
.search-field::before { content: "⌕"; position: absolute; left: 12px; top: 8px; color: var(--muted); font-size: 18px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #eef0f2; }
.segmented button { flex: 1; min-height: 34px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-weight: 800; }
.segmented button.active { color: var(--navy); background: #fff; box-shadow: 0 2px 7px rgba(23,32,51,.08); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic-list { min-height: 0; display: grid; gap: 5px; overflow-y: auto; padding-right: 3px; }
.topic-button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px; border: 1px solid transparent; border-radius: 4px; color: var(--ink); background: transparent; text-align: left; }
.topic-button:hover { background: #f2f4f7; }
.topic-button.active { border-color: #c8d2eb; background: var(--blue-soft); }
.topic-button b { display: block; font-size: 14px; }
.topic-button small { color: var(--muted); }
.topic-button .heat { align-self: center; color: var(--coral); font: 800 12px/1 Georgia, serif; }
.content-stage { min-height: 680px; }
.topic-hero { padding: 26px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topic-hero h2 { max-width: 900px; margin: 10px 0 8px; font: 800 clamp(28px, 3.3vw, 52px)/1.08 Georgia, "Microsoft YaHei", serif; }
.topic-hero p { color: var(--muted); }
.topic-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.topic-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.question-stack { padding: 20px 26px 30px; display: grid; gap: 9px; }
.question-card { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.question-card .number { color: var(--coral); font: 800 18px/1.5 Georgia, serif; }
.question-card p { margin: 0; font: 700 19px/1.45 Georgia, "Microsoft YaHei", serif; }
.cue-list { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.ranking { display: inline-grid; place-items: center; min-width: 38px; height: 24px; margin-right: 6px; color: #fff; background: var(--coral); font-size: 11px; font-weight: 900; }

.material-layout { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 16px; align-items: start; }
.material-toolbar { position: sticky; top: 18px; height: calc(100dvh - 154px); min-height: 560px; max-height: 850px; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.locked-banner { display: grid; gap: 12px; padding: 20px; border: 1px solid #e6c87f; background: #fff9e9; }
.locked-banner h3 { margin: 0; }
.material-preview-note { padding: 10px 11px; border-left: 3px solid var(--coral); background: #fff6f3; }
.material-preview-note p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.material-access { align-self: center; padding: 4px 6px; border-radius: 3px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.material-access.free { color: #2e725d; background: #e7f4ef; }
.material-access.locked { color: #7b6c46; background: #f5eedb; }
.topic-button.locked:not(.active) { color: #656c7a; }
.material-reader { min-height: 720px; overflow: hidden; }
.material-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.material-head h2 { margin: 7px 0; font: 800 clamp(25px, 3vw, 44px)/1.12 Georgia, "Microsoft YaHei", serif; }
.material-head p { color: var(--muted); }
.material-body { padding: 22px 26px 34px; display: grid; gap: 16px; }
.material-question { border-top: 4px solid var(--blue); padding: 18px; background: #fff; }
.material-question h3 { margin: 0 0 14px; font: 800 23px/1.3 Georgia, "Microsoft YaHei", serif; }
.material-audio-actions { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.material-audio-btn { position: relative; overflow: hidden; isolation: isolate; }
.material-audio-btn::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--audio-progress, 0%); background: var(--blue-soft); transition: width .12s linear; }
.material-audio-btn.playing { color: var(--navy); border-color: var(--blue); }
.answer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.answer-column { padding: 14px; border: 1px solid var(--line); background: #fafafa; }
.answer-column h4 { margin: 0 0 9px; color: var(--coral); }
.answer-column p { margin: 0 0 9px; }
.expression-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.expression-list span { padding: 6px 9px; border: 1px solid #d6ddef; background: var(--blue-soft); color: #304e9b; font-size: 12px; }
.vocab-block { padding: 16px; border-left: 4px solid var(--gold); background: #fffaf0; }
.vocab-block h3 { margin-bottom: 8px; }
.vocab-block p { margin: 0; color: var(--muted); }

.shadow-layout { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 16px; }
.shadow-menu { position: sticky; top: 18px; height: calc(100dvh - 154px); min-height: 560px; max-height: 850px; padding: 15px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.shadow-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shadow-menu-toggle { display: none; }
.shadow-player { min-height: 720px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.shadow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.shadow-stage { min-height: 530px; display: grid; align-content: center; padding: clamp(24px, 5vw, 72px); background: var(--surface); position: relative; overflow: hidden; }
.shadow-stage::after { content: "LISTEN / REPEAT"; position: absolute; right: 22px; top: 18px; color: #d9dee7; font: 800 12px/1 Georgia, serif; }
.examiner-question { max-width: 1000px; margin: 0 auto 34px; text-align: center; }
.examiner-question span { display: inline-block; color: var(--coral); font-size: 12px; font-weight: 900; }
.examiner-question h2 { margin: 8px 0 0; font: 800 clamp(28px, 4vw, 54px)/1.15 Georgia, serif; }
.cue-card { display: grid; gap: 5px; max-width: 700px; margin: 14px auto 0; color: var(--muted); text-align: left; }
.sentence-display { max-width: 1000px; margin: 0 auto; text-align: center; }
.sentence-display .english { margin: 0; font: 800 clamp(25px, 3.4vw, 48px)/1.34 Georgia, serif; }
.sentence-display .english .spoken { color: var(--coral); }
.sentence-display .chinese { margin: 16px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 22px); }
.turn-signal { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; color: var(--blue); font-weight: 900; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .35; } }
.shadow-progress { height: 5px; background: #e6e8ec; }
.shadow-progress span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .15s linear; }
.shadow-control-dock { position: sticky; bottom: 0; z-index: 5; }
.shadow-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); background: #fff; }
.transport { display: flex; align-items: center; gap: 8px; }
.play-button { width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: var(--navy); font-weight: 900; }
.shadow-settings { display: flex; justify-content: flex-end; gap: 8px; }
.shadow-settings select { width: auto; min-width: 88px; }
.micro-status { color: var(--muted); font-size: 12px; }

.mock-lobby { min-height: 710px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); overflow: hidden; border: 1px solid #c9ced5; border-top: 5px solid var(--coral); background: var(--surface); box-shadow: var(--shadow); }
.mock-lobby-copy { display: grid; align-content: center; padding: clamp(30px, 5vw, 74px); border-right: 1px solid var(--line); background-image: linear-gradient(rgba(24,35,61,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24,35,61,.035) 1px, transparent 1px); background-size: 32px 32px; }
.mock-room-label { width: fit-content; display: flex; align-items: center; gap: 9px; margin-bottom: 42px; color: var(--muted); font: 800 11px/1 Georgia, serif; }
.mock-room-label span, .mock-rec span { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(223,109,95,.12); }
.mock-lobby-copy h2 { max-width: 720px; margin: 10px 0 22px; font: 800 clamp(42px, 5vw, 70px)/1.04 Georgia, "Microsoft YaHei", serif; }
.mock-lobby-intro { max-width: 690px; color: var(--muted); font-size: 17px; }
.mock-lobby-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 28px 0; border: 1px solid var(--line); background: var(--line); }
.mock-lobby-meta span { min-height: 78px; display: grid; align-content: center; gap: 2px; padding: 12px 14px; color: var(--muted); background: #fff; font-size: 12px; }
.mock-lobby-meta b { color: var(--ink); font-size: 15px; }
.mock-lobby-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.mock-enter-btn { min-width: 190px; }
.mock-casting { display: grid; align-content: center; padding: clamp(24px, 3.2vw, 50px); background: #edf1f3; }
.mock-casting > header { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.mock-casting h3 { margin: 3px 0 0; font: 800 24px/1.1 Georgia, "Microsoft YaHei", serif; }
.mock-casting > header > span { color: var(--muted); font-size: 12px; }
.examiner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.examiner-choice { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #cbd0d6; border-radius: 5px; color: var(--ink); background: #fff; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.examiner-choice:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 10px 20px rgba(24,35,61,.09); }
.examiner-choice.active { border: 2px solid var(--coral); box-shadow: 0 0 0 3px rgba(223,109,95,.13); }
.examiner-choice-copy { min-height: 61px; display: grid; align-content: center; padding: 9px 10px; }
.examiner-choice-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.examiner-choice-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.examiner-portrait { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background-image: url('/platform/assets/ielts-examiner-cast.png'); background-repeat: no-repeat; background-size: 300% 200%; background-position: var(--portrait-position); }
.examiner-sound { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 26px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(255,255,255,.72); border-radius: 4px; background: rgba(24,35,61,.7); opacity: 0; backdrop-filter: blur(5px); z-index: 2; }
.examiner-sound i { width: 3px; height: 7px; background: #fff; }
.is-speaking .examiner-sound { opacity: 1; }
.is-speaking .examiner-sound i { animation: voiceBar .62s ease-in-out infinite alternate; }
.is-speaking .examiner-sound i:nth-child(2) { animation-delay: -.2s; }
.is-speaking .examiner-sound i:nth-child(3) { animation-delay: -.4s; }
.is-speaking .examiner-sound i:nth-child(4) { animation-delay: -.1s; }
@keyframes voiceBar { to { height: 19px; background: #f6a295; } }

.mock-room { min-height: 720px; display: grid; grid-template-rows: auto 1fr 5px; overflow: hidden; border: 1px solid #bec5ce; border-top: 5px solid var(--navy); background: #e9edf0; box-shadow: 0 16px 40px rgba(24,35,61,.1); }
.mock-room-top { min-height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid #cbd0d6; background: #fff; }
.mock-rec { display: flex; align-items: center; gap: 9px; color: var(--danger); font: 800 11px/1 Georgia, serif; }
.mock-rec span { animation: recPulse 1.5s ease-in-out infinite; }
@keyframes recPulse { 50% { opacity: .35; } }
.mock-room-progress { display: flex; align-items: center; gap: 9px; }
.mock-room-progress b { min-width: 48px; padding: 6px 9px; color: #fff; background: var(--navy); text-align: center; }
.mock-room-progress span { color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-exit { justify-self: end; border: 0; color: var(--muted); background: transparent; font-weight: 800; }
.mock-room-body { display: grid; grid-template-columns: minmax(300px, .38fr) minmax(0, .62fr); min-height: 0; }
.examiner-video { position: relative; min-height: 650px; display: grid; place-items: center; align-content: center; overflow: hidden; padding: 40px 24px 100px; border-right: 1px solid #bfc6cf; background: #dbe2e6; }
.examiner-video::before { content: "CAM 01"; position: absolute; left: 16px; top: 16px; z-index: 2; padding: 5px 8px; color: #fff; background: rgba(24,35,61,.76); font: 800 10px/1 Georgia, serif; }
.examiner-video > .examiner-portrait { width: min(96%, 500px); border: 8px solid rgba(255,255,255,.82); box-shadow: 0 20px 50px rgba(24,35,61,.16); }
.examiner-video.is-speaking > .examiner-portrait { animation: examinerPresence 1.8s ease-in-out infinite; }
@keyframes examinerPresence { 50% { transform: translateY(-3px) scale(1.004); } }
.examiner-id { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; padding: 14px 16px; border-left: 4px solid var(--coral); color: #fff; background: rgba(24,35,61,.91); }
.examiner-id span { color: #ef9e92; font: 800 10px/1 Georgia, serif; }
.examiner-id b { margin-top: 4px; font: 800 18px/1.1 Georgia, serif; }
.examiner-id small { color: #cbd1dc; }
.mock-question-stage { min-width: 0; display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(24px, 4vw, 58px); background-color: #fffdf9; background-image: linear-gradient(rgba(24,35,61,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(24,35,61,.025) 1px, transparent 1px); background-size: 40px 40px; }
.mock-phase-line { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.mock-phase-line span { color: var(--coral); font-weight: 900; }
.mock-phase-line strong { color: var(--ink); font: 800 36px/1 Georgia, serif; font-variant-numeric: tabular-nums; }
.mock-question-paper { align-self: center; max-width: 950px; width: 100%; margin: 26px auto; }
.mock-question-paper > p { margin-bottom: 13px; color: var(--muted); font-size: 13px; font-weight: 800; }
.mock-question-paper h2 { margin: 0; font: 800 clamp(32px, 4vw, 58px)/1.13 Georgia, "Microsoft YaHei", serif; }
.mock-question-paper.cue-paper { padding: clamp(24px, 4vw, 48px); border: 1px solid #c9ced5; border-top: 6px solid var(--navy); background: #fff; box-shadow: 0 12px 26px rgba(24,35,61,.08); }
.mock-question-paper.cue-paper h2 { font-size: clamp(28px, 3.2vw, 46px); }
.mock-cue-list { display: grid; gap: 8px; margin: 24px 0 0; padding-left: 24px; color: var(--navy-soft); font-size: clamp(16px, 1.4vw, 21px); }
.mock-response-status { min-height: 80px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); background: #f1f3f4; }
.mock-response-status b, .mock-response-status small { display: block; }
.mock-response-status small { color: var(--muted); font-size: 11px; }
.mock-mic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); }
.mock-mic i { position: relative; width: 11px; height: 18px; border: 2px solid currentColor; border-radius: 8px; }
.mock-mic i::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 17px; height: 8px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 9px 9px; transform: translateX(-50%); }
.mock-response-status.is-recording { border-color: #efb2a9; background: var(--coral-soft); }
.mock-response-status.is-recording .mock-mic { background: var(--coral); animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 8px rgba(223,109,95,.15); } }
.mock-levels { display: flex; align-items: center; gap: 3px; height: 34px; }
.mock-levels i { width: 3px; height: 6px; background: #aeb6c2; }
.is-recording .mock-levels i { background: var(--coral); animation: levelMove .7s ease-in-out infinite alternate; }
.is-recording .mock-levels i:nth-child(2n) { animation-delay: -.3s; }
.is-recording .mock-levels i:nth-child(3n) { animation-delay: -.5s; }
@keyframes levelMove { to { height: 28px; } }
.mock-room-actions { min-height: 58px; display: flex; justify-content: flex-end; align-items: end; padding-top: 12px; }
.mock-exam-track { background: #d6dbe1; }
.mock-exam-track span { display: block; height: 100%; background: var(--coral); transition: width .35s ease; }

.mock-analysis { min-height: 710px; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); overflow: hidden; }
.analysis-visual { position: relative; min-height: 710px; display: grid; place-items: center; overflow: hidden; border-right: 1px solid #34415b; background: var(--navy); }
.analysis-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 38px 38px; }
.analysis-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--coral); box-shadow: 0 0 22px rgba(223,109,95,.8); animation: scanDown 2.4s linear infinite; }
@keyframes scanDown { to { transform: translateY(710px); } }
.analysis-score { position: relative; width: 220px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #7f8aa0; color: #fff; background: #202e49; font: 800 76px/1 Georgia, serif; }
.analysis-score::before, .analysis-score::after { content: ""; position: absolute; inset: 16px; border: 1px solid #53617b; animation: analysisRotate 8s linear infinite; }
.analysis-score::after { inset: 32px; border-color: var(--coral); animation-direction: reverse; animation-duration: 5s; }
@keyframes analysisRotate { to { transform: rotate(360deg); } }
.analysis-score small { position: absolute; bottom: 48px; color: #cbd1dc; font: 800 10px/1 Georgia, serif; }
.analysis-copy { display: grid; align-content: center; padding: clamp(30px, 5vw, 74px); }
.analysis-copy h2 { margin: 8px 0 14px; font: 800 clamp(38px, 5vw, 64px)/1.06 Georgia, "Microsoft YaHei", serif; }
.analysis-copy > p:not(.section-kicker) { color: var(--muted); }
.analysis-copy ol { display: grid; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.analysis-copy li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.analysis-copy li span { font: 800 12px/1 Georgia, serif; }
.analysis-copy li.active { border-color: #8ea4c8; color: var(--ink); background: var(--blue-soft); }
.analysis-copy li.active span { color: var(--coral); }
.analysis-running { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.analysis-running i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: dotWait 1s ease-in-out infinite; }
.analysis-running i:nth-child(2) { animation-delay: .18s; }
.analysis-running i:nth-child(3) { animation-delay: .36s; }
@keyframes dotWait { 50% { transform: translateY(-6px); opacity: .45; } }
.mock-analysis.has-error .analysis-scan { animation: none; top: 50%; opacity: .4; }

.mock-report-shell { overflow: hidden; }
.mock-report-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 50px); color: #fff; background: var(--navy); }
.mock-report-head h2 { margin: 7px 0; font: 800 clamp(38px, 5vw, 66px)/1.05 Georgia, "Microsoft YaHei", serif; }
.mock-report-head p { margin-bottom: 0; color: #cbd1dc; }
.overall-band { flex: 0 0 180px; min-height: 180px; display: grid; place-items: center; align-content: center; border: 1px solid #59657b; background: #222f49; }
.overall-band span, .overall-band small { color: #cbd1dc; font: 800 10px/1 Georgia, serif; }
.overall-band strong { margin: 8px 0; color: #fff; font: 800 72px/1 Georgia, serif; }
.mock-report-body { padding: clamp(20px, 3vw, 40px); }
.mock-report-body .score-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-checklist { margin-top: 24px; border: 1px solid var(--line); background: #fff; }
.report-checklist > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.report-checklist h3 { margin: 3px 0 0; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.report-table th { color: var(--muted); background: #f1f3f4; }
.report-table td:nth-child(1) { width: 90px; }
.report-table td:nth-child(2) { width: 70px; color: var(--coral); font: 800 20px/1 Georgia, serif; }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mock-report-actions { display: flex; gap: 9px; margin-top: 20px; }
.score-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.score-card { min-height: 96px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); text-align: center; background: #fff; }
.score-card strong { display: block; color: var(--coral); font: 800 30px/1 Georgia, serif; }
.report-section { margin-top: 15px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.report-section h3 { margin-bottom: 8px; }
.report-section ul { margin: 0; padding-left: 20px; }
.evidence { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--coral); color: var(--muted); background: var(--coral-soft); }

.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 16px; }
.contact-copy { min-height: 560px; display: grid; align-content: center; padding: clamp(26px, 5vw, 70px); background: var(--navy); color: #fff; }
.contact-copy h2 { margin: 8px 0 18px; font: 800 clamp(32px, 4vw, 58px)/1.08 Georgia, "Microsoft YaHei", serif; }
.contact-copy p { color: #cbd1dc; }
.contact-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.contact-actions .secondary-btn { color: #fff; border-color: #56627a; background: transparent; }
.contact-qr { min-height: 560px; display: grid; place-items: center; padding: 28px; text-align: center; }
.contact-qr img { width: min(360px, 82vw); border: 10px solid #fff; box-shadow: var(--shadow); }
.contact-qr h3 { margin: 18px 0 2px; }
.contact-qr p { color: var(--muted); }
.account-data { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 16px; padding: 20px; }
.account-data h2 { margin: 4px 0; }
.account-data p { margin: 0; color: var(--muted); }
.account-data > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.admin-page { display: grid; gap: 16px; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-summary { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 16px; }
.admin-status { padding: 20px; }
.admin-status h2, .table-heading h2 { margin: 4px 0 14px; }
.status-list { display: grid; gap: 9px; }
.status-list span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.status-list b { color: var(--ink); }
.table-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 4px; }
.table-sub { display: block; margin-top: 3px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.admin-create { padding: 20px; display: grid; gap: 13px; align-content: start; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.data-table th { color: var(--muted); background: #f1f3f5; }
.table-wrap { overflow: auto; }

.modal { width: min(520px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 7px; color: var(--ink); background: transparent; box-shadow: 0 30px 80px rgba(11, 18, 31, .28); }
.modal::backdrop { background: rgba(17, 25, 40, .68); backdrop-filter: blur(5px); }
.modal-shell { position: relative; display: grid; gap: 16px; padding: 28px; border-top: 5px solid var(--coral); background: var(--surface); }
.modal-shell h2 { margin: 0; font: 800 30px/1.15 Georgia, "Microsoft YaHei", serif; }
.modal-shell p { margin-bottom: 0; color: var(--muted); }
.close-btn { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; color: var(--muted); background: transparent; font-size: 25px; }
.privacy-note, .form-note { font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 22px; z-index: 100; max-width: min(380px, calc(100vw - 40px)); padding: 12px 16px; color: #fff; background: var(--navy); border-left: 4px solid var(--coral); box-shadow: var(--shadow); transform: translateY(130%); opacity: 0; transition: .22s ease; }
.toast.show { transform: none; opacity: 1; }
.mobile-nav { display: none; }
.legal-page { width: min(900px, calc(100% - 32px)); margin: 36px auto; padding: 30px; }
.legal-page h1 { margin: 8px 0 24px; font: 800 clamp(34px, 5vw, 58px)/1.08 Georgia, "Microsoft YaHei", serif; }
.legal-page h2 { margin: 28px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.8; }
.mobile-more-dialog { width: 100%; max-width: none; margin: auto 0 0; padding: 0; border: 0; background: transparent; }
.mobile-more-dialog::backdrop { background: rgba(17,25,40,.55); backdrop-filter: blur(4px); }
.mobile-more-sheet { padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 4px solid var(--coral); background: var(--surface); box-shadow: 0 -20px 50px rgba(17,25,40,.2); }
.mobile-more-sheet header { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.mobile-more-sheet h2 { margin: 2px 0 14px; }
.mobile-more-sheet nav { display: grid; gap: 8px; }
.mobile-more-sheet nav button, .mobile-more-sheet nav a { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; text-align: left; }
.mobile-more-sheet nav span { grid-row: 1 / 3; align-self: center; color: var(--coral); font-size: 20px; }
.mobile-more-sheet nav small { color: var(--muted); }
.mobile-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

@media (max-width: 1100px) {
  .admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-summary { grid-template-columns: 1fr; }
  :root { --sidebar-width: 210px; }
  .page-column { padding-inline: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-lead, .dashboard-grid { grid-template-columns: 1fr; }
  .profile-form { grid-template-columns: repeat(4, 1fr); }
  .profile-form h3 { grid-column: 1 / -1; }
  .profile-form .wide { grid-column: auto; }
  .score-grid { grid-template-columns: repeat(3, 1fr); }
  .mock-lobby { grid-template-columns: 1fr; }
  .mock-lobby-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .examiner-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .mock-room-body { grid-template-columns: minmax(270px, .34fr) minmax(0, .66fr); }
  .mock-question-stage { padding: 30px; }
}

@media (max-width: 820px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { background-size: 28px 28px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .page-column { padding: 0 14px calc(84px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 88px; align-items: center; }
  .topbar p { display: none; }
  .topbar h1 { font-size: 24px; }
  .top-actions .quiet-btn { display: none; }
  main { padding-top: 14px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(6, 1fr); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,249,.96); backdrop-filter: blur(10px); }
  .mobile-nav button { min-width: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
  .mobile-nav span { display: block; height: 21px; color: var(--coral); font-size: 17px; }
  .mobile-nav button.active { color: var(--navy); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .workspace-grid, .material-layout, .shadow-layout, .contact-layout, .admin-grid { grid-template-columns: 1fr; }
  .shadow-menu-toggle { display: inline-flex; }
  .shadow-menu.collapsed .search-field, .shadow-menu.collapsed .topic-list { display: none; }
  .shadow-menu.collapsed { padding-bottom: 10px; }
  .filters, .material-toolbar, .shadow-menu { position: static; height: auto; min-height: 0; max-height: none; overflow: visible; }
  .filters { padding: 9px; }
  .bank-picker-toggle {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 11px;
    color: var(--navy);
    cursor: pointer;
    background: #fffaf6;
    border: 1px solid #eee3da;
    border-radius: 14px;
    text-align: left;
  }
  .bank-picker-toggle > span { min-width: 0; display: grid; gap: 3px; }
  .bank-picker-toggle b { font-size: 14px; }
  .bank-picker-toggle small { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
  .bank-picker-toggle i { flex: 0 0 auto; font: 800 23px/1 Georgia, serif; font-style: normal; transition: transform .18s ease; }
  .filters.is-open .bank-picker-toggle i { transform: rotate(180deg); }
  .bank-picker-fields { display: none; height: auto; overflow: visible; }
  .filters.is-open .bank-picker-fields { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .filters.is-open .topic-list { max-height: 250px; }
  .topic-list { max-height: 320px; }
  .content-stage, .material-reader, .shadow-player { min-height: 0; }
  .topic-hero, .question-stack, .material-head, .material-body { padding-inline: 17px; }
  .topic-hero h2 { font-size: 34px; }
  .answer-pair { grid-template-columns: 1fr; }
  .shadow-stage { min-height: 430px; padding: 26px 18px; }
  #shadowView { padding-bottom: 176px; }
  .shadow-control-dock { position: fixed; left: 14px; right: 14px; bottom: calc(61px + env(safe-area-inset-bottom)); z-index: 35; border: 1px solid var(--line); box-shadow: 0 -12px 34px rgba(17, 25, 40, .14); }
  .shadow-controls { grid-template-columns: auto 1fr; }
  .shadow-settings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shadow-settings select, .shadow-settings button { min-width: 0; padding-inline: 4px; font-size: 11px; }
  .mock-lobby { min-height: 0; }
  .mock-lobby-copy { padding: 34px 24px; }
  .mock-room-label { margin-bottom: 26px; }
  .mock-casting { padding: 28px 22px; }
  .mock-room { min-height: 0; }
  .mock-room-body { grid-template-columns: 1fr; }
  .examiner-video { min-height: 330px; padding: 30px 24px 86px; border-right: 0; border-bottom: 1px solid #bfc6cf; }
  .examiner-video > .examiner-portrait { width: 250px; }
  .mock-question-stage { min-height: 520px; }
  .mock-analysis { grid-template-columns: 1fr; min-height: 0; }
  .analysis-visual { min-height: 340px; border-right: 0; border-bottom: 1px solid #34415b; }
  .analysis-score { width: 160px; font-size: 58px; }
  .analysis-score small { bottom: 35px; }
  @keyframes scanDown { to { transform: translateY(340px); } }
  .analysis-copy { padding: 34px 24px; }
  .report-columns { grid-template-columns: 1fr; }
  .contact-copy, .contact-qr { min-height: 420px; }
  .data-table { min-width: 720px; }
  .account-data { align-items: flex-start; flex-direction: column; }
  .account-data > div:last-child { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .topbar { gap: 10px; }
  .topbar h1 { max-width: 230px; font-size: 21px; }
  .top-actions .primary-btn { min-height: 36px; padding: 7px 10px; }
  .today-band { min-height: 300px; padding: 20px; }
  .today-band h2 { font-size: 32px; }
  .profile-form { grid-template-columns: 1fr 1fr; }
  .profile-form .wide { grid-column: 1 / -1; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-card strong { font-size: 25px; }
  .filter-row { grid-template-columns: 1fr; }
  .topic-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .question-card { grid-template-columns: 30px 1fr; padding: 12px; }
  .question-card p { font-size: 17px; }
  .material-audio-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .material-question .section-head { align-items: stretch; flex-direction: column; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .score-card:last-child { grid-column: 1 / -1; }
  .mock-lobby-copy h2 { font-size: 40px; }
  .mock-lobby-meta { grid-template-columns: 1fr; }
  .mock-lobby-meta span { min-height: 58px; }
  .examiner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-casting > header { align-items: flex-start; flex-direction: column; }
  .mock-room-top { grid-template-columns: 1fr auto; }
  .mock-room-progress { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .mock-exit { grid-column: 2; grid-row: 1; }
  .examiner-video { min-height: 275px; }
  .examiner-video > .examiner-portrait { width: 190px; }
  .examiner-id { left: 14px; right: 14px; bottom: 12px; }
  .mock-question-stage { min-height: 480px; padding: 22px 16px; }
  .mock-question-paper h2 { font-size: 34px; overflow-wrap: anywhere; }
  .mock-question-paper.cue-paper { padding: 22px 18px; }
  .mock-response-status { grid-template-columns: 40px 1fr; }
  .mock-levels { display: none; }
  .mock-report-head { align-items: flex-start; flex-direction: column; }
  .overall-band { width: 100%; min-height: 125px; display: grid; grid-template-columns: auto auto auto; gap: 12px; }
  .overall-band strong { font-size: 54px; }
  .mock-report-body .score-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-report-body .score-card:last-child { grid-column: auto; }
  .report-checklist > header { align-items: stretch; flex-direction: column; }
  .report-table { min-width: 760px; }
  .mock-report-actions { display: grid; grid-template-columns: 1fr; }
  .shadow-top { align-items: flex-start; }
  .shadow-controls { padding: 10px 12px; gap: 9px; }
  .transport .quiet-btn { padding-inline: 9px; }
  .modal-shell { padding: 24px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 评分报告警告提示 */
.report-warning {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid;
}
.report-warning strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.report-warning p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}
.report-warning-empty {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  color: #991b1b;
}
.report-warning-fallback {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}
.report-warning-partial {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}

/* 影子跟读版本选择 */
.shadow-version-select {
  padding: 20px;
}
.shadow-version-card {
  max-width: 600px;
  margin: 0 auto;
}
.shadow-version-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.shadow-version-desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.shadow-version-options {
  display: grid;
  gap: 16px;
}
.shadow-version-btn {
  display: block;
  width: 100%;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  z-index: 1;
}
.shadow-version-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.shadow-version-btn.locked {
  opacity: 0.7;
  cursor: not-allowed;
}
.shadow-version-btn.locked:hover {
  border-color: var(--border);
  background: var(--card);
}
.shadow-version-btn h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}
.shadow-version-btn p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.shadow-version-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--muted-soft);
  font-size: 11px;
  font-weight: 600;
}
.shadow-version-tag.accent {
  background: var(--brand-soft);
  color: var(--brand);
}
.shadow-version-status {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   Lesley X 派派鸭 · 考鸭口语宝统一暖心学习工作台
   ========================================================= */
:root {
  --navy: #10213e;
  --navy-soft: #263a5a;
  --paper: #faf7f2;
  --surface: #fffefd;
  --surface-blue: #eef5ff;
  --ink: #17233d;
  --muted: #697487;
  --muted-soft: #f0efed;
  --line: #ebe3da;
  --border: #ebe3da;
  --card: #ffffff;
  --coral: #ff6658;
  --coral-soft: #fff0eb;
  --blue: #6f9fe8;
  --blue-soft: #eaf2ff;
  --gold: #e4ad42;
  --green: #70a986;
  --success: #70a986;
  --danger: #c54c43;
  --brand: #ff6658;
  --brand-soft: #fff0eb;
  --shadow: 0 13px 34px rgba(70, 50, 34, .075);
  --radius: 22px;
  --sidebar-width: 252px;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 88% 3%, rgba(255, 190, 153, .2), transparent 24%), linear-gradient(145deg, #fbf8f4, #f8f3ed);
  background-size: auto;
}

.app-shell { background: transparent; }
.sidebar {
  padding: 24px 17px 18px;
  gap: 24px;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(255,254,252,.98), rgba(255,247,240,.98));
  background-image: radial-gradient(rgba(255, 102, 88, .09) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  border-right: 1px solid #eadfd5;
  box-shadow: 12px 0 36px rgba(73, 52, 34, .045);
}
.brand { gap: 11px; color: var(--navy); }
.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff8578, #ff5f53);
  border: 3px solid #fff;
  border-radius: 17px;
  box-shadow: 0 10px 22px rgba(255, 102, 88, .22);
}
.brand-mark > b { font: 800 23px/1 Georgia, serif; }
.brand-mark img { position: absolute; right: -11px; bottom: -7px; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(76, 50, 24, .16)); }
.brand > span:last-child { min-width: 0; }
.brand b { color: var(--navy); font: 800 15px/1.15 Georgia, "Microsoft YaHei", serif; white-space: nowrap; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .19em; }
.main-nav { gap: 7px; }
.nav-item {
  min-height: 48px;
  gap: 10px;
  padding: 8px 11px;
  color: #687386;
  border-radius: 14px;
  font-size: 13px;
}
.nav-item span { width: 30px; height: 30px; color: var(--coral); background: rgba(255,255,255,.74); border-radius: 10px; }
.nav-item:hover { color: var(--navy); background: rgba(255,255,255,.82); border-color: #eee4db; }
.nav-item.active { color: var(--navy); background: #fff; border-color: #eadfd7; box-shadow: 0 9px 22px rgba(76, 55, 37, .075), inset 4px 0 var(--coral); }
.sidebar-foot { gap: 10px; }
.sidebar-guide {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid #f0e0c5;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.sidebar-guide > span { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; background: #fff1c9; border-radius: 15px; }
.sidebar-guide img { width: 58px; max-width: none; transform: translateY(7px); }
.sidebar-guide b, .sidebar-guide small { display: block; }.sidebar-guide b { color: #d88a27; font-size: 11px; }.sidebar-guide small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.season-stamp { padding: 10px 11px; color: var(--muted); background: rgba(255,255,255,.78); border: 1px solid #e8dfd6; border-radius: 14px; }
.season-stamp span { color: var(--coral); font-size: 18px; }.season-stamp b { font-size: 10px; }
.account-compact { padding: 6px; color: var(--navy); border-radius: 13px; }
.account-compact:hover { background: rgba(255,255,255,.8); }
.account-compact .avatar { color: #fff; background: linear-gradient(145deg, #ff9489, #ff6658); }
.account-compact small { color: var(--muted); }

.page-column { padding: 0 32px 54px; }
.topbar {
  min-height: 98px;
  border-bottom: 1px solid rgba(229, 219, 209, .92);
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(18px);
}
.topbar p, .section-kicker { color: var(--coral-dark, #e95046); font-size: 9px; letter-spacing: .15em; }
.topbar h1 { color: var(--navy); font: 800 clamp(25px, 2.3vw, 37px)/1.16 Georgia, "Songti SC", "Microsoft YaHei", serif; letter-spacing: -.025em; }
main { width: min(1480px, 100%); padding-top: 27px; }

.primary-btn, .secondary-btn, .quiet-btn, .icon-btn, .danger-btn, .ghost-btn {
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 13px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-btn { color: #fff; background: linear-gradient(135deg, #ff6e60, #ff574b); border-color: var(--coral); box-shadow: 0 9px 20px rgba(255, 102, 88, .18); }
.primary-btn:hover { background: linear-gradient(135deg, #ff7568, #f55247); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 102, 88, .24); }
.primary-btn.is-disabled { color: #7d756e; background: #eee9e4; border-color: #e2dbd4; box-shadow: none; cursor: default; }
.secondary-btn { color: var(--navy); background: #fff; border-color: #e4ddd5; }
.quiet-btn, .ghost-btn { color: var(--muted); background: #fff; border: 1px solid #e6ded6; }
.secondary-btn:hover, .quiet-btn:hover, .ghost-btn:hover { color: var(--coral-dark, #e95046); border-color: #f0a79e; background: #fff9f6; }
.danger-btn { border-radius: 13px; }

input, select, textarea { border-color: #e6ded6; border-radius: 12px; background: rgba(255,255,255,.94); }
input, select { min-height: 44px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,102,88,.13); }

.panel { border-color: var(--line); border-radius: 22px; background: rgba(255,254,252,.96); box-shadow: var(--shadow); }
.panel-pad { padding: 22px; }
.section-head h2, .section-head h3 { color: var(--navy); font-family: Georgia, "Songti SC", "Microsoft YaHei", serif; }
.pill { min-height: 27px; padding-inline: 9px; border-color: #e7dfd7; border-radius: 999px; }
.pill.new { color: #568d63; border-color: #cce3d0; background: #eff8f0; }
.pill.coral { color: var(--coral-dark, #e95046); border-color: #f2c7c1; background: var(--coral-soft); }
.pill.blue { color: #4a77b9; border-color: #cbdcf2; background: var(--blue-soft); }
.empty-state { min-height: 260px; grid-auto-flow: row; gap: 12px; border-radius: 20px; }
.empty-state::before { content: ""; width: 78px; height: 78px; display: block; justify-self: center; background: #fff2ce url('/platform/assets/paipai-duck-hero.png') center 18% / 84px auto no-repeat; border-radius: 23px; }

.dashboard-lead { gap: 20px; margin-bottom: 20px; }
.today-band {
  min-height: 260px;
  padding: 28px;
  color: var(--navy);
  background: radial-gradient(circle at 88% 28%, rgba(255, 197, 163, .34), transparent 27%), linear-gradient(135deg, #fffaf6, #fff0e7);
  border-color: #f0dfd3;
}
.today-band > * { position: relative; z-index: 2; }
.today-band::after { content: ""; right: 18px; bottom: -11px; width: 190px; height: 190px; opacity: 1; background: url('/platform/assets/paipai-duck-hero.png') center bottom / contain no-repeat; }
.today-band::before { content: "派派鸭建议：先完成 10 分钟跟读"; position: absolute; right: 28px; top: 25px; z-index: 3; padding: 9px 12px; color: #d88a27; background: rgba(255,255,255,.94); border: 1px solid #f0dec2; border-radius: 13px 13px 4px 13px; box-shadow: var(--shadow); font-size: 8px; font-weight: 900; }
.today-band h2 { max-width: calc(100% - 180px); color: var(--navy); }
.today-band p { max-width: calc(100% - 180px); color: var(--muted); }
.today-actions .primary-btn { color: #fff; background: linear-gradient(135deg, #ff6e60, #ff574b); border-color: var(--coral); }
.today-actions .secondary-btn { color: var(--navy); background: #fff; border-color: #e5dad0; }
.profile-form { padding: 22px; gap: 14px; }
.profile-form h3 { font-family: Georgia, "Songti SC", serif; }
.stats-grid { gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 19px; border-left: 0; border-top: 4px solid var(--blue); }
.stat-card:nth-child(2) { border-top-color: var(--coral); }.stat-card:nth-child(3) { border-top-color: var(--gold); }.stat-card:nth-child(4) { border-top-color: var(--green); }
.stat-card strong { color: var(--navy); font-size: 32px; }
.dashboard-grid { gap: 20px; }
.heatmap { gap: 7px; }.heat-cell { border-radius: 4px; background: #f1efec; border-color: #e6e1db; }.heat-cell.l1 { background: #ffe1db; border-color: #f4ccc4; }.heat-cell.l2 { background: #ffaea2; border-color: #f59487; }.heat-cell.l3 { background: var(--coral); border-color: var(--coral); }
.study-note { border: 0; border-radius: 14px; background: #fff3ed; }
.task-row, .activity-row { padding: 12px 2px; border-bottom-color: #eee7df; }

.workspace-grid, .material-layout, .shadow-layout { gap: 20px; }
.filters, .material-toolbar, .shadow-menu { padding: 17px; border-radius: 20px; background: rgba(255,254,252,.98); }
.segmented { padding: 4px; border-color: #e7dfd7; border-radius: 13px; background: #f5f2ef; }
.segmented button { min-height: 36px; border-radius: 10px; }
.segmented button.active { color: var(--navy); box-shadow: 0 5px 13px rgba(67, 48, 34, .08); }
.topic-list { gap: 7px; }
.topic-button { padding: 12px; border-radius: 13px; }
.topic-button:hover { background: #fff7f2; }
.topic-button.active { border-color: #f3b1a8; background: var(--coral-soft); box-shadow: inset 3px 0 var(--coral); }
.topic-button b { color: var(--navy); }
.ranking { border-radius: 7px; background: var(--coral); }
.content-stage, .material-reader, .shadow-player { border-radius: 23px; }
.topic-hero { position: relative; min-height: 230px; padding: 30px 132px 28px 30px; overflow: hidden; background: radial-gradient(circle at 88% 30%, rgba(255, 196, 157, .27), transparent 24%), linear-gradient(135deg, #fffaf7, #fff2ea); }
.topic-hero::after { content: ""; position: absolute; right: 26px; top: 38px; width: 92px; height: 112px; background: url('/platform/assets/paipai-duck-hero.png') center / contain no-repeat; filter: drop-shadow(0 9px 10px rgba(83, 57, 27, .12)); }
.topic-hero::before { content: "这道题我陪你练"; position: absolute; right: 20px; top: 145px; z-index: 2; padding: 6px 8px; color: #d98b2b; background: #fff9df; border: 1px solid #f0dfbc; border-radius: 10px; font-size: 7px; font-weight: 900; }
.topic-hero h2 { color: var(--navy); }.topic-hero p { color: var(--muted); }
.topic-meta, .topic-actions { position: relative; z-index: 2; }
.question-stack { padding: 22px 26px 30px; gap: 11px; }
.question-card { padding: 17px; border-color: #eae2da; border-radius: 16px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.question-card:hover { transform: translateY(-2px); border-color: #f1b9b1; box-shadow: 0 9px 22px rgba(71, 51, 34, .07); }
.question-card .number { color: var(--coral); }.question-card p { color: var(--navy); }

.locked-banner { border-color: #edd49a; border-radius: 17px; background: #fff9e9; }
.material-preview-note { border: 0; border-radius: 13px; background: #fff4ee; }
.material-access { border-radius: 8px; }
.material-head { padding: 28px 30px 22px; background: linear-gradient(135deg, #fffaf7, #fff2ea); }
.material-body { padding: 24px 30px 34px; gap: 18px; }
.material-question { border: 1px solid #e9e2db; border-top: 5px solid var(--blue); border-radius: 18px; box-shadow: var(--shadow); }
.answer-column { border-color: #e9e2db; border-radius: 14px; background: #fbfaf8; }
.expression-list span { border-color: #d5e1f1; border-radius: 9px; }
.vocab-block { border: 0; border-radius: 14px; background: #fff9e9; }

.shadow-top { min-height: 70px; padding: 17px 22px; background: #fffefd; }
.shadow-stage { background: radial-gradient(circle at 85% 15%, rgba(255, 196, 157, .2), transparent 26%), linear-gradient(135deg, #fffaf7, #fff3eb); }
.shadow-stage::after { color: #d9bbb4; }
.sentence-display .english .spoken { color: var(--coral); }
.turn-signal { color: var(--coral); }
.shadow-progress { background: #eee8e2; }.shadow-progress span { background: var(--coral); }
.shadow-controls { background: rgba(255,254,252,.97); }
.play-button { width: 52px; height: 52px; background: linear-gradient(145deg, #ff7568, #ff5548); box-shadow: 0 10px 22px rgba(255,102,88,.23); }
.shadow-version-btn { border-color: #e8e0d8; border-radius: 16px; box-shadow: var(--shadow); }

.mock-lobby { overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 24px; background: #fffefd; box-shadow: var(--shadow); }
.mock-lobby-copy { border-color: var(--line); background-color: #fffaf6; background-image: radial-gradient(rgba(255,102,88,.09) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.mock-lobby-copy h2 { color: var(--navy); }
.mock-lobby-meta { gap: 8px; border: 0; background: transparent; }
.mock-lobby-meta span { border: 1px solid #eadfd6; border-radius: 14px; background: #fff; }
.mock-casting { background: linear-gradient(145deg, #edf5ff, #f7faff); }
.examiner-choice { border-color: #d9e1eb; border-radius: 16px; }
.examiner-choice.active { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,102,88,.12); }
.examiner-choice-copy { background: #fff; }
.examiner-sound { border-radius: 10px; }
.mock-room { overflow: hidden; border-color: #d4dce4; border-top-color: var(--coral); border-radius: 22px; box-shadow: var(--shadow); }
.mock-room-progress b { border-radius: 9px; }.mock-question-stage { background-color: #fffaf6; background-image: radial-gradient(rgba(255,102,88,.06) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.mock-question-paper.cue-paper { border-color: #e4ddd5; border-top-color: var(--coral); border-radius: 17px; }
.mock-response-status { border-color: #e5ddd5; border-radius: 15px; background: #f8f6f3; }
.mock-report-shell, .report-checklist, .score-card, .report-section { border-radius: 18px; }
.mock-report-head { background: linear-gradient(135deg, var(--navy), #243d67); }.overall-band { border-radius: 18px; }
.analysis-copy li { border-radius: 13px; }

.contact-layout { gap: 20px; }
.contact-copy { overflow: hidden; border-radius: 24px; background: radial-gradient(circle at 90% 15%, rgba(255,102,88,.24), transparent 27%), linear-gradient(135deg, var(--navy), #253d65); }
.contact-qr { border-radius: 24px; }.contact-qr img { border-radius: 18px; }
.account-data { border-radius: 20px; }

.modal { border-radius: 24px; }
.modal-shell { gap: 17px; padding: 30px; border-top: 0; border-radius: 24px; background: linear-gradient(145deg, #fffefd, #fff7f1); }
.toast { border: 0; border-radius: 15px; background: var(--navy); box-shadow: 0 16px 34px rgba(16,33,62,.2); }
.legal-page { border-radius: 24px; }
.mobile-more-sheet { border-top: 0; border-radius: 24px 24px 0 0; background: #fffaf6; }
.mobile-more-sheet nav button, .mobile-more-sheet nav a { border-color: #e7dfd7; border-radius: 14px; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 222px; }
  .sidebar { padding-inline: 13px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }.brand b { font-size: 13px; }
  .sidebar-guide { grid-template-columns: 44px 1fr; }.sidebar-guide > span { width: 44px; height: 44px; }.sidebar-guide img { width: 50px; }
  .page-column { padding-inline: 22px; }
  .today-band h2, .today-band p { max-width: calc(100% - 145px); }
  .today-band::after { width: 155px; height: 155px; }
}

@media (max-width: 820px) {
  body { background: #fffaf5; }
  .page-column { padding: 0 14px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 82px; background: rgba(255,250,245,.94); }
  .topbar h1 { font-size: 23px; }
  main { padding-top: 16px; }
  .panel { border-radius: 20px; }
  .mobile-nav { padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,254,252,.97); border-color: #e8e0d8; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 30px rgba(61,44,31,.09); }
  .mobile-nav button { color: #747e8e; }.mobile-nav span { color: #8b93a0; }.mobile-nav button.active { color: var(--coral); }.mobile-nav button.active span { color: var(--coral); }
  .filters { padding: 9px; border-radius: 18px; }
  .material-toolbar, .shadow-menu { padding: 14px; border-radius: 18px; }
  .workspace-grid, .material-layout, .shadow-layout, .contact-layout { gap: 14px; }
  .topic-hero { min-height: 215px; padding: 23px 92px 23px 18px; }
  .topic-hero::after { right: 12px; top: 42px; width: 68px; height: 82px; }.topic-hero::before { right: 8px; top: 124px; }
  .topic-hero h2 { font-size: 33px; }
  .question-stack { padding: 17px; }
  .today-band { padding: 23px; }.today-band::before { right: 18px; top: 18px; }.today-band::after { width: 135px; height: 135px; }
  .today-band h2, .today-band p { max-width: calc(100% - 120px); }
  .shadow-control-dock { border-radius: 18px 18px 0 0; overflow: hidden; }
  .mock-lobby, .mock-room { border-radius: 20px; }
}

@media (max-width: 520px) {
  .topbar { min-height: 76px; }
  .topbar h1 { max-width: 220px; font-size: 20px; }
  .top-actions .primary-btn { border-radius: 11px; }
  .today-band { min-height: 330px; padding: 21px; }.today-band::before { top: auto; right: 14px; bottom: 105px; }.today-band::after { right: 8px; width: 118px; height: 118px; }
  .today-band h2, .today-band p { max-width: 100%; padding-right: 0; }.today-band h2 { font-size: 31px; }.today-band p { padding-right: 80px; }
  .topic-hero { padding: 20px 75px 20px 16px; }.topic-hero h2 { font-size: 30px; }.topic-hero::after { width: 58px; height: 70px; }.topic-hero::before { display: none; }
  .topic-actions { grid-template-columns: 1fr 1fr; }
  .question-card { border-radius: 14px; }
  .material-head, .material-body { padding-inline: 18px; }
  .mock-lobby-copy, .mock-casting { padding-inline: 20px; }.mock-lobby-copy h2 { font-size: 38px; }
  .modal-shell { padding: 25px 20px; }
}

/* 页面内容给右下角桌宠留出自然空间，避免旧的静态派派鸭继续占位。 */
.today-band::after,
.topic-hero::before,
.topic-hero::after { display: none; }
.today-band { padding-right: 32px; }
.today-band h2,
.today-band p { max-width: 100%; }
.topic-hero { padding-right: 30px; }

@media (max-width: 820px) {
  .topic-hero { padding-right: 18px; }
  .today-band h2,
  .today-band p { max-width: 100%; }
}

@media (max-width: 520px) {
  .topic-hero { padding-right: 16px; }
  .today-band p { padding-right: 0; }
}

/* 手机号密码登录与首次邀请码注册 */
.auth-modal { width: min(520px, calc(100vw - 28px)); }
.auth-modal .modal-shell {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.auth-modal .close-btn {
  width: 44px;
  height: 44px;
  right: 9px;
  top: 8px;
}
.auth-heading { padding-right: 32px; }
.auth-heading p:last-child { margin-top: 8px; line-height: 1.7; }
.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: #eee8e1;
}
.auth-mode-switch button {
  min-height: 46px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}
.auth-mode-switch button.active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 5px 15px rgba(24, 35, 61, .08);
}
.auth-mode-switch button:focus-visible,
.password-toggle:focus-visible {
  outline: 3px solid rgba(223, 109, 95, .28);
  outline-offset: 2px;
}
.auth-field { gap: 7px; }
.auth-field > span:first-child,
.auth-field > label { color: var(--navy); font-size: 13px; font-weight: 800; }
.auth-field > small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.55; }
.auth-form input {
  min-height: 48px;
  border-color: #ddd6cf;
  border-radius: 12px;
  font-size: 16px;
}
.auth-form input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(223, 109, 95, .12);
}
.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-toggle {
  position: absolute;
  right: 3px;
  top: 2px;
  min-width: 58px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--coral);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}
.password-toggle:hover { background: var(--coral-soft); }
.auth-register-fields { display: grid; gap: 16px; }
.auth-reset-help {
  margin: -5px 0 0 !important;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.auth-submit { min-height: 50px; border-radius: 12px; font-size: 16px; }
.auth-note {
  min-height: 20px;
  margin: -3px 0 0 !important;
  color: var(--muted);
  line-height: 1.55;
}
.auth-note.error { color: var(--danger); }
.auth-form .privacy-note a { color: var(--coral); font-weight: 800; white-space: nowrap; }
.auth-form[aria-busy="true"] input { background: #f6f2ed; }
.auth-form[aria-busy="true"] .auth-mode-switch,
.auth-form[aria-busy="true"] .password-toggle { opacity: .6; }

.auth-access-notice {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #efded0;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff9f2, #fffdfb);
}
.auth-access-notice > div:first-child { display: grid; gap: 7px; }
.auth-access-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #b84d43;
  background: #ffe6df;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}
.auth-access-notice p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; }
.auth-invite-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-invite-help > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-invite-help b { color: var(--navy); overflow-wrap: anywhere; }
.auth-invite-help button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e8c5a7;
  border-radius: 11px;
  color: #a55f23;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}
.auth-camp-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--navy);
  background: #f3f7ff;
  font-size: 12px;
  font-weight: 900;
}
.auth-camp-offer small { color: #5874a3; font-size: 11px; white-space: nowrap; }

.invite-access-modal { width: min(430px, calc(100vw - 28px)); }
.invite-access-modal .modal-shell {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  text-align: center;
}
.invite-access-modal .close-btn { width: 44px; height: 44px; right: 8px; top: 7px; }
.invite-access-modal .modal-copy { padding-inline: 20px; }
.invite-access-modal .modal-copy p:last-child { margin-top: 8px; line-height: 1.65; }
.invite-wechat-qr {
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #eadfd6;
  border-radius: 18px;
  background: #fff;
}
.invite-wechat-qr img { width: 100%; max-height: 340px; border-radius: 12px; object-fit: contain; }
.invite-wechat-copy { display: grid; gap: 7px; text-align: left; }
.invite-wechat-copy > span:first-child { color: var(--navy); font-size: 13px; font-weight: 900; }
.invite-wechat-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.invite-wechat-copy-row input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #ddd6cf;
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
}
.invite-wechat-copy-row button { min-height: 48px; }
.invite-copy-note { min-height: 18px; margin: -5px 0 0 !important; color: #3b7a57 !important; text-align: left; }
.invite-copy-note.error { color: var(--danger) !important; }

.camp-access-actions { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.camp-access-actions .primary-btn,
.camp-access-actions .secondary-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mock-quota-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: -7px 0 20px;
  padding: 14px 16px;
  border: 1px solid #f0c6b7;
  border-radius: 15px;
  color: #873d35;
  background: #fff4ef;
}
.mock-quota-notice strong { color: #78342e; font-size: 14px; }
.mock-quota-notice p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
.mock-quota-notice .camp-access-actions { justify-content: flex-end; margin-top: 0; }
.mock-enter-btn:disabled,
.mock-enter-btn:disabled:hover { color: #766e68; background: #e9e3de; border-color: #ddd4cc; box-shadow: none; transform: none; }

@media (min-width: 521px) and (max-height: 760px) {
  .auth-modal .modal-shell { padding: 20px 28px; gap: 10px; }
  .auth-modal .modal-copy h2 { font-size: 27px; }
  .auth-heading p:last-child { margin-top: 4px; line-height: 1.5; }
  .auth-mode-switch button { min-height: 42px; }
  .auth-field { gap: 4px; }
  .auth-form input { min-height: 44px; }
  .password-toggle { min-height: 40px; }
  .auth-register-fields { gap: 10px; }
  .auth-submit { min-height: 46px; }
  .auth-note { min-height: 16px; }
  .auth-form .privacy-note { font-size: 11px; line-height: 1.45; }
}

@media (max-width: 520px) {
  .auth-modal { width: min(100% - 20px, 500px); }
  .auth-modal .modal-shell { padding: 24px 18px; gap: 15px; }
  .auth-modal .modal-copy h2 { font-size: 27px; }
  .auth-mode-switch button,
  .auth-form input,
  .auth-submit { min-height: 48px; }
  .auth-invite-help { align-items: stretch; flex-direction: column; }
  .auth-invite-help button { width: 100%; }
  .auth-camp-offer { align-items: flex-start; flex-direction: column; }
  .invite-access-modal { width: min(100% - 20px, 430px); }
  .invite-access-modal .modal-shell { padding: 24px 18px; }
  .invite-wechat-copy-row { grid-template-columns: 1fr; }
  .invite-wechat-copy-row button { width: 100%; }
  .mock-quota-notice { grid-template-columns: 1fr; }
  .mock-quota-notice .camp-access-actions { justify-content: stretch; }
  .mock-quota-notice .camp-access-actions > * { flex: 1 1 100%; }
}

/* 雅思口语64句 · Lesley 真人音频开口训练 */
.s64-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 226px;
  gap: 24px;
  padding: 26px 28px;
  overflow: hidden;
  border-color: #e4d8cc;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(246, 180, 152, .34), transparent 31%),
    radial-gradient(circle at 78% 115%, rgba(91, 144, 119, .15), transparent 35%),
    linear-gradient(135deg, #fff8ef 0%, #fffdf9 58%, #f5faf6 100%);
}
.s64-hero::after {
  content: "SPEAK";
  position: absolute;
  right: 254px;
  bottom: -18px;
  color: rgba(24, 35, 61, .035);
  font: 900 76px/1 Georgia, serif;
  pointer-events: none;
}
.s64-hero-copy { position: relative; z-index: 1; max-width: 850px; }
.s64-free-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 9px;
  color: #8a4d42;
  border: 1px solid #efc2b8;
  border-radius: 999px;
  background: rgba(255, 246, 242, .92);
  font-size: 11px;
  font-weight: 900;
}
.s64-hero h2 { max-width: 760px; margin: 4px 0 9px; font: 800 clamp(27px, 3vw, 41px)/1.17 Georgia, "Microsoft YaHei", serif; }
.s64-hero-copy > p:last-of-type { max-width: 760px; margin: 0; color: #596476; font-size: 14px; line-height: 1.75; }
.s64-method { max-width: 570px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 17px; }
.s64-method span {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #475a52;
  border: 1px solid rgba(210, 205, 195, .9);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}
.s64-method b { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green); font-size: 11px; }
.s64-overview {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 20px;
  color: #fff;
  border: 1px solid #2f3b54;
  border-radius: 15px;
  background: linear-gradient(145deg, #18233d, #24334f);
  box-shadow: 0 16px 30px rgba(24, 35, 61, .17);
}
.s64-overview strong { font: 800 51px/1 Georgia, serif; letter-spacing: -.04em; }
.s64-overview strong small { margin-left: 4px; color: #b9c2d0; font-size: 17px; letter-spacing: 0; }
.s64-overview > span { color: #cbd3df; font-size: 12px; font-weight: 800; }
.s64-overview .secondary-btn { margin-top: 3px; color: var(--navy); border-color: #fff; background: #fff; }
.s64-progress, .s64-audio-progress { overflow: hidden; border-radius: 999px; }
.s64-progress { height: 7px; background: #3d4960; }
.s64-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #ee8172, #f4bd69); transition: width .25s ease; }
.s64-local-notice {
  margin: 11px 0 15px;
  padding: 10px 13px;
  color: #5d6775;
  border: 1px solid #ded8cf;
  border-left: 4px solid var(--coral);
  border-radius: 7px;
  background: rgba(255, 253, 249, .76);
  font-size: 12px;
  line-height: 1.6;
}
.s64-local-notice b { color: var(--navy); }

.s64-workspace { display: grid; grid-template-columns: minmax(230px, 268px) minmax(0, 1fr); gap: 16px; align-items: start; }
.s64-day-panel {
  position: sticky;
  top: 116px;
  max-height: calc(100dvh - 136px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 13px;
  overflow: hidden;
  border-color: #ded8cf;
  border-radius: 14px;
}
.s64-day-panel > header { display: grid; gap: 9px; padding: 2px 2px 11px; border-bottom: 1px solid var(--line); }
.s64-day-panel > header > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.s64-day-panel > header span { color: var(--navy); font-size: 14px; font-weight: 900; }
.s64-day-panel > header b { color: var(--green); font-size: 10px; white-space: nowrap; }
.s64-day-panel .quiet-btn { min-height: 34px; padding: 5px 8px; font-size: 11px; }
.s64-day-list { min-height: 0; display: grid; gap: 5px; padding: 9px 2px 1px; overflow-y: auto; scrollbar-color: #c7c1b8 transparent; scrollbar-width: thin; }
.s64-day-button {
  min-width: 0;
  min-height: 51px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.s64-day-button:hover { border-color: #e1dcd4; background: #f8f5f0; transform: translateX(2px); }
.s64-day-button.active { border-color: #e7b5aa; background: #fff0eb; box-shadow: inset 3px 0 var(--coral); }
.s64-day-button span { color: var(--coral); font: 800 10px/1 Georgia, serif; letter-spacing: .04em; }
.s64-day-button b { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.s64-day-button small { color: var(--muted); font-size: 10px; }

.s64-lesson { min-width: 0; overflow: hidden; border-color: #dad6cf; border-radius: 15px; }
.s64-studio { isolation: isolate; }
.s64-lesson-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 23px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fffdf9, #fffcf7); }
.s64-lesson-head h2 { max-width: 820px; margin: 4px 0 0; font: 800 clamp(20px, 2vw, 28px)/1.35 Georgia, "Microsoft YaHei", serif; overflow-wrap: anywhere; }
.s64-lesson-head > span { flex: 0 0 auto; min-height: 27px; display: inline-flex; align-items: center; padding: 4px 9px; color: var(--green); border: 1px solid #bcd9cf; border-radius: 999px; background: #eff8f4; font-size: 11px; font-weight: 900; }
.s64-sentence-tabs { display: flex; gap: 8px; padding: 11px 23px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f7f5f1; scrollbar-width: thin; }
.s64-sentence-tabs button { position: relative; min-width: 46px; min-height: 42px; flex: 0 0 46px; padding: 6px 9px; color: var(--muted); border: 1px solid #d7d6d2; border-radius: 8px; background: #fff; font-weight: 900; }
.s64-sentence-tabs button:hover { color: var(--navy); border-color: #9aa5b6; }
.s64-sentence-tabs button.active { color: #fff; border-color: var(--navy); background: var(--navy); box-shadow: 0 6px 13px rgba(24, 35, 61, .13); }
.s64-sentence-tabs button.done:not(.active) { color: var(--green); border-color: #b7d5cb; background: #eff8f4; }
.s64-sentence-tabs i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 50%; background: var(--green); font-size: 9px; font-style: normal; }

.s64-stage-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 23px; border-bottom: 1px solid var(--line); background: #fff; }
.s64-stage-tabs button {
  position: relative;
  min-width: 0;
  min-height: 63px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: #7a8190;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  text-align: left;
}
.s64-stage-tabs button:not(:last-child)::after { content: ""; position: absolute; top: 17px; right: 0; bottom: 17px; width: 1px; background: #e6e3dd; }
.s64-stage-tabs button small { width: 25px; height: 25px; display: grid; place-items: center; color: #7e8795; border: 1px solid #ccd1d8; border-radius: 50%; font: 800 10px/1 Georgia, serif; }
.s64-stage-tabs button b { min-width: 0; font-size: 13px; white-space: nowrap; }
.s64-stage-tabs button:hover { color: var(--navy); background: #fffbf6; }
.s64-stage-tabs button.passed small { color: #fff; border-color: var(--green); background: var(--green); }
.s64-stage-tabs button.active { color: var(--navy); border-bottom-color: var(--coral); background: linear-gradient(180deg, #fff, #fff7f3); }
.s64-stage-tabs button.active small { color: #fff; border-color: var(--coral); background: var(--coral); box-shadow: 0 0 0 4px rgba(223, 109, 95, .11); }

.s64-audio-strip { min-height: 43px; display: grid; grid-template-columns: minmax(100px, 1fr) auto auto; align-items: center; gap: 12px; padding: 7px 23px; color: #647080; border-bottom: 1px solid #dfe2e5; background: #f1f4f5; font-size: 11px; }
.s64-audio-progress { height: 5px; background: #d8dde0; }
.s64-audio-progress i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #efab64); }
.s64-audio-strip > span { min-width: 102px; text-align: right; }
.s64-audio-strip label { display: flex; grid-template-columns: none; align-items: center; gap: 6px; color: #596474; font-size: 11px; white-space: nowrap; }
.s64-audio-strip select { width: 74px; min-height: 30px; padding: 0 7px; border-color: #cdd3d7; background: #fff; font-size: 11px; }

.s64-stage-body { display: grid; gap: 18px; padding: 23px; background: #fffdf9; }
.s64-stage-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.s64-stage-heading > div { min-width: 0; }
.s64-stage-heading > div > span { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.s64-stage-heading h3 { margin: 4px 0 6px; font: 800 clamp(20px, 2vw, 27px)/1.25 Georgia, "Microsoft YaHei", serif; }
.s64-stage-heading p { max-width: 750px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.s64-stage-heading > button { flex: 0 0 auto; min-height: 44px; }

.s64-listen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s64-listen-card { min-width: 0; display: grid; align-content: start; grid-template-rows: auto auto minmax(74px, 1fr) auto; gap: 6px; padding: 19px; border: 1px solid #e1dcd4; border-top: 4px solid var(--coral); border-radius: 12px; background: linear-gradient(160deg, #fffaf6, #fff); }
.s64-listen-card.demo { border-top-color: var(--green); background: linear-gradient(160deg, #f5faf7, #fff); }
.s64-listen-card > span { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.s64-listen-card.demo > span { color: var(--green); }
.s64-listen-card h4 { margin: 0; color: var(--navy); font: 800 18px/1.25 Georgia, "Microsoft YaHei", serif; }
.s64-listen-card > p { margin: 5px 0 11px; color: #566171; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.s64-listen-card .s64-demo-text { color: var(--navy); font: 700 16px/1.65 Georgia, "Times New Roman", serif; }
.s64-play-audio { width: max-content; min-height: 44px; display: inline-grid; grid-template-columns: 30px auto; align-items: center; gap: 8px; padding: 6px 14px 6px 7px; color: #fff; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); font-weight: 900; }
.s64-play-audio i { width: 30px; height: 30px; display: grid; place-items: center; color: var(--navy); border-radius: 50%; background: #fff; font-size: 11px; font-style: normal; }
.s64-play-audio:hover, .s64-play-audio.playing { border-color: var(--coral); background: var(--coral); }
.s64-reference-card { padding: 19px 20px; border: 1px solid #e5d9c3; border-left: 5px solid var(--gold); border-radius: 11px; background: linear-gradient(135deg, #fff9e9, #fffdf8); }
.s64-card-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.s64-card-meta span { min-height: 25px; display: inline-flex; align-items: center; padding: 3px 8px; color: #8b4b40; border: 1px solid #efc5bd; border-radius: 999px; background: var(--coral-soft); font-size: 10px; font-weight: 900; }
.s64-card-meta span:last-child { color: #45658f; border-color: #cbd7e8; background: #edf3fa; }
.s64-reference-card h4 { margin: 14px 0 7px; color: var(--muted); font-size: 12px; }
.s64-pattern { margin: 0; color: var(--navy); font: 700 clamp(18px, 2vw, 25px)/1.6 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.s64-pattern mark { padding: 1px 4px 2px; color: #9c493c; border-radius: 4px; background: #ffedba; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.s64-translation { margin: 8px 0 0; color: #626c79; font-size: 13px; line-height: 1.65; }

.s64-shadow-list, .s64-example-grid, .s64-prompt-grid { display: grid; gap: 10px; }
.s64-example-grid, .s64-prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s64-audio-row { min-width: 0; min-height: 86px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #dedbd5; border-radius: 11px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.s64-audio-row:hover { border-color: #edb9af; box-shadow: 0 8px 19px rgba(24, 35, 61, .06); transform: translateY(-1px); }
.s64-audio-row.playing { border-color: var(--coral); background: #fff8f5; box-shadow: 0 0 0 3px rgba(223, 109, 95, .09); }
.s64-audio-row.prompt { border-color: #cfddd7; background: #f8fcfa; }
.s64-audio-row.prompt.playing { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 128, 107, .09); }
.s64-audio-row > button { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border: 0; border-radius: 50%; background: var(--navy); box-shadow: 0 7px 14px rgba(24, 35, 61, .15); }
.s64-audio-row > button:hover, .s64-audio-row.playing > button { background: var(--coral); transform: scale(1.04); }
.s64-audio-row.prompt > button { background: var(--green); }
.s64-audio-row i { font-size: 12px; font-style: normal; }
.s64-audio-row div { min-width: 0; }
.s64-audio-row div > span { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.s64-audio-row.prompt div > span { color: var(--green); }
.s64-audio-row p { margin: 3px 0 0; color: var(--navy); font: 700 14px/1.55 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }

.s64-my-version { display: grid; gap: 14px; padding: 19px; border: 1px solid #d8dfdc; border-radius: 12px; background: linear-gradient(145deg, #f4faf6, #fff); }
.s64-editor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.s64-editor-heading span:first-child { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.s64-editor-heading h3 { margin: 3px 0 0; font: 800 21px/1.25 Georgia, "Microsoft YaHei", serif; }
.s64-save-status { color: var(--muted) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-align: right; }
.s64-my-version label { color: var(--navy); font-weight: 900; }
.s64-my-version input, .s64-my-version textarea { border-color: #d4dbd8; background: rgba(255, 255, 255, .95); }
.s64-my-version textarea { min-height: 118px; font: 700 16px/1.65 Georgia, "Times New Roman", serif; }
.s64-live-preview { padding: 14px 16px; color: #33483e; border: 1px solid #c7dfd2; border-left: 4px solid var(--green); border-radius: 8px; background: #edf7f1; }
.s64-live-preview span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.s64-live-preview p { margin: 6px 0 0; font: 700 15px/1.65 Georgia, "Times New Roman", serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.s64-editor-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s64-editor-actions button { min-height: 42px; }

.s64-speak-card { position: relative; display: grid; justify-items: center; gap: 16px; min-height: 305px; padding: 28px; overflow: hidden; color: #fff; border: 1px solid #33415c; border-radius: 14px; background: radial-gradient(circle at 50% -30%, #465776, transparent 60%), linear-gradient(150deg, #17233d, #202f4b); text-align: center; }
.s64-speak-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.s64-speak-card > * { position: relative; z-index: 1; }
.s64-speak-label { color: #f2b0a5; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.s64-speak-card > p { max-width: 780px; margin: 0; color: #fff; font: 700 clamp(17px, 2vw, 23px)/1.65 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.s64-speak-card.text-hidden > p { max-width: 560px; color: #ced5df; font-family: inherit; font-size: 14px; font-weight: 600; }
.s64-record-visual { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.s64-record-visual i { width: 4px; height: calc(var(--bar) * 3px); min-height: 9px; max-height: 42px; border-radius: 99px; background: linear-gradient(180deg, #ffc1b5, #e46f61); opacity: .78; }
.s64-speak-card:has(.s64-record-btn.recording) .s64-record-visual i { animation: s64Meter .72s ease-in-out infinite alternate; animation-delay: calc(var(--bar) * -45ms); }
@keyframes s64Meter { to { height: calc(var(--bar) * 4px); opacity: 1; } }
.s64-record-actions { width: min(620px, 100%); display: flex; align-items: center; justify-content: center; gap: 12px; }
.s64-record-btn { min-width: 150px; min-height: 48px; color: var(--navy); border-color: #fff; border-radius: 999px; background: #fff; }
.s64-record-btn:hover { color: #fff; border-color: var(--coral); background: var(--coral); }
.s64-record-btn.recording { color: #fff; border-color: #ef7567; background: #cf4f43; animation: s64RecordPulse 1.2s ease-in-out infinite; }
@keyframes s64RecordPulse { 50% { box-shadow: 0 0 0 8px rgba(239, 117, 103, .16); } }
.s64-recording-playback { width: min(360px, 100%); height: 46px; }
.s64-speak-card > small { color: #b7c1cf; font-size: 10px; }

.s64-stage-footer { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; color: #626d7a; border: 1px solid #e1ded8; border-radius: 10px; background: #f8f6f2; font-size: 12px; }
.s64-stage-footer > span { line-height: 1.55; }
.s64-stage-footer > button { flex: 0 0 auto; min-height: 44px; }
.s64-lesson-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 23px; border-top: 1px solid var(--line); background: #f6f3ee; }
.s64-lesson-nav button { min-height: 42px; }
.s64-lesson-nav button:first-child { justify-self: start; }
.s64-lesson-nav button:last-child { justify-self: end; }
.s64-lesson-nav > span { color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }

.s64-courseware { display: grid; grid-template-columns: 174px minmax(0, 1fr); align-items: center; gap: 25px; margin-top: 16px; padding: 22px; border-color: #e3d8c9; border-radius: 14px; background: radial-gradient(circle at 7% 0, rgba(244, 184, 123, .19), transparent 34%), linear-gradient(135deg, #fff9ef, #fff 66%); }
.s64-courseware > img { width: 174px; aspect-ratio: 1; object-fit: cover; object-position: center 55%; padding: 5px; border: 1px solid #e1dbd2; border-radius: 11px; background: #fff; }
.s64-courseware h2 { margin: 4px 0 7px; font: 800 24px/1.25 Georgia, "Microsoft YaHei", serif; }
.s64-courseware p { margin-bottom: 11px; color: var(--muted); line-height: 1.7; }
.s64-courseware strong { color: var(--coral); }
.s64-wechat-row { max-width: 460px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.s64-wechat-row input { color: var(--navy); font-weight: 900; }
.s64-courseware .form-note { min-height: 18px; margin: 6px 0 0; color: var(--green); font-size: 11px; }

@media (max-width: 980px) and (min-width: 821px) {
  .s64-hero { grid-template-columns: minmax(0, 1fr) 205px; padding: 23px; }
  .s64-hero::after { display: none; }
  .s64-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s64-workspace { grid-template-columns: 218px minmax(0, 1fr); }
  .s64-day-button { grid-template-columns: 46px minmax(0, 1fr); }
  .s64-day-button small { display: none; }
  .s64-stage-tabs { padding-inline: 14px; }
  .s64-stage-tabs button { padding-inline: 8px; }
  .s64-example-grid, .s64-prompt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .s64-hero { grid-template-columns: 1fr; gap: 16px; padding: 20px 17px; border-radius: 14px; }
  .s64-hero::after { right: -7px; bottom: -8px; font-size: 58px; }
  .s64-hero h2 { font-size: clamp(27px, 8vw, 35px); }
  .s64-method { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s64-method span { min-width: 0; justify-content: center; padding-inline: 5px; }
  .s64-method b { width: 22px; height: 22px; flex-basis: 22px; }
  .s64-overview { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px 13px; padding: 17px; }
  .s64-overview strong { grid-row: span 2; font-size: 45px; }
  .s64-overview .s64-progress, .s64-overview .secondary-btn { grid-column: 1 / -1; }
  .s64-overview .secondary-btn { min-height: 44px; }
  .s64-local-notice { margin-inline: 0; }

  .s64-workspace { display: grid; grid-template-columns: 1fr; }
  .s64-day-panel { position: static; max-height: none; padding: 11px; overflow: hidden; }
  .s64-day-panel > header { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 0; }
  .s64-day-panel > header > div { min-width: 0; }
  .s64-day-panel .quiet-btn { min-height: 44px; padding-inline: 10px; }
  .s64-day-list { display: flex; gap: 7px; padding: 2px 1px 7px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; }
  .s64-day-button { min-width: 154px; min-height: 58px; flex: 0 0 154px; grid-template-columns: 47px minmax(0, 1fr) auto; scroll-snap-align: start; }
  .s64-day-button:hover { transform: none; }

  .s64-lesson { overflow: visible; border-radius: 14px; }
  .s64-lesson-head { display: grid; gap: 9px; padding: 18px 16px 13px; border-radius: 14px 14px 0 0; }
  .s64-lesson-head h2 { font-size: 23px; }
  .s64-lesson-head > span { width: max-content; }
  .s64-sentence-tabs { padding: 10px 16px; }
  .s64-sentence-tabs button { min-width: 46px; min-height: 44px; flex-basis: 46px; }
  .s64-stage-tabs { padding: 0 7px; }
  .s64-stage-tabs button { min-height: 60px; grid-template-columns: 1fr; justify-items: center; gap: 3px; padding: 7px 3px; text-align: center; }
  .s64-stage-tabs button:not(:last-child)::after { top: 13px; bottom: 13px; }
  .s64-stage-tabs button small { width: 23px; height: 23px; }
  .s64-stage-tabs button b { font-size: 12px; }
  .s64-audio-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 8px 16px; }
  .s64-audio-progress { grid-column: 1 / -1; grid-row: 2; }
  .s64-audio-strip > span { min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .s64-audio-strip label { justify-self: end; }

  .s64-stage-body { gap: 16px; padding: 18px 16px; }
  .s64-stage-heading { align-items: stretch; flex-direction: column; }
  .s64-stage-heading h3 { font-size: 23px; }
  .s64-stage-heading > button { width: 100%; min-height: 46px; }
  .s64-listen-grid, .s64-example-grid, .s64-prompt-grid { grid-template-columns: 1fr; }
  .s64-listen-card { min-height: 0; grid-template-rows: auto; padding: 16px; }
  .s64-listen-card > p { min-height: 0; }
  .s64-play-audio { min-height: 46px; }
  .s64-reference-card { padding: 16px; }
  .s64-pattern { font-size: 19px; }
  .s64-audio-row { min-height: 76px; padding: 11px 12px; }
  .s64-audio-row > button { width: 46px; height: 46px; }
  .s64-my-version { padding: 16px; }
  .s64-editor-heading { display: grid; gap: 5px; }
  .s64-save-status { text-align: left; }
  .s64-my-version input { min-height: 46px; }
  .s64-my-version textarea { min-height: 124px; }
  .s64-editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .s64-editor-actions button { width: 100%; min-height: 46px; }
  .s64-speak-card { min-height: 300px; padding: 24px 16px; }
  .s64-record-actions { flex-direction: column; }
  .s64-record-btn { width: min(330px, 100%); min-height: 50px; }
  .s64-stage-footer { align-items: stretch; flex-direction: column; }
  .s64-stage-footer > button { width: 100%; min-height: 46px; }

  .s64-lesson-nav {
    position: sticky;
    z-index: 6;
    bottom: calc(63px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr 1fr;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 -9px 25px rgba(24, 35, 61, .1);
  }
  .s64-lesson-nav > span { display: none; }
  .s64-lesson-nav button { width: 100%; min-height: 46px; }
  .s64-courseware { grid-template-columns: 1fr; justify-items: center; padding: 20px 16px; text-align: center; }
  .s64-courseware > img { width: min(250px, 84vw); }
  .s64-wechat-row { width: 100%; grid-template-columns: 1fr; }
  .s64-wechat-row input, .s64-wechat-row button { min-height: 46px; }
}

@media (max-width: 480px) {
  .s64-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s64-method span { justify-content: flex-start; }
  .s64-day-panel > header { grid-template-columns: 1fr; }
  .s64-day-panel .quiet-btn { width: 100%; }
  .s64-stage-tabs button b { font-size: 11px; }
  .s64-audio-row { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .s64-editor-actions { grid-template-columns: 1fr; }
  .s64-lesson-nav { gap: 8px; padding-inline: 9px; }
  .s64-lesson-nav button { padding-inline: 7px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .s64-day-button, .s64-audio-row, .s64-record-btn { animation: none !important; transition: none !important; }
  .s64-speak-card:has(.s64-record-btn.recording) .s64-record-visual i { animation: none; }
}

/* Shadowing navigation and adaptive practice rhythm */
.shadow-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 253, 250, .96);
}
.shadow-breadcrumb { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 3px; color: var(--muted); font-size: 13px; }
.shadow-breadcrumb button, .shadow-breadcrumb span[aria-current="page"] { min-height: 36px; display: inline-flex; align-items: center; padding: 5px 8px; }
.shadow-breadcrumb button { border: 0; border-radius: 9px; color: var(--blue); background: transparent; font-weight: 800; }
.shadow-breadcrumb button:hover { color: var(--coral); background: var(--coral-soft); }
.shadow-breadcrumb span[aria-current="page"] { color: var(--navy); font-weight: 900; }
.shadow-breadcrumb-divider { color: #b8b1aa; }
.shadow-context-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.shadow-context-actions button { min-height: 40px; white-space: nowrap; }
.shadow-source-return { border-color: #f0a79e; color: var(--coral); background: #fff8f4; }
.shadow-picker-player { min-height: 560px; }
.shadow-question-list { max-height: none; padding: 20px; }
.shadow-audio-state { display: block; margin-top: 4px; }
.shadow-audio-state.ready { color: var(--success); }
.shadow-rhythm-hint { margin: auto 0 0; padding: 12px; border-radius: 12px; color: var(--muted); background: #fff8f2; font-size: 12px; line-height: 1.55; }
.shadow-long-sentence-hint { width: fit-content; max-width: 680px; margin: 18px auto 0; padding: 9px 12px; border-radius: 10px; color: #8a5b18; background: #fff7df; font-size: 13px; line-height: 1.5; }
.shadow-question-picker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.shadow-question-picker select { min-width: 76px; }
.shadow-settings-85 select { min-width: 116px; }

@media (max-width: 820px) {
  #shadowView { padding-bottom: 24px; }
  #shadowView.has-shadow-dock { padding-bottom: calc(272px + env(safe-area-inset-bottom)); }
  .shadow-context-bar { align-items: stretch; flex-direction: column; padding: 10px; }
  .shadow-breadcrumb { width: 100%; }
  .shadow-breadcrumb button, .shadow-breadcrumb span[aria-current="page"] { min-height: 44px; }
  .shadow-context-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-context-actions button { width: 100%; min-height: 44px; padding-inline: 8px; white-space: normal; }
  .shadow-context-actions .shadow-source-return { grid-column: 1 / -1; }
  .shadow-menu .topic-button, .shadow-question-list .topic-button, .shadow-menu-head button { min-height: 44px; }
  .shadow-question-list { padding: 14px; }
  .shadow-picker-player { min-height: 360px; }
  .shadow-training-layout .shadow-training-summary { display: none; }
  .shadow-top { align-items: stretch; flex-direction: column; padding: 14px 16px; }
  .shadow-question-picker { width: 100%; justify-content: space-between; }
  .shadow-question-picker select { min-height: 44px; }
  .shadow-control-dock {
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .shadow-controls { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; }
  .transport .quiet-btn, .shadow-settings select, .shadow-settings button { min-height: 44px; }
  .shadow-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-settings select, .shadow-settings button { padding-inline: 7px; font-size: 12px; }
  .shadow-settings-85 select { min-width: 0; }
}

@media (max-width: 440px) {
  #shadowView.has-shadow-dock { padding-bottom: calc(282px + env(safe-area-inset-bottom)); }
  .shadow-context-actions { grid-template-columns: 1fr; }
  .shadow-context-actions .shadow-source-return { grid-column: auto; }
  .shadow-breadcrumb-divider { display: none; }
  .shadow-breadcrumb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-breadcrumb button, .shadow-breadcrumb span[aria-current="page"] { justify-content: center; text-align: center; }
}
