:root{color-scheme:light;--ink:#16324f;--muted:#52677e;--blue:#11437d;--navy:#11437d;--navy-hover:#0c3563;--coral:#e6573f;--teal:#16746f;--mint:#e3f1ec;--sky:#e8eff9;--paper:#fff;--background:#f3f6fb;--line:#ccd8e7;--shadow:0 12px 40px #11437d12;--round:22px;--danger:#a4363a;--gold:#b88223;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--ink);font-size:1rem;line-height:1.6}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:var(--blue);text-underline-offset:3px}a:hover{color:var(--teal)}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #58b7bc;outline-offset:3px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.12;letter-spacing:-.045em;font-weight:760}h2{font-size:1.5rem;line-height:1.25;letter-spacing:-.025em}h3{font-size:1.15rem;line-height:1.35}h4{font-size:1.05rem}p{margin-bottom:1rem}small,.small{font-size:.875rem}img{max-width:100%;height:auto}button{border:0}ul,ol{padding-left:1.4rem}li+li{margin-top:.35rem}.skip-link{position:absolute;top:-100px;left:1rem;z-index:100;background:white;padding:.75rem}.skip-link:focus{top:1rem}.hidden{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:.8rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:.8rem}.brand{font-size:1.55rem;font-weight:800;letter-spacing:-.055em;display:inline-flex;gap:.6rem;align-items:center;text-decoration:none;color:var(--ink)}.brand img{width:36px;height:36px}.brand-paw{background:var(--ink);color:white;border-radius:12px;padding:.1rem .6rem}.topbar{max-width:1280px;margin:auto;min-height:94px;padding:1.35rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.topbar-right{display:flex;align-items:center;gap:1rem}.identity{font-weight:650;font-size:.9rem}.identity span{display:block;color:var(--muted);font-size:.8rem;font-weight:450}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:46px;padding:.7rem 1.2rem;border-radius:12px;background:var(--ink);color:#fff;font-weight:700;text-decoration:none;line-height:1.3;transition:background .15s,transform .15s;border:1px solid transparent}.btn:hover{background:#245b6e;color:#fff}.btn:active{transform:translateY(1px)}.btn.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.btn.secondary:hover{background:var(--sky)}.btn.soft{background:var(--mint);color:#165c58}.btn.ghost{background:transparent;color:var(--blue);border-color:transparent}.btn.danger{background:#fff0f0;color:var(--danger);border-color:#e8c4c5}.btn.small{font-size:.875rem;min-height:38px;padding:.5rem .85rem}.btn.block{width:100%}.link-button{background:none;padding:0;color:var(--blue);font-weight:650;text-decoration:underline;text-underline-offset:3px}.page{max-width:1200px;margin:0 auto;padding:1.25rem 2rem 5rem}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;margin:1rem 0 2rem}.page-head h1{margin-bottom:.75rem}.page-head p{color:var(--muted);max-width:620px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--round);box-shadow:var(--shadow)}.card-pad{padding:1.65rem}.login-layout{max-width:1220px;margin:1rem auto 3rem;padding:0 2rem;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:3rem;align-items:center;min-height:650px}.login-intro{position:relative;padding:1rem 0 0 1rem}.login-intro h1{max-width:620px;font-size:clamp(2.7rem,5vw,4.9rem)}.login-intro p{max-width:430px;font-size:1.1rem;color:var(--muted)}.denzil-stage{position:relative;min-height:300px;display:flex;align-items:center;justify-content:center}.denzil-stage:before{content:"";position:absolute;width:340px;height:280px;border-radius:50%;background:linear-gradient(135deg,#d7eeeb,#e0ebf9);transform:rotate(-10deg);z-index:-1}.denzil-stage img{width:340px;object-fit:contain;max-height:350px}.denzil-note{position:absolute;right:1rem;bottom:3rem;background:white;border:1px solid var(--line);padding:.75rem 1rem;border-radius:16px;box-shadow:var(--shadow);font-size:.85rem;max-width:170px;transform:rotate(3deg)}.login-card{padding:2.25rem}.login-card h2{font-size:1.8rem}.form-field{margin:1.25rem 0}.form-field label{display:block;font-size:.9rem;font-weight:700;margin-bottom:.45rem}input[type=text],input[type=password],input[type=email],textarea,select{width:100%;padding:.8rem 1rem;border-radius:11px;border:1px solid #bccdd8;background:white;color:var(--ink);min-height:48px}textarea{min-height:130px;resize:vertical}.password-wrap{position:relative}.password-wrap input{padding-right:4.2rem}.password-wrap button{position:absolute;right:.6rem;top:.5rem;min-height:32px;font-size:.85rem;background:var(--sky);padding:.3rem .6rem;border-radius:7px;color:var(--ink)}.form-error{color:var(--danger);font-size:.9rem;margin:1rem 0}.login-foot{margin:1.5rem 0 0;padding-top:1.2rem;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}.site-foot{max-width:1200px;padding:1.5rem 2rem;margin:auto;color:var(--muted);font-size:.8rem;display:flex;justify-content:space-between;gap:1rem}.hero-welcome{display:grid;grid-template-columns:1fr 230px;background:linear-gradient(125deg,#e2f0ef,#e8f0fa);border-color:#cfdee7;overflow:hidden;margin-bottom:2rem;min-height:225px}.hero-welcome>div{padding:2rem 2.2rem}.hero-welcome h1{font-size:clamp(2rem,3.5vw,2.8rem);margin-bottom:.85rem}.hero-welcome p{max-width:600px;color:#40616f;margin-bottom:0}.hero-welcome img{width:220px;align-self:center;max-height:220px;object-fit:contain}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.5rem 0 2rem}.stat{padding:1.25rem 1.4rem}.stat strong{display:block;font-size:1.9rem;line-height:1.2;letter-spacing:-.04em}.stat span{font-size:.85rem;color:var(--muted)}.section-line{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:2rem 0 1rem}.section-line h2{margin:0}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.module-card{padding:1.7rem;display:flex;flex-direction:column;position:relative;overflow:hidden}.module-symbol{height:68px;width:68px;background:var(--sky);border-radius:18px;display:grid;place-items:center;margin-bottom:1.3rem;color:var(--blue)}.module-symbol svg{width:42px;height:42px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.module-card:nth-child(2) .module-symbol{background:#e9f1e7;color:#54734b}.module-card h3{font-size:1.35rem;margin:.8rem 0}.module-card p{font-size:.95rem;color:var(--muted)}.module-meta{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin:.4rem 0 1rem}.module-card .btn{margin-top:auto;align-self:flex-start}.badge{display:inline-flex;align-items:center;font-size:.75rem;line-height:1.4;font-weight:700;padding:.35rem .65rem;border-radius:8px;background:#edf1f5;color:#526572;width:fit-content}.badge.started,.badge.in_progress{background:#e2effb;color:#235d88}.badge.passed,.badge.completed{background:#dff1e5;color:#23613b}.badge.supplementary_needed{background:#fff0d6;color:#8d5f12}.badge.test_attempted{background:#eae5fa;color:#625091}.badge.test{background:#e9e6f7;color:#66538e}.progress-track{height:7px;background:#edf1f5;border-radius:10px;overflow:hidden;margin:.75rem 0}.progress-track>span{height:100%;display:block;background:#3d8a87;border-radius:10px}.card-progress{margin-top:.5rem;margin-bottom:1.5rem}.card-progress>div:last-child{display:flex;justify-content:space-between;font-size:.8rem;color:var(--muted)}.notice{background:#e9f2f9;border:1px solid #cbdfe9;border-radius:12px;padding:1rem 1.15rem;margin:1rem 0;color:#33596e;font-size:.9rem}.notice.warning{background:#fff7e9;border-color:#efdfbc;color:#7a5b24}.notice.success{background:#e8f5ed;border-color:#c7e3d1;color:#2b6945}.notice p:last-child{margin-bottom:0}.student-switch{display:flex;gap:.65rem;flex-wrap:wrap}.student-switch button{min-width:150px;min-height:64px;display:flex;align-items:center;gap:.7rem;text-align:left;border:1px solid var(--line);background:white;padding:.75rem 1rem;border-radius:14px;color:var(--ink)}.student-switch button.active{border-color:var(--teal);box-shadow:0 0 0 2px #16746f16;background:#f0f8f6}.avatar{width:34px;height:34px;background:var(--sky);border-radius:50%;display:grid;place-items:center;font-weight:750;color:var(--blue);flex-shrink:0}.student-switch strong{display:block;line-height:1.3}.student-switch small{color:var(--muted);font-size:.8rem}.owner-head{display:flex;gap:1rem;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.back-link{font-size:.9rem;font-weight:700;margin-bottom:1.5rem;display:inline-flex;gap:.5rem;align-items:center;text-decoration:none}.module-heading{max-width:800px;margin-bottom:1.5rem}.module-heading h1{font-size:clamp(2rem,3.5vw,3rem);margin:1rem 0}.tabs{display:flex;gap:.3rem;border-bottom:1px solid var(--line);margin:1.5rem 0;overflow-x:auto}.tab{border-radius:10px 10px 0 0;background:transparent;color:var(--muted);white-space:nowrap;min-height:48px;padding:.75rem 1.2rem;font-weight:700;border-bottom:3px solid transparent}.tab.active{color:var(--teal);border-bottom-color:var(--teal);background:#e8f2f2}.study-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1.5rem}.lesson-nav{align-self:start;padding:.7rem;position:sticky;top:1rem}.lesson-nav h3{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:.7rem .6rem}.lesson-button{background:transparent;border-radius:10px;display:flex;gap:.65rem;align-items:flex-start;width:100%;padding:.85rem .7rem;color:var(--ink);text-align:left;font-size:.9rem}.lesson-button.active{background:var(--sky);font-weight:700}.lesson-button .lesson-number{width:24px;min-width:24px;height:24px;border-radius:7px;background:white;border:1px solid var(--line);display:grid;place-items:center;font-size:.75rem}.lesson-button.done .lesson-number{background:var(--teal);border-color:var(--teal);color:white}.lesson-panel{padding:2rem 2.3rem;min-width:0}.lesson-topline{display:flex;justify-content:space-between;gap:1rem;font-size:.8rem;color:var(--muted);margin-bottom:1.25rem}.lesson-panel h2{font-size:1.75rem;margin-bottom:1.5rem}.prose{max-width:75ch}.prose h3{margin-top:1.65rem}.prose h4{margin-top:1.3rem}.prose p,.prose li{font-size:1.025rem;line-height:1.8}.prose blockquote{margin:1.4rem 0;padding:1rem 1.25rem;background:var(--sky);border-left:4px solid #77aab8;border-radius:0 10px 10px 0}.prose table{border-collapse:collapse;width:100%;font-size:.95rem;margin:1rem 0}.prose th,.prose td{padding:.7rem;border:1px solid var(--line);text-align:left}.prose th{background:var(--sky)}.prose svg{max-width:100%;height:auto;display:block;margin:1rem auto}.prose figure{margin:1.5rem 0;background:#f7fafc;border:1px solid var(--line);padding:1rem;border-radius:14px}.prose figcaption{font-size:.8rem;line-height:1.5;color:var(--muted);margin-top:.75rem}.check-box{margin:1.75rem 0;background:#f0f7f5;border:1px solid #d1e4dd;border-radius:14px;padding:1.25rem}.check-box h3{color:var(--teal);margin-bottom:.5rem}.check-box details{margin-top:1rem}.check-box summary{cursor:pointer;font-size:.9rem;font-weight:700;color:var(--teal)}.check-box details>p{margin-top:1rem;margin-bottom:0}.lesson-bottom{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-top:1px solid var(--line);padding-top:1.4rem;margin-top:1.5rem;flex-wrap:wrap}.glossary{margin-top:1.5rem}.glossary summary{font-weight:700;cursor:pointer;padding:.9rem 0}.glossary dl{display:grid;grid-template-columns:150px 1fr;gap:.6rem 1rem}.glossary dt{font-weight:700}.glossary dd{margin:0;color:var(--muted);font-size:.95rem}.study-timer{display:flex;align-items:center;gap:.6rem;font-size:.8rem;color:var(--muted);padding:.8rem .2rem}.study-timer .timer-dot{width:7px;height:7px;border-radius:50%;background:#3a9080}.study-timer.idle .timer-dot{background:#b99e5d}.timer-note{font-size:.8rem;color:var(--muted);margin:0 .2rem 1rem}.worked-example{margin-bottom:1.2rem;padding:1.6rem}.worked-example .question-text{font-weight:650}.example-answer{background:#f0f6f9;padding:1.15rem;border-radius:12px;margin:1rem 0;white-space:pre-wrap}.why{font-size:.9rem;color:var(--teal);background:#edf6f2;padding:1rem;border-radius:10px}.assessment-intro{display:grid;grid-template-columns:1fr 200px;gap:1.5rem;padding:2rem}.assessment-intro img{max-height:220px;object-fit:contain;align-self:center}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1.5rem 0}.mode-option{display:flex;gap:.6rem;border:1px solid var(--line);padding:1rem;border-radius:12px;cursor:pointer}.mode-option:has(input:checked){background:#edf7f3;border-color:var(--teal)}.mode-option input{accent-color:var(--teal);margin-top:.3rem}.mode-option strong{display:block;font-size:.95rem}.mode-option small{display:block;color:var(--muted);line-height:1.5;margin-top:.25rem}.assessment-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;background:var(--ink);color:white;border-radius:14px;padding:1rem 1.4rem;position:sticky;top:.5rem;z-index:5;margin-bottom:1.5rem;box-shadow:var(--shadow)}.assessment-toolbar span{display:block;font-size:.8rem;color:#c6d9e2}.assessment-clock{font-size:1.5rem;font-weight:750;font-variant-numeric:tabular-nums}.assessment-clock.urgent{color:#ffda96}.question-card{padding:1.6rem 1.8rem;margin-bottom:1rem}.question-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.question-heading h3{font-size:1rem;margin-bottom:1rem}.question-marks{font-size:.8rem;color:var(--muted);white-space:nowrap}.choice{display:flex;gap:.75rem;align-items:flex-start;padding:.9rem 1rem;border:1px solid var(--line);border-radius:11px;margin:.55rem 0;cursor:pointer;font-size:.95rem}.choice:has(input:checked){border-color:var(--teal);background:#edf6f3}.choice input{accent-color:var(--teal);margin:.35rem 0 0}.question-card textarea{min-height:180px}.submit-panel{padding:1.5rem;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin-top:1.5rem}.submit-panel p{margin:0;font-size:.9rem;color:var(--muted)}.save-label{font-size:.8rem;color:var(--muted);min-height:1.5rem}.score-card{padding:1.8rem;display:flex;align-items:center;gap:1.6rem;margin-bottom:1.5rem}.score-circle{width:105px;height:105px;min-width:105px;border-radius:50%;background:var(--mint);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--teal)}.score-circle strong{font-size:2rem;line-height:1.2}.score-circle span{font-size:.8rem}.score-card h2{margin-bottom:.5rem}.score-card p{margin:0;color:var(--muted)}.feedback-card{padding:1.4rem 1.7rem;margin-bottom:1rem}.feedback-card .feedback-marks{font-weight:750;color:var(--teal);white-space:nowrap}.answer-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:var(--muted);margin:1rem 0 .25rem}.answer-text{white-space:pre-wrap;font-size:.95rem}.feedback-card details{margin-top:1rem}.feedback-card summary{font-size:.9rem;font-weight:700;color:var(--blue);cursor:pointer}.feedback-card details p{white-space:pre-wrap;margin-top:.75rem}.supplementary-card{padding:1.6rem;border-left:4px solid var(--gold);margin:1rem 0}.results-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.5rem 0}.attempt-list{display:flex;flex-direction:column;gap:.75rem}.attempt-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 1.2rem}.attempt-row p{margin:0;font-size:.9rem}.attempt-row small{display:block;color:var(--muted)}.source-list{font-size:.85rem;color:var(--muted);margin-top:2rem;border-top:1px solid var(--line);padding-top:1.25rem}.source-list summary{cursor:pointer;font-weight:700;color:var(--blue)}.source-list li{margin:.7rem 0}.source-list p{margin:.25rem 0}.tutor-launcher{position:fixed;right:1.5rem;bottom:1.5rem;display:flex;align-items:center;gap:.65rem;background:var(--ink);color:white;padding:.65rem 1.1rem .65rem .5rem;border:1px solid #ffffff60;border-radius:50px;box-shadow:0 6px 25px #15394a30;z-index:20;font-size:.9rem;font-weight:700}.tutor-launcher img{width:48px;height:48px;object-fit:contain;background:#f1f5f3;border-radius:50%}.tutor-panel{position:fixed;right:1.5rem;bottom:1.5rem;width:390px;max-width:calc(100vw - 2rem);height:560px;max-height:calc(100dvh - 2rem);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 60px #15394a35;display:flex;flex-direction:column;overflow:hidden;z-index:30}.tutor-head{background:var(--ink);color:white;display:flex;align-items:center;gap:.75rem;padding:1rem}.tutor-head img{width:44px;height:44px;background:#eaf1ee;object-fit:contain;border-radius:50%}.tutor-head strong{display:block}.tutor-head small{display:block;color:#cbdce2;font-size:.75rem}.tutor-head button{margin-left:auto;background:#ffffff18;color:white;font-size:1.25rem;min-width:36px;min-height:36px;border-radius:9px}.tutor-messages{flex:1;overflow-y:auto;padding:1rem;background:#f6f9fb;display:flex;flex-direction:column;gap:.8rem}.chat-bubble{font-size:.9rem;line-height:1.65;border-radius:13px;padding:.8rem 1rem;max-width:95%;white-space:pre-wrap;background:#fff;border:1px solid var(--line)}.chat-bubble.user{align-self:flex-end;background:#e3efed;border-color:#cfe1dc}.chat-bubble.assistant{align-self:flex-start}.tutor-tools{display:flex;justify-content:space-between;gap:.75rem;padding:.6rem 1rem;background:#fff;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}.tutor-tools button{background:none;color:var(--blue);font-weight:650;font-size:.8rem;padding:0}.tutor-form{display:flex;gap:.5rem;padding:.8rem}.tutor-form input{min-width:0;font-size:.9rem;padding:.7rem .8rem}.tutor-form .btn{font-size:.85rem;min-width:64px;padding:.65rem}.modal-backdrop{position:fixed;inset:0;background:#11354a75;display:flex;align-items:center;justify-content:center;padding:1.5rem;z-index:80}.modal{width:450px;max-width:100%;background:white;padding:2rem;border-radius:22px;max-height:90dvh;overflow:auto}.modal h2{margin-bottom:.75rem}.modal-actions{display:flex;gap:.7rem;justify-content:flex-end;margin-top:1.5rem}.empty-state{padding:2rem;text-align:center;color:var(--muted)}.loading-screen{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}.loading-screen p{color:var(--muted)}#toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);padding:.8rem 1.25rem;border-radius:12px;color:white;background:var(--ink);box-shadow:var(--shadow);font-size:.9rem;max-width:calc(100vw - 2rem);z-index:100;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}#toast.error{background:var(--danger)}.noscript{padding:1.5rem;text-align:center;background:#fff0f0;color:var(--danger)}.offline-banner{text-align:center;background:#fff0d5;color:#785719;font-size:.85rem;padding:.55rem 1rem}.assessment-lock{display:flex;gap:1.3rem;align-items:center;padding:1.5rem;background:#fff7e9;border:1px solid #e8d7b4;border-radius:14px;margin-bottom:1rem}.assessment-lock img{width:90px}.assessment-lock p{margin:0;font-size:.9rem}.saved-status{color:var(--teal)}
@media(max-width:900px){.login-layout{gap:1.5rem;grid-template-columns:1fr 1fr}.login-intro{padding-left:0}.login-intro h1{font-size:3.1rem}.denzil-stage img{width:280px}.denzil-stage:before{width:270px;height:230px}.denzil-note{right:-.5rem;bottom:1.5rem}.login-card{padding:1.75rem}.study-layout{grid-template-columns:200px minmax(0,1fr)}.lesson-panel{padding:1.6rem}.page{padding-left:1.5rem;padding-right:1.5rem}}
@media(max-width:680px){.topbar{padding:1.1rem 1.2rem;min-height:78px}.topbar-right{gap:.6rem}.identity{font-size:.8rem}.identity span{font-size:.7rem}.topbar-right>.btn{font-size:.8rem;padding:.5rem .7rem;min-height:38px}.brand{font-size:1.4rem}.brand img{width:31px;height:31px}.login-layout{display:flex;flex-direction:column;padding:0 1.25rem;gap:.5rem;margin-top:.5rem;min-height:0}.login-intro{width:100%;padding:0}.login-intro h1{font-size:2.65rem;max-width:470px}.login-intro p{font-size:1rem;max-width:72%}.denzil-stage{min-height:130px;position:absolute;right:-.75rem;bottom:-.5rem;width:135px}.denzil-stage img{width:145px;max-height:160px}.denzil-stage:before{width:120px;height:110px}.denzil-note{display:none}.login-card{width:100%;margin-top:1.5rem;padding:1.5rem}.site-foot{padding:1.3rem;display:block;text-align:center}.site-foot span{display:block;margin:.35rem}.page{padding:.5rem 1.1rem 6rem}.hero-welcome{grid-template-columns:1fr 100px;min-height:180px}.hero-welcome>div{padding:1.5rem 0 1.5rem 1.4rem}.hero-welcome h1{font-size:2rem}.hero-welcome p{font-size:.9rem}.hero-welcome img{width:130px;max-width:140%;align-self:end}.stats{gap:.55rem;margin:1rem 0 1.5rem}.stat{padding:1rem .8rem;border-radius:15px}.stat strong{font-size:1.55rem}.stat span{font-size:.73rem;line-height:1.4;display:block;margin-top:.2rem}.module-grid{grid-template-columns:1fr;gap:1rem}.module-card{padding:1.4rem}.module-symbol{position:absolute;right:1.3rem;top:1.3rem;width:48px;height:48px;border-radius:13px}.module-symbol svg{width:30px;height:30px}.module-card>.eyebrow{padding-right:60px;min-height:46px;display:flex;align-items:center;margin:0}.module-card h3{margin-top:.6rem}.page-head{display:block;margin-top:.5rem}.page-head h1{font-size:2.1rem}.owner-head{display:block}.student-switch{margin-bottom:1rem}.student-switch button{min-width:140px;flex:1}.section-line{align-items:flex-start}.section-line small{max-width:140px;text-align:right;font-size:.75rem}.module-heading h1{font-size:2.1rem}.tabs{margin:1rem 0}.tab{padding:.75rem .85rem;font-size:.85rem}.study-layout{display:flex;flex-direction:column;gap:1rem}.lesson-nav{position:static;display:flex;overflow-x:auto;padding:.6rem;gap:.3rem}.lesson-nav h3{display:none}.lesson-button{min-width:150px;width:auto;max-width:190px;flex-shrink:0;padding:.65rem;font-size:.8rem}.lesson-panel{padding:1.4rem 1.2rem}.lesson-panel h2{font-size:1.5rem}.prose p,.prose li{font-size:1rem;line-height:1.75}.prose table{font-size:.8rem}.prose th,.prose td{padding:.4rem}.lesson-topline{font-size:.75rem}.lesson-bottom .btn{flex:1;font-size:.85rem}.glossary dl{grid-template-columns:1fr;gap:.1rem}.glossary dd{margin-bottom:.75rem}.assessment-intro{grid-template-columns:1fr;padding:1.5rem}.assessment-intro img{display:none}.mode-options{grid-template-columns:1fr}.assessment-toolbar{padding:.8rem 1rem}.assessment-clock{font-size:1.3rem}.question-card{padding:1.3rem}.submit-panel{display:block;padding:1.3rem}.submit-panel .btn{width:100%;margin-top:1rem}.score-card{padding:1.3rem;gap:1rem}.score-circle{width:80px;height:80px;min-width:80px}.score-circle strong{font-size:1.6rem}.score-card h2{font-size:1.25rem}.feedback-card{padding:1.2rem}.tutor-launcher{right:1rem;bottom:1rem;padding:.5rem .85rem .5rem .35rem;font-size:.8rem}.tutor-launcher img{width:40px;height:40px}.tutor-panel{right:1rem;bottom:1rem;width:calc(100vw - 2rem)}.modal{padding:1.5rem}.attempt-row{align-items:flex-start}.attempt-row .btn{font-size:.8rem}.assessment-lock{padding:1rem;gap:.8rem}.assessment-lock img{width:60px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* CSP-safe dynamic progress sizes. */
.progress-track>span.progress-0{width:0%}.progress-track>span.progress-5{width:5%}.progress-track>span.progress-10{width:10%}.progress-track>span.progress-15{width:15%}.progress-track>span.progress-20{width:20%}.progress-track>span.progress-25{width:25%}.progress-track>span.progress-30{width:30%}.progress-track>span.progress-35{width:35%}.progress-track>span.progress-40{width:40%}.progress-track>span.progress-45{width:45%}.progress-track>span.progress-50{width:50%}.progress-track>span.progress-55{width:55%}.progress-track>span.progress-60{width:60%}.progress-track>span.progress-65{width:65%}.progress-track>span.progress-70{width:70%}.progress-track>span.progress-75{width:75%}.progress-track>span.progress-80{width:80%}.progress-track>span.progress-85{width:85%}.progress-track>span.progress-90{width:90%}.progress-track>span.progress-95{width:95%}.progress-track>span.progress-100{width:100%}
.stat strong .stat-denominator{display:inline;font-size:1rem;color:var(--muted)}.study-estimate-note{margin-top:1.5rem}.mode-options{border:0;padding:0}.save-label.save-error{color:var(--danger)}.owner-actions{display:flex;gap:.6rem;flex-wrap:wrap}@media(max-width:680px){.owner-actions{margin-bottom:1rem}}

.learning-outcomes{background:var(--sky);border-radius:12px;padding:.9rem 1.1rem;margin-bottom:1.5rem;font-size:.9rem}.learning-outcomes summary{font-weight:700;cursor:pointer}.learning-outcomes ul{margin-bottom:.25rem}.learning-outcomes li{font-size:.9rem}

/* Subjects are the front door to both learning and the parent progress view. */
.subject-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:1.5rem;align-items:start}.subject-card{padding:1.8rem;max-width:850px}.subject-card-top{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:1rem;min-width:0;margin-bottom:1.15rem}.subject-card-top .subject-card-action{justify-self:end;align-self:start;margin:0;max-width:100%;min-height:44px;padding:.7rem .95rem;font-size:.875rem;white-space:normal;text-align:center;overflow-wrap:anywhere}.subject-card>.badge{align-self:flex-start;margin-bottom:.8rem}.subject-symbol{width:64px;height:64px;display:grid;place-items:center;background:var(--sky);border-radius:18px;color:var(--blue)}.subject-symbol svg{width:40px;height:40px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.subject-card h3{font-size:1.7rem;margin-bottom:.7rem}.subject-card>.eyebrow{font-size:.875rem}.subject-progress{background:#f6f9fb;border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.2rem;margin:1.4rem 0}.subject-progress-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.95rem}.subject-progress-heading>span{font-weight:750;color:var(--teal);font-variant-numeric:tabular-nums}.subject-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 0}.subject-measures dt{font-size:.875rem;color:var(--muted);line-height:1.4}.subject-measures dd{margin:.4rem 0 0;font-size:1.2rem;font-weight:750;line-height:1.3}.coverage-note{color:var(--muted);line-height:1.6;max-width:68ch}.subject-coverage{max-width:850px}.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin:.75rem 0 1.5rem;font-size:.9rem;line-height:1.5;color:var(--muted)}.breadcrumbs button{padding:.35rem 0;background:transparent;color:var(--blue);font-weight:700;text-decoration:underline;text-underline-offset:3px}.breadcrumbs [aria-current]{color:var(--muted)}.activation-layout{max-width:650px;margin:1rem auto 4rem;padding:0 1.5rem}.activation-card{padding:2rem 2.3rem;overflow:hidden}.activation-card h1{font-size:2.3rem;max-width:75%}.activation-denzil{width:100px;height:115px;object-fit:contain;float:right;margin:0 0 1rem 1rem}.activation-note{margin:1.2rem 0 0;clear:both}
@media(max-width:900px){.subject-measures{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-card{max-width:none}}
@media(max-width:680px){.subject-grid{grid-template-columns:1fr;gap:1rem}.subject-card{padding:1.4rem}.subject-card h3{font-size:1.5rem}.subject-symbol{width:52px;height:52px;border-radius:14px}.subject-symbol svg{width:34px;height:34px}.subject-progress{padding:1rem}.subject-progress-heading{align-items:flex-start;font-size:.9rem}.subject-measures{gap:.9rem}.subject-measures dt{font-size:.875rem}.subject-measures dd{font-size:1.1rem}.subject-card-top{grid-template-columns:52px minmax(0,1fr);gap:.75rem;margin-bottom:1rem}.subject-card-top .subject-card-action{padding:.65rem .8rem;font-size:.875rem}.breadcrumbs{margin:.5rem 0 1rem;gap:.4rem}.activation-layout{padding:0 1.1rem;margin:.5rem auto 3rem}.activation-card{padding:1.5rem}.activation-card h1{font-size:1.9rem}.activation-denzil{width:75px;height:95px}.subject-coverage{font-size:.9rem}}

/* Narration is generated from the saved lesson, with one real audio clip per passage. */
.lesson-narrator{border:1px solid #cbdfdd;background:#f0f7f5;border-radius:14px;padding:1rem 1.15rem;margin:0 0 1.5rem}.audio-heading{display:flex;align-items:center;gap:.7rem;margin-bottom:.8rem}.audio-heading strong{font-size:.95rem;display:block}.audio-heading small{display:block;color:var(--muted);font-size:.8rem}.audio-speaker{display:grid;place-items:center;background:#dceee8;color:var(--teal);height:36px;width:36px;border-radius:10px;font-size:1.45rem}.audio-actions{display:flex;gap:.55rem .75rem;align-items:center;flex-wrap:wrap}.audio-speed{display:flex;align-items:center;gap:.45rem;color:var(--muted);font-size:.8rem}.audio-speed select{min-height:36px;width:auto;font-size:.8rem;line-height:1.2;padding:.45rem 1.6rem .45rem .6rem;border-color:#c4d7d6;border-radius:8px}.audio-follow{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.8rem}.audio-follow input{accent-color:var(--teal);width:16px;height:16px}.audio-status{font-size:.8rem;color:var(--muted);margin:.6rem 0 0;min-height:1.25rem}.lesson-body .is-reading{background:#fff0c9;outline:5px solid #fff0c9;border-radius:3px;scroll-margin-top:5rem;transition:background .15s}.reply-audio:empty{display:none}.reply-audio{padding:.8rem 1rem;background:#eff6f4;border-top:1px solid var(--line)}.reply-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:.6rem;white-space:normal}.reply-actions button{background:transparent;padding:.2rem 0;color:var(--blue);font-size:.8rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}.saved-answer{white-space:pre-wrap}.chat-bubble>div:first-child{white-space:pre-wrap}.chat-bubble{white-space:normal}.tutor-readonly{padding:.8rem 1rem;margin:0;color:var(--muted);font-size:.8rem;border-top:1px solid var(--line)}

/* Denzil uses the approved illustration as an SVG rig: tail, eyelids and mouth move independently. */
.denzil-dock{position:fixed;right:1.25rem;bottom:1rem;z-index:20;width:138px;display:flex;align-items:center;flex-direction:column;filter:drop-shadow(0 3px 3px #15394a12)}.denzil-avatar-button{display:block;width:138px;height:138px;padding:0;background:transparent;border-radius:18px;position:relative}.denzil-avatar-button:hover{background:#e3eeec55}.denzil-rig{display:block;width:100%;height:100%;overflow:visible}.denzil-tail{transform-origin:207px 630px;animation:denzil-tail-idle 8s ease-in-out infinite}.denzil-pose{transform-origin:365px 690px;animation:denzil-breathe 4.4s ease-in-out infinite}.denzil-blink{opacity:0;animation:denzil-blink 6.2s linear infinite}.denzil-mouth{opacity:0;transform-origin:450px 244px;transform:scaleY(.12)}.is-thinking .denzil-pose{animation:denzil-think 3s ease-in-out infinite}.is-thinking .denzil-tail{animation:denzil-tail-idle 3.2s ease-in-out infinite}.is-speaking .denzil-mouth{opacity:1;animation:denzil-talk .42s steps(2,end) infinite}.is-speaking .denzil-tail{animation:denzil-wag .65s ease-in-out infinite}.is-celebrating .denzil-tail{animation:denzil-wag .28s ease-in-out infinite}.is-celebrating .denzil-pose{animation:denzil-cheer 1.4s ease-in-out 3}.denzil-caption{display:block;background:var(--ink);color:#fff;border-radius:16px;min-height:34px;padding:.35rem .85rem;font-size:.8rem;font-weight:750;box-shadow:0 3px 12px #15394a18;margin-top:-6px;z-index:1;position:relative;white-space:nowrap}.denzil-caption:hover{background:#245b6e}.denzil-controls{display:flex;justify-content:center;align-items:center;gap:.2rem;margin-top:.3rem;background:#f4f7fbeb;border:1px solid var(--line);border-radius:9px;padding:.1rem .15rem}.denzil-controls button{font-size:.75rem;padding:.3rem .4rem;min-height:28px;background:transparent;color:var(--muted);border-radius:6px}.denzil-controls button:hover{background:white;color:var(--ink)}.denzil-controls button:last-child{font-size:1.1rem;line-height:1}.denzil-minimised{position:fixed;right:1.25rem;bottom:1.1rem;z-index:20;display:flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border:1px solid var(--line);border-radius:25px;background:white;color:var(--ink);font-size:.85rem;font-weight:700;box-shadow:var(--shadow)}.denzil-minimised img{width:23px;height:23px}.tutor-panel{bottom:1.25rem;right:11rem;height:560px;max-height:calc(100dvh - 2.5rem);width:400px}.tutor-messages{min-height:110px}.tutor-tools{align-items:center;min-height:43px;flex-wrap:wrap}.tutor-tools button{min-height:28px}.site-foot{padding-right:12rem;justify-content:flex-start}.is-still .denzil-pose,.is-still .denzil-tail,.is-still .denzil-blink,.is-still .denzil-mouth{animation:none!important}.is-still .denzil-pose,.is-still .denzil-tail{transform:none}.is-still .denzil-blink{opacity:0}.is-still .denzil-mouth{opacity:0}
@keyframes denzil-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.006,.997)}}
@keyframes denzil-blink{0%,42%,45%,87%,90%,100%{opacity:0}43%,44%,88%,89%{opacity:1}}
@keyframes denzil-tail-idle{0%,38%,60%,100%{transform:rotate(0)}42%,50%{transform:rotate(-7deg)}46%,54%{transform:rotate(5deg)}}
@keyframes denzil-wag{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(8deg)}}
@keyframes denzil-think{0%,100%{transform:rotate(0)}35%,65%{transform:rotate(-3deg)}}
@keyframes denzil-talk{0%,100%{transform:scaleY(.15)}25%{transform:scaleY(.55)}50%{transform:scaleY(1)}75%{transform:scaleY(.35)}}
@keyframes denzil-cheer{0%,65%,100%{transform:translateY(0)}30%{transform:translateY(-12px)}}
@media(max-width:900px){.denzil-dock{right:.7rem;width:112px}.denzil-avatar-button{width:112px;height:112px}.tutor-panel{right:8.25rem;width:370px}.site-foot{padding-right:9rem}}
@media(max-width:680px){.lesson-narrator{padding:.85rem}.audio-actions{gap:.55rem}.audio-actions>.btn{padding:.5rem .7rem}.audio-follow{min-height:36px}.denzil-dock{right:.5rem;bottom:.5rem;width:100px}.denzil-avatar-button{width:100px;height:100px}.denzil-caption{font-size:.75rem;min-height:30px;padding:.3rem .7rem}.denzil-controls{gap:0}.denzil-controls button{padding:.3rem;font-size:.7rem}.tutor-panel{right:.6rem;bottom:11.2rem;width:390px;max-width:calc(100vw - 1.2rem);height:520px;max-height:calc(100dvh - 12rem)}.tutor-head{padding:.65rem .8rem}.tutor-head img{width:36px;height:36px}.tutor-messages{padding:.8rem}.tutor-tools{padding:.35rem .75rem}.tutor-form{padding:.65rem}.reply-audio{padding:.6rem .75rem}.denzil-minimised{right:.6rem;bottom:.7rem}.site-foot{padding-right:7.2rem;min-height:145px}.login-layout+.site-foot{padding-right:1.1rem}}
@media(prefers-reduced-motion:reduce){.denzil-pose,.denzil-tail,.denzil-blink,.denzil-mouth{animation:none!important}.denzil-blink,.denzil-mouth{opacity:0!important}.lesson-body .is-reading{transition:none}}
.reply-sources,.reply-cost{font-size:.8rem;white-space:normal;margin-top:.7rem}.reply-sources summary,.reply-cost summary{cursor:pointer;color:var(--blue);font-weight:650}.reply-sources ul{margin:.5rem 0 0;padding-left:1rem}.reply-sources li{line-height:1.5}.reply-cost dl{display:grid;grid-template-columns:1fr 1fr;gap:.25rem .7rem;margin:.6rem 0}.reply-cost dt{color:var(--muted)}.reply-cost dd{margin:0;overflow-wrap:anywhere}.reply-cost p{font-size:.75rem;color:var(--muted);margin:.5rem 0 0}.denzil-controls button{font-size:.875rem;padding:.25rem .3rem}.audio-heading strong{font-size:1rem}.audio-speed,.audio-speed select,.audio-follow,.reply-actions button{font-size:.875rem}
/* Keep the mobile lesson strip's own scroll area inside the study column. */
@media(max-width:680px){.study-layout>.lesson-nav,.study-layout>.lesson-panel{min-width:0;max-width:100%}.study-layout>.lesson-nav{width:100%;align-self:stretch}}

/* The companion keeps the same SVG nodes as its activity changes. */
.denzil-acting-rig .denzil-sleep-layer,.denzil-acting-rig .denzil-getup-layer,.denzil-acting-rig .denzil-stretch-layer,.denzil-acting-rig .denzil-awake-layer,.denzil-acting-rig .denzil-reading-layer{opacity:0;visibility:hidden;transform-origin:360px 690px}
.is-sleeping .denzil-sleep-layer,.is-awake .denzil-awake-layer,.is-speaking .denzil-awake-layer,.is-celebrating .denzil-awake-layer,.is-reading .denzil-reading-layer{opacity:1;visibility:visible}
.denzil-sleep-breathe{transform-origin:350px 495px;animation:denzil-sleep-breathe 3.7s ease-in-out infinite}.denzil-snores text{font:700 50px ui-rounded,system-ui,sans-serif;fill:#367e80;stroke:#fff;stroke-width:5px;paint-order:stroke;opacity:0;animation:denzil-snore 3.6s ease-out infinite}.denzil-snores text:nth-child(2){animation-delay:1.1s}.denzil-snores text:nth-child(3){font-size:60px;animation-delay:2.2s}
.is-waking .denzil-sleep-layer{visibility:visible;animation:denzil-wake-rest 3.4s ease-in-out both}.is-waking .denzil-getup-layer{visibility:visible;animation:denzil-wake-getup 3.4s ease-in-out both}.is-waking .denzil-stretch-layer{visibility:visible;animation:denzil-wake-stretch 3.4s ease-in-out both}.is-waking .denzil-awake-layer{visibility:visible;animation:denzil-wake-seated 3.4s ease-in-out both}.denzil-snarf{opacity:0;visibility:hidden}.denzil-snarf text{font:800 65px ui-rounded,system-ui,sans-serif;fill:var(--ink)}.is-waking .denzil-snarf{visibility:visible;animation:denzil-snarf 3.4s ease-in-out both}.is-waking .denzil-snores{display:none}.is-awake .denzil-tail{animation:denzil-wag 1.1s ease-in-out 3,denzil-tail-idle 8s ease-in-out 3.3s infinite}.is-awake .denzil-pose{animation:denzil-awake-breathe 3.8s ease-in-out infinite}
.denzil-reading-head{transform-origin:382px 309px;animation:denzil-read-scan 4s ease-in-out infinite}.denzil-reading-eyelids{opacity:0;animation:denzil-blink 5.4s linear infinite}.denzil-reading-paw{transform-origin:330px 448px;animation:denzil-paw-page 3.6s ease-in-out infinite}.denzil-page-turn{transform-origin:182px 357px;opacity:0;animation:denzil-turn-page 3.6s ease-in-out infinite}
.denzil-dock:not(.is-sleeping):not(.is-waking) .denzil-sleep-layer *,.denzil-dock:not(.is-reading) .denzil-reading-layer *,.denzil-dock:not(.is-awake):not(.is-speaking):not(.is-celebrating):not(.is-waking) .denzil-awake-layer *{animation-play-state:paused}
.denzil-caption{max-width:160px;line-height:1.3}.denzil-rig{isolation:isolate}.denzil-avatar-button:focus-visible{outline-offset:0}
.denzil-stage .denzil-welcome-rig{width:340px;height:340px;max-height:350px;flex:none}.denzil-welcome .denzil-tail{animation:denzil-welcome-wag 2.2s ease-in-out infinite}.denzil-welcome .denzil-pose{animation:denzil-welcome-breathe 4.8s ease-in-out infinite}
.is-still .denzil-rig *{animation:none!important;transition:none!important}.is-still .denzil-page-turn,.is-still .denzil-reading-eyelids,.is-still .denzil-snarf{opacity:0;visibility:hidden}.is-still .denzil-snores text{opacity:.65;transform:none}.is-offscreen .denzil-rig *{animation-play-state:paused!important}
.denzil-controls button:disabled{cursor:default;opacity:.7}
@keyframes denzil-sleep-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.012,1.035)}}
@keyframes denzil-snore{0%{opacity:0;transform:translate(0,8px) scale(.8)}22%{opacity:.85}85%{opacity:.6}100%{opacity:0;transform:translate(10px,-38px) scale(1.1)}}
@keyframes denzil-wake-rest{0%,5%{opacity:1}24%,100%{opacity:0}}
@keyframes denzil-wake-getup{0%{opacity:0}16%,28%{opacity:1}42%,100%{opacity:0}}
@keyframes denzil-wake-stretch{0%,25%{opacity:0}39%,73%{opacity:1}88%,100%{opacity:0}}
@keyframes denzil-wake-seated{0%,73%{opacity:0;transform:translateY(7px)}96%,100%{opacity:1;transform:translateY(0)}}
@keyframes denzil-snarf{0%,39%,81%,100%{opacity:0;transform:translateY(4px)}47%,70%{opacity:1;transform:translateY(-4px)}}
@keyframes denzil-awake-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.012,.994)}}
@keyframes denzil-read-scan{0%,100%{transform:rotate(1.6deg) translateX(2px)}28%{transform:rotate(-2.5deg) translateX(-4px)}50%{transform:rotate(-1.3deg) translateY(3px)}78%{transform:rotate(1deg) translateX(3px)}}
@keyframes denzil-paw-page{0%,16%,62%,100%{transform:rotate(0)}30%{transform:rotate(-5deg) translate(-4px,-5px)}48%{transform:rotate(2deg)}}
@keyframes denzil-turn-page{0%,14%,65%,100%{opacity:0;transform:scaleX(1)}18%{opacity:1;transform:scaleX(1)}36%{opacity:1;transform:translateY(-12px) skewY(-12deg) scaleX(.12)}51%{opacity:1;transform:translateY(2px) scaleX(-.92)}63%{opacity:0;transform:scaleX(-1)}}
@keyframes denzil-welcome-wag{0%,100%{transform:rotate(-7deg)}35%{transform:rotate(7deg)}65%{transform:rotate(-4deg)}82%{transform:rotate(4deg)}}
@keyframes denzil-welcome-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.009,.996)}}
@media(max-width:900px){.denzil-stage .denzil-welcome-rig{width:280px;height:280px}}
@media(max-width:680px){.denzil-stage{position:relative;right:auto;bottom:auto;width:100%;min-height:160px;margin:-.3rem 0 1.2rem}.denzil-stage .denzil-welcome-rig{width:165px;height:165px}.denzil-stage:before{width:145px;height:130px}.login-intro h1{font-size:2.4rem;margin-bottom:.5rem}.login-card{margin-top:.5rem}.denzil-caption{font-size:.75rem;max-width:125px}.denzil-controls button{min-height:30px}}
@media(prefers-reduced-motion:reduce){.denzil-rig *{animation:none!important;transition:none!important}.denzil-reading-eyelids,.denzil-page-turn,.denzil-snarf{opacity:0!important;visibility:hidden!important}.denzil-snores text{opacity:.65;transform:none}}

