:root {
  --ink: #1d3338;
  --muted: #627579;
  --teal: #087f83;
  --teal-dark: #066469;
  --line: #dce5e4;
  --surface: #f5f8f7;
  --blue: #347fb9;
  --coral: #cc5a49;
  --green: #568e6a;
  --gold: #946e15;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Times New Roman', 'PMingLiU', 'MingLiU', 'Noto Serif CJK TC', serif; font-size: 16px; line-height: 1.6; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, select, input[type=checkbox] { cursor: pointer; }
button { background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:not(:disabled):hover, a:hover { transition: background .15s, border-color .15s, color .15s; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #e3b64a; outline-offset: 3px; }
svg.lucide { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 1.7; vertical-align: middle; }
svg:not(.lucide) { font-family: 'Times New Roman', 'PMingLiU', serif; }
button { border: 0; }
p { margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
small { font-size: 13px; }
hr { height: 1px; border: 0; background: var(--line); margin: 24px 0; }
blockquote { margin: 0; }
.skip { position: fixed; left: 20px; top: -100px; padding: 12px; z-index: 200; background: #fff; }
.skip:focus { top: 10px; }
.sidebar { position: fixed; width: 215px; top: 0; bottom: 0; background: #f5f8f7; border-right: 1px solid var(--line); padding: 30px 16px 20px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 5px; font: 700 26px/1.1 'Times New Roman', serif; }
.brand > svg { color: var(--teal); width: 31px; height: 31px; }
.brand small { display: block; margin-top: 8px; font-size: 9px; font-weight: 400; color: var(--muted); }
.brand-accent { color: var(--teal); }
.workspace-label { display: flex; justify-content: space-between; align-items: center; margin: 42px 12px 12px; font-size: 13px; color: var(--muted); }
.workspace-label span { font-family: Arial, sans-serif; font-size: 9px; border: 1px solid #b9cdcb; border-radius: 3px; padding: 1px 4px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 15px; margin-bottom: 6px; border-radius: 5px; font-size: 16px; color: #52666b; text-align: left; }
.nav-link.active { color: var(--teal-dark); background: #deeeeb; font-weight: 700; }
.nav-link:hover { background: #e8efed; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom .nav-link { font-size: 14px; padding: 10px; }
.local-note { border-top: 1px solid var(--line); padding: 18px 10px 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.app-body { margin-left: 215px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 76px; flex-shrink: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; gap: 12px; }
.breadcrumb { font-size: 14px; color: #667b7e; }
.breadcrumb span { color: #afbfbd; margin: 0 14px; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.profile { width: 33px; height: 33px; display: grid; place-items: center; background: #dfecea; color: var(--teal-dark); border-radius: 50%; font-size: 15px; }
.profile-name { font-size: 14px; }
.profile-name small { margin-left: 8px; color: var(--muted); font-size: 11px; }
.mobile-brand { display: none; }
.stagebar { display: flex; justify-content: space-between; gap: 12px; max-width: 1250px; width: calc(100% - 76px); margin: 23px auto 0; border-bottom: 1px solid var(--line); }
.stage { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: #7a8d8e; padding: 0 8px 16px; position: relative; white-space: nowrap; }
.stage.current { color: var(--teal-dark); font-weight: 700; }
.stage.current:after { content: ''; height: 3px; background: var(--teal); position: absolute; bottom: -2px; left: 0; right: 0; }
.stage-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eff3f2; }
.current .stage-icon { background: #deeeeb; }
.stage-icon svg { width: 16px; height: 16px; }
main { width: 100%; max-width: 1326px; padding: 34px 38px 40px; margin: 0 auto; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading .english { margin: 6px 0 0; font-size: 16px; }
.eyebrow { font-size: 12px; color: var(--teal); margin-bottom: 8px; }
.heading-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.english { color: var(--muted); font-family: 'Times New Roman', serif; }
.muted { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px; font-size: 12px; border-radius: 4px; color: var(--teal-dark); background: #e8f3f0; line-height: 1.5; white-space: nowrap; }
.pill.neutral { background: #f0f3f3; color: #667b7e; }
.pill.green { background: #eaf2e9; color: #48704f; }
.pill.gold { background: #faf0d8; color: #80601e; }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 40px; padding: 8px 15px; font-size: 14px; line-height: 1.4; border: 1px solid transparent; border-radius: 4px; font-weight: 700; vertical-align: middle; }
.btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.primary:hover:not(:disabled) { background: var(--teal-dark); }
.btn.outline { border-color: #b9ceca; color: var(--teal-dark); background: #fff; }
.btn.outline:hover:not(:disabled) { background: #edf6f2; }
.btn.quiet { color: #537076; background: transparent; }
.btn.quiet:hover { background: #f0f5f3; }
.btn.icon-button { width: 36px; min-height: 36px; padding: 8px; flex-shrink: 0; color: var(--muted); }
.icon-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon-button:hover { background: #e7efec; }
.text-button { font-size: 13px; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.text-button svg { width: 15px; height: 15px; }
.text-button:hover { text-decoration: underline; }
.section-kicker { font-size: 12px; color: var(--teal); display: block; margin-bottom: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { font-size: 20px; }
.section-heading h3 { font-size: 16px; }
.course-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.course-overview h2 { font-size: 24px; margin: 10px 0 16px; }
.course-overview p { color: #5a7073; max-width: 500px; }
.inline-meta { display: flex; gap: 20px; color: var(--muted); font-size: 13px; margin-bottom: 22px; flex-wrap: wrap; }
.inline-meta span { display: flex; gap: 6px; align-items: center; }
.inline-meta svg { width: 15px; height: 15px; }
.overview-scene { background: #f3f7f6; min-width: 0; border-bottom: 2px solid #accdc5; padding: 10px 18px 15px; }
.student-strip { display: flex; gap: 12px; align-items: end; }
.student-strip > div { flex: 1; min-width: 0; }
.student-strip .avatar { height: 137px; width: 100%; background-size: 300% auto; border-radius: 0; aspect-ratio: auto; }
.student-strip > div > span:last-child { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 1px; }
.student-strip small { color: var(--muted); font-size: 11px; }
.overview-scene blockquote { margin-top: 14px; padding-top: 12px; border-top: 1px solid #d7e5e0; font-size: 15px; line-height: 1.5; }
.overview-scene cite { display: block; color: var(--muted); font-size: 11px; font-style: normal; margin-top: 6px; }
.avatar { display: block; position: relative; overflow: hidden; background: #eef3f1; aspect-ratio: 1; width: 100%; }
.avatar::before { content: ''; position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1; transform: translateX(-50%); background-image: var(--student-portrait); background-repeat: no-repeat; background-size: 200% 200%; background-position: left top; }
.avatar-A { --student-portrait: url('assets/student-chloe-teen-expressions-v2.png'); }
.avatar-B { --student-portrait: url('assets/student-ryan-teen-expressions-v2.png'); }
.avatar-C { --student-portrait: url('assets/student-emma-teen-expressions-v2.png'); }
.avatar.small { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background-size: 300% 100%; }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit { border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px 16px; min-width: 0; }
.unit:nth-child(1) { border-top: 3px solid var(--teal); }
.unit:nth-child(2) { border-top: 3px solid var(--blue); }
.unit:nth-child(3) { border-top: 3px solid var(--gold); }
.unit-number { font: 20px 'Times New Roman', serif; color: #839a99; margin-bottom: 13px; }
.unit h3 { font-size: 18px; margin-bottom: 3px; }
.unit .english { font-size: 13px; margin-bottom: 17px; }
.unit > p:not(.english) { color: var(--muted); font-size: 14px; min-height: 48px; }
.unit-progress { font-size: 12px; color: #728784; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 10px; }
.unit:first-child .unit-progress > span:first-child { color: var(--teal); }
.path-bottom { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.path-bottom p { font-size: 14px; color: var(--muted); margin: 8px 0 0; max-width: 600px; }
.path-bottom > div:last-child { flex-shrink: 0; display: flex; gap: 8px; }
.page-actions { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; }
.learning-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr); gap: 40px; }
.context-line { font-size: 14px; margin-bottom: 20px; }
.context-line span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.example-dialogue { background: #f6f8f7; border-left: 3px solid #a8c9c1; padding: 8px 14px; }
.utterance { display: flex; width: 100%; gap: 12px; text-align: left; padding: 13px 12px; border-bottom: 1px solid #e8eeec; border-left: 3px solid transparent; font-size: 14px; line-height: 1.6; }
.turn-number { font: 11px/1.8 Arial, sans-serif; color: #91a19f; width: 21px; flex-shrink: 0; padding-top: 3px; }
.utterance-body { flex: 1; min-width: 0; }
.utterance-name { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.utterance-text { display: block; }
.utterance.teacher { background: #fcf8f6; }
.utterance.selected { background: #edf6f3; border-left-color: var(--teal); }
button.utterance:hover, [data-evidence-turn]:hover { background: #f1f6f4; cursor: pointer; }
.question { font-size: 17px; margin: 25px 0 18px; }
.choice-list { display: flex; flex-direction: column; gap: 12px; }
.choice { width: 100%; padding: 17px; border: 1px solid var(--line); border-radius: 5px; text-align: left; display: flex; gap: 14px; align-items: center; font-size: 15px; line-height: 1.6; }
.choice > span:not(.choice-letter) { flex: 1; }
.choice:hover { border-color: #8ebeb1; background: #f8faf9; }
.choice.chosen { border-color: var(--teal); background: #eff7f4; }
.choice-letter { width: 26px; height: 26px; border: 1px solid #c9d9d4; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; line-height: 1; color: var(--teal); }
.choice small { display: block; color: var(--muted); margin-top: 2px; font-weight: 400; }
.choice > svg { color: var(--teal); }
.compact .choice { font-size: 14px; padding: 14px; }
.compact .choice strong { font-size: 15px; }
.feedback { background: #edf6f1; padding: 18px 20px; margin-top: 20px; border-left: 3px solid #63a28a; }
.feedback > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.feedback strong { font-size: 15px; }
.feedback p { font-size: 14px; color: #4e6c62; margin: 9px 0 0; line-height: 1.8; }
.quiet-note { color: var(--muted); font-size: 13px; margin-top: 20px; }
.lesson-notes { border-left: 1px solid var(--line); padding-left: 30px; }
.lesson-notes h2 { font: 700 33px/1.2 'Times New Roman', serif; color: var(--teal); margin: 14px 0 8px; }
.lesson-notes h3 { margin: 12px 0; }
.lesson-notes p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.source-note { font-size: 12px; line-height: 1.8; color: #7a8c8b; margin-top: 22px; }
.move-tag { display: inline-flex; font: 12px/1.5 'Times New Roman', serif; padding: 2px 6px; color: #0d6d6e; background: #e2f0eb; border-radius: 3px; }
.tags { display: flex; gap: 4px; margin-top: 6px; }
.tags:empty { display: none; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 32px; }
.switch-label { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: var(--muted); }
input[type=checkbox] { accent-color: var(--teal); width: 17px; height: 17px; }
.mini-class { display: flex; gap: 18px; background: #f5f8f6; padding: 15px 22px 12px; }
.mini-class > div { flex: 1; min-width: 0; text-align: center; }
.mini-class .avatar { height: 130px; width: 100%; aspect-ratio: auto; background-size: 300% auto; }
.mini-class strong { display: block; font-size: 13px; margin-top: 4px; }
.mini-class small { font-size: 11px; color: var(--muted); }
.focused-turn { margin: 23px 0; padding-left: 18px; border-left: 3px solid var(--green); }
.focused-turn p { margin: 10px 0 0; font-size: 17px; line-height: 1.8; }
.composer { background: #f8faf9; border: 1px solid #cfddda; border-radius: 6px; padding: 15px; }
.composer > label, .composer-label > label:first-child { font-size: 14px; font-weight: 700; }
textarea { width: 100%; display: block; border: 1px solid #cadbd5; border-radius: 4px; padding: 11px 12px; line-height: 1.7; font-size: 15px; background: #fff; resize: vertical; min-height: 84px; }
textarea::placeholder { color: #92a19d; }
.composer textarea { margin-top: 8px; }
.composer-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 12px; }
.tool-group { display: flex; gap: 5px; }
.composer-footnote { color: #7d8f8d; font-size: 11px; margin: 12px 0 0; }
.coach { background: #f4f7f5; border-top: 3px solid #9dc2b7; padding: 22px; }
.coach h2 { font-size: 20px; margin: 14px 0; }
.coach > p { color: #667d76; font-size: 15px; line-height: 1.9; margin-bottom: 23px; }
.student-answer { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; }
.student-answer p { font-size: 14px; color: #567469; margin-top: 6px; }
.student-answer strong { font-size: 13px; }
.rehearsal-layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(250px, 1fr); gap: 26px; }
.classroom { min-width: 0; }
.classroom-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.classroom-top h2 { font-size: 21px; }
.classroom-top .section-kicker { margin-bottom: 4px; }
.conditions { color: #5b7275; font-size: 14px; line-height: 1.9; margin: 16px 0 22px; }
.virtual-class { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 6px 0; background: #f4f7f5; border-top: 1px solid var(--line); }
.student-seat { min-width: 0; }
.student-seat .avatar { width: 100%; height: 184px; background-size: 300% auto; aspect-ratio: auto; }
.student-caption { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; font-size: 13px; border-bottom: 2px solid transparent; gap: 3px; }
.student-caption span { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.student-caption svg { width: 13px; height: 13px; }
.is-speaking .student-caption { background: #e6f2ee; border-color: var(--teal); }
.is-speaking .student-caption span { color: var(--teal); }
.latest-speech { display: flex; gap: 12px; align-items: start; margin: 23px 0; min-height: 70px; }
.latest-speech > div { flex: 1; }
.latest-speech strong { font-size: 13px; }
.latest-speech p { font-size: 16px; margin: 7px 0 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--speaker); margin-top: 10px; flex-shrink: 0; }
.composer-label { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.recipient { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
select, input[type=date] { background: #fff; border: 1px solid #cadbd5; padding: 6px 8px; border-radius: 3px; font-size: 13px; max-width: 100%; }
.session-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.session-toolbar > span { font-size: 12px; color: var(--muted); margin-right: auto; }
.session-toolbar .btn { font-size: 12px; }
.live-transcript { min-width: 0; border-left: 1px solid var(--line); padding-left: 18px; }
.live-transcript .section-heading { margin-bottom: 12px; }
.live-transcript h2 { font-size: 17px; }
.transcript-scroll { height: 620px; overflow: auto; scrollbar-width: thin; }
.transcript-scroll .utterance { font-size: 13px; padding: 13px 7px; gap: 5px; }
.record-bar { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; gap: 12px; }
.record-bar > span:last-child { display: flex; align-items: center; gap: 7px; }
.analysis-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.analysis-stats > div { padding: 0 25px; border-right: 1px solid var(--line); }
.analysis-stats > div:first-child { padding-left: 0; }
.analysis-stats > div:last-child { border: 0; }
.analysis-stats span { display: block; color: #687e7d; font-size: 12px; margin-bottom: 4px; }
.analysis-stats strong { display: block; font: 32px/1.35 'Times New Roman', serif; }
.analysis-stats strong small { font-size: 14px; color: #748783; }
.analysis-stats strong.stat-topic { font-size: 21px; padding-top: 11px; }
.analysis-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(285px, 1fr); gap: 28px; align-items: start; }
.analysis-charts { min-width: 0; }
.analysis-charts .section-heading { margin-bottom: 16px; }
.segmented { display: flex; background: #f0f4f2; border: 1px solid #dbe6e0; border-radius: 4px; padding: 2px; gap: 2px; }
.segmented button { font-size: 12px; padding: 5px 10px; white-space: nowrap; border-radius: 3px; }
.segmented button.active { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 2px #173a2920; }
.chart-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.bubble-chart, .wave-chart { display: block; width: 100%; min-width: 570px; }
.chart-label { font-size: 12px; font-weight: 700; }
.chart-total { font-size: 12px; fill: #304c4f; }
.chart-percent { font-size: 11px; fill: #82918f; }
.chart-axis { font-size: 9px; fill: #879693; }
circle[data-turn] { cursor: pointer; }
circle[data-turn]:hover { stroke: #152f33; stroke-width: 2px; opacity: 1; }
.chart-legend { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; color: #82928e; padding: 5px 0 13px; }
.legend-teacher { color: var(--coral); }
.wave-heading { margin: 20px 0 10px; }
.wave-heading h3 { font-size: 15px; }
.move-section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 20px; }
.move-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d8e3df; border-radius: 4px; padding: 5px 9px; font: 12px/1.4 'Times New Roman', 'PMingLiU', serif; }
.filter b { background: #edf2ef; border-radius: 2px; font-size: 10px; padding: 1px 5px; }
.filter.active { background: #eaf4ef; border-color: #8ebbac; color: #086966; }
.reading-prompt { padding: 18px 0 0; border-top: 1px solid var(--line); margin-top: 23px; }
.reading-prompt strong { font-size: 14px; }
.reading-prompt p { color: #607a73; font-size: 14px; margin-top: 8px; }
.evidence-panel { border: 1px solid var(--line); border-radius: 5px; min-width: 0; overflow: hidden; }
.evidence-panel > .section-heading { margin: 0; padding: 14px 16px; }
.evidence-panel h2 { font-size: 17px; }
.selected-evidence { background: #f0f7f4; padding: 17px; border-top: 1px solid #d4e5dc; border-bottom: 1px solid #d4e5dc; font-size: 14px; }
.selected-evidence p { margin: 6px 0 14px; }
.selected-evidence > label { display: block; font-size: 11px; color: #6f8580; }
.selected-evidence select { display: block; width: 100%; margin-top: 5px; font-size: 12px; }
.analysis-transcript { height: 423px; overflow-y: auto; position: relative; scrollbar-width: thin; }
.analysis-transcript .utterance { font-size: 13px; }
.method-note { color: #7e908c; font-size: 11px; margin: 22px 0 0; max-width: 1000px; }
.reflection-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 38px; }
.reflection-excerpt { border: 1px solid var(--line); max-height: 460px; overflow: auto; border-radius: 5px; }
.reflection-question { margin-top: 22px; }
.reflection-question p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.reflection-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reflection-field { display: block; }
.reflection-field > span { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 9px; }
.reflection-field b { font: 13px 'Times New Roman', serif; color: #89a39a; }
.reflection-field textarea { min-height: 175px; font-size: 14px; }
.form-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px; }
.next-practice { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 32px; }
.next-practice > div { flex: 1; }
.next-practice p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.next-practice .btn { flex-shrink: 0; }
.assessment-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 40px; }
.assessment-students { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 25px 0; }
.assessment-students article { border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 4px; padding: 15px; }
.assessment-students article:nth-child(2) { border-top-color: var(--blue); }
.assessment-students article:nth-child(3) { border-top-color: var(--green); }
.assessment-students strong { display: block; font-size: 12px; margin-top: 10px; }
.assessment-students p { font-size: 14px; margin: 9px 0 0; line-height: 1.85; }
.assessment-task { margin: 25px 0 19px; }
.assessment-task p { font-size: 15px; color: var(--muted); margin-top: 10px; }
.assessment-input { display: block; font-size: 13px; color: var(--muted); }
.assessment-input textarea { margin-top: 8px; }
.assessment-info { background: #f4f7f5; border-top: 3px solid #b7cdc1; padding: 24px; }
dl { margin: 20px 0; }
dt { font-size: 12px; color: #84948e; }
dd { margin: 5px 0 19px; font-size: 14px; }
.assessment-info > p { font-size: 14px; color: var(--muted); }
.assessment-info .btn { width: 100%; margin-top: 22px; }
.assessment-saved { margin-top: 22px; }
.assessment-saved > div { border-left: 2px solid #acc8bb; padding-left: 13px; margin-bottom: 16px; font-size: 14px; }
.assessment-saved b { font-size: 12px; color: var(--teal); }
.assessment-saved p { margin-top: 8px; }
.record-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0 25px; margin-bottom: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record-summary h2 { margin: 9px 0; }
.record-summary p { color: var(--muted); font-size: 13px; margin: 0; }
.review-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 17px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { color: #71857f; font-size: 12px; font-weight: 400; background: #f5f8f6; }
.review-table th:first-child { width: 18%; }
.review-table th:last-child { width: 105px; }
.review-table td { color: #526d64; }
.review-table tbody th { font-size: 14px; }
.report-bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 36px; }
.report-bottom h2 { font-size: 19px; }
.empty-state { padding: 35px 15px; color: #8b9d95; }
.empty-state > svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 15px; font-weight: 400; margin: 15px 0 20px; }
.report-answer { display: flex; gap: 12px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.report-answer > span { font: 12px/1.8 'Times New Roman', serif; color: var(--teal); }
.report-answer p { font-size: 14px; }
.credential-note { border-left: 1px solid var(--line); padding-left: 25px; }
.credential-note > div { margin-top: 22px; }
.credential-note strong { font-size: 15px; }
.credential-note p { color: var(--muted); font-size: 14px; margin: 7px 0 0; }
.certificate-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 36px; align-items: start; }
.certificate { border: 1px solid #aac3ba; outline: 1px solid #dce8e0; outline-offset: -9px; padding: 27px 34px; text-align: center; background: #fff; }
.certificate-top { display: flex; justify-content: space-between; gap: 10px; text-align: left; align-items: center; }
.certificate-top strong { font: 700 23px 'Times New Roman', serif; color: var(--teal); }
.certificate-top > span { font-size: 9px; color: #a6b4ad; }
.certificate-seal { margin: 27px auto 15px; color: #a27c2c; }
.certificate-seal svg { width: 48px; height: 48px; stroke-width: 1; }
.certificate-eyebrow { font-size: 11px; color: #80948b; }
.certificate h2 { font-size: 29px; margin: 10px 0 5px; }
.certificate-subtitle { font: 19px 'Times New Roman', serif; color: var(--muted); }
.certificate-rule { width: 80px; height: 1px; background: #b69a58; margin: 27px auto; }
.certificate > p { font-size: 13px; color: #6e8278; }
.certificate h3 { font-size: 30px; margin: 18px 0; }
.certificate .certificate-body { font-size: 15px; line-height: 2; margin: 15px 0 27px; }
.certificate-facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 5px; }
.certificate-facts strong { display: block; font: 25px 'Times New Roman', serif; }
.certificate-facts span { font-size: 11px; color: #8c9b93; }
.certificate-bottom { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; text-align: left; line-height: 1.8; color: #7e9186; margin-top: 25px; }
.certificate-bottom > span:last-child { text-align: right; }
.achievement-record h2 { font-size: 20px; margin-bottom: 22px; }
.achievement-list { list-style: none; padding: 0; margin: 0; }
.achievement-list li { display: flex; gap: 13px; margin-bottom: 25px; align-items: center; }
.achievement-list svg { color: var(--green); width: 18px; height: 18px; }
.achievement-list strong { font-size: 14px; }
.achievement-list small { display: block; color: #87998e; font-size: 12px; margin-top: 3px; }
.verification { border-top: 1px solid var(--line); padding-top: 20px; }
.verification > span { display: block; color: var(--muted); font-size: 12px; }
.verification > strong { display: block; font: 17px 'Times New Roman', serif; margin: 10px 0 17px; }
.cohort-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr); gap: 32px; }
.cohort-layout > section, .cohort-notes { min-width: 0; }
.cohort-layout .section-heading label { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.cohort-table th, .cohort-table td { padding: 10px 12px; }
.cohort-table .btn { padding: 5px 7px; min-height: 32px; font-size: 12px; }
.cohort-notes { border-left: 1px solid var(--line); padding-left: 24px; }
.cohort-notes h2 { margin-bottom: 18px; font-size: 20px; }
.cohort-notes h3 { margin-bottom: 12px; }
.cohort-notes p { font-size: 14px; color: var(--muted); }
.cohort-notes blockquote { border-left: 2px solid #91bbaa; padding: 8px 0 8px 14px; margin-bottom: 22px; color: #59816c; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; margin: 0 38px; border-top: 1px solid var(--line); padding: 18px 0; font-size: 11px; color: #94a29d; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; color: #fff; background: #244d45; border-radius: 5px; padding: 13px 23px; box-shadow: 0 5px 20px #13382a24; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 30px); font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 7px; width: min(560px, calc(100% - 30px)); max-height: 85vh; color: var(--ink); box-shadow: 0 20px 80px #102f3133; }
dialog.wide { width: min(820px, calc(100% - 30px)); }
dialog::backdrop { background: #18343770; }
dialog > header { padding: 18px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
dialog h2 { font-size: 21px; }
.dialog-content { padding: 23px; font-size: 15px; }
.dialog-content p { line-height: 1.9; }
.move-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 25px; }
.move-glossary article { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.move-glossary h3 small { display: block; color: #618175; margin-top: 4px; font-size: 13px; }
.move-glossary p { font-size: 14px; margin-top: 12px; }
.move-glossary blockquote { font-size: 13px; color: #839b8c; padding-left: 10px; border-left: 2px solid #c3d8ca; }
.research-list { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.research-list p { font-size: 14px; margin: 12px 0; }
.research-list small { color: #7b9184; font-size: 12px; }
.task-list li { margin: 12px 0; }
.assignment-field { display: block; margin-bottom: 20px; font-size: 13px; }
.assignment-summary { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #47755e; font-size: 13px; align-items: center; }
.assignment-summary svg { flex-shrink: 0; }
.assignment-field select, .assignment-field input { display: block; margin-top: 8px; width: 100%; padding: 9px; }
.verify-list dd { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
[hidden] { display: none !important; }
@media (min-width: 1700px) { main { padding-top: 44px; } .virtual-class .avatar { height: 210px; } }
@media (max-width: 1250px) {
  .sidebar { width: 180px; padding-inline: 12px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand > svg { width: 25px; }
  .app-body { margin-left: 180px; }
  .topbar { padding-inline: 25px; }
  main { padding: 28px 25px 35px; }
  .stagebar { width: calc(100% - 50px); }
  h1 { font-size: 25px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 270px; }
  .course-overview { gap: 25px; }
  .overview-scene { padding-inline: 12px; }
  .student-strip .avatar { height: 115px; }
  .path-bottom { align-items: start; }
  .path-bottom > div:last-child { flex-direction: column; align-items: start; }
  .unit { padding: 18px 15px 13px; }
  .learning-layout, .assessment-layout { gap: 25px; }
  .rehearsal-layout { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 18px; }
  .student-seat .avatar { height: 145px; }
  .analysis-layout { grid-template-columns: minmax(0, 1.8fr) minmax(255px, 1fr); gap: 20px; }
  .analysis-stats > div { padding-inline: 17px; }
  .analysis-charts .section-heading h2 { font-size: 17px; }
  .chart-legend { flex-wrap: wrap; gap: 5px 10px; }
  .reflection-fields { grid-template-columns: 1fr; gap: 18px; }
  .reflection-field textarea { min-height: 90px; }
  .next-practice { flex-wrap: wrap; }
  .next-practice > div { flex-basis: 100%; }
  .cohort-layout { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 22px; }
}
@media (max-width: 1000px) {
  .sidebar { width: 72px; padding-inline: 7px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span, .workspace-label, .nav-link span, .local-note { display: none; }
  .sidebar nav { margin-top: 45px; }
  .nav-link { justify-content: center; padding: 15px; margin-bottom: 9px; }
  .sidebar-bottom .nav-link { padding: 15px; }
  .app-body { margin-left: 72px; }
  .page-heading { margin-bottom: 25px; }
  .page-heading .english { font-size: 14px; }
  .practice-layout { grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr); gap: 22px; }
  .coach { padding: 18px; }
  .mini-class { padding-inline: 10px; }
  .mini-class .avatar { height: 112px; }
  .learning-layout { grid-template-columns: minmax(0, 1.8fr) minmax(225px, 1fr); }
  .lesson-notes { padding-left: 22px; }
  .section-heading { flex-wrap: wrap; }
  .rehearsal-layout { grid-template-columns: 1fr; }
  .student-seat .avatar { height: 200px; }
  .live-transcript { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; margin-top: 15px; }
  .transcript-scroll { height: 330px; }
  .analysis-layout { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); }
  .analysis-stats > div { padding-inline: 12px; }
  .analysis-stats > div span { font-size: 11px; }
  .assessment-students { gap: 9px; }
  .assessment-students article { padding: 12px; }
  .review-table { min-width: 650px; }
  .cohort-layout { grid-template-columns: 1fr; }
  .cohort-notes { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .app-footer { margin-inline: 25px; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: 53px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 12px; flex-direction: row; justify-content: center; align-items: center; }
  .sidebar > .brand, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 9px; margin: 0; justify-content: space-between; width: 100%; }
  .nav-link { margin: 0; padding: 8px 12px; border-radius: 3px; }
  .nav-link svg { width: 20px; height: 20px; }
  .app-body { margin: 0; }
  .topbar { height: 60px; padding: 0 20px; }
  .mobile-brand { display: block; color: var(--teal); font: 700 21px 'Times New Roman', serif; }
  .breadcrumb { display: none; }
  .topbar-right { gap: 8px; }
  .profile-name { display: none; }
  .profile { width: 28px; height: 28px; font-size: 12px; }
  .topbar .pill { font-size: 10px; }
  .stagebar { width: calc(100% - 40px); gap: 0; margin-top: 17px; }
  .stage { flex: 1; flex-direction: column; gap: 5px; font-size: 10px; padding: 0 0 12px; }
  .stage-icon { width: 25px; height: 25px; }
  main { padding: 24px 20px 30px; }
  h1 { font-size: 24px; line-height: 1.45; }
  h2 { font-size: 20px; }
  .page-heading { display: block; }
  .heading-actions { max-width: none; justify-content: flex-start; margin-top: 15px; }
  .page-heading .english { font-size: 14px; line-height: 1.4; }
  .eyebrow { font-size: 11px; margin-bottom: 7px; }
  .course-overview { grid-template-columns: 1fr; gap: 26px; }
  .course-overview h2 { font-size: 23px; }
  .course-overview p { font-size: 15px; }
  .student-strip .avatar { height: 125px; }
  .unit-grid { grid-template-columns: 1fr; gap: 17px; }
  .unit { padding: 18px; }
  .unit > p:not(.english) { min-height: 0; }
  .unit-number { float: right; }
  .path-bottom { display: block; }
  .path-bottom > div:last-child { flex-direction: row; flex-wrap: wrap; margin-top: 17px; }
  .learning-layout, .practice-layout, .reflection-layout, .assessment-layout, .certificate-layout { grid-template-columns: 1fr; gap: 28px; }
  .lesson-notes { border-left: 0; border-top: 1px solid var(--line); padding: 23px 0 0; }
  .lesson-notes h2 { font-size: 28px; }
  .choice { padding: 14px 12px; font-size: 15px; gap: 10px; }
  .feedback { padding: 15px; }
  .mini-class { padding: 8px 10px 10px; gap: 9px; }
  .mini-class .avatar { height: 105px; }
  .focused-turn p { font-size: 16px; }
  .composer-tools { flex-wrap: wrap; }
  .composer-tools > .btn.primary { margin-left: auto; }
  .tool-group .btn { font-size: 12px; padding: 8px; }
  .classroom-top { align-items: start; }
  .classroom-top h2 { font-size: 20px; }
  .classroom-top > .btn { padding: 7px 9px; font-size: 12px; min-height: 35px; white-space: nowrap; }
  .virtual-class { gap: 5px; padding: 5px 3px 0; }
  .student-seat .avatar { height: 112px; }
  .student-caption { flex-direction: column; padding: 7px 2px; gap: 2px; }
  .student-caption span { font-size: 10px; }
  .student-caption strong { font-size: 12px; }
  .conditions { font-size: 13px; }
  .latest-speech p { font-size: 15px; }
  .recipient { font-size: 11px; gap: 4px; }
  .recipient select { font-size: 11px; padding: 4px; }
  .session-toolbar { gap: 9px; }
  .session-toolbar > span { flex-basis: 100%; }
  .record-bar { align-items: start; font-size: 12px; flex-direction: column; gap: 8px; }
  .analysis-stats { grid-template-columns: 1fr 1fr; gap: 20px 0; margin: 20px 0 25px; }
  .analysis-stats > div:nth-child(3) { padding-left: 0; }
  .analysis-stats > div:nth-child(2) { border-right: 0; }
  .analysis-stats strong { font-size: 29px; }
  .analysis-stats span { font-size: 12px; }
  .analysis-layout { grid-template-columns: 1fr; gap: 26px; }
  .analysis-charts .section-heading { gap: 10px; }
  .analysis-charts .section-heading h2 { font-size: 19px; }
  .segmented button { padding-inline: 9px; }
  .chart-legend { font-size: 10px; justify-content: start; gap: 6px 14px; }
  .bubble-chart, .wave-chart { min-width: 610px; }
  .wave-heading h3 { font-size: 14px; }
  .analysis-transcript { height: 350px; }
  .reflection-fields { grid-template-columns: 1fr; }
  .reflection-field textarea { min-height: 110px; }
  .next-practice { gap: 15px; }
  .next-practice .btn { font-size: 13px; padding-inline: 12px; }
  .assessment-students { grid-template-columns: 1fr; gap: 12px; }
  .assessment-students article { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 13px; }
  .assessment-students article .avatar { grid-row: 1 / 3; }
  .assessment-students strong { margin-top: 0; }
  .assessment-students p { margin-top: 4px; }
  .record-summary { align-items: start; flex-direction: column; }
  .record-summary h2 { font-size: 20px; }
  .report-bottom { grid-template-columns: 1fr; gap: 26px; }
  .credential-note { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .certificate { padding: 23px 23px; }
  .certificate-top strong { font-size: 20px; }
  .certificate-top span { font-size: 8px; }
  .certificate h2 { font-size: 24px; }
  .certificate-subtitle { font-size: 15px; }
  .certificate-bottom { flex-direction: column; gap: 13px; }
  .certificate-bottom > span:last-child { text-align: left; }
  .certificate-facts span { font-size: 10px; }
  .cohort-table { min-width: 500px; }
  .cohort-notes { padding-top: 23px; }
  .app-footer { margin-inline: 20px; font-size: 9px; gap: 10px; }
  .move-glossary, .research-list { grid-template-columns: 1fr; }
  dialog > header { padding: 14px 18px; }
  dialog h2 { font-size: 19px; }
  .dialog-content { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .stagebar, .page-heading, .achievement-record, .app-footer, .toast, .skip { display: none !important; }
  .app-body { margin: 0; }
  main { padding: 0; max-width: none; }
  .certificate-layout { display: block; }
  .certificate { width: 175mm; margin: 15mm auto; break-inside: avoid; }
  .certificate h2 { font-size: 29px; }
}
