:root {
  --ink: #172321;
  --ink-2: #263a36;
  --navy: #1e2d3b;
  --cream: #f3efe7;
  --paper: #fbfaf7;
  --line: #dcded8;
  --muted: #6e7773;
  --accent: #b28a57;
  --green-soft: #dce5df;
  --white: #fff;
  --shadow: 0 20px 70px rgba(23, 35, 33, .10);
  --radius-lg: 28px;
  --radius-md: 18px;
}
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #e7e9e5; font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.forward-arrow { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; color: #74817b; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
button, a { -webkit-tap-highlight-color: transparent; }

.app-body { min-height: 100vh; padding: 28px 16px; }
.mobile-shell { width: min(100%, 480px); margin: 0 auto; background: var(--paper); box-shadow: var(--shadow); }
.dashboard-shell { min-height: calc(100vh - 56px); padding: 0 24px 26px; border-radius: 34px; overflow: hidden; }
.student-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-mark { display: flex; align-items: center; gap: 11px; }
.brand-monogram { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; letter-spacing: -.5px; }
.brand-mark strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 600; letter-spacing: .12em; }
.brand-mark small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.avatar-button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--paper); background: var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
.avatar-button:hover { background: var(--ink-2); transform: translateY(-1px); }
.avatar-button:active { transform: scale(.96); }

