:root {
  color-scheme: light;
  --ink:#132448; --muted:#576982; --line:#dce5f3; --blue:#1d56d7;
  --blue-dark:#1744a9; --wash:#edf3ff; --paper:#fff; --green:#147253;
  font: 16px/1.5 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink); background:#f3f6fb;
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; }
button,input { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.65; cursor:wait; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline:3px solid #4876eb; outline-offset:3px; }
.site-header { height:72px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 max(20px, calc((100% - 1160px)/2)); background:#fff; border-bottom:1px solid var(--line); }
.brand,.account,.account-switch { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.brand { font-size:1.18rem; font-weight:800; }
.brand-mark { width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:var(--blue);color:#fff;font:800 1.05rem Georgia,serif; }
.account-switch { background:none;border:0;color:var(--ink);padding:4px;font-size:.88rem; }
.switch-label { color:var(--muted); }
.test-pill,.tag,.count { white-space:nowrap; font-size:.875rem; padding:5px 10px; border-radius:8px; background:#eaf0ff; color:#2346a3; font-weight:650; }
main { width:min(1160px,calc(100% - 44px)); margin:38px auto 65px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(2.15rem,5vw,3.45rem); line-height:1.12; letter-spacing:-.035em; }
h2 { font-size:1.35rem; line-height:1.3; letter-spacing:-.015em; }
h3 { font-size:1.05rem; }
.section-label { font-size:.875rem; font-weight:750; color:#3155b3; margin-bottom:8px; }
.page-intro { margin-bottom:24px; }
.page-intro p { margin-top:10px; color:var(--muted); }
.grid-layout { display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:22px;align-items:start; }
.panel { background:var(--paper);border:1px solid var(--line);border-radius:19px;padding:24px;box-shadow:0 8px 28px #14326507; }
.panel-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px; }
.welcome { width:min(940px,100%);margin:10vh auto 0;align-items:stretch; }
.intro { min-height:370px;background:#182e66;color:#fff;border-radius:22px;padding:30px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden; }
.intro p { margin-top:12px;color:#d9e6ff; }
.intro-shape { position:relative; min-height:150px; display:flex; align-items:center; gap:9px; padding:14px 0; }
.intro-shape span { font:700 5.4rem Georgia,serif; color:#a2b9ff; margin-left:15px; transform:rotate(-9deg); }
.intro-shape i { width:12px; height:46px;border-radius:20px;background:#79dccd; }
.intro-shape i:nth-child(2) { height:75px; }
.intro-shape i:nth-child(3) { height:53px; }
.access { display:flex; flex-direction:column;justify-content:center; }
.account-list { display:grid;gap:9px;margin-top:20px; }
.account-row { display:flex;gap:12px;align-items:center;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#f7faff; }
.account-row:hover,.lesson:hover { border-color:#91a9ea; }
.avatar { display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;border-radius:50%;background:#e0eafd;color:#20469c;font-size:.875rem;font-weight:750; }
.avatar.purple { background:#e8e5ff;color:#523fac; }
.avatar.mini { width:27px;height:27px;font-size:.8rem; }
small,.subtle,.help { color:var(--muted);font-size:.875rem; }
.account-row small,.lesson small { display:block; }
label[hidden] { display:none; }
label { display:grid;gap:5px;font-size:.9rem;font-weight:650; }
input:not([type=checkbox]) { display:block;width:100%;min-width:0;color:var(--ink);border:1px solid #cbd8ec;border-radius:9px;background:white;padding:9px 10px;min-height:44px; }
input[type=checkbox] { width:18px;height:18px;accent-color:var(--blue);margin:0; }
fieldset { border:0;padding:0;margin:15px 0;min-width:0; }
legend { font-size:.9rem;font-weight:750;margin-bottom:7px;padding:0; }
legend .subtle { margin-left:10px;font-weight:400; }
.class-options { display:flex;flex-wrap:wrap;gap:8px; }
.check-chip { display:flex;align-items:center;gap:7px;border:1px solid var(--line);padding:9px;border-radius:9px; }
.check-chip:has(:checked),.lesson:has(:checked) { background:#edf3ff;border-color:#aabff5; }
.lesson-list { display:grid;gap:6px; }
.lesson { display:flex;align-items:center;gap:12px;padding:8px 12px;min-height:48px;border:1px solid var(--line);border-radius:10px; }
.help { margin-top:6px; }
.date-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px; }
.button { min-height:43px;border-radius:10px;border:1px solid transparent;padding:8px 14px;font-weight:700;font-size:.95rem; }
.primary { background:var(--blue);color:white; }
.primary:hover { background:var(--blue-dark); }
.secondary { background:#eaf0ff;color:#2346a3; }
.quiet { background:none;color:var(--blue-dark);padding-inline:9px; }
.full { width:100%; }
.tabs { display:flex;gap:6px; padding:4px;background:#eef2f8;border-radius:11px;margin-bottom:15px; }
.class-tab { width:50%;min-height:39px;border:0;border-radius:8px;background:none;color:#4e617d;font-weight:650;font-size:.875rem; }
.class-tab[aria-selected=true] { background:white;color:var(--blue-dark);box-shadow:0 2px 7px #273a6320; }
.results-card { border:1px solid var(--line); padding:14px;border-radius:12px;margin-top:10px; }
.assignment-title { display:flex;gap:8px;align-items:start;justify-content:space-between; }
.assignment-title p,.task p { margin-top:4px;color:var(--muted);font-size:.875rem; }
.roster { margin:10px 0; }
.person { display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 0;border-bottom:1px solid #eef1f7;font-size:.92rem; }
.status { color:var(--muted);white-space:nowrap;font-size:.875rem; }
.person .status { margin-left:auto; }
.done { color:var(--green); }
.word-list { display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.875rem; }
.word-chip { background:#fff1d9;color:#774504;border-radius:8px;padding:4px 8px; }
details { margin-top:10px; font-size:.875rem;color:var(--muted); }
summary { cursor:pointer; }
.deadline { display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:10px 0; }
.empty { min-height:228px;display:grid;justify-items:center;align-content:center;gap:7px;text-align:center;color:var(--muted); }
.empty h3 { color:var(--ink); }
.empty-mark { display:grid;place-items:center;width:52px;height:52px;background:#ecf1fe;color:#5478d6;border-radius:16px;font:700 1.25rem Georgia,serif;margin-bottom:2px; }
.student-home { max-width:700px;margin:auto; }
.student-hero { position:relative;overflow:hidden;background:#dce8ff;border-radius:20px;padding:25px;margin-bottom:16px; }
.student-hero h1 { max-width:80%;font-size:clamp(1.95rem,6vw,2.9rem);position:relative;z-index:1; }
.student-hero p { color:#36537f;margin-top:8px;position:relative;z-index:1; }
.hero-letters { position:absolute;right:20px;bottom:-39px;font:italic 800 9rem Georgia,serif;color:#c1d3ff;line-height:1; }
.task-list { margin-bottom:12px; }
.task-list h2 { margin-bottom:12px; }
.task { display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px;margin-top:7px; }
.task-icon { flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;background:#eaf0ff;color:#3459b2;border-radius:11px;font:700 1rem Georgia,serif; }
.task-copy { flex:1;min-width:0;overflow-wrap:anywhere; }
.student-empty { min-height:60px; }
.exercise-nav { display:flex;align-items:center;justify-content:space-between;color:var(--muted); }
.practice-progress { display:flex;align-items:center;gap:12px;margin:7px 0 13px;color:var(--muted);font-size:.875rem; }
progress { appearance:none;flex:1;height:8px;border:0;border-radius:8px;overflow:hidden;background:#dfe7f7; }
progress::-webkit-progress-bar { background:#dfe7f7; }
progress::-webkit-progress-value { background:#376beb; }
.reading-card,.finish { text-align:center;padding:clamp(22px,5vw,42px); }
.reading-card h1 { margin:22px 0 13px;font-family:"Segoe UI",sans-serif;letter-spacing:-.04em;overflow-wrap:anywhere; }
mark { color:#183c92;background:#dfebff;border-radius:8px;padding:0 .09em; }
.feedback { min-height:30px;color:#425677; }
#practice-buttons { display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:19px; }
#exercise-status:not(:empty) { margin:13px auto 0;color:#405374; }
#exercise-status .button { margin:8px 4px 0; }
.demo-tools { padding-top:12px;border-top:1px solid #e5ecf8;margin:20px 0 0; }
.demo-tools p { margin-top:6px; }
.finish-check { display:grid;place-items:center;width:76px;height:76px;background:#d9f5e9;color:#147253;font-size:2.5rem;border-radius:50%;margin:0 auto 12px; }
.finish p { margin:12px 0 19px;color:var(--muted); }
.voice-preview { width:min(270px,100%);margin-top:8px; }
#toast { display:none;position:fixed;z-index:2;bottom:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);padding:10px 16px;border-radius:10px;background:#182e66;color:white;box-shadow:0 7px 24px #10235235; }
#toast.show { display:block; }
@media (max-width:770px) {
  .grid-layout { grid-template-columns:1fr;gap:12px; }
  .welcome { margin:0 auto; }
  .intro { min-height:180px;padding:18px; }
  .intro-shape { min-height:0;padding:0 0 6px; }
  .intro-shape span { font-size:3rem; }
  .intro-shape i { height:23px;width:8px; }
  .intro-shape i:nth-child(2) { height:39px; }
  .intro-shape i:nth-child(3) { height:28px; }
  main { width:calc(100% - 24px);margin:20px auto 48px; }
  .site-header { height:57px;padding:0 13px; }
  .panel { padding:16px; }
  .panel-heading { margin-bottom:14px; }
}
@media (max-width:430px) {
  .switch-label { display:none; }
  .date-grid { grid-template-columns:1fr 1fr; }
  .date-grid>label:last-child { grid-column:span 2; }
  .brand,.account { gap:6px; }
  .task-icon { display:none; }
}

.lesson[hidden] { display:none; }
.preview-credentials { white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#edf4ff;border-radius:10px;font:inherit; }
#pilot-class,#pilot-teacher,#pilot-login,#pilot-password { margin-top:14px; }
#pilot-teacher { padding-top:12px;border-top:1px solid var(--line); }
select { width:100%;font:inherit;padding:9px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink); }
