:root{--ink:#172a27;--muted:#73817c;--green:#173e36;--green2:#2d7560;--lime:#d9e8bd;--bg:#f6f7f3;--line:#e8ede7;--white:#fff;--soft:#eff3ed;--gold:#dca96e}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px}button,input{font:inherit}button{cursor:pointer}.app{display:flex;min-height:100vh}.sidebar{width:255px;background:#fff;border-right:1px solid var(--line);padding:30px 17px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:10}.brand{display:flex;gap:12px;align-items:center;font-size:19px;letter-spacing:-.5px;font-weight:750;padding:2px 11px 40px;line-height:1.15}.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:2.2px;margin-top:6px}.brand-icon{display:grid;place-items:center;position:relative;background:var(--green);color:white;width:44px;height:44px;border-radius:13px;font-size:24px;font-weight:800}.brand-icon span{position:absolute;color:#b8dfb9;font-size:16px;right:5px;bottom:5px}.section-label,.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:800;color:#98a49e}.section-label{padding:0 13px 14px}.navitem{border:0;background:transparent;color:#60716a;display:flex;gap:13px;align-items:center;width:100%;padding:14px 15px;border-radius:12px;text-align:left;font-weight:600;margin:2px 0}.navitem .ico{font-size:19px;width:23px;text-align:center}.navitem.active{color:var(--green);background:#e7f0e7}.navitem:hover{background:#f0f4ef}.sidebar-bottom{margin-top:auto}.chapter-mini{border:1px solid #e2ebe3;border-radius:15px;background:#f5f8f1;padding:18px}.chapter-mini strong,.chapter-mini small{display:block;margin-top:9px}.chapter-mini small{font-size:11px;color:var(--muted)}.side-note{font-size:10px;color:#98a49e;line-height:1.6;padding:10px}.main-shell{margin-left:255px;width:calc(100% - 255px);min-width:0}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);padding:0 max(35px,5vw);display:flex;align-items:center;justify-content:space-between}.crumb{font-size:13px;color:#9aa59e}.crumb b{color:var(--ink)}.crumb span{padding:0 12px}.top-actions{display:flex;align-items:center;gap:10px}.live-dot{width:8px;height:8px;background:#55a879;border-radius:50%}.saved{font-size:12px;color:#72847a}.avatar{display:grid;place-items:center;margin-left:15px;background:#e7e7ce;color:#314e41;width:36px;height:36px;border-radius:50%;font-size:12px;font-weight:800}.mobile-menu{display:none}.iconbutton{background:none;border:0}main{max-width:1170px;margin:auto;padding:39px clamp(20px,4vw,58px) 60px;min-height:calc(100vh - 145px)}footer{padding:20px 35px 30px;text-align:center;color:#a0aaa2;font-size:11px}.plain-link{border:0;background:none;color:var(--green2);text-decoration:underline;font-size:11px}.hero{background:var(--green);color:#fff;border-radius:25px;padding:39px 42px;position:relative;overflow:hidden;display:flex;align-items:center;min-height:260px}.hero:after{content:"";position:absolute;border:52px solid #ffffff0d;width:310px;height:310px;border-radius:50%;right:-70px;top:-140px}.hero:before{content:"";position:absolute;background:#fff1;width:175px;height:175px;transform:rotate(30deg);border-radius:32px;right:60px;bottom:-125px}.hero-content{position:relative;z-index:1;max-width:620px}.smallcaps{font-size:11px;letter-spacing:2.3px;font-weight:750;color:#bad4c6;text-transform:uppercase}.hero h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(30px,4vw,46px);line-height:1.1;margin:15px 0}.hero p{color:#d1e0d7;max-width:450px;line-height:1.65;margin-bottom:20px}.hero .btn{background:#f1f3e7;color:var(--green)}.hero-decoration{font-size:125px;position:absolute;right:12%;top:43px;opacity:.2;transform:rotate(-12deg)}.btn{border:0;background:var(--green);color:#fff;border-radius:11px;padding:13px 19px;font-weight:700;display:inline-flex;align-items:center;gap:9px;justify-content:center;transition:transform .1s,background .1s}.btn:hover{transform:translateY(-1px);background:#285649}.btn.ghost{background:var(--soft);color:var(--green)}.btn.outline{background:white;border:1px solid #dce6de;color:var(--green)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.subheading{display:flex;align-items:center;justify-content:space-between;margin:35px 0 18px;gap:12px}.subheading h2{font-size:21px;margin:0;letter-spacing:-.4px}.hint{font-size:12px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;display:flex;align-items:center;gap:17px}.stat .symbol{font-size:24px;background:#f0f5ed;border-radius:12px;width:49px;height:49px;display:grid;place-items:center}.stat strong{font-size:27px;display:block;letter-spacing:-1px}.stat small{color:var(--muted);font-size:12px}.modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.module{background:white;border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:12px;box-shadow:0 6px 14px #193c2410}.module-top{display:flex;align-items:center;justify-content:space-between}.module-icon{font-size:24px;background:#eff5ef;width:53px;height:53px;border-radius:14px;display:grid;place-items:center}.tag{font-size:10px;letter-spacing:1.1px;font-weight:800;color:#4b836f;background:#e9f4eb;border-radius:20px;padding:6px 9px}.module h3{margin:0;font-size:19px}.module p{margin:0;line-height:1.6;color:var(--muted);font-size:13px;min-height:40px}.module .btn{margin-top:auto;align-self:flex-start}.pagehead{margin-bottom:23px}.pagehead .smallcaps{color:#6d977e}.pagehead h1{font-family:Georgia,serif;font-weight:500;font-size:38px;letter-spacing:-1px;margin:9px 0 8px}.pagehead p{color:var(--muted);line-height:1.6;margin:0}.contentbox{background:white;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 6px 18px #173e3608}.split{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr);gap:20px}.progress-track{background:#e7ece6;border-radius:99px;height:9px;overflow:hidden}.progress-fill{height:100%;background:#74a58e;border-radius:99px}.course-note{font-size:12px;color:var(--muted);line-height:1.7}.flashcard{border:1px solid #e3eade;background:#f0f5ed;border-radius:19px;min-height:275px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;cursor:pointer;margin:17px 0;transition:background .15s}.flashcard:hover{background:#e8f0e7}.flashcard .smallcaps{color:#709b81}.flashcard h2{font-family:Georgia,serif;font-weight:500;font-size:34px;margin:20px 0 14px}.flashcard p{line-height:1.65;color:#6e8377}.flex{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.wordindex{font-size:13px;color:var(--muted)}.pill{background:#eff3ed;padding:7px 12px;color:#638171;border-radius:22px;font-size:12px;font-weight:700}.card-nav{display:flex;justify-content:space-between;gap:10px}.quizitem h2{font-size:24px;font-weight:650;line-height:1.45;margin:15px 0 24px}.answer{background:#fff;border:1px solid #e3eae3;border-radius:12px;width:100%;text-align:left;padding:15px 17px;display:flex;gap:13px;align-items:center;margin:10px 0;color:var(--ink)}.answer:hover{border-color:#7eab8d;background:#f5faf5}.answer.selected{border-color:#4e9975;background:#ebf6ed}.answer .letter{display:grid;place-items:center;width:29px;height:29px;background:#eff3ef;border-radius:8px;font-weight:800;color:#628071;flex-shrink:0}.answer.selected .letter{background:#2e785b;color:white}.feedback{background:#edf6ef;border-left:4px solid #4d9b72;padding:19px 20px;border-radius:10px;margin-top:22px;line-height:1.65}.feedback.wrong{background:#fff5e8;border-color:#c68b4e}.feedback p{margin:8px 0 0;font-size:13px}.feedback .somali{color:#587362}.question-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:23px}.reading-text{background:#f7f8f4;border-radius:15px;padding:24px 27px;line-height:1.93;font-size:16px;margin-bottom:24px}.reading-text p{margin:0 0 14px}.reading-text p:last-child{margin:0}.reading-switch{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.seg{border:1px solid #dae6dc;background:white;padding:10px 14px;border-radius:10px;color:#47685a}.seg.active{background:var(--green);color:white}.cloze-input{width:100%;max-width:400px;border:2px solid #dce7dd;border-radius:10px;padding:15px 16px;outline:0;margin:12px 0}.cloze-input:focus{border-color:#579779}.muted{color:var(--muted)}.vocab-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.vocab-list-item{padding:13px;background:#f5f8f3;border-radius:10px}.vocab-list-item b{display:block}.vocab-list-item small{color:#6e887a;margin-top:5px;display:block}.result{padding:26px;text-align:center}.result h2{font-size:29px;margin:8px 0}.result .score{font-size:55px;color:var(--green);font-weight:800}.scoregrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.scorebox{background:#f1f5f0;border-radius:13px;padding:20px}.scorebox strong{display:block;font-size:28px}.scorebox span{font-size:12px;color:var(--muted)}.toast{position:fixed;bottom:25px;right:25px;z-index:40;background:#173e36;color:white;border-radius:11px;padding:13px 18px;display:none;box-shadow:0 6px 24px #0003}.toast.show{display:block}.mobile-backdrop{display:none}@media(max-width:900px){.sidebar{width:225px}.main-shell{margin-left:225px;width:calc(100% - 225px)}.saved{display:none}.stats{grid-template-columns:repeat(3,1fr)}.stat{padding:14px;gap:8px}.stat .symbol{width:37px;height:37px}.modules{grid-template-columns:1fr}.hero-decoration{right:0}}@media(max-width:660px){.sidebar{transform:translateX(-102%);transition:transform .2s;width:270px;box-shadow:10px 0 35px #0001}.sidebar.open{transform:none}.main-shell{margin:0;width:100%}.topbar{height:67px;padding:0 18px}.mobile-menu{display:inline-block;font-size:23px;color:var(--green)}.crumb{font-size:11px}.avatar{margin-left:4px}.top-actions .live-dot{display:none}main{padding:20px 15px 35px}.hero{border-radius:19px;padding:29px 25px;min-height:235px}.hero-decoration{font-size:90px;right:0;top:100px}.stats{gap:8px}.stat{flex-direction:column;align-items:flex-start;padding:12px}.stat strong{font-size:22px}.stat small{font-size:10px}.stat .symbol{width:35px;height:35px;font-size:19px}.modules{gap:12px}.module{padding:20px}.contentbox{padding:19px}.split{grid-template-columns:1fr}.vocab-list{grid-template-columns:1fr}.pagehead h1{font-size:31px}.flashcard h2{font-size:28px}.question-footer{align-items:stretch}.question-footer .btn{flex:1}.mobile-backdrop.visible{display:block;position:fixed;inset:0;background:#0007;z-index:9}}

/* Student authentication v0.2 */
.account-button{border:1px solid #dbe5dc;border-radius:9px;background:#fff;color:var(--green);font-size:12px;font-weight:700;padding:9px 12px}
.auth-root[hidden]{display:none}.auth-root{position:fixed;inset:0;z-index:100}.auth-backdrop{height:100%;width:100%;overflow-y:auto;background:linear-gradient(145deg,#123d32,#285948);display:flex;align-items:center;justify-content:center;padding:25px 16px}.auth-card{width:100%;max-width:430px;background:white;border-radius:22px;box-shadow:0 22px 70px #071d185e;padding:33px}.auth-logo{display:inline-grid;place-items:center;background:#173e36;color:white;font-size:22px;font-weight:800;width:54px;height:54px;border-radius:14px}.auth-eyebrow{margin-top:18px;letter-spacing:2px;color:#658171;font-size:10px;font-weight:800}.auth-card h1{font-family:Georgia,serif;font-weight:500;font-size:31px;margin:12px 0}.auth-card h2{font-size:23px}.auth-subtitle{font-size:13px;line-height:1.7;color:#63766c;margin-bottom:22px}.auth-card label{font-size:12px;font-weight:750;display:block;margin:15px 0 7px}.auth-card input{width:100%;border:1px solid #d5e2d7;border-radius:10px;padding:13px 14px;outline:0}.auth-card input:focus{border-color:#539270;box-shadow:0 0 0 3px #d2e8d9}.auth-submit{margin-top:23px;width:100%}.auth-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:20px}.auth-links button{background:none;border:0;color:#286c50;text-decoration:underline;font-size:12px}.auth-message{font-size:12px;color:#366549;line-height:1.6}.auth-message.error{color:#aa443b}