.profile-intro { padding: 31px 2px 23px; display: flex; justify-content: space-between; align-items: end; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.profile-intro h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 500; }
.plan-badge { padding: 7px 12px; border: 1px solid #bbc7c0; border-radius: 999px; color: var(--ink-2); background: var(--green-soft); font-size: 12px; }

.score-hero { position: relative; padding: 25px 22px 19px; color: var(--cream); background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.score-hero::after { content: ""; position: absolute; width: 190px; height: 190px; top: -120px; right: -85px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.score-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-kicker { margin: 3px 0 0; color: #eef1ed; font-size: 14px; font-weight: 600; }
.score-date { margin: 4px 0 0; color: #9caaa5; font-size: 12px; }
.score-number { font-family: Georgia, serif; font-size: 58px; line-height: .92; letter-spacing: -.05em; }
.ranking-block { margin-top: 25px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.ranking-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.ranking-title strong { color: #fff; font-size: 21px; }
.rank-track { margin-top: 17px; display: grid; grid-template-columns: 20px 1fr 20px; gap: 7px; align-items: center; }
.rank-label { color: #87948f; font-size: 11px; }
.rank-line { position: relative; height: 2px; background: linear-gradient(90deg, #63716c, #d4ded9); }
.rank-line i { position: absolute; top: 50%; width: 13px; height: 13px; border: 3px solid var(--ink); border-radius: 50%; background: #f0e4cd; box-shadow: 0 0 0 1px #f0e4cd; transform: translate(-50%, -50%); }
.rank-feedback { margin: 10px 27px 0; color: #aeb9b5; font-size: 12px; }
.rank-feedback strong { color: #ece2d0; font-size: 14px; }
.text-link { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); color: #e9e5dc; font-size: 13px; transition: color .2s; }
.text-link:hover { color: #fff; }

.competency-section, .quick-section { padding-top: 34px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-title-row h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.muted-label { color: var(--muted); font-size: 11px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skill-card { position: relative; min-height: 142px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.skill-card:hover { transform: translateY(-2px); border-color: #b9c1bc; box-shadow: 0 10px 24px rgba(23,35,33,.06); }
.skill-index { position: absolute; top: 14px; right: 15px; color: #aeb4b1; font-family: Georgia, serif; font-size: 11px; }
.skill-card p { margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.skill-card p small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.skill-card strong { display: block; font-family: Georgia, serif; font-size: 35px; font-weight: 500; line-height: 1; }
.average { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }

.quick-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.quick-list a { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 12px; min-height: 70px; padding: 11px 15px; border-bottom: 1px solid #e8e9e5; transition: background .18s, padding .18s; }
.quick-list a:last-child { border-bottom: 0; }
.quick-list a:hover { padding-left: 18px; background: #f4f6f2; }
.quick-list a:active { background: #eaede8; }
.quick-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--ink); background: var(--green-soft); font-family: Georgia, "Songti SC", serif; font-size: 13px; }
.quick-list strong { display: block; font-size: 14px; font-weight: 600; }
.quick-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.quick-list b { color: #929b96; font-size: 14px; font-weight: 400; }
.student-footer { display: flex; justify-content: space-between; padding: 26px 2px 0; color: #98a09c; font-size: 9px; letter-spacing: .1em; }

@media (max-width: 520px) {
  .app-body { padding: 0; background: var(--paper); }
  .mobile-shell { width: 100%; box-shadow: none; }
  .dashboard-shell { min-height: 100vh; border-radius: 0; }
}

@media (min-width: 900px) {
  .dashboard-page { padding: 48px 24px; }
  .dashboard-shell { min-height: auto; }
}

/* Reading assessment */
.reading-page { min-height: 100vh; margin: 0; overflow: hidden; background: #eef0ee; }
.exam-app { display: grid; grid-template-rows: 72px 1fr; height: 100vh; }
.exam-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; color: #f5f3ee; background: #15222d; }
.exam-title { display: flex; align-items: baseline; gap: 14px; }
.exam-title > span { font-family: Georgia, serif; font-size: 22px; }
.exam-title b, .timer-label b { font-family: inherit; font-size: .72em; font-weight: 400; opacity: .68; }
.exam-title small { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); color: #aab4bb; font-size: 12px; }
.exam-status { display: flex; align-items: center; gap: 16px; }
.autosave { display: flex; align-items: center; gap: 7px; color: #aeb9b8; font-size: 11px; }
.autosave i { width: 6px; height: 6px; border-radius: 50%; background: #8eb3a1; box-shadow: 0 0 0 4px rgba(142,179,161,.12); }
.autosave b { font-weight: 400; }
.timer-label { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); color: #b7c0c6; font-size: 11px; }
.exam-status > strong { min-width: 61px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.submit-button { justify-self: end; padding: 10px 18px; border: 1px solid rgba(255,255,255,.34); border-radius: 8px; color: #fff; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.submit-button span { font-size: 12px; opacity: .7; }
.submit-button:hover { color: var(--ink); background: #f2eee5; }
.exam-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 55fr) minmax(390px, 45fr); }
.passage-pane { overflow-y: auto; padding: 38px clamp(32px, 5vw, 76px) 70px; border-right: 1px solid #d4d8d6; background: #fbfaf7; }
.passage-topline { display: flex; justify-content: space-between; color: #65716d; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.text-size { width: 34px; height: 30px; border: 1px solid #ccd1ce; border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; }
.passage-pane h1 { max-width: 680px; margin: 34px 0 12px; font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 3vw, 45px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.passage-lead { max-width: 640px; margin: 0 0 38px; color: #67716e; font-family: Georgia, serif; font-size: 17px; line-height: 1.55; }
.passage-copy { max-width: 720px; color: #303936; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.88; }
.passage-copy p { margin: 0 0 24px; }
.passage-copy.large-text { font-size: 20px; }
.passage-copy b { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--ink); font-size: 12px; }
.question-pane { min-height: 0; display: grid; grid-template-rows: 1fr auto; background: #f1f3f1; }
.question-scroll { overflow-y: auto; padding: 34px 34px 24px; }
.question-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid #d8dcda; }
.question-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.question-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.question-card { padding-top: 28px; }
.question-number { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.question-text { margin: 9px 0 22px; font-size: 17px; font-weight: 580; line-height: 1.55; }
.option-list { display: grid; gap: 10px; }
.answer-option { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid #d2d7d4; border-radius: 10px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.answer-option:hover { border-color: #83918b; transform: translateX(2px); }
.answer-option.selected { border-color: var(--ink); background: #e6ece8; }
.answer-key { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #b7bfbb; border-radius: 50%; font-family: Georgia, serif; font-size: 12px; }
.selected .answer-key { color: #fff; border-color: var(--ink); background: var(--ink); }
.question-controls { padding: 16px 22px 18px; border-top: 1px solid #d4d8d6; background: #fff; box-shadow: 0 -8px 30px rgba(29,42,39,.04); }
.question-nav { display: grid; grid-template-columns: repeat(13, minmax(24px, 1fr)); gap: 5px; }
.question-nav button { aspect-ratio: 1; min-width: 0; border: 1px solid #d2d6d3; border-radius: 6px; color: #5e6864; background: #fff; font-size: 11px; cursor: pointer; transition: .15s; }
.question-nav button:hover { border-color: #6f7c77; }
.question-nav button.current { color: #fff; border-color: var(--ink); background: var(--ink); }
.question-nav button.answered:not(.current) { color: var(--ink); background: #dfe7e2; }
.question-nav button.flagged { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; margin-top: 14px; }
.secondary-button, .primary-button, .flag-button { min-height: 42px; padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: transform .15s, background .18s; }
.secondary-button { border: 1px solid #c9cfcb; color: var(--ink); background: #fff; }
.primary-button { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.flag-button { border: 1px solid #c9cfcb; color: #5d6763; background: #fff; }
.flag-button.active { color: #6a4c25; border-color: #b28a57; background: #f3eadc; }
.secondary-button:hover, .flag-button:hover { background: #edf0ed; }
.secondary-button:disabled { opacity: .42; cursor: not-allowed; }
.primary-button:hover { background: #2c403b; }
.secondary-button:active, .primary-button:active, .flag-button:active { transform: scale(.98); }
.submit-dialog { width: min(90vw, 440px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.submit-dialog::backdrop { background: rgba(13,22,27,.58); backdrop-filter: blur(3px); }
.submit-dialog form { padding: 30px; }
.submit-dialog h2 { margin: 5px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 25px; font-weight: 500; }
.submit-dialog p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.mobile-reading-notice { display: none; }

@media (max-width: 820px) {
  .reading-page { overflow: auto; background: var(--paper); }
  .exam-app { display: none; }
  .mobile-reading-notice { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 28px; }
  .mobile-reading-notice .brand-monogram { margin-bottom: 35px; }
  .mobile-reading-notice h1 { max-width: 370px; margin: 5px 0 14px; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 500; line-height: 1.2; }
  .mobile-reading-notice > p:not(.eyebrow) { max-width: 430px; color: var(--muted); }
  .mobile-reading-notice a { margin-top: 25px; padding: 11px 17px; border-radius: 8px; color: #fff; background: var(--ink); }
}

/* Results */
.results-shell { min-height: calc(100vh - 56px); border-radius: 34px; overflow: hidden; }
.results-header { height: 66px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--paper); text-align: center; font-size: 13px; font-weight: 600; }
.back-link, .more-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--ink); background: #ecefe9; cursor: pointer; transition: transform .15s, background .2s; }
.back-link:hover, .more-button:hover { background: #dfe5de; }
.back-link:active, .more-button:active { transform: scale(.95); }
.more-button { justify-self: end; letter-spacing: .08em; }
.report-title { padding: 32px 24px 23px; }
.report-title h1 { margin: 5px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 500; }
.report-title > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.result-score { margin: 0 18px; overflow: hidden; border-radius: 24px; color: #f5f1e8; background: var(--ink); }
.result-main-score { display: flex; align-items: center; justify-content: space-between; padding: 25px 22px 20px; }
.result-main-score span { max-width: 145px; font-size: 13px; }
.result-main-score strong { font-family: Georgia, serif; font-size: 60px; font-weight: 500; line-height: .9; }
.result-rank { padding: 19px 22px 22px; background: rgba(255,255,255,.055); }
.result-rank > div:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.result-rank > div:first-child strong { font-size: 20px; }
.result-rank .rank-track { margin-top: 15px; }
.result-rank > p { margin: 10px 27px 0; color: #aeb9b5; font-size: 11px; }
.result-rank > p b { color: #eee2cd; font-size: 13px; }
.result-skills, .evidence-section, .history-section { padding: 32px 24px 0; }
.result-skill-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.result-skill-list > div { position: relative; display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 15px; min-height: 62px; padding: 10px 16px 14px; border-bottom: 1px solid #e7e9e5; }
.result-skill-list > div:last-child { border-bottom: 0; }
.result-skill-list span { font-size: 12px; }
.result-skill-list span b { display: block; font-size: 14px; }
.result-skill-list strong { justify-self: end; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.result-skill-list i { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; overflow: hidden; background: #e5e8e4; }
.result-skill-list i::after { content: ""; display: block; width: var(--value); height: 100%; background: #84968e; }
.evidence-list { display: grid; gap: 9px; }
.evidence-card { position: relative; width: 100%; min-height: 68px; display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.evidence-card:hover { transform: translateY(-1px); border-color: #9ca9a3; box-shadow: 0 8px 20px rgba(23,35,33,.06); }
.evidence-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--ink-2); font-family: Georgia, "Songti SC", serif; font-size: 11px; }
.evidence-card strong { display: block; font-size: 13px; }
.evidence-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.evidence-card > b { color: #9aa39e; font-weight: 400; }
.audio-progress { position: absolute; left: 64px; right: 46px; bottom: 8px; height: 2px; overflow: hidden; border-radius: 2px; background: #e2e6e2; }
.audio-progress em { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s linear; }
.audio-card.playing .evidence-icon { color: var(--ink); background: #e4d3b8; }
.history-section { padding-bottom: 5px; }
.history-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 0 15px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.history-toggle small { display: block; margin-bottom: 4px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.history-toggle strong { font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.history-toggle > b { font-size: 19px; font-weight: 400; }
.history-content { position: relative; padding: 23px 0 0 18px; }
.history-content.collapsed { display: none; }
.timeline-item { position: relative; padding: 0 0 25px 24px; border-left: 1px solid #cbd1cd; }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-dot { position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: #89958f; box-shadow: 0 0 0 1px #89958f; }
.timeline-item.current .timeline-dot { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-item time { color: var(--muted); font-family: Georgia, serif; font-size: 12px; }
.timeline-item h3 { margin: 2px 0 4px; font-size: 14px; }
.timeline-item p { margin: 0; font-size: 12px; }
.timeline-item p strong { margin-left: 4px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.timeline-item small { color: var(--muted); font-size: 10px; }
.growth-change { margin: -9px 0 18px 24px; padding: 11px 13px; border-radius: 10px; background: var(--green-soft); }
.growth-change span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.growth-change strong { font-size: 12px; font-weight: 600; }
.report-note { margin: 29px 24px 0; padding: 19px 0 27px; border-top: 1px solid var(--line); color: #8b938f; font-size: 10px; line-height: 1.65; }
.essay-preview { margin: 17px 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f6f4ef; }
.essay-preview p { margin: 0 0 13px; color: #37413e !important; font-family: Georgia, serif; font-size: 15px !important; line-height: 1.7; }
.essay-preview span { color: var(--muted); font-size: 10px; }
.writing-dialog .primary-button { width: 100%; }

@media (max-width: 520px) {
  .results-page { padding: 0; background: var(--paper); }
  .results-shell { min-height: 100vh; border-radius: 0; box-shadow: none; }
}

@media (min-width: 760px) {
  .results-page { padding: 48px 24px; }
  .results-shell { min-height: auto; }
}

/* Dashboard V2 — deliberately shallow, quiet and daily-use oriented */
.dashboard-page .dashboard-shell { width: min(100%, 450px); min-height: calc(100vh - 56px); padding: 0 26px 38px; }
.dashboard-page .student-header { height: 76px; border-bottom: 0; }
.dashboard-page .wordmark { font-family: Georgia, "Songti SC", serif; font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.dashboard-page .avatar-button { width: 36px; height: 36px; font-size: 13px; }
.dashboard-page .profile-intro { align-items: center; padding: 22px 0 34px; border-bottom: 1px solid #e3e5e0; }
.dashboard-page .profile-intro h1 { font-size: 29px; }
.dashboard-page .plan-link { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px 0 12px; color: #4f5d58; font-size: 13px; transition: color .18s, transform .18s; }
.dashboard-page .plan-link strong { font-weight: 500; }
.dashboard-page .plan-link span { font-family: Georgia, serif; font-size: 23px; line-height: 1; }
.dashboard-page .plan-link:hover { color: var(--ink); transform: translateX(2px); }
.dashboard-page section > h2, .dashboard-page .archive-link h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 500; letter-spacing: .02em; }

.next-course { padding: 31px 0 0; }
.course-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-top: 15px; padding: 18px 19px; border-radius: 16px; background: #e5ebe6; transition: background .18s, transform .18s; }
.course-row:hover { background: #dce5de; transform: translateY(-1px); }
.course-row:active { transform: scale(.99); }
.course-time { margin: 0 0 5px; color: #53615c; font-size: 13px; }
.course-name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.course-progress { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.course-progress strong { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.course-progress span { color: var(--muted); font-size: 11px; }
.course-progress b { margin-left: 7px; color: #718079; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }

.level-section { padding-top: 34px; }
.level-card { margin-top: 15px; padding: 23px 21px 18px; border-radius: 20px; color: #f1eee7; background: var(--ink); }
.level-empty { margin-top: 15px; padding: 23px 21px 22px; border-radius: 20px; color: #f1eee7; background: var(--ink); }
.level-empty strong { display: block; font-family: Georgia, "Songti SC", serif; font-size: 25px; font-weight: 500; }
.level-empty p { margin: 9px 0 0; color: #aeb9b4; font-size: 12px; }
.level-data { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.ielts-score span, .formal-rank span { display: block; color: #aeb9b4; font-size: 12px; }
.ielts-score strong { display: block; margin-top: 2px; font-family: Georgia, serif; font-size: 48px; font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.formal-rank { text-align: right; }
.formal-rank strong { display: block; margin-top: 4px; color: #fff; font-size: 19px; font-weight: 600; }
.formal-rank b { font-weight: inherit; }
.person-rank { display: grid; grid-template-columns: 18px 1fr 18px; align-items: center; gap: 8px; margin-top: 26px; color: #8e9a95; font-size: 11px; }
.person-track { position: relative; height: 32px; }
.person-track::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: linear-gradient(90deg, #65736d 0%, #d7dfdb 100%); }
.person-position { position: absolute; top: -8px; width: 24px; height: 31px; color: #eadcc4; transform: translateX(-50%); transition: left .45s ease; }
.person-position svg { display: block; width: 24px; height: 31px; overflow: visible; }
.person-position circle { fill: currentColor; }
.person-position path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.person-position .person-face { stroke-width: 1.15; }
.archive-section { padding-top: 35px; }
.archive-link { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px; padding: 4px 1px 17px; border-bottom: 1px solid #dfe2dd; transition: padding .18s, border-color .18s; }
.archive-link:hover { padding-left: 4px; border-color: #aab5af; }
.archive-link p { margin: 15px 0 0; color: #34423d; font-size: 13px; }
.archive-link p span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.archive-link p b { font-weight: 400; }
.archive-count { display: flex; align-items: center; gap: 11px; min-height: 24px; padding-top: 0; color: #64706b; }
.archive-count strong { font-size: 12px; font-weight: 500; }
.archive-count b { margin-right: 3px; }

@media (max-width: 520px) {
  .dashboard-page .dashboard-shell { min-height: 100vh; padding: 0 24px 36px; }
  .dashboard-page .student-header { height: 70px; }
  .dashboard-page .profile-intro { padding: 19px 0 30px; }
}

/* V3 Level 2 — learning archive */
.archive-shell, .record-shell { width: min(100%, 450px); min-height: calc(100vh - 56px); padding: 0 26px 42px; border-radius: 34px; overflow: hidden; }
.plain-header { height: 72px; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; border-bottom: 1px solid #e2e4df; }
.plain-header > a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); font-family: Georgia, serif; font-size: 27px; line-height: 1; transition: transform .16s; }
.plain-header > a:hover { transform: translateX(-2px); }
.plain-header > span { text-align: center; font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 600; letter-spacing: .07em; }
.archive-heading { padding: 30px 2px 21px; }
.archive-heading h1, .record-heading h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 32px; font-weight: 500; }
.archive-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.archive-empty { margin: 42px 2px 0; color: #7e8984; font-size: 13px; line-height: 1.8; }
.record-timeline { position: relative; padding: 9px 0 0 25px; }
.record-timeline::before { content: ""; position: absolute; left: 7px; top: 39px; bottom: 55px; width: 1px; background: #c8cfca; }
.record-entry { position: relative; min-height: 110px; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px; padding: 23px 2px 22px 15px; border-bottom: 1px solid #e0e3de; transition: padding .18s, border-color .18s; }
.record-entry:not(:last-child)::after { content: ""; position: absolute; left: -20px; bottom: -5px; z-index: 1; width: 5px; height: 5px; color: #87938d; background: var(--paper); border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg); }
.record-entry:hover { padding-left: 19px; border-color: #aab5af; }
.record-entry:last-child { border-bottom: 0; }
.record-node { position: absolute; left: -22px; top: 29px; width: 9px; height: 9px; border: 2px solid var(--paper); border-radius: 50%; background: #89958f; box-shadow: 0 0 0 1px #89958f; }
.record-entry.latest .record-node { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.record-entry strong { display: block; font-size: 16px; font-weight: 600; }
.record-entry p { margin: 6px 0 0; color: #59645f; font-size: 13px; }
.record-entry div small { display: block; margin-top: 5px; color: #89928e; font-size: 11px; }
.record-score { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 7px; text-align: right; }
.record-score small { grid-column: 1; color: var(--muted); font-size: 10px; }
.record-score b { grid-column: 1; margin-top: 1px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.record-score i { grid-column: 2; grid-row: 1 / 3; align-self: center; }

@media (max-width: 520px) {
  .archive-page, .record-page { padding: 0; background: var(--paper); }
  .archive-shell, .record-shell { width: 100%; min-height: 100vh; padding: 0 24px 38px; border-radius: 0; box-shadow: none; }
}

/* V3 Level 3 — one complete ability record */
.record-heading { padding: 35px 2px 27px; }
.record-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.record-overview { padding: 24px 21px 18px; border-radius: 20px; color: #f3efe7; background: var(--ink); }
.record-metrics { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.record-metrics > div:last-child { text-align: right; }
.record-metrics span { display: block; color: #aeb9b4; font-size: 12px; }
.record-metrics > div:first-child > strong { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: 49px; font-weight: 500; line-height: .95; }
.record-metrics > div:last-child > strong { display: block; margin-top: 5px; font-size: 19px; font-weight: 600; }
.record-metrics b { font-weight: inherit; }
.record-person-rank { margin-top: 24px; }
.record-guidance { display: grid; gap: 18px; margin-top: 22px; padding: 20px 2px 2px; border-top: 1px solid #dfe2dd; }
.record-guidance span { color: #87918c; font-size: 11px; }
.record-guidance p { margin: 6px 0 0; color: #2d3935; font-size: 14px; line-height: 1.65; }
.record-section { padding-top: 34px; }
.record-section > h2 { margin: 0 0 11px; font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 500; }
.simple-record-list { border-top: 1px solid #dfe2dd; }
.simple-record-list a { min-height: 61px; display: grid; grid-template-columns: 1fr auto 16px; align-items: center; gap: 12px; border-bottom: 1px solid #dfe2dd; transition: padding .18s, border-color .18s; }
.simple-record-list a:hover { padding-left: 4px; border-color: #a8b2ad; }
.simple-record-list span { font-size: 14px; font-weight: 560; }
.simple-record-list span small { margin-left: 6px; color: #9aa29e; font-size: 10px; font-weight: 400; letter-spacing: .01em; }
.simple-record-list strong { min-width: 32px; text-align: right; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.simple-record-list a > small { justify-self: end; color: #8b948f; font-size: 11px; }
.simple-record-list b { justify-self: center; }
.record-materials .simple-record-list a { grid-template-columns: 1fr auto 16px; }
.record-note { margin: 28px 0 0; color: #a2a8a5; font-size: 9px; line-height: 1.7; }

/* Clean public student route; internal static pages stay inside this shell. */
.student-route-page { margin: 0; overflow: hidden; background: var(--paper); }
.student-route-frame { display: block; width: 100vw; height: 100vh; border: 0; background: var(--paper); }

/* Private test utility — intentionally absent from product navigation */
.admin-switch-shell { width: min(100%, 450px); min-height: calc(100vh - 56px); padding: 0 26px 42px; border-radius: 34px; overflow: hidden; }
.switch-heading { padding: 40px 2px 30px; }
.switch-heading h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 32px; font-weight: 500; }
.switch-heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.switch-heading strong { color: var(--ink); font-weight: 600; }
.student-switch-list { border-top: 1px solid #dfe2dd; }
.student-switch-list a { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe2dd; font-size: 15px; }
.student-switch-list a.active span::after { content: "当前"; margin-left: 9px; color: var(--muted); font-size: 10px; font-weight: 400; }
.student-switch-list b { color: #7b8781; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.clear-identity { width: 100%; margin-top: 28px; padding: 13px 10px; border: 0; border-radius: 10px; color: #7d8782; background: #e7e9e5; font-size: 12px; cursor: pointer; }
.clear-identity:hover { color: var(--ink); background: #dfe3de; }

.invite-shell { width: min(100%, 450px); min-height: calc(100vh - 56px); padding: 0 34px 48px; border-radius: 34px; overflow: hidden; }
.access-wordmark { height: 78px; display: flex; align-items: center; border-bottom: 1px solid #e2e4df; font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 600; letter-spacing: .05em; }
.invite-content { padding-top: 58px; }
.invite-content h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 500; letter-spacing: .02em; }
.diagnosis-duration { margin: 16px 0 0; color: #34423d; font-size: 15px; font-weight: 550; }
.diagnosis-scope { margin: 8px 0 0; color: #7d8883; font-size: 12px; letter-spacing: .025em; }
.diagnosis-price { margin: 28px 0 0; color: #34423d; font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.diagnosis-price span { margin-right: 6px; color: #89928e; font-family: system-ui, sans-serif; font-size: 11px; }
.invite-question { margin: 49px 0 0; color: #53605b; font-size: 12px; }
.invite-status { margin: 12px 0 0; color: #9a5f55; font-size: 12px; }
.invite-form { margin-top: 12px; }
.invite-form input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #cfd5d0; border-radius: 10px; color: var(--ink); background: #fff; outline: none; letter-spacing: .08em; text-transform: uppercase; }
.invite-form input::placeholder { color: #a2aaa6; letter-spacing: .02em; text-transform: none; }
.invite-form input:focus { border-color: #7d8a84; box-shadow: 0 0 0 3px rgba(86,103,95,.08); }
.invite-error { min-height: 18px; margin: 7px 0 4px; color: #9a5f55; font-size: 11px; }
.invite-form button { width: 100%; height: 48px; border: 0; border-radius: 10px; color: #f2eee6; background: var(--ink); font-size: 13px; cursor: pointer; }
.invite-contact { margin: 20px 0 0; color: #969e9a; text-align: center; font-size: 11px; }
.invite-contact a { color: #4c5b55; border-bottom: 1px solid #bcc4c0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 520px) {
  .admin-switch-page, .invite-page { padding: 0; background: var(--paper); }
  .admin-switch-shell, .invite-shell { width: 100%; min-height: 100vh; padding: 0 24px 38px; border-radius: 0; box-shadow: none; }
}
