@charset "UTF-8";

.cc-invite-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:24px;border:1px solid var(--line);background:var(--paper)}
.cc-invite-copy{max-width:680px;min-width:0}
.cc-invite-copy h2{margin:0 0 8px;font-size:20px;color:var(--ink)}
.cc-invite-copy p{margin:0 0 8px;color:var(--text);line-height:1.7}
.cc-invite-copy small{color:var(--text);line-height:1.6}
.cc-invite-controls{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:190px;max-width:100%}
.cc-invite-controls code{display:block;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--forest-dark);font:600 20px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-align:center;overflow-wrap:anywhere;user-select:all}
@media(max-width:700px){.cc-invite-panel{flex-direction:column;align-items:stretch;gap:18px;padding:20px}.cc-invite-controls{width:100%;min-width:0}}

:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --paper: #ffffff;
  --forest: #214e43;
  --forest-dark: #173b32;
  --ink: #213b32;
  --text: #43564e;
  --muted: #8a958e;
  --line: #e6eae3;
  --sage: #e8eee4;
  --lime: #e1eba2;
  --radius: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { outline: none; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #a1bd76;
  outline-offset: 3px;
}
input, textarea, select { min-width: 0; }
input, textarea { accent-color: var(--forest); }
input::placeholder, textarea::placeholder { color: #a0a9a1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest); }
a { color: var(--forest); text-underline-offset: 3px; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
button svg, .btn svg { width: 18px; height: 18px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.35; letter-spacing: -.035em; }
h1 { font-size: 29px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
small { font-size: 12px; }
[hidden] { display: none !important; }
::selection { background: #e3ecae; color: var(--forest-dark); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 226px;
  flex: 0 0 226px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #fbfcf9;
  border-right: 1px solid var(--line);
  padding: 33px 19px 24px;
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 44px; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.05em; }
.brand > div:not(.brand-mark) { display: flex; flex-direction: column; gap: 5px; }
.brand small { display: block; margin-top: 5px; color: #89978c; font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 12px 12px 12px 3px; background: var(--forest); color: #e9efc1; flex: 0 0 36px; }
.brand-mark svg { width: 21px; height: 23px; }
.nav-list { display: grid; gap: 7px; }
.nav-list::before { content: "学习空间"; margin: 0 15px 7px; color: #a0aaa2; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; height: 46px; padding: 0 15px; background: transparent; border: 0; border-radius: 10px; color: #7a897f; font-size: 13px; text-align: left; transition: background .18s, color .18s; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.65; }
.nav-item:hover { background: #f0f3ec; color: var(--forest); }
.nav-item.active { background: #eaf0e4; color: var(--forest); font-weight: 650; }
.nav-item.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--forest); margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 22px 12px 0; }
.sidebar-bottom > div { background: #f0f3e9; border: 1px solid #e6ebda; border-radius: 12px; padding: 16px 14px; }
.sidebar-bottom p { color: #7c8b76; font-size: 11px; line-height: 1.8; }
.sidebar-bottom strong { display: block; color: #425b42; font-size: 12px; margin-bottom: 5px; }
.sidebar-bottom .tag { margin-top: 13px; }
.sidebar-bottom > p, .sidebar-bottom > small { display: block; margin-top: 20px; color: #9da79e; font-size: 10px; }
.main-shell { width: calc(100% - 226px); margin-left: 226px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 77px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(251,252,249,.78); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8b978e; font-size: 12px; }
.breadcrumb svg { width: 15px; height: 15px; }
.breadcrumb span:last-child { color: #4d6154; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.top-actions > small, .top-actions > span { color: #8c978e; font-size: 11px; }
.top-actions > button:not(.btn) { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: #7f8b82; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; color: var(--forest); background: #e6eddf; border: 1px solid #dae3d1; border-radius: 50%; font-size: 11px; font-weight: 700; }
.mobile-menu { display: none; }
#view { max-width: 1310px; margin: 0 auto; padding: 33px 38px 42px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-head h1 { margin: 4px 0 7px; }
.page-head > p, .page-head p, .muted { color: var(--muted); font-size: 12px; }
.eyebrow { display: block; color: #95a18d; font-size: 9px; font-weight: 600; letter-spacing: .15em; line-height: 1.8; text-transform: uppercase; }
.page-head .eyebrow { margin-bottom: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 550; line-height: 1.3; white-space: nowrap; transition: transform .18s, background .18s, box-shadow .18s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.primary { color: #fff; background: var(--forest); border-color: var(--forest); box-shadow: 0 3px 5px #214e4309; }
.btn.primary:hover:not(:disabled) { background: #173d33; box-shadow: 0 4px 10px #214e4322; }
.btn.secondary { background: #fff; color: #4d6557; border-color: #e1e6dc; }
.btn.secondary:hover:not(:disabled) { background: #f8faf4; border-color: #cbd6c3; }
.btn.ghost { background: transparent; color: #70816f; }
.btn.ghost:hover:not(:disabled) { background: #ebf0e5; }
.btn.small { min-height: 31px; padding: 7px 11px; font-size: 11px; border-radius: 7px; }
.btn.danger { color: #ae6256; background: #fcf1ed; border-color: #f0dbd4; }
.btn.full { width: 100%; }
.btn.icon-only { width: 36px; min-width: 36px; padding: 8px; }

.hero { display: grid; grid-template-columns: 1fr 330px; min-height: 243px; margin-bottom: 24px; overflow: hidden; border: 1px solid #dce4d2; border-radius: var(--radius); background: #eaf0df; position: relative; }
.hero-copy { position: relative; z-index: 2; padding: 29px 32px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: #6e865d; font-size: 10px; letter-spacing: .09em; }
.hero-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #83a163; }
.hero-title { max-width: 560px; margin: 11px 0 10px; color: #294734; font-size: clamp(23px, 2.2vw, 32px); font-weight: 550; line-height: 1.45; letter-spacing: -.055em; }
.hero-copy > p { max-width: 500px; color: #7b8a71; font-size: 11px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 17px; margin-top: 20px; }
.hero-actions .btn { padding: 11px 18px; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; color: #7b8a71; font-size: 10px; }
.hero-pill svg { width: 13px; height: 13px; }
.hero-art { position: relative; overflow: hidden; min-height: 240px; }
.hero-art::before { content: ""; position: absolute; width: 235px; height: 235px; border-radius: 50%; background: #dde6c9; top: 3px; right: 30px; opacity: .72; }
.hero-art::after { content: ""; position: absolute; bottom: 34px; right: 17px; width: 254px; height: 24px; background: #76865720; filter: blur(14px); border-radius: 50%; transform: rotate(-10deg); }
.book-spine { position: absolute; z-index: 2; width: 98px; height: 145px; top: 50px; border-radius: 3px 7px 7px 3px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px 12px; box-shadow: -4px 6px 0 #f8faeb, -5px 7px 0 #bac6ab, 1px 10px 15px #3b542c19; transform-origin: bottom; color: #f3f5dd; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.25; }
.book-spine::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; border-left: 1px solid #ffffff22; }
.book-spine::after { content: "IELTS"; position: absolute; bottom: 17px; left: 12px; letter-spacing: .16em; font-size: 10px; }
.book-spine b, .book-spine strong { font-size: 34px; font-weight: 500; }
.book-spine.b1 { background: #a7b47a; left: 22px; top: 61px; transform: rotate(-18deg); }
.book-spine.b2 { background: #50785a; left: 100px; top: 46px; transform: rotate(-6deg); }
.book-spine.b3 { background: #244c3c; left: 174px; top: 62px; transform: rotate(11deg); }
.orbit { position: absolute; z-index: 3; border: 1px solid #aabc8b; width: 288px; height: 119px; top: 85px; left: 8px; border-radius: 50%; transform: rotate(-24deg); opacity: .5; }
.spark { position: absolute; z-index: 4; right: 35px; top: 34px; color: #789951; font-size: 31px; font-family: Georgia, serif; }
.spark::after { content: "+"; position: absolute; font-size: 17px; top: 153px; right: 238px; color: #9dac70; }
.art-label { position: absolute; z-index: 4; bottom: 18px; right: 48px; color: #8a9a74; font-size: 8px; letter-spacing: .19em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 31px; }
.stat-card { position: relative; min-height: 119px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 19px; background: var(--paper); }
.stat-icon { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 31px; height: 31px; color: #96a88a; background: #f4f6ef; border-radius: 9px; }
.stat-icon svg { width: 16px; height: 16px; stroke-width: 1.6; }
.stat-label { display: block; color: #8b968c; font-size: 11px; margin: 0 0 6px; }
.stat-value { display: block; color: #334c38; font-size: 28px; font-weight: 550; letter-spacing: -.05em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-value small { color: #8c998a; font-size: 10px; font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.stat-detail { display: block; margin-top: 7px; color: #a0a99b; font-size: 9px; }
.stat-detail strong { color: #8aa369; font-weight: 550; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.section-head h2 { font-size: 17px; }
.section-head p, .section-head > span, .section-head > small { color: #97a18f; font-size: 10px; }
.section-head a, .section-head > button { color: #87967d; font-size: 11px; text-decoration: none; }
.section-head > button:not(.btn) { border: 0; background: transparent; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-bottom: 27px; }
.module-card { position: relative; min-height: 203px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.module-card:hover { border-color: #ccd8c0; transform: translateY(-2px); box-shadow: 0 7px 18px #2e4c2e06; }
.module-card > .tag { position: absolute; right: 19px; top: 23px; }
.module-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; margin-bottom: 16px; }
.module-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.module-icon.listening { color: #6c8860; background: #edf2e6; }
.module-icon.reading { color: #a78c54; background: #f7f2e5; }
.module-icon.writing { color: #7b8baf; background: #edf0f6; }
.module-card h3 { font-size: 16px; font-weight: 550; }
.module-card h3 small { color: #a2aa9b; font-size: 10px; margin-left: 7px; font-weight: 400; letter-spacing: 0; }
.module-card > p { color: #94a08f; font-size: 10px; margin-top: 5px; line-height: 1.7; }
.module-meta { display: flex; align-items: center; gap: 12px; color: #99a291; font-size: 10px; margin-top: 15px; }
.module-meta > span + span { padding-left: 12px; border-left: 1px solid #e8ebe3; }
.module-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 19px; padding-top: 13px; border-top: 1px solid #f0f2eb; }
.module-foot > span { color: #a0a99a; font-size: 9px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: #5e7a53; font-size: 11px; background: transparent; border: 0; padding: 0; text-decoration: none; }
.arrow-link svg { width: 15px; height: 15px; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin: 0 0 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 22px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { font-size: 15px; }
.panel-head > span, .panel-head > small { color: #9ba692; font-size: 10px; }
.panel > p { color: #7e8d7f; font-size: 12px; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; min-height: 131px; text-align: center; color: #a0aa99; padding: 20px; }
.empty-state > svg { width: 29px; height: 29px; color: #c0cbb6; stroke-width: 1.25; }
.empty-state h3 { font-size: 13px; color: #7b8c73; }
.empty-state p { max-width: 350px; font-size: 11px; line-height: 1.8; }
.empty-state .btn { margin-top: 4px; }
.progress-list { display: grid; gap: 18px; }
.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #829179; }
.progress-row > span:last-child { color: #a7afa0; font-size: 10px; }
.progress-row svg { width: 14px; height: 14px; margin-right: 6px; }
.progress-track { height: 4px; border-radius: 10px; background: #eff2e8; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: #91a571; min-width: 0; transition: width .4s; }
.notice { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #e6e9de; border-radius: 9px; padding: 13px 16px; background: #f0f3e9; color: #91a080; font-size: 10px; line-height: 1.9; }
.notice strong { color: #71835f; font-weight: 550; }
.notice a { color: #738a5c; }
.notice-icon { padding-top: 2px; flex: 0 0 auto; }
.notice-icon svg, .notice > svg { width: 15px; height: 15px; }
.notice.warning { background: #faf5e9; border-color: #efe5c9; color: #9b8658; }
.notice + .section-head, .notice + .filter-bar { margin-top: 23px; }
.tag { display: inline-flex; justify-content: center; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; background: #f1f3ec; color: #929d89; font-size: 9px; line-height: 1.5; font-weight: 450; white-space: nowrap; }
.tag.sage { background: #edf3e5; color: #829865; }
.tag.amber { background: #faf3e2; color: #b29a63; }
.tag.blue { background: #edf1f8; color: #8c9cb8; }
.tag.gray { background: #f1f3ef; color: #98a08f; }

.filter-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar > div { display: flex; gap: 10px; align-items: flex-end; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: #e9ede3; border-radius: 8px; }
.segmented button { min-height: 32px; border: 0; background: transparent; padding: 6px 18px; border-radius: 6px; color: #8c9883; font-size: 12px; transition: .2s; }
.segmented button.active { background: #fff; color: var(--forest); box-shadow: 0 1px 3px #2c4e2a0b; }
.field { display: flex; flex-direction: column; gap: 7px; color: #819074; font-size: 11px; flex: 1; min-width: 0; }
.field input, .field select, .filter-bar input, .filter-bar select { height: 38px; width: 100%; border: 1px solid #dfe5d8; background: #fff; color: #62775b; border-radius: 7px; padding: 8px 11px; }
.field input:focus, .field select:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: #8ca371; }
.filter-bar .field { min-width: 145px; }
.field label { font-size: 11px; color: #829377; }
.field textarea { padding: 12px; width: 100%; min-height: 130px; color: #435e39; background: #fff; border: 1px solid #dfe5d8; border-radius: 8px; resize: vertical; }
.book-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.book-strip button { border: 1px solid #e7ebdf; border-radius: 6px; background: #fafbf7; color: #95a086; padding: 6px 12px; min-width: 46px; font-size: 11px; }
.book-strip button.selected { background: var(--forest); border-color: var(--forest); color: #f2f6e8; }
.book-strip button:hover:not(:disabled):not(.selected) { background: #eef3e5; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; color: #94a087; font-size: 11px; }
.catalog-toolbar strong { color: #57714b; font-weight: 550; }
.catalog-toolbar > div { display: flex; align-items: center; gap: 10px; }
.catalog-toolbar select { height: 31px; padding: 4px 9px; border: 1px solid #dfe5d8; border-radius: 6px; color: #829372; background: transparent; font-size: 10px; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.test-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .2s, box-shadow .2s; }
.test-card:hover { border-color: #d1dcc6; box-shadow: 0 4px 14px #31492a05; }
.test-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 17px; color: #869978; font-size: 10px; }
.test-card-top > svg { color: #a6b598; width: 20px; height: 20px; }
.test-card-title { font-size: 16px; color: #395632; font-weight: 550; line-height: 1.55; margin-bottom: 5px; }
.test-card > p { font-size: 11px; color: #9aa58f; margin-top: 5px; line-height: 1.8; }
.test-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #a0aa95; font-size: 10px; margin-top: 15px; }
.test-meta span { display: inline-flex; align-items: center; gap: 4px; }
.test-meta svg { width: 12px; height: 12px; }
.test-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 19px; }
.test-card-bottom .btn { min-height: 33px; font-size: 10px; padding: 8px 12px; }
.test-card-bottom > span { font-size: 9px; color: #a1aa96; }
.test-card.locked { background: #fcfdf9; }
.test-card.locked .test-card-title { color: #91a082; }
.test-card.locked .btn { background: #f0f3ea; color: #a1ac97; border-color: #e7ecdf; }
.source-label { display: inline-flex; align-items: center; gap: 4px; color: #a0aa95; font-size: 9px; }
.source-label svg { width: 12px; height: 12px; }
.tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 1px 13px; color: #98a38c; font-size: 12px; }
.tabs button.active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 550; }

.practice-shell { max-width: 1600px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.practice-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.practice-title h2 { font-size: 16px; margin-bottom: 4px; }
.practice-title p { font-size: 10px; color: #8c9982; }
.practice-title > div { display: flex; gap: 7px; align-items: center; }
.practice-title > div > span { font-size: 11px; }
.practice-actions { display: flex; align-items: center; gap: 10px; }
.timer { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-width: 94px; padding: 8px 13px; border: 1px solid #e3e9db; border-radius: 7px; background: #f5f8ee; color: #517448; font-variant-numeric: tabular-nums; font-size: 17px; letter-spacing: .03em; line-height: 1.4; }
.timer svg { width: 16px; height: 16px; }
.timer.warning { color: #b4764a; background: #faf2e8; border-color: #efd9c7; }
.section-tabs { display: flex; align-items: center; gap: 5px; padding: 10px 20px; background: #fbfcf8; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.section-tabs button { border: 1px solid transparent; background: transparent; padding: 6px 14px; border-radius: 6px; color: #93a085; font-size: 11px; white-space: nowrap; }
.section-tabs button.active { background: #eaf1df; color: #547444; border-color: #e0e8d5; }
.practice-main { display: grid; grid-template-columns: 1fr 1fr; min-height: 530px; max-height: calc(100vh - 290px); }
.passage-panel, .questions-panel { min-width: 0; overflow-y: auto; padding: 25px 28px 35px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9e1d1 transparent; }
.passage-panel { border-right: 1px solid var(--line); background: #fff; }
.questions-panel { background: #fdfefb; }
.paper-heading { margin-bottom: 18px; }
.paper-heading > small { display: block; color: #9ca78f; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.paper-heading h2 { font-size: 21px; font-family: Georgia, "Times New Roman", "Songti SC", serif; letter-spacing: -.02em; font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.paper-heading p { color: #8e9b83; font-size: 11px; line-height: 1.8; }
.reading-text { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 15px; line-height: 1.95; color: #56634b; }
.reading-text p { margin-bottom: 18px; }
.reading-text p strong:first-child { color: #34562b; margin-right: 6px; }
.reading-text h3 { font-size: 18px; margin: 22px 0 12px; }
.reading-text ul { padding-left: 20px; }
.reading-text mark, .reading-text .marked { background: #e5edb4; color: inherit; border-radius: 2px; }
.annotation-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 13px; border-bottom: 1px solid #edf0e6; color: #9aa58e; font-size: 10px; }
.annotation-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 29px; padding: 4px 9px; border: 1px solid #e5ebdb; border-radius: 5px; background: #fff; color: #8b9c7c; font-size: 10px; }
.annotation-tools button svg { width: 13px; height: 13px; }
.text-size { display: flex; gap: 3px; margin-left: auto; }
.text-size button { min-width: 27px; padding: 3px; }
.question-block { margin-bottom: 26px; padding-bottom: 23px; border-bottom: 1px solid #eaf0e0; scroll-margin-top: 15px; }
.question-block:last-child { margin-bottom: 0; border: 0; }
.question-block h3 { font-size: 14px; margin-bottom: 7px; color: #4a673c; letter-spacing: 0; }
.question-block > p { color: #88997b; font-size: 11px; margin-bottom: 15px; line-height: 1.8; }
.question-block > p em { font-weight: 550; color: #637c54; }
.question-number { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex: 0 0 23px; margin-right: 8px; color: #61814e; background: #edf3e4; border-radius: 5px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.question-input { width: 100%; height: 37px; background: #fff; border: 1px solid #dce5d2; border-radius: 6px; padding: 8px 10px; color: #48633a; font-size: 12px; }
.question-input:focus { border-color: #8ea776; box-shadow: 0 0 0 3px #eaf1df; }
.question-input.inline { display: inline-block; width: 150px; height: 29px; margin: 3px 5px; padding: 3px 7px; border-radius: 3px; border-width: 0 0 1px; background: #f1f5e9; }
.question-line { display: flex; align-items: flex-start; gap: 6px; margin: 15px 0; color: #6a7d5b; font-size: 12px; }
.question-line > div { flex: 1; min-width: 0; }
.question-line .question-input { margin-top: 7px; }
.choice-option { display: flex; align-items: flex-start; gap: 9px; margin-top: 8px; padding: 10px 11px; border: 1px solid #e5ebdc; border-radius: 6px; color: #7d8e6d; font-size: 12px; line-height: 1.6; transition: background .18s, border-color .18s; cursor: pointer; }
.choice-option:hover { background: #f5f8ef; border-color: #d0ddc2; }
.choice-option:has(input:checked) { background: #eef5e6; border-color: #a5ba91; color: #4b6d38; }
.choice-option input { flex: 0 0 auto; width: 13px; height: 13px; margin: 3px 0 0; }
.choice-letter { color: #536e40; font-weight: 600; }
.answer-line { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: #778b64; font-size: 12px; }
.answer-line > label { flex: 1; min-width: 0; }
.answer-line .question-input { flex: 1; }
.answer-line > button { color: #a7b398; padding: 4px; border: 0; background: transparent; }
.answer-line > button svg { width: 15px; height: 15px; }
.answer-line.marked > button { color: #c29d57; }
.exam-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: #fff; border-top: 1px solid var(--line); padding: 14px 20px; }
.exam-bottom > span, .exam-bottom > p { font-size: 10px; color: #a0ac94; }
.number-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.number-nav button { position: relative; display: grid; place-items: center; width: 27px; height: 28px; border-radius: 5px; border: 1px solid #e2e8d9; background: #fff; color: #a0ac92; font-size: 10px; font-variant-numeric: tabular-nums; }
.number-nav button:hover { border-color: #a9bf92; }
.number-nav button.answered { color: #6c8e51; background: #ecf3e3; border-color: #d8e5cb; }
.number-nav button.current { background: var(--forest); color: #fff; border-color: var(--forest); }
.number-nav button.flagged::after { content: ""; position: absolute; top: -3px; right: -2px; width: 6px; height: 6px; border-radius: 50%; background: #d4ac62; border: 1px solid #fff; }
.writing-editor { display: flex; flex-direction: column; min-height: 100%; }
.writing-editor label { font-size: 11px; color: #859878; margin-bottom: 12px; }
.writing-editor textarea { display: block; flex: 1; width: 100%; min-height: 340px; resize: vertical; border: 1px solid #e1e8d7; border-radius: 7px; padding: 17px 18px; background: #fff; color: #506443; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.9; }
.writing-editor textarea:focus { border-color: #9eb686; }
.word-count { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #a3ad96; font-size: 10px; padding-top: 10px; font-variant-numeric: tabular-nums; }
.word-count strong { color: #698356; font-weight: 500; }
.writing-table { margin: 20px 0; overflow: auto; border: 1px solid #dfe7d5; border-radius: 7px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { color: #718460; background: #f1f5ea; font-weight: 550; }
th, td { border-bottom: 1px solid #e4eadb; padding: 11px 12px; }
td { color: #829271; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf6; }
.writing-table th, .writing-table td { text-align: center; font-size: 11px; }
.writing-rubric { margin-top: 20px; padding: 15px 17px; border: 1px solid #e4ead9; background: #f5f8ef; border-radius: 8px; }
.writing-rubric h4 { font-size: 11px; color: #758b62; margin-bottom: 7px; }
.writing-rubric p, .writing-rubric li { color: #98a48c; font-size: 10px; line-height: 1.85; }
.writing-rubric ul { padding-left: 16px; margin: 5px 0 0; }
.audio-box { margin: 18px 0; padding: 17px; border: 1px solid #e0e8d5; border-radius: 10px; background: #f2f6ea; }
.audio-box h3 { color: #647e51; font-size: 12px; margin-bottom: 8px; }
.audio-box p { color: #93a281; font-size: 10px; margin: 7px 0 12px; }
.audio-box audio { width: 100%; height: 36px; }
.audio-box .btn { margin-right: 6px; }
.audio-box input[type="file"] { width: 100%; color: #8d9d7a; font-size: 10px; margin-top: 10px; }
.audio-box input[type="file"]::file-selector-button { border: 1px solid #d5e1c7; padding: 6px 9px; border-radius: 5px; background: #fff; color: #75925c; margin-right: 8px; cursor: pointer; }
.details { margin-top: 18px; background: #fafcf6; border: 1px solid #e5ebdc; border-radius: 8px; padding: 12px 14px; }
.details summary { color: #829773; cursor: pointer; font-size: 11px; }
.details[open] summary { margin-bottom: 12px; }
.details p { font-size: 12px; color: #7d906c; margin: 8px 0; line-height: 1.8; }
.details pre { white-space: pre-wrap; font-size: 11px; color: #7a8f68; line-height: 1.8; font-family: inherit; margin-bottom: 0; }

.review-summary { display: flex; align-items: center; gap: 30px; background: #eef3e5; border: 1px solid #dce6ce; border-radius: 14px; padding: 26px 30px; margin-bottom: 24px; }
.score-circle { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 105px; height: 105px; flex: 0 0 105px; border: 5px solid #d4e2bf; background: #fafcf6; border-radius: 50%; color: var(--forest); font-size: 31px; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.score-circle small { color: #96a682; font-size: 9px; letter-spacing: .02em; margin-top: 5px; }
.review-summary h2 { font-size: 22px; margin-bottom: 6px; }
.review-summary p { color: #8b9d78; font-size: 12px; margin-top: 5px; }
.review-summary .btn { margin-left: auto; }
.review-summary .review-stats { display: flex; gap: 25px; margin-top: 15px; }
.review-summary .review-stats span { display: flex; gap: 5px; align-items: center; font-size: 10px; color: #8ca175; }
.review-item { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.review-item > div:first-child { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-item h3 { font-size: 13px; }
.review-item p { color: #899b78; font-size: 11px; line-height: 1.85; }
.review-item.correct, .review-item .correct { color: #6e9654; }
.review-item.incorrect, .review-item .incorrect { color: #b78264; }
.review-item.correct { border-left: 3px solid #a6be8d; }
.review-item.incorrect { border-left: 3px solid #d6b49a; }
.answer-comparison { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0e7; color: #a0ad92; font-size: 10px; }
.answer-comparison strong { font-weight: 550; }
.history-list { display: grid; gap: 12px; }
.history-item { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fff; }
.history-item > svg { width: 20px; height: 20px; color: #92a67f; }
.history-item > div { flex: 1; min-width: 0; }
.history-item h3 { color: #5b754b; font-size: 13px; margin-bottom: 5px; }
.history-item p { color: #9ca88e; font-size: 10px; }
.history-item .score { font-size: 23px; color: #5d7c49; min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.history-item .score small { font-size: 9px; color: #a1af93; margin-left: 3px; }
.wrong-list { display: grid; gap: 14px; }
.wrong-card { padding: 21px 23px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wrong-card > div:first-child { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.wrong-card h3 { font-size: 14px; color: #6a8057; margin: 10px 0; }
.wrong-card p { color: #8f9f80; font-size: 12px; line-height: 1.85; }
.wrong-card .wrong-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf1e6; }

.teacher-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.teacher-grid > .panel { height: 100%; }
.teacher-grid .field { margin-top: 15px; }
.teacher-grid .notice { margin-top: 16px; }
.import-drop { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 9px; min-height: 185px; border: 1.5px dashed #d5e0c8; background: #fafcf5; border-radius: 10px; padding: 24px 20px; transition: border-color .2s, background .2s; }
.import-drop:hover, .import-drop.drag-over { background: #f0f6e7; border-color: #92ae76; }
.import-drop > svg { width: 29px; height: 29px; color: #a4b78d; stroke-width: 1.35; margin-bottom: 4px; }
.import-drop h3 { color: #779264; font-size: 13px; }
.import-drop p { color: #a4b295; font-size: 10px; }
.import-drop input { display: none; }
.import-drop .btn { margin-top: 5px; }
.check-row { display: flex; gap: 9px; align-items: flex-start; padding: 13px 0; color: #98a78a; font-size: 10px; line-height: 1.8; }
.check-row input { margin: 3px 0 0; width: 13px; height: 13px; flex: 0 0 auto; }
.import-status { display: flex; align-items: flex-start; gap: 9px; border-radius: 8px; padding: 12px 14px; background: #edf5e5; color: #77975e; border: 1px solid #dbe9ce; font-size: 11px; margin-top: 15px; }
.import-status svg { width: 16px; height: 16px; }
.import-status.error { background: #fcf2ec; color: #b78b6e; border-color: #efdfd1; }
.error-list { padding-left: 19px; margin: 10px 0; color: #ba8d6f; font-size: 11px; line-height: 1.8; }
.source-links { display: grid; gap: 11px; margin-top: 18px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid #e5eadc; border-radius: 8px; color: #778e64; text-decoration: none; background: #fcfdf9; transition: border-color .2s; }
.link-card:hover { border-color: #bdcfab; }
.link-card > svg { width: 19px; height: 19px; color: #a5b793; }
.link-card > div { flex: 1; min-width: 0; }
.link-card strong { display: block; font-size: 11px; font-weight: 550; }
.link-card small, .link-card p { display: block; color: #a2af94; font-size: 9px; margin-top: 3px; }
.link-card > svg:last-child { width: 14px; height: 14px; }
.import-example { padding: 16px; border: 1px solid #e4ebd9; background: #fafcf6; border-radius: 8px; overflow: auto; color: #869a71; font-size: 10px; line-height: 1.9; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 25px; background: #173c3266; backdrop-filter: blur(3px); animation: fade-in .15s ease; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; padding: 28px; background: #fff; border: 1px solid #e3e9dc; border-radius: 17px; box-shadow: 0 20px 80px #112e2926; }
.modal h2 { font-size: 20px; margin-bottom: 11px; }
.modal > p { color: #899c7b; font-size: 12px; line-height: 1.9; }
.modal > .btn.icon-only { position: absolute; top: 15px; right: 15px; }
.modal .field { margin-top: 15px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 24px; }
#toast { position: fixed; left: calc(50% + 113px); bottom: 30px; z-index: 150; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(420px, 90vw); border: 1px solid #426a52; border-radius: 9px; background: #254c3f; color: #f5f8ed; padding: 12px 19px; box-shadow: 0 7px 25px #214e4326; font-size: 12px; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast svg { width: 16px; height: 16px; color: #d4e79b; }
.toast.error { background: #765947; border-color: #8b6a55; }
.toast.error svg { color: #eed6bb; }

/* Application-specific layouts and examination controls. */
.brand { text-decoration: none; }
.brand b { font-weight: 700; }
.top-actions > .avatar { display: grid; }
.nav-list::before { display: none; }
.nav-caption { margin: 0 15px 14px; color: #a0aaa2; font-size: 9px; font-weight: 500; letter-spacing: .1em; }
.nav-badge { margin-left: auto; padding: 1px 5px; color: #97a38a; background: #eff2e9; border-radius: 4px; font-size: 8px; font-weight: 450; }
.nav-item.active .nav-badge { background: #dce7d2; color: #718666; }
.goal-card { position: relative; overflow: hidden; }
.goal-card .tag { margin-top: 0; padding: 0; background: transparent; color: #8ba168; font-size: 8px; letter-spacing: .14em; }
.goal-card h3 { color: #58734d; font-size: 12px; letter-spacing: 0; margin: 11px 0 7px; }
.goal-card p { font-size: 10px; line-height: 1.9; }
.goal-card .arrow-link { display: flex; width: 100%; gap: 5px; margin-top: 16px; color: #8b9b79; font-size: 9px; }
.goal-card .arrow-link b { color: #6f8a58; font-size: 11px; font-weight: 550; margin-left: auto; }
.goal-card .arrow-link svg { width: 13px; height: 13px; }
.sidebar-bottom > .local-status { display: flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; border-radius: 0; padding: 21px 0 0; color: #a1ab9a; font-size: 8px; white-space: nowrap; }
.local-status > span { width: 4px; height: 4px; background: #a5b88e; border-radius: 50%; }
.date-label { align-self: center; color: #98a38d; font-size: 10px; letter-spacing: .015em; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1310px; margin: 0 auto; padding: 0 38px 23px; color: #aeb6a6; font-size: 8px; letter-spacing: .025em; }
.hero-copy > .hero-pill { margin-top: 13px; color: #94a382; font-size: 8px; gap: 5px; }
.hero-copy > .hero-pill > span { margin: 0 2px; color: #b2bda0; }
.hero-copy > .hero-pill svg { width: 11px; height: 11px; }
.hero-kicker > span:empty { display: none; }
.hero-title > span { color: #93a973; }
.module-en { position: absolute; top: 29px; right: 20px; color: #a3ad98; font-size: 8px; letter-spacing: .1em; }
.module-meta > span { margin: 0 -4px; padding: 0 !important; border: 0 !important; color: #c0c8b5; }
.module-foot .arrow-link { width: 25px; height: 25px; border: 1px solid #e3eadb; border-radius: 50%; display: grid; place-items: center; color: #94a583; }
.module-foot .arrow-link:hover { background: #f0f5e8; color: #5e7d48; }
.collection-panel { min-height: 228px; background: #f0f3e8; border-color: #e0e7d5; position: relative; overflow: hidden; }
.collection-panel::after { content: "21"; position: absolute; right: 6px; top: 53px; color: #e3e9d6; font-family: Georgia, "Times New Roman", serif; font-size: 130px; line-height: 1; pointer-events: none; }
.collection-panel > * { position: relative; z-index: 1; }
.collection-panel .panel-head { margin-bottom: 15px; }
.collection-panel .panel-head .muted { font-size: 8px; letter-spacing: .1em; }
.collection-panel h2 { margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 450; letter-spacing: -.035em; }
.collection-panel h2 em { color: #9aaf77; font-style: normal; font-size: 29px; margin-left: 4px; }
.collection-panel > p { font-size: 10px; color: #95a386; line-height: 1.95; }
.collection-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 21px; }
.collection-bottom .tag { font-size: 8px; }
.collection-bottom .arrow-link { font-size: 10px; }
.notice > p { flex: 1; min-width: 0; }
.notice > .arrow-link { margin-left: auto; flex: 0 0 auto; font-size: 9px; white-space: nowrap; padding-top: 2px; }
.notice > .arrow-link svg { width: 12px; height: 12px; }
.search-field { display: block !important; flex: 0 1 230px; position: relative; width: 230px; }
.search-field > svg { position: absolute; top: 12px; left: 13px; width: 14px; height: 14px; color: #a7b29b; pointer-events: none; }
.search-field > input { padding-left: 36px; height: 40px; background: #fff; }
.book-strip button { position: relative; }
.book-strip sup { position: absolute; font-size: 5px; line-height: 1; font-weight: 600; letter-spacing: -.04em; top: 2px; right: 2px; color: #a6b984; }
.book-strip .selected sup { color: #d1e2a6; }
.catalog-controls { flex-wrap: wrap; }
.catalog-controls .check-row { padding: 0; align-items: center; font-size: 10px; gap: 6px; white-space: nowrap; }
.catalog-controls .check-row input { width: 12px; height: 12px; margin: 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 21px; margin: 25px 0; }
.pagination > span { min-width: 37px; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.test-card-top .module-icon { width: 33px; height: 33px; margin-bottom: 0; border-radius: 9px; }
.test-card-top .module-icon svg { width: 17px; height: 17px; }
.test-card > .source-label { font-size: 7px; letter-spacing: .055em; color: #a9b29d; margin-bottom: 5px; }
.test-grid > .empty-state { grid-column: 1/-1; min-height: 270px; }
.history-item .module-icon { width: 32px; height: 32px; flex: 0 0 32px; margin: 0; border-radius: 9px; }
.history-item .module-icon svg { width: 16px; height: 16px; }
.history-item strong { font-weight: 550; font-size: 11px; color: #6a7f59; }
.history-item .tag { font-size: 9px; }
.panel > .history-item + .history-item { margin-top: 10px; }
.panel > hr { height: 1px; border: 0; background: var(--line); margin: 23px 0; }
.teacher-grid + .panel { margin-top: 21px; }
.teacher-grid .progress-list { margin-bottom: 20px; }
.teacher-grid .progress-list strong { font-weight: 500; color: #70895d; font-size: 11px; }
.teacher-grid .panel > .muted { margin: 13px 0; font-size: 10px; line-height: 1.9; }
.teacher-grid .source-links { margin-top: 18px; }
.teacher-grid .source-links h2 { font-size: 14px; margin-bottom: 2px; }
.teacher-grid .import-drop > strong { font-size: 12px; font-weight: 500; color: #859d70; }
.teacher-grid .import-drop > span { font-size: 9px; color: #aab69c; }
.import-status:empty { display: none; }
.import-status:has(.incorrect), .import-status:has(.error-list) { background: #fcf2ec; border-color: #efdfd1; }
.import-status .error-list { margin: 0; }
.audio-upload { margin-top: 8px; cursor: pointer; }
.audio-upload input { display: none !important; }
.correct { color: #6f9357; }
.incorrect { color: #b17c60; }
.question-number.correct { background: #edf5e6; color: #75945f; }
.question-number.incorrect { background: #f9efe5; color: #b58b63; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel > .preserve-lines { margin-top: 15px; line-height: 1.9; }
.writing-review { margin-top: 20px; margin-bottom: 20px; }
.writing-review .details { margin: 0 0 20px; }
.writing-review .writing-rubric { padding: 20px; }
.writing-review .writing-rubric > h3 { font-size: 14px; color: #71895f; }
.submitted-essay { font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: #657851; line-height: 1.95; padding: 6px 3px 13px; min-height: 110px; }
.rubric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 17px 0; }
.rubric-grid > .field { color: #91a07f; font-size: 10px; }
.rubric-grid select { height: 35px; font-size: 11px; }
.writing-rubric > .field { margin-bottom: 9px; font-size: 11px; }
.writing-rubric > .field textarea { font-family: inherit; min-height: 110px; font-size: 11px; line-height: 1.8; }
.writing-rubric > small { font-size: 9px; }
.review-item > .panel-head { align-items: flex-start; margin-bottom: 9px; }
.review-item .panel-head strong { flex: 1; color: #73885f; font-size: 11px; font-weight: 500; line-height: 1.9; }
.review-item .panel-head .tag { margin-top: 2px; }
.review-item .answer-comparison { margin: 0 0 10px; padding-top: 11px; }
.review-item .answer-comparison b { font-weight: 500; }
.review-item > .muted { font-size: 10px; }
.review-summary + .panel + .panel { margin-top: 20px; }
.modal .panel-head { align-items: flex-start; margin-bottom: 10px; }
.modal .panel-head h2 { margin: 4px 0 0; }
.modal .panel-head .btn { min-height: 28px; padding: 4px; }
.modal p { color: #899c7b; font-size: 12px; line-height: 1.9; }
.modal li { color: #8e9e7e; font-size: 11px; margin-top: 7px; line-height: 1.8; overflow-wrap: anywhere; }
.modal ul { padding-left: 19px; }
.modal code { font-size: 10px; background: #f0f5e8; color: #75925e; border-radius: 3px; padding: 2px 4px; }
#toast { left: calc(50% + 113px); transform: translate(-50%, 12px); }
#toast.visible { transform: translate(-50%, 0); }
body:has(#app > .practice-shell) #toast { left: 50%; }

#app > .practice-shell { width: calc(100% - 48px); max-width: 1600px; margin: 24px auto; }
#app > .practice-shell .practice-top { min-height: 78px; }
.practice-top > .practice-title { flex: 1; min-width: 0; }
.practice-title > strong { display: block; margin-bottom: 4px; color: #4e6b40; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.practice-title > .source-label { font-size: 9px; }
.practice-top > .timer { margin-left: auto; font-size: 15px; padding: 5px 6px 5px 11px; gap: 7px; }
.timer b { font-weight: 500; min-width: 45px; }
.timer > button { padding: 6px 7px; min-height: 27px; font-size: 9px; background: #eaf0df; color: #92a478; }
.practice-subbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-right: 23px; background: #fbfcf8; }
.practice-subbar > .section-tabs { border-bottom: 0; min-width: 0; }
.practice-subbar > .muted { flex: 0 0 auto; font-size: 9px; color: #a4b195; }
#app > .practice-shell .practice-main { height: calc(100dvh - 242px); min-height: 380px; max-height: none; }
.annotation-tools { justify-content: space-between; gap: 7px; }
.annotation-tools > div { display: flex; align-items: center; gap: 5px; }
.annotation-tools .btn { min-height: 27px; font-size: 9px; padding: 5px 7px; }
h2.paper-heading { font-size: 21px; margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; color: #4a653d; line-height: 1.5; }
.questions-heading { margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid #e5ebdb; }
.questions-heading h3 { color: #567243; font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.questions-heading p { margin-top: 7px; color: #98a68a; font-size: 10px; line-height: 1.9; }
.question-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.question-label { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 0; color: #6b8058; font-size: 12px; line-height: 1.9; }
.question-label strong { font-weight: 500; }
.question-label .question-number { margin: 1px 0 0; }
.question-top .flag-button { min-height: 24px; padding: 2px 3px; color: #bcc6b0; flex: 0 0 23px; }
.question-top .flag-button svg { width: 14px; height: 14px; }
.question-top .flag-button.selected { color: #bfa365; background: #f6f1e2; }
.question-block.marked { border-left: 2px solid #d1b780; padding-left: 12px; margin-left: -14px; }
.question-block > small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .025em; }
.choice-letter:empty { display: none; }
.choice-letter { flex: 0 0 11px; }
.details > textarea { width: 100%; resize: vertical; background: #fff; color: #738b60; border: 1px solid #e1e9d5; border-radius: 5px; padding: 10px 11px; line-height: 1.85; font-size: 11px; }
.audio-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.audio-box > .module-icon { width: 34px; height: 34px; flex: 0 0 34px; margin: 0; }
.audio-box > div { flex: 1; min-width: 140px; }
.audio-box strong { color: #7c9566; font-size: 11px; font-weight: 500; }
.audio-box > div > p { margin: 4px 0 0; font-size: 9px; }
.audio-box > audio { flex-basis: 100%; margin: 2px 0 0; }
.audio-box > #audio-status { flex-basis: 100%; margin: 0; font-size: 9px; }
.audio-box > .audio-upload { margin: 0; min-height: 30px; padding: 7px 10px; font-size: 9px; }
.writing-editor > .panel-head { margin-bottom: 13px; }
.writing-editor .word-count { padding: 0; font-size: 10px; }
.writing-editor > .muted { padding-top: 9px; font-size: 9px; color: #aab69c; }
.pause-banner { padding: 12px 20px; border-bottom: 1px solid #dce6cc; background: #eef4e2; color: #829a6b; font-size: 11px; text-align: center; }
.practice-main.is-paused { position: relative; overflow: hidden; }
.practice-main.is-paused > * { pointer-events: none; user-select: none; filter: blur(5px); opacity: .4; }
.practice-main.is-paused::after { content: "已暂停 · 继续练习后显示题目"; display: grid; place-items: center; position: absolute; inset: 0; background: #f8fbf1a6; color: #8ca372; font-size: 13px; letter-spacing: .06em; }

@media (max-width: 1180px) {
  .app-footer { padding-left: 27px; padding-right: 27px; }
  .module-en { right: 16px; font-size: 7px; }
  .rubric-grid { grid-template-columns: repeat(2, 1fr); }
  #toast { left: calc(50% + 101.5px); }
}
@media (max-width: 960px) {
  .app-footer { padding-left: 22px; padding-right: 22px; }
  .module-en { font-size: 6px; top: 31px; right: 12px; letter-spacing: .04em; }
  .collection-panel { min-height: 218px; }
  .collection-panel::after { right: 16px; top: 39px; }
  .collection-panel .collection-bottom { margin-top: 20px; }
  .practice-top > .practice-title { flex: 1 1 240px; }
  .practice-top > .timer { margin-left: auto; }
  #app > .practice-shell .practice-main { min-height: 410px; height: calc(100dvh - 265px); }
  #app > .practice-shell .passage-panel, #app > .practice-shell .questions-panel { max-height: none; }
  #toast { left: calc(50% + 91.5px); }
}
@media (max-width: 720px) {
  .app-footer { padding: 0 20px 20px; align-items: flex-start; font-size: 7px; gap: 15px; }
  .app-footer > span { max-width: 170px; text-align: right; line-height: 1.8; }
  .date-label { font-size: 9px; white-space: nowrap; }
  .hero-copy > .hero-pill { display: flex; font-size: 7px; margin-top: 12px; gap: 4px; }
  .module-en { top: 28px; font-size: 6px; }
  .collection-panel h2 { font-size: 23px; }
  .collection-panel .collection-bottom { margin-top: 19px; }
  .search-field { flex: 0 1 200px; max-width: 200px; }
  .filter-bar > .search-field { width: auto; }
  .notice > .arrow-link { align-self: flex-end; }
  #app > .practice-shell { width: calc(100% - 24px); margin: 12px auto; }
  #app > .practice-shell .practice-top { gap: 11px; min-height: 0; }
  .practice-top > .practice-title { order: -1; flex: 1 1 100%; text-align: center; padding-bottom: 11px; border-bottom: 1px solid #edf1e6; }
  .practice-title > strong { font-size: 14px; }
  .practice-title > .source-label { font-size: 8px; }
  .practice-top > .timer { font-size: 14px; padding: 4px 5px 4px 9px; }
  .practice-top > .timer svg { width: 14px; height: 14px; }
  .practice-top > .btn { min-height: 32px; padding: 7px 10px; font-size: 10px; }
  .practice-subbar { padding-right: 16px; gap: 9px; }
  .practice-subbar > .muted { font-size: 8px; }
  #app > .practice-shell .practice-main { height: auto; min-height: 0; }
  .question-top { gap: 8px; }
  .question-label { font-size: 12px; }
  .question-top .flag-button { flex-basis: 23px; }
  .annotation-tools .btn { min-height: 28px; padding: 5px 8px; }
  .writing-review .writing-rubric { padding: 17px; }
  .rubric-grid { gap: 13px; margin: 16px 0; }
  .writing-review .panel-head { align-items: flex-start; }
  .writing-review .panel-head .tag { font-size: 8px; }
  .writing-review h2 { font-size: 16px; }
  .submitted-essay { font-size: 14px; padding-bottom: 8px; }
  .pause-banner { font-size: 10px; padding: 11px 17px; }
  .practice-main.is-paused::after { font-size: 11px; align-items: start; padding-top: 110px; }
  #toast { left: 50%; }
}
@media (max-width: 480px) {
  .app-footer { padding-left: 16px; padding-right: 16px; font-size: 6px; }
  .app-footer > span { max-width: 145px; }
  .date-label { max-width: 95px; text-align: right; line-height: 1.8; font-size: 8px; }
  .hero-copy > .hero-pill { font-size: 7px; gap: 3px; white-space: nowrap; }
  .hero-copy > .hero-pill > span { margin: 0 1px; }
  .hero-copy > .hero-pill svg { width: 10px; height: 10px; }
  .module-en { font-size: 7px; top: 23px; right: 17px; }
  .module-card h3 { padding-right: 80px; }
  .collection-panel { min-height: 217px; }
  .notice { flex-wrap: wrap; }
  .notice > p { flex-basis: calc(100% - 24px); }
  .notice > .arrow-link { padding-top: 2px; }
  .search-field { flex: 1 1 100%; max-width: none; }
  .filter-bar > .search-field { width: 100%; }
  .search-field > svg { top: 11px; }
  .search-field > input { padding-left: 34px; }
  .catalog-controls .check-row { font-size: 9px; }
  .test-card > .source-label { font-size: 7px; }
  .rubric-grid { grid-template-columns: 1fr; gap: 11px; }
  .rubric-grid > .field { display: grid; grid-template-columns: 1fr 94px; align-items: center; gap: 8px; }
  .rubric-grid select { width: 94px; font-size: 10px; height: 33px; }
  .writing-review .writing-rubric { padding: 15px; }
  .review-item .panel-head strong { font-size: 10px; }
  .review-item .panel-head .tag { font-size: 8px; }
  .review-item > .muted { font-size: 9px; }
  #app > .practice-shell { width: calc(100% - 16px); margin: 8px auto; }
  .practice-top > .btn { font-size: 9px; padding: 7px 8px; }
  .practice-top > .btn:first-child { gap: 4px; }
  .practice-top > .btn:first-child svg { width: 14px; height: 14px; }
  .practice-top > .timer { font-size: 12px; gap: 4px; }
  .timer b { min-width: 39px; }
  .timer > button { font-size: 8px; padding: 5px 6px; min-height: 25px; }
  .practice-subbar { padding-right: 12px; }
  .practice-subbar > .section-tabs { gap: 3px; padding-left: 10px; padding-right: 0; }
  .practice-subbar > .section-tabs button { padding-left: 9px; padding-right: 9px; }
  .practice-subbar > .muted { font-size: 7px; }
  .question-label { font-size: 11px; }
  .questions-heading { margin-bottom: 21px; }
  .questions-heading h3 { font-size: 14px; }
  .questions-heading p { font-size: 9px; }
  .annotation-tools > div { gap: 3px; }
  .annotation-tools .btn { font-size: 8px; padding: 5px 6px; }
  .annotation-tools > .tag { font-size: 8px; }
  .audio-box { padding: 14px; }
  .audio-box > div { min-width: 120px; }
  .audio-box strong { font-size: 10px; }
  .audio-box > div > p { font-size: 8px; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1500px) {
  .topbar { padding-left: max(38px, calc((100vw - 226px - 1234px)/2)); padding-right: max(38px, calc((100vw - 226px - 1234px)/2)); }
  #view { padding-top: 39px; }
  .hero { min-height: 260px; }
  .hero-copy { padding: 35px 38px; }
  .hero-art { margin-right: 20px; }
}

@media (max-width: 1180px) {
  .sidebar { width: 203px; flex-basis: 203px; padding-left: 14px; padding-right: 14px; }
  .main-shell { margin-left: 203px; width: calc(100% - 203px); }
  .topbar { padding-left: 27px; padding-right: 27px; }
  #view { padding-left: 27px; padding-right: 27px; }
  .hero { grid-template-columns: 1fr 260px; }
  .hero-copy { padding: 28px; }
  .hero-title { font-size: 25px; }
  .hero-art { transform: scale(.91); transform-origin: center right; margin-left: -30px; }
  .hero-copy > p { max-width: 380px; }
  .hero-actions { gap: 12px; }
  .hero-pill { font-size: 9px; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 16px 15px; }
  .stat-icon { right: 13px; width: 27px; height: 27px; }
  .stat-value { font-size: 26px; }
  .module-grid, .test-grid { gap: 12px; }
  .module-card { padding: 18px; }
  .module-card > .tag { right: 15px; top: 19px; }
  .module-meta { gap: 8px; font-size: 9px; }
  .module-meta > span + span { padding-left: 8px; }
  .module-foot { gap: 5px; }
  .module-foot > span { font-size: 8px; }
  .two-col { gap: 14px; grid-template-columns: 1.15fr 1fr; }
  .panel { padding: 18px; }
  .test-card { padding: 16px; }
  .test-meta { gap: 8px; }
  .passage-panel, .questions-panel { padding: 23px 20px; }
  .practice-top { padding: 15px 18px; }
  .practice-actions { gap: 7px; }
  .practice-actions .btn { padding: 8px 11px; }
  .teacher-grid { gap: 15px; }
  #toast { left: calc(50% + 101.5px); }
}

@media (max-width: 960px) {
  .sidebar { width: 183px; flex-basis: 183px; padding: 29px 11px 21px; }
  .brand { margin-left: 8px; font-size: 17px; gap: 8px; }
  .brand small { font-size: 8px; letter-spacing: .09em; }
  .brand-mark { width: 31px; height: 36px; flex-basis: 31px; }
  .nav-item { font-size: 12px; padding-left: 13px; gap: 11px; }
  .sidebar-bottom { padding-left: 7px; padding-right: 7px; }
  .sidebar-bottom > div { padding: 13px 11px; }
  .sidebar-bottom p { font-size: 10px; }
  .main-shell { width: calc(100% - 183px); margin-left: 183px; }
  #view { padding: 28px 22px; }
  .topbar { padding: 0 22px; height: 69px; }
  .top-actions > small, .top-actions > span { display: none; }
  h1 { font-size: 25px; }
  .page-head { gap: 10px; }
  .hero { grid-template-columns: 1fr 185px; min-height: 232px; }
  .hero-copy { padding: 25px; }
  .hero-title { font-size: 23px; }
  .hero-art { transform: scale(.76); margin-left: -65px; min-width: 270px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-pill { display: none; }
  .stat-card { min-height: 110px; padding: 14px; }
  .stat-icon { top: 16px; right: 12px; width: 22px; height: 22px; border-radius: 6px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-label { font-size: 10px; }
  .stat-detail { font-size: 8px; }
  .stat-value { font-size: 25px; }
  .module-card { min-height: 199px; padding: 17px 14px; }
  .module-card h3 { font-size: 14px; }
  .module-card h3 small { display: block; margin: 3px 0 0; font-size: 8px; letter-spacing: .05em; }
  .module-card > p { font-size: 9px; }
  .module-meta { flex-wrap: wrap; gap: 3px 8px; margin-top: 12px; }
  .module-foot > span { display: none; }
  .module-foot { justify-content: flex-end; margin-top: 14px; }
  .module-card > .tag { top: 21px; right: 12px; font-size: 8px; padding: 2px 5px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .empty-state { min-height: 105px; }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 12px; }
  .filter-bar > div { flex-wrap: wrap; }
  .filter-bar .field { min-width: 125px; }
  .practice-top { flex-wrap: wrap; gap: 12px; }
  .practice-title { flex: 1; }
  .practice-main { max-height: none; min-height: 520px; }
  .passage-panel, .questions-panel { max-height: 65vh; padding: 20px 17px; }
  .reading-text { font-size: 14px; }
  .practice-actions .btn { font-size: 11px; }
  .practice-actions { flex-wrap: wrap; }
  .timer { font-size: 15px; min-width: 81px; padding: 8px 10px; }
  .review-summary { padding: 22px; gap: 20px; flex-wrap: wrap; }
  .review-summary .btn { margin-left: 0; }
  #toast { left: calc(50% + 91.5px); }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 226px; transform: translateX(-100%); transition: transform .25s; box-shadow: 15px 0 50px #173c3220; padding: 29px 19px 24px; }
  .sidebar.open, body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 25; background: #214e432b; backdrop-filter: blur(2px); }
  .brand { font-size: 19px; gap: 11px; margin-bottom: 40px; }
  .brand small { font-size: 9px; }
  .brand-mark { width: 36px; height: 40px; flex-basis: 36px; }
  .nav-item { font-size: 13px; gap: 13px; padding-left: 15px; }
  .sidebar-bottom p { font-size: 11px; }
  .main-shell { width: 100%; margin-left: 0; }
  .topbar { height: 62px; padding: 0 20px; gap: 12px; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 32px; flex: 0 0 29px; margin-left: -5px; border: 0; background: transparent; color: #67816b; padding: 4px; }
  .breadcrumb { flex: 1; gap: 7px; font-size: 10px; }
  .breadcrumb > svg { width: 13px; height: 13px; }
  .top-actions { gap: 12px; }
  .top-actions .btn { padding: 7px 11px; min-height: 31px; font-size: 10px; }
  .avatar { width: 28px; height: 28px; font-size: 10px; }
  #view { padding: 26px 20px 35px; }
  .page-head { align-items: flex-start; margin-bottom: 21px; }
  .page-head h1 { font-size: 25px; }
  .page-head p, .muted { font-size: 11px; line-height: 1.8; }
  .page-head .btn { font-size: 10px; min-height: 33px; margin-top: 9px; padding: 8px 10px; }
  .page-head .btn svg { width: 14px; height: 14px; }
  .eyebrow { font-size: 8px; }
  .hero { min-height: 232px; grid-template-columns: 1fr 185px; margin-bottom: 18px; border-radius: 13px; }
  .hero-copy { padding: 24px; }
  .hero-title { font-size: 23px; margin: 10px 0 9px; }
  .hero-copy > p { font-size: 10px; max-width: 340px; }
  .hero-kicker { font-size: 8px; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .btn { font-size: 11px; min-height: 36px; padding: 9px 14px; }
  .hero-art { transform: scale(.75); margin-left: -65px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 26px; }
  .stat-card { padding: 13px 11px; min-height: 104px; border-radius: 9px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 24px; }
  .stat-value small { font-size: 9px; margin-left: 3px; }
  .stat-icon { display: none; }
  .stat-detail { margin-top: 6px; font-size: 8px; }
  .section-head { margin-bottom: 13px; }
  .section-head h2 { font-size: 16px; }
  .section-head > span, .section-head > small { font-size: 9px; }
  .module-grid { margin-bottom: 23px; gap: 11px; }
  .module-card { padding: 17px 15px; }
  .module-icon { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 13px; }
  .module-icon svg { width: 18px; height: 18px; }
  .module-card > .tag { font-size: 7px; top: 20px; right: 11px; }
  .module-card > p { min-height: 31px; }
  .notice { font-size: 9px; padding: 12px; gap: 8px; }
  .filter-bar { flex-wrap: wrap; align-items: stretch; }
  .filter-bar > div { width: 100%; }
  .filter-bar > .segmented { width: auto; }
  .filter-bar .field { flex: 1; min-width: 110px; }
  .segmented button { padding: 6px 15px; font-size: 11px; }
  .book-strip { padding: 13px; gap: 6px; margin-bottom: 17px; }
  .book-strip button { min-width: 42px; padding: 5px 9px; font-size: 10px; }
  .test-grid { gap: 12px; }
  .test-card { border-radius: 10px; padding: 17px; }
  .test-card-title { font-size: 15px; }
  .test-meta { font-size: 9px; }
  .catalog-toolbar { font-size: 10px; align-items: flex-start; }
  .catalog-toolbar > div { gap: 6px; }
  .catalog-toolbar .btn { font-size: 9px; padding: 6px 8px; }
  .practice-shell { margin-left: -7px; margin-right: -7px; }
  .practice-top { padding: 15px; }
  .practice-title h2 { font-size: 15px; }
  .practice-title p { font-size: 9px; }
  .practice-actions { width: 100%; justify-content: flex-end; }
  .practice-actions .timer { margin-right: auto; }
  .practice-actions .btn { min-height: 32px; font-size: 10px; padding: 7px 10px; }
  .practice-main { display: block; min-height: auto; }
  .passage-panel, .questions-panel { max-height: none; overflow-y: visible; padding: 22px 19px 26px; }
  .passage-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .questions-panel { background: #fbfdf7; }
  .paper-heading h2 { font-size: 21px; }
  .reading-text { font-size: 15px; line-height: 1.95; }
  .section-tabs { padding: 9px 12px; }
  .section-tabs button { padding: 6px 12px; font-size: 10px; }
  .question-block h3 { font-size: 14px; }
  .choice-option { padding: 11px; font-size: 12px; }
  .question-input { font-size: 13px; height: 39px; }
  .question-input.inline { width: 145px; height: 30px; }
  .exam-bottom { padding: 13px; gap: 11px; }
  .exam-bottom > .btn { margin-left: auto; }
  .number-nav { gap: 5px; }
  .number-nav button { width: 27px; height: 28px; }
  .writing-editor textarea { min-height: 390px; }
  .audio-box { padding: 15px; }
  .review-summary { padding: 22px; gap: 18px; }
  .score-circle { width: 86px; height: 86px; flex-basis: 86px; font-size: 27px; border-width: 4px; }
  .review-summary > div:not(.score-circle) { flex: 1; min-width: 180px; }
  .review-summary h2 { font-size: 19px; }
  .review-summary p { font-size: 11px; }
  .review-summary .btn { margin-left: auto; }
  .history-item { padding: 15px; gap: 12px; }
  .history-item h3 { font-size: 12px; }
  .history-item p { font-size: 9px; }
  .history-item .btn { font-size: 9px; padding: 6px 8px; }
  .wrong-card { padding: 18px; }
  .teacher-grid { gap: 16px; }
  #toast { left: 50%; bottom: 21px; width: max-content; max-width: calc(100% - 30px); }
  .toast { font-size: 11px; padding: 11px 15px; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 16px; }
  .top-actions { gap: 8px; }
  .top-actions > button:not(.btn) { display: none; }
  .breadcrumb { font-size: 9px; }
  #view { padding: 23px 16px 30px; }
  .page-head h1 { font-size: 23px; }
  .page-head > .btn { padding: 7px 9px; font-size: 9px; }
  .page-head p { max-width: 240px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; min-height: 214px; }
  .hero-copy { padding: 22px 21px; }
  .hero-title { max-width: 280px; font-size: 24px; line-height: 1.45; position: relative; z-index: 2; }
  .hero-copy > p { max-width: 235px; font-size: 9px; position: relative; z-index: 2; }
  .hero-art { position: absolute; right: -105px; top: 22px; min-width: 270px; width: 270px; opacity: .3; transform: scale(.7); transform-origin: right center; pointer-events: none; }
  .hero-actions { position: relative; z-index: 2; }
  .hero-actions .btn { min-height: 35px; font-size: 10px; }
  .hero-kicker { font-size: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
  .stat-card { min-height: 104px; padding: 15px 17px; }
  .stat-icon { display: grid; right: 15px; width: 27px; height: 27px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-label { font-size: 10px; margin-bottom: 5px; }
  .stat-value { font-size: 26px; }
  .stat-detail { font-size: 8px; }
  .module-grid { grid-template-columns: 1fr; gap: 11px; }
  .module-card { min-height: 150px; padding: 18px 19px 14px 74px; }
  .module-icon { position: absolute; left: 19px; top: 22px; width: 38px; height: 38px; }
  .module-card h3 { font-size: 16px; }
  .module-card h3 small { display: inline; margin-left: 7px; font-size: 8px; }
  .module-card > .tag { right: 17px; top: 22px; font-size: 8px; }
  .module-card > p { font-size: 10px; min-height: 0; margin-top: 6px; }
  .module-meta { font-size: 9px; margin-top: 11px; }
  .module-foot { margin-top: 12px; padding-top: 11px; }
  .module-foot > span { display: inline; font-size: 8px; }
  .module-foot { justify-content: space-between; }
  .module-foot .arrow-link { font-size: 10px; }
  .section-head h2 { font-size: 15px; }
  .section-head > span, .section-head > small { font-size: 8px; }
  .panel { padding: 18px; }
  .panel-head h2, .panel-head h3 { font-size: 14px; }
  .notice { font-size: 9px; line-height: 1.9; padding: 11px 12px; }
  .test-grid { grid-template-columns: 1fr; }
  .test-card { padding: 19px; }
  .test-card-title { font-size: 16px; }
  .test-meta { font-size: 10px; }
  .test-card-top { margin-bottom: 13px; }
  .test-card-bottom { padding-top: 18px; }
  .test-card-bottom .btn { font-size: 10px; }
  .book-strip { gap: 6px; padding: 12px; }
  .book-strip button { min-width: 38px; padding: 5px 8px; font-size: 10px; }
  .catalog-toolbar { gap: 8px; font-size: 9px; flex-wrap: wrap; }
  .catalog-toolbar > div { width: 100%; justify-content: space-between; }
  .filter-bar > div { gap: 8px; }
  .filter-bar .field { min-width: 100px; }
  .filter-bar input, .filter-bar select { font-size: 11px; height: 36px; padding: 7px 9px; }
  .tabs { gap: 23px; margin-bottom: 18px; }
  .tabs button { font-size: 11px; padding-top: 10px; padding-bottom: 11px; }
  .practice-shell { margin-left: -5px; margin-right: -5px; border-radius: 9px; }
  .practice-title h2 { font-size: 14px; }
  .practice-top { padding: 14px; }
  .practice-actions { gap: 6px; }
  .practice-actions .btn { font-size: 9px; padding: 7px 8px; }
  .timer { font-size: 14px; min-width: 77px; padding: 7px 8px; }
  .timer svg { width: 14px; height: 14px; }
  .section-tabs { padding: 8px 10px; }
  .section-tabs button { padding: 5px 10px; font-size: 9px; }
  .passage-panel, .questions-panel { padding: 21px 17px 25px; }
  .paper-heading h2 { font-size: 20px; }
  .reading-text { font-size: 14px; }
  .annotation-tools { gap: 5px; font-size: 9px; }
  .annotation-tools button { font-size: 9px; padding: 4px 7px; }
  .answer-line { align-items: flex-start; gap: 6px; font-size: 11px; }
  .question-number { width: 21px; height: 21px; flex-basis: 21px; margin-right: 5px; font-size: 10px; }
  .question-input.inline { width: 125px; }
  .exam-bottom { padding: 12px 11px; }
  .number-nav { gap: 4px; }
  .number-nav button { width: 25px; height: 27px; font-size: 9px; }
  .word-count { font-size: 9px; }
  .writing-editor textarea { min-height: 360px; padding: 13px 14px; font-size: 15px; }
  .review-summary { gap: 15px; padding: 20px; }
  .score-circle { width: 77px; height: 77px; flex-basis: 77px; font-size: 25px; }
  .score-circle small { font-size: 8px; }
  .review-summary > div:not(.score-circle) { min-width: 145px; }
  .review-summary h2 { font-size: 17px; }
  .review-summary p { font-size: 10px; }
  .review-summary .review-stats { gap: 13px; margin-top: 10px; }
  .review-summary .review-stats span { font-size: 9px; }
  .review-summary .btn { width: 100%; }
  .review-item { padding: 16px; }
  .answer-comparison { gap: 8px 16px; }
  .history-item { flex-wrap: wrap; gap: 10px; }
  .history-item > div { min-width: 150px; }
  .history-item .score { min-width: 35px; }
  .history-item > .btn { margin-left: auto; }
  .history-item > svg { width: 17px; height: 17px; }
  .wrong-card { padding: 17px; }
  .wrong-card h3 { font-size: 13px; }
  .wrong-card p { font-size: 11px; }
  .wrong-card .wrong-actions { flex-wrap: wrap; }
  .import-drop { min-height: 180px; padding: 21px 17px; }
  .link-card { padding: 12px; gap: 10px; }
  .modal-backdrop { padding: 17px; }
  .modal { padding: 24px 21px; border-radius: 13px; }
  .modal h2 { font-size: 19px; }
  .modal > p { font-size: 11px; }
  .modal-actions { margin-top: 21px; }
}

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

@media print {
  .sidebar, .topbar, .practice-top, .section-tabs, .exam-bottom, .annotation-tools, .btn, #toast { display: none !important; }
  .main-shell { width: 100%; margin: 0; }
  #view { padding: 0; max-width: none; }
  .practice-shell { border: 0; }
  .practice-main { display: block; max-height: none; }
  .passage-panel, .questions-panel { max-height: none; overflow: visible; border: 0; }
  .question-block { break-inside: avoid; }
  body { background: #fff; color: #111; }
}
/* The speaking workspace is separate from the three computer-test modules. */
.module-grid.four-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-icon.speaking { color: #6e4f7a; background: #f0eaf4; }
@media (max-width: 1200px) { .module-grid.four-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .module-grid.four-modules { grid-template-columns: 1fr; } }

/* Role-specific preview controls and teacher question review. */
.preview-identity{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted,#748079)}
.preview-identity select{max-width:150px;border:1px solid var(--border,#e0e4dc);border-radius:9px;background:white;padding:7px 9px;color:var(--green,#214e43);font:inherit}
.teacher-question-preview{max-height:60vh;overflow:auto;padding-right:10px;line-height:1.8}
.preview-notice{margin-bottom:18px}
[data-notification-count][hidden]{display:none}
@media(max-width:760px){.topbar{height:auto;min-height:68px;gap:10px;flex-wrap:wrap;padding:12px 18px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.preview-identity{font-size:11px}.preview-identity select{max-width:126px}.preview-notice{font-size:12px}}

/* Deployment-specific filing information stays in document flow. */
.site-icp-link { display:inline-block; min-height:28px; padding:4px 0; color:#5c6f58; font-size:12px; line-height:20px; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; letter-spacing:normal; }
.site-icp-link:focus-visible { outline:2px solid #5c6f58; outline-offset:4px; border-radius:2px; }
.app-footer > .app-footer-meta { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px 14px; max-width:none; line-height:1.8; }
.cc-auth-footer .site-icp-link { display:block; margin-top:8px; }
@media(max-width:600px){ .app-footer:has(.site-icp-link) { flex-wrap:wrap; } .app-footer:has(.site-icp-link) > .app-footer-meta { flex-basis:100%; justify-content:flex-start; text-align:left; } }