/* PurleCRM's navy and coral identity, scoped to the DogLearn stylesheet. */
.topbar{background:var(--navy);border-bottom:4px solid var(--coral);border-radius:0 0 20px 20px;color:#fff}
.topbar .brand,.topbar .brand:hover,.topbar .identity{color:#fff}
.topbar .identity span,.topbar-right>.muted{color:#dce8f7}
.topbar .btn.ghost{color:#fff}
.topbar .btn.ghost:hover{background:#ffffff1f;color:#fff}
.btn{background:var(--navy);border-color:var(--navy)}
.btn:hover{background:var(--navy-hover);border-color:var(--navy-hover);color:#fff}
.btn.secondary{background:#fff;color:var(--navy);border-color:var(--navy)}
.btn.secondary:hover{background:#e8eff9;color:var(--navy);border-color:var(--navy)}
.btn.ghost{background:transparent;color:var(--navy);border-color:transparent}
.btn.ghost:hover{background:#e8eff9;color:var(--navy);border-color:transparent}
.btn.soft{background:var(--mint);color:#165c58;border-color:#b9d9ce}
.btn.soft:hover{background:#d2e9de;color:#165c58;border-color:#a4cbb9}
.btn.danger{background:#fff0f0;color:var(--danger);border-color:#e8c4c5}
.btn.danger:hover{background:#fee0df;color:var(--danger);border-color:#d9a7a7}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:var(--coral)}
.eyebrow,.login-intro h1,.lesson-panel h2,.check-box h3,.check-box summary,.glossary summary{color:var(--navy)}
.login-card,.subject-card,.module-card{border-top:4px solid var(--coral)}
.denzil-stage:before{background:linear-gradient(135deg,#d9e6f8,#fbe4de)}
.hero-welcome{background:linear-gradient(115deg,var(--navy),var(--navy-hover));border-color:var(--navy);color:#fff}
.hero-welcome .eyebrow{color:#ffd6cc}
.hero-welcome p{color:#e0eafa}
.subject-symbol,.module-card .module-symbol,.module-card:nth-child(2) .module-symbol{background:var(--navy);color:#fff}
.subject-progress{background:#f0f4fb;border-color:#c3d1e5}
.subject-progress-heading>span{color:var(--navy)}
.student-switch button.active{border-color:var(--navy);box-shadow:0 0 0 2px #11437d1a;background:#edf3fb}
.tab.active{color:var(--navy);border-bottom-color:var(--coral);background:#e8eff9}
.lesson-button.active{background:var(--navy);color:#fff}
.lesson-button.active .lesson-number{background:#fff;color:var(--navy);border-color:#fff}
.lesson-button.active.done .lesson-number{background:var(--teal);color:#fff;border-color:var(--teal)}
.lesson-narrator,.reply-audio{background:#edf3fb;border-color:#c3d1e5}
.audio-heading,.audio-heading strong{color:var(--navy)}
.audio-speaker{background:var(--navy);color:#fff}
.check-box{background:#f0f4fb;border-color:#c3d1e5}
.why{background:#edf3fb;border-left:3px solid var(--coral);color:#244b76}
.mode-option:has(input:checked),.choice:has(input:checked){background:#edf3fb;border-color:var(--navy)}
.mode-option input,.choice input,.audio-follow input{accent-color:var(--navy)}
.assessment-toolbar,.tutor-head,.denzil-caption{background:var(--navy)}
.assessment-toolbar span,.tutor-head small{color:#dce8f7}
.denzil-caption:hover{background:var(--navy-hover)}
.chat-bubble.user{background:#e8eff9;border-color:#c3d1e5}

/* Module actions stay in their own top-right cell, including narrow cards. */
.module-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;min-width:0;margin-bottom:1.15rem}
.module-card-top .module-symbol{position:static;flex:0 0 auto;margin:0}
.module-card-top .module-card-action{flex:0 1 auto;align-self:flex-start;margin:0;max-width:calc(100% - 84px);min-height:44px;padding:.7rem .95rem;font-size:.875rem;white-space:normal;text-align:center;overflow-wrap:anywhere}
.module-card>.eyebrow{padding:0;min-height:0;display:block;margin:0 0 .7rem}
.module-card .module-meta{margin-top:auto}
.module-card .card-progress{margin-bottom:0}
@media(max-width:680px){.topbar{border-radius:0 0 15px 15px}.module-card-top{gap:.75rem;margin-bottom:1rem}.module-card-top .module-symbol{width:48px;height:48px;border-radius:13px}.module-card-top .module-card-action{max-width:calc(100% - 60px);padding:.65rem .8rem;font-size:.875rem}.module-card-top .module-symbol svg{width:30px;height:30px}}
.development-badge{background:#fff0e9;color:#87452f}.subject-in-development{display:flex;flex-direction:column}.subject-award{font-size:.875rem;font-weight:700;color:var(--navy)}.subject-development{max-width:780px;padding:2rem;border-top:4px solid var(--coral)}.subject-development h2{margin:1.2rem 0 .85rem;color:var(--navy)}.subject-development>.btn{margin-top:.5rem}@media(max-width:680px){.subject-development{padding:1.4rem}.subject-development h2{font-size:1.4rem}}

/* Exam work keeps its sources, method and saved evidence beside the question. */
.exam-intro>.notice p:last-child,.exam-result-note p:last-child,.marking-reviews p:last-child{margin-bottom:0}
.exam-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem;margin:1.5rem 0}
.exam-form-card{padding:1.6rem;border-top:4px solid var(--coral);min-width:0}
.exam-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;flex-wrap:wrap;margin-bottom:1rem}
.exam-form-card h2{font-size:1.35rem}.exam-form-card>p{color:var(--muted)}
.exam-form-card .mode-options{margin-top:1.4rem}.exam-form-card legend{font-size:.875rem;font-weight:700;margin-bottom:.5rem}
.exposure-note{padding:.7rem .85rem;background:#fff2d9;border-radius:10px;color:#785310!important}
.exam-evidence{display:flex;flex-direction:column;gap:.3rem;padding:1.1rem 1.3rem;border:1px solid #b9d4cb;border-radius:14px;background:#e8f3ed;margin:1.25rem 0}
.exam-evidence small,.exam-evidence>span{color:#345b51}.exam-evidence small{font-size:.875rem}
.question-stimulus{margin:1.25rem 0 1.5rem;border:1px solid #bdccdf;border-left:4px solid var(--coral);border-radius:12px;padding:1.15rem 1.25rem;background:#f5f8fc;min-width:0}
.question-stimulus h4{color:var(--navy)}.stimulus-body{min-width:0;overflow-wrap:anywhere}.stimulus-body>p:last-child,.stimulus-body>figure:last-child{margin-bottom:0}
.stimulus-body svg{display:block;width:100%;height:auto;max-height:560px;margin:.75rem auto;overflow:visible}
.stimulus-body img{display:block;max-height:560px;object-fit:contain;margin:.75rem auto}
.stimulus-body table{width:100%;border-collapse:collapse;margin:1rem 0}.stimulus-body th,.stimulus-body td{padding:.55rem .7rem;border:1px solid #c7d3e2;text-align:left}
.source-caption{font-size:.875rem;color:var(--muted);margin:.8rem 0 0}.source-link{font-size:.875rem;font-weight:650;margin:.7rem 0 0;overflow-wrap:anywhere}
.working-response{display:grid;gap:.6rem}.working-response>label{font-weight:700;font-size:.95rem}.working-response>label:not(:first-child){margin-top:.6rem}.working-response textarea{min-height:180px}.working-response .muted{margin:.2rem 0 0}
.graph-response{min-width:0;margin:1rem 0}.response-graph{width:100%;height:auto;display:block;aspect-ratio:4/3;max-width:780px;margin:0 auto;background:#fff;border:1px solid #ccd8e7;border-radius:12px;touch-action:manipulation}
.graph-editable{cursor:crosshair}.graph-grid line{stroke:#d6dfeb;stroke-width:1}.graph-boundary{fill:none;stroke:var(--navy);stroke-width:1.7}.graph-labels text{font-family:inherit;font-size:23px;fill:var(--ink)}
.graph-response-points circle{fill:var(--coral);stroke:#fff;stroke-width:1.7}.graph-response-line{fill:none;stroke:var(--navy);stroke-width:2.5;stroke-linejoin:round}
.graph-coordinate-controls{display:flex;gap:.8rem;align-items:flex-end;flex-wrap:wrap;padding:1rem 1.1rem;background:#edf3fb;border:1px solid var(--line);border-radius:12px;margin:.8rem 0}
.graph-coordinate-controls>div{flex:1 1 120px;min-width:0}.graph-coordinate-controls label{display:block;font-size:.875rem;font-weight:700;line-height:1.4;margin-bottom:.4rem}
.graph-coordinate-controls input[type=number]{width:100%;border:1px solid #bccdd8;border-radius:10px;min-height:46px;padding:.6rem .8rem;background:#fff;color:var(--ink)}
.graph-coordinate-controls .btn{flex:0 0 auto}.graph-point-summary{margin:.8rem 0;font-size:.95rem}.graph-point-list{display:flex;gap:.6rem;flex-wrap:wrap;padding:0;list-style:none;margin:.6rem 0}.graph-point-list li{display:flex;align-items:center;gap:.75rem;padding:.45rem .7rem;background:#f0f4fa;border:1px solid var(--line);border-radius:8px;margin:0}.graph-point-list button{font-size:.875rem;min-height:28px}
.criteria-feedback{margin:1.2rem 0;overflow-x:auto}.criteria-feedback h4{margin-bottom:.7rem}.criteria-feedback table{width:100%;border-collapse:collapse;font-size:.95rem}.criteria-feedback th,.criteria-feedback td{padding:.65rem .7rem;border:1px solid var(--line);text-align:left;vertical-align:top}.criteria-feedback thead{background:#edf3fb}.criteria-feedback td:nth-child(2){white-space:nowrap;font-variant-numeric:tabular-nums}
.saved-working{padding:1rem 1.15rem;background:#f4f7fb;border:1px solid var(--line);border-radius:12px;margin:.8rem 0 1.2rem;overflow-wrap:anywhere}.saved-working dt{font-weight:700;margin-bottom:.35rem}.saved-working dd{margin:0 0 1rem;white-space:normal}.saved-working dd:last-child{margin-bottom:0}
.attempt-title{margin:.2rem 0;font-size:.95rem}.reviewed-badge{display:inline-flex;margin:.65rem 0 0;background:#e2eee8;color:#23613b}.marking-reviews{border-left:4px solid var(--teal)}.marking-reviews h2{font-size:1.15rem;margin-bottom:.6rem}.marking-reviews ul{margin-bottom:0}.exam-result-note{border-left:4px solid var(--coral)}
.lesson-source-links,.repeated-source{margin:1rem 0;padding:.85rem 1rem;background:#edf3fb;border:1px solid var(--line);border-radius:11px;font-size:.95rem}.lesson-source-links summary,.repeated-source>summary{font-weight:700;color:var(--navy);cursor:pointer}.lesson-source-links ul{margin-bottom:0}.repeated-source>.question-stimulus{margin:.8rem 0 0;background:#fff}.lesson-source-links a{overflow-wrap:anywhere}
@media(max-width:900px){.exam-form-grid{grid-template-columns:1fr}}
@media(max-width:680px){.exam-form-card{padding:1.2rem}.exam-form-heading{gap:.6rem}.question-stimulus{padding:.85rem .9rem;margin:1rem 0 1.2rem}.question-stimulus h4{font-size:1rem}.source-caption,.source-link{font-size:.875rem}.graph-coordinate-controls{padding:.8rem;gap:.65rem}.graph-coordinate-controls>div{flex-basis:calc(50% - .5rem)}.graph-coordinate-controls .btn{width:100%}.criteria-feedback th,.criteria-feedback td{padding:.5rem;font-size:.875rem}.graph-labels text{font-size:28px}.working-response textarea{min-height:160px}}
