:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:#17234c;background:#f6f8fe;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}svg{flex-shrink:0}button:focus-visible,input:focus-visible,select:focus-visible,.clickable:focus-visible{outline:3px solid #ffaf39;outline-offset:3px}.shell{display:flex;min-height:100vh}.sidebar{width:256px;background:#fff;border-right:1px solid #e6e9f5;position:sticky;height:100vh;top:0;flex-shrink:0;display:flex;flex-direction:column;padding:27px 18px 18px;z-index:5}.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 23px}.brand img{width:68px;height:53px;object-fit:contain;object-position:left center}.brand strong{display:block;font-weight:900;font-size:17px;letter-spacing:-.6px;color:#15224b}.brand small{color:#909bb6;font-size:12px}.nav-item{border:0;background:transparent;color:#697693;width:100%;padding:14px 16px;border-radius:15px;text-align:left;font-weight:700;font-size:14px;display:flex;align-items:center;gap:12px;margin-bottom:5px;transition:background .2s}.nav-item:hover{background:#f1f5ff;color:#334eaf}.nav-item.active{color:#315cca;background:#eaf1ff}.nav-emoji{font-size:19px;width:24px;text-align:center}.side-bottom{margin-top:auto;background:#eef7ff;border-radius:20px;padding:16px;font-size:13px;color:#56668f;line-height:1.5}.side-bottom strong{color:#17254e;display:block;margin-bottom:5px}.side-footer{font-size:10px;color:#9ba6bf;text-align:center;margin-top:18px}.page-wrap{min-width:0;flex:1;max-width:1500px;margin:auto;padding:28px clamp(16px,3.5vw,56px) 80px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 26px}.crumb{font-size:13px;color:#8794af;font-weight:700}.crumb strong{font-size:20px;color:#202d52;display:block;margin-top:5px;letter-spacing:-.5px}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn{border:1px solid #e4eaf5;border-radius:13px;background:white;padding:11px 14px;color:#304470;font-size:16px;min-height:44px}.user-pill{padding:10px 15px;background:#fff;border:1px solid #e7ebf5;border-radius:14px;color:#304470;font-weight:800;font-size:13px;white-space:nowrap}.hero{border-radius:27px;background:linear-gradient(112deg,#13265d,#325cc9 70%,#5b7eef);color:white;min-height:246px;padding:37px 42px;position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:25px;box-shadow:0 18px 42px #304b9d1a}.hero:before{content:'';width:350px;height:350px;border-radius:100%;background:#ffffff12;position:absolute;top:-180px;right:-70px}.hero:after{content:'';width:230px;height:230px;border-radius:100%;border:35px solid #ffffff0e;position:absolute;right:110px;bottom:-165px}.hero-copy{position:relative;z-index:1;max-width:590px}.eyebrow{color:#ffdc77;letter-spacing:1.5px;font-size:11px;text-transform:uppercase;font-weight:900}.hero h1{font-size:clamp(24px,2.7vw,39px);line-height:1.22;letter-spacing:-1.2px;margin:12px 0 12px}.hero p{color:#d7e2ff;line-height:1.65;max-width:530px;font-size:14px;margin:0 0 22px}.hero-mascot{position:relative;z-index:1;align-self:end;width:230px;max-width:38%;background:#ffffffec;border-radius:24px;padding:14px;transform:rotate(4deg);box-shadow:0 11px 20px #070f3a21}.hero-mascot img{width:100%;display:block}.hero-mascot span{display:block;text-align:center;color:#344c87;font-size:11px;font-weight:800;margin-top:3px}.btn{border:0;border-radius:13px;padding:12px 19px;min-height:45px;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .15s,filter .15s;text-align:center}.btn:hover{transform:translateY(-1px);filter:brightness(1.04)}.btn.primary{background:#ffcb55;color:#1c2a4e}.btn.blue{background:#355dd7;color:#fff}.btn.ghost{background:#eff3fc;color:#334a85}.btn.white{background:#fff;color:#304fc0}.btn.outline{border:1px solid #d7e0f3;background:#fff;color:#37548b}.btn.full{width:100%}.btn.danger{background:#ffeded;color:#c4485c}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:30px 0 15px}.section-head h2{font-size:20px;letter-spacing:-.6px;margin:0;color:#1a2953}.section-head p{font-size:13px;color:#8491aa;margin:5px 0 0}.text-btn{border:none;color:#3264cf;background:transparent;font-size:13px;font-weight:800;padding:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 0}.stat{background:#fff;border:1px solid #e8edf7;border-radius:20px;padding:19px;display:flex;align-items:center;gap:13px;min-width:0}.stat-icon{height:46px;width:46px;border-radius:14px;display:grid;place-items:center;font-size:22px;flex-shrink:0}.stat-icon.purple{background:#eeeafe}.stat-icon.orange{background:#fff0dc}.stat-icon.green{background:#e4f9ef}.stat-icon.blue{background:#e8f1ff}.stat strong{font-size:24px;letter-spacing:-1px;display:block}.stat small{font-size:11px;color:#8b97ad;font-weight:700}.unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.unit-card{background:#fff;border:1px solid #e6eaf3;border-radius:20px;min-height:158px;padding:20px;display:flex;flex-direction:column;gap:10px;position:relative;transition:transform .2s,box-shadow .2s;text-align:left;color:inherit;width:100%;box-shadow:0 3px 12px #182f6510}.unit-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 14px 23px #182f6515}.unit-card:disabled{opacity:.73}.unit-card .tag{font-weight:900;font-size:11px;letter-spacing:1px;color:#4564b3;text-transform:uppercase}.unit-card strong{font-size:16px;line-height:1.4}.unit-card .details{font-size:12px;color:#8c9ab1;margin-top:auto}.unit-card .round-icon{position:absolute;top:19px;right:20px;height:44px;width:44px;border-radius:13px;display:grid;place-items:center;font-size:23px}.unit-card.locked{background:#f6f7fa}.unit-card .progress{margin-top:3px}.progress{height:7px;border-radius:8px;background:#eaf0fa;overflow:hidden}.progress>i{height:100%;display:block;border-radius:9px;background:linear-gradient(90deg,#36b6b3,#5373e9);max-width:100%}.notice{padding:16px 19px;border-radius:16px;border:1px solid #f4dfb6;background:#fffaf0;color:#765d2b;font-size:13px;line-height:1.65}.notice strong{color:#65471a}.notice.blue{background:#eff6ff;color:#4a5f91;border-color:#dce8ff}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.game-card{background:#fff;border:1px solid #e7ecf6;border-radius:20px;padding:18px;text-align:left;min-height:143px;transition:transform .15s;color:#243252}.game-card:hover{transform:translateY(-2px);border-color:#b7cdf9}.game-emoji{font-size:28px;margin-bottom:16px;display:block}.game-card strong{display:block;font-size:14px}.game-card small{display:block;margin-top:6px;color:#90a0ba;font-size:11px;line-height:1.4}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0}.search,.select{background:#fff;border:1px solid #dfe5f2;border-radius:13px;padding:12px 14px;outline:0;color:#263b66;min-height:46px}.search{width:min(100%,370px);flex:1}.select{min-width:180px}.details-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.panel{background:white;border:1px solid #e4eaf4;border-radius:22px;padding:23px}.panel h3{margin:0 0 17px;font-size:18px}.term-list{display:grid;gap:9px;max-height:630px;overflow:auto;padding-right:5px}.term-row{background:#f9fbff;border:1px solid #eaf0fa;border-radius:13px;padding:12px 14px;display:flex;align-items:center;gap:12px;justify-content:space-between}.term-row strong{color:#24335e;font-size:14px}.term-row small{color:#8b9bb6;font-size:11px;display:block;margin-top:4px}.term-row .vi{font-size:12px;color:#52627f;max-width:48%;text-align:right}.term-row button{border:0;background:#e9effd;color:#3055b8;border-radius:9px;min-width:34px;min-height:34px}.pill{padding:6px 10px;border-radius:50px;background:#eef4ff;color:#3157ae;font-size:11px;font-weight:800;display:inline-block}.pill.warn{background:#fff1d6;color:#9a650d}.quiz-shell{max-width:780px;margin:8px auto}.quiz-top{display:flex;align-items:center;gap:15px;margin:12px 0 19px}.quiz-top .progress{flex:1}.quiz-top strong{font-size:12px;white-space:nowrap;color:#65789a}.question{border:1px solid #e4e9f6;border-radius:26px;background:white;padding:clamp(20px,4vw,36px);min-height:370px;box-shadow:0 16px 30px #182d5f0a}.question-tag{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;font-weight:900;color:#5771b4}.question h2{font-size:clamp(23px,3vw,37px);margin:17px 0 9px;letter-spacing:-.6px;line-height:1.35;overflow-wrap:anywhere}.question .desc{font-size:13px;color:#7f8aa4;line-height:1.6}.question .ipa{font-size:18px;color:#7789b4;margin:6px 0}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:28px}.answer{border:1.5px solid #e3e9f5;border-radius:15px;background:#fff;color:#2b3d69;min-height:67px;padding:13px 15px;text-align:left;font-weight:700;line-height:1.5;transition:background .16s,border .16s}.answer:hover:not(:disabled){border-color:#5577d7;background:#f5f8ff}.answer.right{background:#e7f8ee;border-color:#50c595;color:#17754f}.answer.wrong{background:#ffeaeb;border-color:#f18b96;color:#9a3546}.answer:disabled{opacity:1;cursor:default}.feedback{border-radius:15px;background:#eef9f3;border:1px solid #bcebd1;color:#28744d;padding:13px 16px;line-height:1.55;font-size:13px;margin-top:18px}.feedback.wrong{background:#fff0ee;border-color:#f5cecb;color:#a04c49}.quiz-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}.typing{display:flex;gap:9px;margin-top:30px}.typing input{flex:1;min-width:0;padding:14px 16px;border:1.5px solid #dbe3f4;border-radius:13px;outline:0;color:#263b66;background:#fff}.typing input:focus{border-color:#5373dc}.flashcard{height:310px;width:100%;border:2px solid #c9dafd;border-radius:24px;background:linear-gradient(145deg,#f4f8ff,#e6f0ff);text-align:center;padding:26px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;cursor:pointer;transition:transform .2s;box-shadow:0 18px 35px #234fb010}.flashcard:hover{transform:translateY(-2px)}.flashcard strong{font-size:clamp(25px,4vw,42px);line-height:1.2;overflow-wrap:anywhere}.flashcard span{color:#6479a5}.flashcard .instruction{font-size:12px;color:#8091b3}.rating-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.rating-row .btn{font-size:12px;padding:10px}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.match-grid .answer{min-height:64px;font-size:13px}.answer.selected{border-color:#406ee0;background:#eaf1ff}.answer.matched{background:#e6f8f0;border-color:#a5ddbf;color:#358163;opacity:.65}.score-icon{font-size:67px;margin-top:20px}.results{text-align:center;padding:30px 18px}.results h2{font-size:27px;margin:13px 0}.results p{color:#7684a1;line-height:1.75}.results .buttons{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:23px}.letters{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:25px 0}.letter{min-width:42px;min-height:48px;background:#f1f5ff;border:1px solid #dce7fb;color:#3456a1;border-radius:10px;font-weight:900;font-size:19px}.picked{min-height:60px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;border:2px dashed #dbe5fa;border-radius:14px;padding:9px}.bottomnav{display:none}.footer-note{font-size:12px;text-align:center;color:#9ba6b9;margin-top:36px;line-height:1.8}.tiny{font-size:11px;color:#97a3b9}.empty{text-align:center;padding:40px 15px;color:#7788a5}.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.admin-stat{background:#f5f8ff;border-radius:14px;padding:17px}.admin-stat strong{font-size:25px;display:block}.admin-stat small{font-size:12px;color:#8694af}.filter-btn{border:1px solid #dce4f4;background:#fff;border-radius:10px;padding:9px 13px;color:#526b9a;font-size:12px;font-weight:800;min-height:40px}.filter-btn.selected{background:#325fd6;color:#fff;border-color:#325fd6}.loader{min-height:50vh;display:grid;place-items:center;color:#6979a4}.subtitle{color:#8692a9;font-size:13px;line-height:1.65}.mobile-only{display:none}@media(max-width:1100px){.sidebar{width:220px}.page-wrap{padding:25px 24px 80px}.stats{grid-template-columns:repeat(2,1fr)}.game-grid{grid-template-columns:repeat(3,1fr)}.unit-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.shell{display:block}.sidebar{display:none}.page-wrap{padding:18px 15px 100px}.bottomnav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e1e9f6;box-shadow:0 -5px 30px #1c376415;z-index:10;justify-content:space-around;padding:7px 8px max(8px,env(safe-area-inset-bottom))}.bottomnav button{background:transparent;border:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:50px;min-width:58px;color:#8b98b1;font-size:10px;font-weight:700}.bottomnav button.active{color:#315bcc}.bottomnav span{font-size:22px}.topbar{margin:0 0 19px}.crumb strong{font-size:18px}.user-pill{display:none}.hero{min-height:260px;padding:25px 23px}.hero h1{font-size:27px}.hero-copy{max-width:90%}.hero-mascot{max-width:31%;position:absolute;bottom:22px;right:16px;padding:7px;opacity:.92}.hero-mascot span{display:none}.hero p{max-width:72%;font-size:12px}.hero-actions{max-width:71%}.btn{padding:11px 14px}.stats{gap:9px;margin-top:12px}.stat{padding:12px;gap:8px;border-radius:15px}.stat-icon{height:38px;width:38px;font-size:19px}.stat strong{font-size:20px}.stat small{font-size:10px}.unit-grid{grid-template-columns:1fr 1fr;gap:10px}.unit-card{padding:14px;min-height:163px;border-radius:16px}.unit-card .round-icon{position:static;margin-left:auto;height:35px;width:35px}.unit-card strong{font-size:14px}.unit-card .details{font-size:11px}.game-grid{grid-template-columns:1fr 1fr;gap:10px}.game-card{min-height:137px;padding:14px}.details-grid{grid-template-columns:1fr}.panel{padding:16px;border-radius:17px}.answer-grid{grid-template-columns:1fr;gap:8px;margin-top:20px}.answer{min-height:55px}.question{min-height:370px;padding:20px}.question h2{font-size:26px}.rating-row{grid-template-columns:1fr 1fr 1fr}.rating-row .btn{font-size:11px;padding:8px}.admin-grid{grid-template-columns:1fr 1fr}.mobile-only{display:initial}.section-head{margin:25px 0 12px}.section-head h2{font-size:18px}}@media(max-width:390px){.hero-mascot{opacity:.25}.hero-copy,.hero-actions,.hero p{max-width:100%}.stat-icon{display:none}.unit-grid{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Vocabulary prompts: clearly show Vietnamese meaning + original part of speech. */
.question .desc.meaning-hint{font-size:16px;line-height:1.65;color:#263964;font-weight:650;margin-top:10px}.question .desc .hint-label{font-size:12px;font-weight:800;color:#586eae;margin-right:5px}.question .desc .hint-pos{font-size:12px;font-weight:750;color:#3e59a0;background:#edf2ff;border-radius:7px;padding:3px 7px;margin-left:5px;white-space:nowrap}

/* Voice control feedback for browsers with muted/system speech limitations. */
.speech-status{display:inline-flex;align-items:center;max-width:340px;font-size:12px;font-weight:650;color:#2d5480;background:#e9f3ff;padding:9px 12px;border-radius:10px;line-height:1.35}
.speech-status[hidden]{display:none}
.speech-status.error{color:#9b412e;background:#fff0e8}
@media(max-width:760px){.speech-status{max-width:165px;font-size:11px;padding:7px 9px}}


/* English 9 Learning Hub: reusable navigation, lesson and assessment design. */
.hero-hub{background:radial-gradient(ellipse at 94% 7%,#665ae2 0,transparent 38%),linear-gradient(115deg,#132b65,#2049a1 58%,#4760c9);min-height:310px}
.hero-hub .hero-copy{max-width:650px}
.hero-hub h1{font-size:clamp(30px,3.25vw,45px);letter-spacing:-1.7px;line-height:1.17}
.hub-hero-gradient{color:#ffdb87}
.hero-hub .hero-mascot{width:224px;background:linear-gradient(140deg,#fff,#e6edff)}
.hub-hero-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px;position:relative;z-index:2}
.hub-hero-chips span{background:#ffffff24;border:1px solid #ffffff35;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800}
.hub-feature-strip{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #e4eaf8;border-radius:0 0 17px 17px;padding:15px 23px;margin:-7px 12px 18px;color:#53658e;font-size:12px;font-weight:800;box-shadow:0 10px 24px #29437b0b}
.hub-track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.hub-track{position:relative;min-height:236px;padding:22px 23px;border-radius:24px;text-align:left;display:flex;align-items:flex-start;flex-direction:column;gap:10px;border:1px solid transparent;color:#20365a;transition:transform .2s,box-shadow .2s;overflow:hidden}
.hub-track:hover,.hub-lesson:hover{transform:translateY(-3px);box-shadow:0 14px 35px #29437b18}
.hub-track.vocab{background:linear-gradient(142deg,#f7edff,#ece5ff);border-color:#eadcff}
.hub-track.listening{background:linear-gradient(142deg,#e8f9fc,#d8f2f7);border-color:#c6eaf3}
.hub-track.practice{background:linear-gradient(142deg,#fff4e5,#ffe8ce);border-color:#ffdeb8}
.hub-track-icon{font-size:39px;line-height:1.2;margin-bottom:5px}
.hub-overline{font-size:11px;font-weight:900;letter-spacing:1.1px;color:#4e67a0}
.hub-track strong{font-size:clamp(18px,2vw,23px);letter-spacing:-.7px;line-height:1.25}
.hub-track small{font-size:13px;line-height:1.5;color:#637595;font-weight:600}
.hub-track em{font-size:13px;font-style:normal;font-weight:900;color:#315dc5;margin-top:auto;padding-top:12px}
.hub-home-overview{display:grid;grid-template-columns:1.75fr 1fr;gap:16px;margin-top:22px}
.hub-overview-main,.hub-daily-cta{background:#fff;border:1px solid #e5eaf5;border-radius:21px;padding:24px}
.hub-overview-main h2{margin:9px 0;font-size:22px}
.hub-overview-main p,.hub-daily-cta p{font-size:13px;color:#7788a5;line-height:1.7}
.hub-mini-metrics{display:flex;flex-wrap:wrap;gap:13px;margin-top:15px}
.hub-mini-metrics span{padding:10px 12px;background:#f0f5ff;border-radius:12px;font-size:12px;color:#4f6085}
.hub-mini-metrics b{color:#2c54be}
.hub-daily-cta{background:#fef9ed;border-color:#f8eccc}
.hub-daily-cta strong{font-size:17px;color:#44345e}
.hub-page-head{background:linear-gradient(120deg,#eff5ff,#f8f6ff);border:1px solid #e4eafa;border-radius:23px;padding:27px 30px;margin-bottom:18px}
.hub-page-head h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.9px;margin:11px 0}
.hub-page-head p{color:#667a9b;font-size:14px;line-height:1.65;margin:0 0 16px}
.hub-tabs{display:flex;flex-wrap:wrap;gap:9px}
.hub-tab{border:1px solid #dbe4f8;background:#fff;color:#3c5a97;border-radius:999px;padding:11px 15px;min-height:44px;font-weight:800;font-size:12px}
.hub-tab.active{background:#315bd3;color:#fff;border-color:#315bd3}
.hub-intro-note{font-size:13px;line-height:1.65;color:#586b91;background:#fff;border:1px solid #e4eaf6;border-radius:13px;padding:13px 16px;margin-bottom:20px}
.hub-lesson-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hub-lesson{border:1px solid #e3eaf6;background:#fff;border-radius:20px;padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:11px;text-align:left;min-height:190px;transition:transform .2s,box-shadow .2s}
.hub-num{font-size:11px;letter-spacing:1px;color:#416ad1;font-weight:900}
.hub-lesson-emoji{font-size:29px;align-self:flex-end;margin-top:-25px}
.hub-lesson strong{font-size:17px;color:#243759;line-height:1.35}
.hub-lesson small{font-size:12px;color:#8292ae;line-height:1.5}
.hub-pending,.hub-done{margin-top:auto;font-size:12px;font-weight:900;color:#315ed4}
.hub-done{color:#1c9569}
.hub-exercise{max-width:850px;margin:0 auto}
.hub-exercise-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hub-back{min-height:42px;border:0;background:transparent;color:#4165ac;font-weight:800;padding:8px 0}
.hub-exercise-heading{margin:10px 0 17px}
.hub-exercise-heading h1{font-size:clamp(24px,3vw,33px);letter-spacing:-1px;color:#1a2f59;margin:8px 0}
.hub-exercise-heading p{color:#8190aa;font-size:13px;margin:0 0 13px}
.hub-progress{height:8px;border-radius:999px;background:#e7edf9;overflow:hidden}
.hub-progress i{background:linear-gradient(90deg,#36c3b3,#496cdb);height:100%;display:block;transition:width .2s}
.hub-player{display:flex;align-items:flex-start;gap:19px;padding:23px;border-radius:22px;background:linear-gradient(120deg,#e9f5ff,#f2efff);border:1px solid #d7e8ff;margin:15px 0}
.hub-player-icon{width:65px;height:65px;border-radius:19px;background:#fff;display:grid;place-items:center;font-size:35px;flex-shrink:0}
.hub-player-content{flex:1;min-width:0}
.hub-player-content strong{font-size:20px;color:#28416d}
.hub-player-content p{font-size:12px;color:#6c7d9d;line-height:1.6}
.hub-player-controls,.hub-speed{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:11px 0}
.hub-speed span{font-size:12px;color:#5974a0;font-weight:800}
.hub-speed button{min-width:47px;min-height:38px;border-radius:10px;background:#fff;border:1px solid #d5e0f7;color:#45608e;font-weight:800;font-size:12px}
.hub-speed button.active{background:#305ed2;color:#fff;border-color:#305ed2}
.hub-audio-status{display:block;font-size:12px;color:#4565a1;min-height:21px}
.hub-audio-status.error{color:#b34348}
.hub-question{background:#fff;border:1px solid #e4eaf6;border-radius:23px;padding:clamp(18px,4vw,32px);box-shadow:0 15px 36px #2745780c}
.hub-question h2{font-size:clamp(20px,2.5vw,27px);line-height:1.45;color:#243961;margin:15px 0 19px}
.hub-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.hub-option{display:flex;align-items:center;gap:12px;min-height:66px;text-align:left;border:1.5px solid #e0e8f5;background:#fff;border-radius:14px;padding:12px 15px;color:#2f4265;font-size:14px;font-weight:700;line-height:1.5}
.hub-option:not(:disabled):hover{background:#eff5ff;border-color:#6e96ee}
.hub-option:disabled{opacity:1;cursor:default}
.hub-option.correct{background:#e8f8ee;border-color:#69c597;color:#226b48}
.hub-option.incorrect{background:#fff0f0;border-color:#ec9696;color:#a64c50}
.hub-letter{background:#eff4fe;border-radius:9px;min-width:31px;height:31px;display:grid;place-items:center;color:#4366af;font-weight:900}
.hub-reading{border-radius:14px;background:#f7f9fd;border:1px solid #e4eaf5;padding:17px;color:#375078}
.hub-reading p{line-height:1.85;font-size:14px;margin:10px 0 0}
.hub-hint{margin:16px 0 0;color:#8191af;font-size:12px}
.hub-answer-feedback{margin:20px 0 13px;border:1px solid #bfe8ce;border-radius:14px;background:#eefaf1;padding:15px;color:#237448;font-size:13px}
.hub-answer-feedback.incorrect{border-color:#f1cccc;background:#fff4f2;color:#a24748}
.hub-answer-feedback p{margin:7px 0 0;line-height:1.6}
.hub-next{margin-top:4px}
.hub-disclaimer{color:#8996ac;font-size:11px;line-height:1.6;margin:15px 0}
.hub-result{text-align:center;max-width:800px;margin:25px auto;background:#fff;border:1px solid #e2e9f6;border-radius:25px;padding:clamp(22px,4vw,35px)}
.hub-result-icon{display:block;font-size:56px;margin-bottom:12px}
.hub-result h1{font-size:40px;color:#2c54bc;margin:8px 0}
.hub-result>p{color:#7484a3;line-height:1.7}
.hub-transcript,.hub-review{margin:21px auto;text-align:left;border-radius:17px;padding:18px;background:#f3f7ff}
.hub-transcript p{line-height:1.85;font-size:14px}
.hub-review{background:transparent;padding:0}
.hub-review-row{text-align:left;background:#f8faff;border:1px solid #e6ecf6;border-radius:14px;padding:14px 17px;margin:9px 0;font-size:13px}
.hub-review-row p{color:#43587d;margin:9px 0}
.hub-review-row span{color:#697c9f;line-height:1.65}
.hub-actions{display:flex;align-items:center;justify-content:center;gap:11px;flex-wrap:wrap;margin-top:22px}
@media(max-width:1100px){.hub-track-grid,.hub-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
.hero-hub{min-height:325px;padding:24px 21px}
.hero-hub .hero-copy{max-width:100%;z-index:2}
.hero-hub h1{font-size:29px;max-width:88%}
.hero-hub p{max-width:77%;font-size:12px}
.hero-hub .hero-actions{max-width:82%}
.hero-hub .hero-mascot{max-width:30%;right:12px;bottom:20px;opacity:.67}
.hub-hero-chips{max-width:78%}
.hub-hero-chips span{font-size:10px;padding:6px 9px}
.hub-feature-strip{border-radius:13px;margin:10px 0 0;padding:12px;gap:10px}
.hub-feature-strip span{flex:1 1 40%;font-size:11px}
.hub-track-grid,.hub-home-overview,.hub-lesson-grid{grid-template-columns:1fr}
.hub-track{min-height:180px;padding:19px 20px}
.hub-track-icon{font-size:32px}
.hub-page-head{padding:20px 17px}
.hub-page-head h1{font-size:25px}
.hub-tab{padding:10px 12px}
.hub-lesson{min-height:145px;padding:16px}
.hub-exercise-top{align-items:flex-start}
.hub-exercise-top>.hub-overline{text-align:right}
.hub-player{padding:16px;gap:11px}
.hub-player-icon{width:48px;height:48px;font-size:26px;border-radius:14px}
.hub-player-content strong{font-size:17px}
.hub-player-controls .btn{font-size:12px;padding:10px}
.hub-options{grid-template-columns:1fr}
.hub-option{min-height:57px}
.bottomnav button{min-width:54px;font-size:9px}
}
@media(max-width:390px){.hero-hub .hero-mascot{opacity:.19}.hero-hub p,.hero-hub .hero-actions,.hub-hero-chips{max-width:100%}.hero-hub h1{max-width:100%}.hub-feature-strip span{flex:1 1 100%}.hub-mini-metrics{display:grid}}

/* Imported worksheet listening library */
.hub-original-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(105deg,#e6f7fa,#f0ecff);border:1px solid #d7e8f7;border-radius:17px;padding:15px 19px;margin-top:18px;color:#294b7b;font-weight:900;font-size:14px}
.hub-original-banner .btn{flex-shrink:0}
#source-library-audio{display:block;max-width:100%;border-radius:12px}
#source-question [data-source-action="next"][hidden]{display:none}
#source-question .hub-option.selected{background:#ecf2ff;border-color:#416edc;color:#234d9d}
@media(max-width:700px){.hub-original-banner{align-items:stretch;flex-direction:column;font-size:13px;padding:13px}.hub-original-banner .btn{width:100%}}


/* Listening 2.0 – persistent media player, student-friendly exercise workspace */
.source-exercise{max-width:1080px}
.source-exercise .hub-exercise-heading{margin-bottom:14px}
.source-exercise .source-player-sticky{position:sticky;top:12px;z-index:8;background:linear-gradient(145deg,#f5f9ff,#f0f5ff);padding:12px;border:1px solid #dfe9fb;border-radius:21px;margin:12px 0 17px;box-shadow:0 10px 28px #244da014}
.source-exercise .source-player-sticky .hub-player{margin:0;padding:12px 15px;background:transparent;border:0}
.source-exercise .source-player-sticky .hub-player-content p{margin:6px 0}
.source-exercise audio{width:100%;min-height:52px;display:block;accent-color:#4469dc}
.source-exercise .hub-question-index{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:6px 4px 0}
.source-exercise .hub-question-index button{min-width:38px;min-height:38px;border-radius:11px;border:1px solid #cbd8ed;background:#fff;color:#41587f;font-size:13px;font-weight:850}
.source-exercise .hub-question-index button.active{background:#355ed0;color:#fff;border-color:#355ed0;box-shadow:0 4px 11px #406ada33}
.source-exercise .hub-question-index button.answered:not(.active){background:#e5f8ee;color:#267b56;border-color:#a7e4c5}
.source-exercise .source-playback-tip{font-size:12px;line-height:1.65;margin:9px 7px 2px;color:#576e97;font-weight:650}
.source-exercise .hub-question{scroll-margin-top:370px;padding:clamp(18px,3vw,26px)}
.source-exercise .hub-question h2{font-size:clamp(18px,2.4vw,25px)}
.source-exercise .hub-option.selected{background:#e9f1ff;border-color:#6a88e4;color:#244bb5}
.source-exercise .hub-question-nav{display:flex;justify-content:space-between;gap:11px;align-items:center;margin-top:20px}
.source-exercise .hub-question-nav .btn{min-height:44px}
.source-exercise .hub-question-nav .btn:disabled{opacity:.4;cursor:not-allowed}
.hub-fill-label{display:block;font-size:13px;color:#52678f;font-weight:800;margin-bottom:8px}
.hub-fill-input{width:100%;max-width:650px;border:2px solid #dce6fa;border-radius:13px;padding:14px 15px;font-size:16px;min-height:54px;background:#fff;color:#23365e;outline:0}
.hub-fill-input:focus{border-color:#5279eb;box-shadow:0 0 0 4px #5279eb1a}
.source-illustration{font-size:35px;display:grid;place-items:center;width:63px;height:63px;border-radius:18px;background:linear-gradient(135deg,#eff7ff,#ffe9ce);box-shadow:0 4px 13px #20448411}
.source-lesson-topic{display:flex;align-items:center;gap:14px}
@media(max-width:700px){
 .source-exercise .source-player-sticky{position:sticky;top:0;padding:10px 9px;border-radius:0 0 16px 16px;margin:8px -6px 14px;box-shadow:0 8px 20px #28477d1c}
 .source-exercise .hub-player-icon{display:none}
 .source-exercise .hub-player-content strong{font-size:14px}
 .source-exercise .hub-player-content p{font-size:11px;line-height:1.35}
 .source-exercise .source-player-sticky .hub-player{padding:3px}
 .source-exercise audio{min-height:47px}
 .source-exercise .hub-speed{margin:4px 0}
 .source-exercise .hub-speed button{min-height:31px;min-width:42px}
 .source-exercise .hub-question-index{gap:5px;margin-top:8px}
 .source-exercise .hub-question-index button{min-width:33px;min-height:35px}
 .source-exercise .source-playback-tip{font-size:11px}
 .source-exercise .hub-question-nav .btn{font-size:12px;padding:10px}
}

/* Original-audio continuous listening: quick seeking without reloading recordings. */
.source-seek-controls{display:flex;gap:7px;flex-wrap:wrap;margin:3px 0 7px}
.source-seek-controls button{border:1px solid #c5d7f5;color:#315697;background:#fff;border-radius:10px;padding:8px 11px;min-height:40px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.source-seek-controls button:hover,.source-seek-controls button:focus-visible{border-color:#4775d7;background:#eaf1ff;outline-offset:2px}
@media(max-width:540px){.source-player-sticky{top:0;border-radius:12px;padding:8px}.source-seek-controls button{flex:1;min-width:65px;padding:8px 6px}}


/* English 9 — illustrated media tasks and sourced Word practice. */
.unit-scene-art{display:block;width:100%;height:102px;object-fit:cover;border-radius:15px;margin:3px 0 10px;flex-shrink:0}
.hub-lesson>.unit-scene-art{order:1}
.hub-lesson>.hub-num{order:0}
.hub-lesson>.hub-lesson-emoji{display:none}
.hub-lesson>strong{order:2}
.hub-lesson>small{order:3}
.hub-lesson>.hub-pending,.hub-lesson>.hub-done,.hub-lesson>.btn{order:4}
.word-practice-grid .hub-lesson{min-height:270px;gap:10px}
.word-practice-grid .hub-lesson .btn{margin-top:auto;width:100%;justify-content:center;min-height:41px}
.word-practice-grid .hub-lesson.word-disabled{background:#f8f9fc}
.word-practice-grid .hub-lesson.word-disabled .unit-scene-art{filter:saturate(.75)}
.word-selected{background:#e7f0ff!important;border-color:#4b76d7!important;box-shadow:0 0 0 1px #4b76d7 inset}
.word-selected .hub-letter{background:#3d68cc;color:#fff}
#word-index .hub-question-index{margin:14px 0 20px}
#word-index .hub-question-index button.answered{border-color:#4fad87}
.word-practice-grid .hub-lesson small{min-height:30px}
@media(max-width:700px){
 .unit-scene-art{height:86px}
 .word-practice-grid .hub-lesson{min-height:250px}
 .word-practice-grid{grid-template-columns:1fr}
}
