:root{--navy:#073b83;--blue:#1464d8;--blue2:#3989f4;--sky:#eaf4ff;--yellow:#ffd64f;--ink:#18304f;--muted:#71829a;--line:#e8eef6;--surface:#fff;--bg:#f6f9fd;--green:#25a978;--radius:22px;--shadow:0 12px 35px rgba(20,62,117,.07)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Nunito',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px}.app-shell{min-height:100vh}.topbar{height:78px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,54px);border-bottom:1px solid #edf1f7;position:sticky;top:0;z-index:30}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--navy)}.brand-symbol{height:43px;width:43px;border-radius:14px;background:var(--navy);display:grid;place-items:center;color:white;font-weight:900;font-size:22px;position:relative;box-shadow:0 6px 14px #073b8329}.brand-symbol span{position:absolute;font-size:12px;color:var(--yellow);right:5px;top:4px}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy b{font-size:17px;font-weight:900;letter-spacing:-.3px}.brand-copy small{font-size:9px;letter-spacing:1.05px;color:#7b8aa1;font-weight:900;margin-top:5px}.brand-copy i{font-style:normal;color:#f2b91c}.top-actions{display:flex;align-items:center;gap:12px}.language-wrap{height:40px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#667b96}.language-wrap select{border:0;background:transparent;font:inherit;color:var(--ink);font-weight:800;outline:0;max-width:120px}.parent-button{display:flex;align-items:center;gap:8px;background:#fff8dc;border:1px solid #ffeaa0;border-radius:12px;padding:10px 14px;font:inherit;font-weight:900;color:#7a5a00;cursor:pointer}.mobile-menu{display:none;border:0;background:var(--sky);border-radius:10px;padding:9px 12px;font-size:19px;color:var(--navy)}.app-layout{display:grid;grid-template-columns:235px minmax(0,1fr);max-width:1600px;margin:auto;min-height:calc(100vh - 140px)}.sidebar{padding:29px 15px 20px 25px;background:#fff;border-right:1px solid #edf1f7;display:flex;flex-direction:column;gap:7px}.sidebar-label{font-size:10px;letter-spacing:1.3px;color:#9aa8ba;font-weight:900;padding:0 13px 12px}.nav-item{display:flex;align-items:center;gap:13px;border:0;background:transparent;border-radius:13px;padding:13px 13px;text-align:left;color:#71829a;font:inherit;font-weight:800;cursor:pointer;transition:.2s}.nav-item:hover{background:#f5f8fd;color:var(--navy)}.nav-item.active{background:#eaf3ff;color:var(--blue);box-shadow:inset 3px 0 var(--blue)}.nav-icon{width:23px;text-align:center;font-size:21px;font-weight:900}.nav-arrow{margin-left:auto;font-size:22px}.sidebar-bottom{margin-top:auto;background:#f2f7ff;border:1px solid #e4efff;border-radius:18px;padding:18px 15px;text-align:center;position:relative;overflow:hidden}.mini-mascot{font-size:34px;margin-bottom:5px}.sidebar-bottom>b{font-size:13px;color:var(--navy)}.sidebar-bottom p{font-size:11px;line-height:1.55;color:#7a8ba2;margin:7px 0 14px}.sidebar-stars{border-top:1px solid #dce9fb;padding-top:12px;font-size:11px;color:#6e7f95}.sidebar-stars strong{color:var(--navy)}.main-content{padding:34px clamp(18px,3.5vw,52px) 42px;min-width:0}.view{display:none;animation:appear .25s ease}.view.active{display:block}@keyframes appear{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:1.35px;color:#6e8ab1;font-weight:900}.eyebrow-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#25b77a;margin-right:6px}.welcome-row h1,.page-heading h1{font-size:clamp(27px,3vw,36px);line-height:1.16;letter-spacing:-1.2px;color:#122d50;margin:8px 0 7px;font-weight:900}.wave{font-size:.8em}.lead,.page-heading p{margin:0;color:#8290a5;font-size:14px}.date-chip{display:flex;align-items:center;gap:10px;padding:11px 15px;border:1px solid #e9eff8;border-radius:15px;background:white;white-space:nowrap}.date-chip>span{font-size:25px}.date-chip div{display:flex;flex-direction:column}.date-chip b{font-size:12px;color:#37506f}.date-chip small{font-size:10px;color:#95a2b3;margin-top:2px}.hero-card{min-height:290px;position:relative;overflow:hidden;border-radius:25px;background:linear-gradient(112deg,#073b83 0%,#1056b2 48%,#1f75db 100%);color:#fff;display:grid;grid-template-columns:1.12fr .88fr;box-shadow:0 15px 32px #0c4d9d20}.hero-content{padding:31px 35px 25px;position:relative;z-index:2}.hero-pill{display:inline-flex;padding:7px 11px;border-radius:30px;background:#ffffff18;border:1px solid #ffffff35;font-size:9px;letter-spacing:1.1px;font-weight:900;color:#e2efff}.hero-content h2{font-size:clamp(31px,3.7vw,45px);line-height:1.04;letter-spacing:-1.5px;margin:16px 0 10px;font-weight:900}.hero-content h2 span{color:var(--yellow)}.hero-content p{color:#d6e8ff;font-size:13px;max-width:370px;line-height:1.6;margin:0 0 19px}.primary-button{border:0;border-radius:12px;background:var(--yellow);color:#173966;padding:12px 16px;font:inherit;font-size:12px;font-weight:900;box-shadow:0 5px 0 #e9b82e;cursor:pointer;transition:transform .15s}.primary-button:hover{transform:translateY(-2px)}.primary-button span{padding-left:12px;font-size:17px}.hero-benefits{display:flex;gap:15px;flex-wrap:wrap;margin-top:22px;color:#e3efff;font-size:10px;font-weight:800}.hero-illustration{position:relative;min-height:280px;overflow:hidden;background:radial-gradient(ellipse at 55% 90%,#ffffff18,transparent 50%)}.hero-sun{position:absolute;right:20%;top:20px;font-size:32px;color:#ffe26b}.hero-cloud{position:absolute;background:#ffffff20;border-radius:30px;width:80px;height:20px}.hero-cloud:before,.hero-cloud:after{content:'';position:absolute;background:inherit;border-radius:50%;bottom:4px;width:30px;height:30px}.hero-cloud:before{left:13px}.hero-cloud:after{right:13px}.cloud-one{top:57px;left:12%}.cloud-two{top:100px;right:4%;transform:scale(.7)}.hero-fox{position:absolute;z-index:2;left:32%;bottom:30px;font-size:115px;filter:drop-shadow(0 8px 3px #002d6a30);animation:bob 3s ease-in-out infinite}.hero-book{position:absolute;z-index:3;left:18%;bottom:23px;font-size:47px;transform:rotate(-13deg)}.floating-note{position:absolute;font-size:35px;filter:drop-shadow(0 5px 6px #002d6a35)}.note-one{left:12%;top:25%;transform:rotate(-14deg)}.note-two{right:13%;bottom:24%;transform:rotate(10deg)}.hero-speech{position:absolute;right:9%;top:34%;background:#fff;color:var(--navy);padding:11px 13px;border-radius:13px 13px 13px 3px;font-size:11px;font-weight:900;box-shadow:0 7px 15px #002d6a2c;transform:rotate(3deg)}.hero-speech span{color:#edb800}.hero-ground{position:absolute;bottom:-65px;left:5%;width:90%;height:115px;border-radius:50%;background:#ffffff13}.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:31px 0 15px}.section-title h2{margin:5px 0 4px;font-size:22px;letter-spacing:-.6px;font-weight:900;color:#183452}.section-title p{margin:0;font-size:12px;color:#8a98aa}.subtle-link{border:0;background:transparent;color:var(--blue);font:inherit;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap;padding:8px}.subtle-link span{font-size:18px;margin-left:7px}.class-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.class-card{position:relative;overflow:hidden;min-height:145px;border:1px solid var(--line);background:white;border-radius:18px;text-align:left;padding:16px 15px;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s;color:var(--ink)}.class-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#c7ddfa}.class-card:focus-visible,.nav-item:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #8cbcff;outline-offset:2px}.class-card:before{content:'';position:absolute;width:100px;height:100px;border-radius:50%;right:-25px;bottom:-45px;background:var(--tint);opacity:.85}.class-card .class-emoji{font-size:31px;display:block;margin-bottom:12px;position:relative;z-index:1}.class-card .class-name{display:block;font-size:16px;font-weight:900;position:relative;z-index:1}.class-card .class-sub{display:block;font-size:10px;color:#8a99ac;margin-top:3px;position:relative;z-index:1}.class-card .class-arrow{position:absolute;right:13px;top:15px;color:var(--accent);font-size:20px;font-weight:900}.class-card .mini-tag{position:absolute;bottom:12px;left:15px;font-size:9px;font-weight:900;color:var(--accent);letter-spacing:.2px}.class-card .class-emoji{filter:drop-shadow(0 3px 1px #18304f10)}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.progress-card,.tip-card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:20px}.card-heading{display:flex;align-items:center;justify-content:space-between}.card-heading h3,.tip-card h3{margin:4px 0 0;font-size:17px;font-weight:900;letter-spacing:-.3px}.heading-emoji{font-size:27px}.progress-stats{display:flex;gap:12px;margin:18px 0 15px}.stat-box{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.stat-icon,.dash-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;font-size:20px;flex-shrink:0}.blue{background:#eaf3ff}.yellow{background:#fff5cc}.green{background:#e3f8ed}.purple{background:#f0eaff}.stat-box div{display:flex;flex-direction:column}.stat-box strong{font-size:21px;color:#183452;line-height:1.1}.stat-box small{font-size:10px;color:#92a0b1;margin-top:4px}.progress-track{height:7px;background:#eef2f8;border-radius:20px;overflow:hidden}.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#1d6cdb,#4aabff);border-radius:20px;transition:width .3s}.empty-progress>small{display:block;margin-top:8px;font-size:10px;color:#8796a9}.tip-card{display:flex;gap:13px;align-items:flex-start;position:relative;overflow:hidden;background:#fffaf0;border-color:#f7ebcb}.tip-icon{height:44px;width:44px;display:grid;place-items:center;background:#ffedb1;border-radius:14px;font-size:24px;flex-shrink:0}.tip-card .eyebrow{color:#ad8b29}.tip-card h3{color:#614e18}.tip-card p{font-size:11px;line-height:1.6;color:#958457;margin:7px 0 8px;max-width:340px}.tip-signoff{font-size:11px;font-weight:900;color:#8b6a0a}.tip-stars{position:absolute;right:12px;top:8px;color:#edc34c;font-size:25px}.parent-note{display:flex;gap:12px;align-items:center;background:#eef6ff;border:1px solid #dfecfc;border-radius:15px;padding:14px 16px;margin-top:18px;color:#6f86a5}.parent-note>span{font-size:24px}.parent-note p{font-size:10px;line-height:1.65;margin:0}.parent-note b{color:#35577f;font-size:11px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-heading h1{margin-top:7px}.heading-art{width:80px;height:80px;display:grid;place-items:center;border-radius:23px;background:#eaf3ff;font-size:42px;flex-shrink:0}.back-link{border:0;background:transparent;color:var(--blue);padding:0 0 13px;font:inherit;font-size:11px;font-weight:900;cursor:pointer}.all-class-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.breadcrumbs{display:flex;align-items:center;gap:8px;color:#91a0b3;font-size:11px;font-weight:800;margin-bottom:20px;flex-wrap:wrap}.breadcrumbs button{border:0;background:transparent;padding:0;color:var(--blue);font:inherit;font-weight:900;cursor:pointer}.breadcrumbs span{color:#c0cad7}.selection-panel{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 19px;margin:21px 0 25px}.selection-field{display:flex;flex-direction:column;gap:7px;min-width:220px}.selection-field label{font-size:9px;letter-spacing:1px;font-weight:900;color:#8a9ab0}.selection-field select{border:1px solid #dfe8f3;border-radius:10px;padding:10px 12px;background:#fafdff;color:#294360;font:inherit;font-size:12px;font-weight:800;outline:0}.selection-hint{font-size:10px;color:#91a0b2;margin-left:auto;padding-bottom:9px}.compact-title{margin-top:26px}.compact-title h2{font-size:20px}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;align-items:center;gap:13px;text-align:left;cursor:pointer;min-height:102px;transition:.18s;position:relative;overflow:hidden;color:var(--ink)}.subject-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#c7ddfa}.subject-icon{height:52px;width:52px;border-radius:16px;display:grid;place-items:center;font-size:27px;flex-shrink:0;background:var(--tint)}.subject-info{min-width:0}.subject-info b{display:block;font-size:14px;font-weight:900}.subject-info small{display:block;font-size:10px;color:#8d9aad;margin-top:5px;line-height:1.4}.subject-chevron{margin-left:auto;font-size:22px;color:var(--accent)}.subject-tag{position:absolute;right:12px;top:10px;font-size:8px;letter-spacing:.4px;font-weight:900;color:var(--accent);opacity:.85}.soft-notice{display:flex;gap:13px;align-items:flex-start;background:#f0f8ff;border:1px solid #e1effd;border-radius:15px;padding:16px;margin-top:22px}.soft-notice>span{font-size:25px}.soft-notice b{font-size:12px;color:#355a84}.soft-notice p{font-size:11px;line-height:1.6;color:#8294aa;margin:4px 0 0}.chapter-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 12px}.search-box{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:10px 13px;background:#fff;width:min(100%,380px);color:#8fa0b3}.search-box span{font-size:23px;line-height:15px}.search-box input{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:12px;color:var(--ink)}.chapter-count{font-size:10px;color:#8a99ac;font-weight:900}.chapter-list{display:grid;gap:9px}.chapter-row{display:flex;align-items:center;gap:13px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px}.chapter-number{width:39px;height:39px;border-radius:12px;background:#eef5ff;display:grid;place-items:center;color:var(--blue);font-weight:900}.chapter-row b{font-size:12px}.chapter-row small{display:block;color:#91a0b2;font-size:10px;margin-top:3px}.chapter-status{margin-left:auto;border-radius:20px;padding:6px 9px;background:#f2f5f9;color:#9aa6b6;font-size:9px;font-weight:900}.empty-library{text-align:center;border:1px dashed #cdddf0;border-radius:22px;padding:35px 20px;margin-top:14px;background:linear-gradient(180deg,#fff,#fafdff)}.empty-book{height:75px;width:75px;border-radius:23px;background:#eaf3ff;display:grid;place-items:center;font-size:38px;margin:0 auto 14px}.empty-library h3{margin:0 0 7px;font-size:19px;font-weight:900;color:#254363}.empty-library p{max-width:480px;margin:0 auto 17px;font-size:12px;line-height:1.7;color:#8a9aae}.coming-pill{display:inline-block;padding:8px 12px;border-radius:30px;background:#fff4c9;color:#967000;font-size:9px;letter-spacing:.5px;font-weight:900}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.dashboard-tile{background:#fff;border:1px solid var(--line);border-radius:18px;padding:19px;display:flex;flex-direction:column;align-items:flex-start}.dashboard-tile strong{font-size:28px;margin-top:16px;color:#1a385a}.dashboard-tile>b{font-size:12px;margin-top:4px}.dashboard-tile>small{font-size:10px;color:#8e9caf;margin-top:4px}.dash-icon{height:45px;width:45px;font-size:22px}.planner-card,.rewards-card{background:#fff;border:1px solid var(--line);border-radius:21px;padding:23px;max-width:850px}.planner-header{display:flex;gap:13px;align-items:center;margin-bottom:18px}.planner-calendar{height:50px;width:50px;display:grid;place-items:center;border-radius:15px;background:#eaf3ff;font-size:27px}.planner-header h2{margin:0;font-size:19px;font-weight:900}.planner-header p{margin:4px 0 0;color:#91a0b2;font-size:11px}.week-list{display:grid;gap:8px}.week-list>div{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:#f8faff}.week-list>div>span{font-size:9px;letter-spacing:.6px;font-weight:900;color:var(--blue);width:34px}.week-list b{font-size:12px}.week-list i{margin-left:auto;font-size:10px;font-style:normal;color:#8d9caf}.planner-footnote{font-size:10px;color:#91a0b2;margin:17px 0 0;line-height:1.6}.rewards-card{text-align:center;padding:28px}.reward-big{height:76px;width:76px;display:grid;place-items:center;border-radius:25px;background:#fff5c9;font-size:42px;margin:0 auto 10px}.rewards-card h2{font-size:24px;margin:0;color:#203e61}.rewards-card p{font-size:12px;color:#8a99ad}.badge-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:25px}.badge{display:flex;align-items:center;flex-direction:column;gap:6px;padding:17px 10px;border:1px dashed #dbe3ee;border-radius:15px;background:#fafcff}.badge>span{font-size:29px;filter:grayscale(1);opacity:.65}.badge b{font-size:11px}.badge small{font-size:9px;color:#9ba7b6}.footer{display:flex;align-items:center;gap:11px;max-width:1600px;margin:auto;padding:19px clamp(18px,4vw,54px);border-top:1px solid #e8eef6;background:#fff}.footer-mark{width:32px;height:32px;border-radius:10px;background:var(--navy);color:white;display:grid;place-items:center;font-weight:900;font-size:12px}.footer>div{display:flex;flex-direction:column}.footer b{font-size:11px;color:#385372}.footer small{font-size:9px;color:#99a6b6;margin-top:2px}.footer-copy{margin-left:auto;font-size:9px;color:#9aa8b7}.dialog-card{border:0;padding:28px;max-width:440px;width:min(90vw,440px);border-radius:23px;text-align:center;position:relative;color:var(--ink)}dialog{border:0;border-radius:23px;padding:0;box-shadow:0 25px 80px #0b2d5640}dialog::backdrop{background:#0b285d85;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:13px;top:10px;border:0;background:#f1f5fb;color:#6b7f98;width:30px;height:30px;border-radius:10px;font-size:20px;cursor:pointer}.dialog-emoji{font-size:43px;margin-bottom:8px}.dialog-card h2{font-size:25px;margin:7px 0}.dialog-card>p{font-size:12px;line-height:1.7;color:#8191a6}.parent-stat-row{display:flex;gap:10px;margin:20px 0}.parent-stat-row>div{flex:1;padding:14px;border-radius:13px;background:#f4f8ff;display:flex;flex-direction:column}.parent-stat-row strong{font-size:22px;color:var(--blue)}.parent-stat-row small{font-size:10px;color:#8a9aae}.parent-dialog-note{font-size:10px;line-height:1.5;background:#fff8dd;padding:10px;border-radius:10px;color:#92762c;margin-bottom:17px}.dialog-ok{width:100%}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:99;background:#143e70;color:#fff;padding:12px 17px;border-radius:12px;box-shadow:0 8px 25px #15375a35;font-size:12px;font-weight:800;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(min-width:1400px){.main-content{padding-left:54px;padding-right:54px}.hero-card{min-height:310px}.hero-content{padding:37px 42px}.hero-illustration{min-height:310px}}
@media(max-width:1100px){.app-layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding-left:15px}.class-grid,.all-class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-card{grid-template-columns:1.05fr .95fr}.hero-fox{left:24%;font-size:100px}.hero-speech{right:4%}.date-chip{display:none}}
@media(max-width:720px){.topbar{height:67px;padding:0 15px}.brand-symbol{height:38px;width:38px}.brand-copy b{font-size:15px}.brand-copy small{font-size:8px;letter-spacing:.6px}.parent-button{padding:9px 10px}.parent-button .parent-label{display:none}.top-actions{gap:7px}.language-wrap{height:37px;padding:0 7px}.language-wrap select{max-width:91px;font-size:11px}.mobile-menu{display:block}.app-layout{display:block;min-height:calc(100vh - 130px)}.sidebar{display:none;position:fixed;z-index:29;top:67px;left:0;bottom:0;width:245px;box-shadow:15px 0 35px #0c2c5020;padding:22px 15px}.sidebar.open{display:flex}.main-content{padding:24px 15px 32px}.welcome-row{margin-bottom:18px}.welcome-row h1,.page-heading h1{font-size:28px}.lead,.page-heading p{font-size:12px}.hero-card{grid-template-columns:1fr;min-height:0}.hero-content{padding:25px 22px 22px}.hero-content h2{font-size:37px}.hero-content p{max-width:95%}.hero-benefits{gap:9px;margin-top:18px;font-size:9px}.hero-illustration{min-height:170px}.hero-fox{left:39%;bottom:7px;font-size:90px}.hero-book{left:26%;bottom:5px;font-size:37px}.hero-sun{right:21%;top:4px}.hero-speech{right:9%;top:20%;font-size:10px}.note-one{top:18%;left:12%;font-size:28px}.note-two{right:17%;bottom:16%;font-size:28px}.cloud-one{top:38px}.cloud-two{top:66px}.section-title{margin-top:25px;align-items:flex-start}.section-title h2{font-size:19px}.section-title p{font-size:11px}.subtle-link{font-size:10px;padding:3px 0}.class-grid,.all-class-grid{gap:10px}.class-card{min-height:130px;padding:13px}.class-card .class-emoji{font-size:28px;margin-bottom:8px}.class-card .class-name{font-size:14px}.class-card .class-sub{font-size:9px}.class-card .mini-tag{left:13px;bottom:10px;font-size:8px}.bottom-grid{grid-template-columns:1fr;gap:10px}.progress-card,.tip-card{padding:16px}.progress-stats{margin:15px 0 12px}.parent-note{align-items:flex-start;padding:12px}.parent-note p{font-size:10px}.page-heading{margin-bottom:20px}.heading-art{width:58px;height:58px;border-radius:18px;font-size:31px}.selection-panel{padding:14px;gap:12px}.selection-field{min-width:100%;}.selection-field select{width:100%}.selection-hint{margin-left:0;padding-bottom:0}.subject-grid{grid-template-columns:1fr;gap:10px}.subject-card{min-height:83px;padding:14px}.subject-icon{height:47px;width:47px;font-size:24px}.chapter-toolbar{align-items:flex-start;flex-direction:column}.search-box{width:100%}.empty-library{padding:28px 16px}.dashboard-grid{gap:10px}.dashboard-tile{padding:14px}.dashboard-tile strong{font-size:24px}.badge-row{grid-template-columns:1fr}.badge{flex-direction:row;text-align:left}.badge>span{filter:none;opacity:1}.badge small{margin-left:auto}.footer{padding:16px}.footer-copy{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Premium all-classes and parent performance dashboard update */
.home-all-classes{grid-template-columns:repeat(4,minmax(0,1fr))}
.parent-dashboard{width:min(94vw,940px);max-width:940px;max-height:88vh;overflow:auto;text-align:left;padding:28px;background:#fbfdff}
.parent-dashboard-head{display:flex;align-items:center;gap:15px;padding-right:25px}
.parent-dashboard-head .dialog-emoji{margin:0;width:58px;height:58px;display:grid;place-items:center;background:#fff3c9;border-radius:18px;flex-shrink:0}
.parent-dashboard-head h2{font-size:25px;margin:5px 0;color:#19385b}
.parent-dashboard-head p{margin:0;font-size:12px;line-height:1.5;color:#8293a8}
.parent-report-meta{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 14px}
.parent-report-meta span{padding:9px 11px;border:1px solid #e3ebf5;background:#fff;border-radius:11px;color:#6f829a;font-size:10px}
.parent-report-meta b{color:#294969}
.parent-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.parent-kpi{padding:15px;border-radius:15px;border:1px solid #e3ebf5;background:#fff;display:flex;flex-direction:column;gap:5px;min-width:0}
.parent-kpi small{font-size:10px;color:#8292a7;font-weight:700}
.parent-kpi strong{font-size:27px;color:#15488b;line-height:1.2}
.parent-kpi span{font-size:9px;color:#9aa8b9;line-height:1.4}
.parent-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.parent-report-card{border:1px solid #e3ebf5;border-radius:16px;padding:17px;background:#fff;min-width:0}
.parent-report-card h3{font-size:13px;color:#254466;margin:0 0 14px}
.report-line{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#71849a;margin:10px 0}
.report-line b{color:#23496d}
.report-track{height:8px;border-radius:10px;background:#edf2f9;overflow:hidden}
.report-track span{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#1c65b8,#ffd64b)}
.report-muted{font-size:10px;line-height:1.6;color:#91a0b2;margin:12px 0 0}
.insight-row{display:flex;gap:10px;padding:10px;border-radius:12px;margin-top:9px}
.insight-row>span{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;flex-shrink:0;font-weight:900}
.insight-row b{font-size:11px;color:#31516f}
.insight-row p{font-size:10px;color:#8798ac;line-height:1.5;margin:4px 0 0}
.insight-row.strength{background:#eefaf4}.insight-row.strength>span{background:#d5f4e3;color:#16815b}
.insight-row.improve{background:#fff7e9}.insight-row.improve>span{background:#ffedc5;color:#a46c09}
.month-bars{height:95px;display:flex;align-items:flex-end;gap:12px;padding:8px 12px 0;border-bottom:1px solid #e8eef6}
.month-bars span{position:relative;display:block;flex:1;min-height:5px;background:linear-gradient(180deg,#4a91e5,#1657a1);border-radius:7px 7px 2px 2px}
.month-bars i{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);font-size:9px;color:#93a1b2;font-style:normal}
.parent-actions{padding-left:19px;margin:0;color:#73869b;font-size:10px;line-height:1.7}
.parent-actions li{padding:3px 0}
.parent-dashboard .parent-dialog-note{margin:15px 0;font-size:10px;line-height:1.6;text-align:left}
.parent-dashboard .dialog-ok{width:100%}
@media(max-width:1100px){.home-all-classes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.parent-dashboard{padding:20px 14px;max-height:90vh}.parent-dashboard-head{align-items:flex-start;gap:10px}.parent-dashboard-head .dialog-emoji{width:43px;height:43px;font-size:28px;border-radius:13px}.parent-dashboard-head h2{font-size:19px}.parent-dashboard-head p{font-size:10px}.parent-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.parent-kpi{padding:12px}.parent-kpi strong{font-size:23px}.parent-report-grid{grid-template-columns:1fr}.parent-report-card{padding:14px}.home-all-classes{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Mobile fit, install affordance, and app-like navigation improvements */
html,body{width:100%;max-width:100%;overflow-x:hidden;min-height:100%;overscroll-behavior-y:contain}
body{padding-bottom:env(safe-area-inset-bottom)}
.app-shell{min-height:100dvh}
.main-content{min-width:0;overflow-wrap:anywhere}
.install-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;border:1px solid #cfe2fb;border-radius:12px;padding:10px 12px;background:#eaf4ff;color:#1257a9;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.install-button.installed{background:#e8f8ef;border-color:#c8eed9;color:#16754c}
.install-dialog{text-align:left;max-height:88dvh;overflow:auto}
.install-dialog>.dialog-emoji,.install-dialog>h2,.install-dialog>p{text-align:center}
.install-steps{background:#f5f8fd;border:1px solid #e5edf8;border-radius:14px;padding:15px;font-size:12px;line-height:1.6;color:#506783;margin:15px 0}
.install-steps ol{padding-left:20px;margin:7px 0 15px}.install-steps ol:last-child{margin-bottom:0}
.install-dialog .dialog-ok{width:100%}
@media(max-width:720px){
 .topbar{padding-left:10px;padding-right:10px;gap:6px}.brand{gap:7px;min-width:0}.brand-copy b{font-size:12px}.brand-copy small{font-size:6px;letter-spacing:.25px}.brand-symbol{height:34px;width:34px;flex:0 0 34px}.top-actions{gap:5px}.language-wrap{padding:0 5px;gap:2px}.language-wrap select{max-width:66px;font-size:10px}.install-button{padding:8px 7px;font-size:10px;border-radius:10px;gap:3px}.install-button span{display:inline}.parent-button{padding:8px 7px;font-size:12px}.mobile-menu{padding:7px 9px;font-size:17px}.main-content{padding:20px 12px calc(38px + env(safe-area-inset-bottom))}.home-all-classes,.class-grid,.all-class-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.class-card{min-width:0;min-height:135px}.section-title{flex-wrap:wrap}.subtle-link{margin-left:auto}.view{min-width:0}.page-heading>div:first-child{min-width:0}.selection-panel{min-width:0}.selection-field select{min-width:0;max-width:100%}.footer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){.brand-copy small{display:none}.brand-copy b{font-size:11px}.language-wrap>span{display:none}.install-button{font-size:9px;padding:8px 5px}.parent-button{padding:8px 6px}.top-actions{gap:4px}.main-content{padding-left:10px;padding-right:10px}}

.official-book-link{margin:18px 0 8px;padding:18px;border:1px solid #dce9fb;border-radius:18px;background:#f2f7ff}.official-book-link a{display:inline-flex;align-items:center;gap:8px;background:#073b83;color:#fff;text-decoration:none;padding:12px 15px;border-radius:12px;font-weight:900;font-size:13px;max-width:100%;white-space:normal}.official-book-link p{color:#71829a;font-size:12px;line-height:1.6;margin:10px 0 0}.chapter-list:empty{display:none}

/* ===== Desktop N Study v1.0.0 additions ===== */
:root{--navy:#0a2f7a;--blue:#1452c9;--yellow:#ffd23f}
.splash{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(circle at 50% 40%,#2c6be0,#0a2f7a 70%);color:#fff;transition:opacity .35s}
.splash img{width:min(52vw,220px);height:auto;filter:drop-shadow(0 14px 30px #0008);animation:pop .7s cubic-bezier(.2,1.4,.4,1)}
.splash b{font-size:26px;font-weight:900;margin-top:10px}.splash small{color:#ffe07a;font-weight:800;letter-spacing:.5px}
.splash-bar{width:140px;height:5px;border-radius:9px;background:#ffffff30;margin-top:18px;overflow:hidden}.splash-bar i{display:block;height:100%;width:40%;background:var(--yellow);border-radius:9px;animation:load 1.1s ease-in-out infinite}
.splash.hide{opacity:0;pointer-events:none}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@keyframes load{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
.brand-logo{width:46px;height:46px;border-radius:50%;filter:drop-shadow(0 4px 8px #0a2f7a33)}
.icon-btn{height:40px;width:40px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:18px;cursor:pointer;display:grid;place-items:center}
.parent-chip{background:#fff8dc;border-color:#ffeaa0}
.mobile-menu,.install-button,.parent-button{display:none!important}
.side-logo{width:64px;height:64px;margin:0 auto 6px;display:block}
.hero-logo{position:absolute;left:50%;top:50%;width:min(62%,230px);transform:translate(-50%,-50%);filter:drop-shadow(0 18px 30px #0006);animation:float 4s ease-in-out infinite}
@keyframes float{50%{transform:translate(-50%,-56%)}}
.hero-speech{top:12%}
.footer-logo{width:36px;height:36px}
/* continue + daily + family */
.continue-card{width:100%;display:flex;align-items:center;gap:14px;border:0;margin-bottom:16px;padding:14px 16px;border-radius:18px;background:linear-gradient(120deg,#fff6cc,#ffe58a);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:var(--shadow)}
.cont-emoji{font-size:30px;width:52px;height:52px;border-radius:15px;background:#fff;display:grid;place-items:center}
.cont-copy{display:flex;flex-direction:column;min-width:0}.cont-copy small{font-size:10px;font-weight:900;letter-spacing:.8px;color:#8a6a00;text-transform:uppercase}.cont-copy b{font-size:16px;font-weight:900;color:var(--navy)}.cont-copy i{font-style:normal;font-size:11px;color:#7a6a3a}
.cont-go{margin-left:auto;background:var(--navy);color:#fff;font-weight:900;font-size:12px;padding:9px 13px;border-radius:11px;white-space:nowrap}
.daily-card{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow)}
.daily-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.streak-chip{background:#fff1e6;color:#c2541b;font-weight:900;font-size:11px;padding:6px 10px;border-radius:99px}
.daily-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.daily-item{display:flex;gap:10px;align-items:flex-start;background:#f6f9ff;border-radius:14px;padding:12px}.daily-item>span{font-size:26px}.daily-item b{font-size:13px;color:var(--navy)}.daily-item p{margin:3px 0 0;font-size:12px;color:#5d6f88;line-height:1.45}.daily-item .word{font-weight:900;color:var(--ink);font-size:14px}.daily-item .word span{font-weight:700;color:#5d6f88;font-size:12px}
.family-card{background:linear-gradient(135deg,#0a2f7a,#1452c9);color:#fff;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.family-card .eyebrow{color:#ffe07a}.family-card h3{margin:4px 0 12px;font-size:18px}
.family-row{display:grid;gap:9px}
.family-app{display:flex;align-items:center;gap:11px;background:#ffffff18;border:1px solid #ffffff2a;border-radius:14px;padding:10px 12px;color:#fff;text-decoration:none}
.family-app span{display:flex;flex-direction:column}.family-app small{color:#d6e4ff;font-size:11px}
.fam-ico{width:40px;height:40px;border-radius:50%;display:grid!important;place-items:center;font-size:20px;flex:none}.fam-ico.jr{background:#fef275}.fam-ico.main{background:#ffc800}
.class-card .class-arrow{top:13px}
/* subjects */
.ready-pill{display:inline-block;margin-top:6px;font-style:normal;font-size:10px;font-weight:900;color:#127a52;background:#e3f7ee;border-radius:99px;padding:3px 8px}
.early-note{margin-bottom:6px}
/* chapters */
.chapter-row{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:12px 14px;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.chapter-row.done{border-color:#bfe9d4;background:#f4fcf8}
.ch-num{width:28px;height:28px;border-radius:9px;background:var(--sky);color:var(--blue);font-weight:900;display:grid;place-items:center;font-size:13px;flex:none}
.ch-emoji{font-size:26px}.ch-copy{display:flex;flex-direction:column;min-width:0;flex:1}.ch-copy b{font-size:15px}.ch-copy small{font-size:11px;color:#3c8a66;font-weight:800}
.no-match{color:var(--muted);text-align:center;padding:16px;font-size:13px}
.official-btn{display:inline-flex;margin-top:14px;background:var(--navy);color:#fff;text-decoration:none;font-weight:900;padding:11px 16px;border-radius:12px;font-size:13px}
/* lesson */
.lesson-hero{display:flex;align-items:center;gap:16px;background:linear-gradient(120deg,#0a2f7a,#1f6be0);color:#fff;border-radius:var(--radius);padding:20px;margin:6px 0 14px;box-shadow:var(--shadow)}
.lesson-hero .eyebrow{color:#ffe07a}.lesson-hero h1{margin:4px 0 0;font-size:26px;line-height:1.15}
.lesson-emoji{font-size:44px;width:72px;height:72px;border-radius:20px;background:#ffffff22;display:grid;place-items:center;flex:none}
.lesson-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:14px;box-shadow:var(--shadow)}
.lesson-card h3{margin:0 0 10px;font-size:17px;color:var(--navy)}
.lesson-points{margin:0;padding-left:0;list-style:none;counter-reset:p;display:grid;gap:8px}
.lesson-points li{counter-increment:p;display:flex;gap:10px;align-items:flex-start;background:#f6f9ff;border-radius:12px;padding:11px 12px;font-size:15px;line-height:1.5}
.lesson-points li::before{content:counter(p);flex:none;width:24px;height:24px;border-radius:50%;background:var(--yellow);color:var(--navy);font-weight:900;display:grid;place-items:center;font-size:12px}
.lesson-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.primary-button:disabled{background:#dff5ea;color:#127a52;box-shadow:0 5px 0 #bfe9d4;cursor:default}
.ghost-button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 14px;font:inherit;font-weight:900;font-size:12px;color:var(--navy);cursor:pointer}
.parent-tip{background:#fffaf0;border-color:#ffe7a8}.parent-tip p{margin:0;font-size:14px;line-height:1.55;color:#5b4b1b}
/* quiz */
.quiz-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.quiz-top small{font-weight:900;color:var(--muted);font-size:11px}
.quiz-dots{display:flex;gap:5px}.quiz-dots i{width:9px;height:9px;border-radius:50%;background:#e3eaf4}.quiz-dots i.past{background:var(--green)}.quiz-dots i.now{background:var(--blue)}
.quiz-tag{display:inline-block;font-size:11px;font-weight:800;color:var(--blue);background:var(--sky);padding:3px 9px;border-radius:99px;margin-bottom:6px}
.quiz-q{font-size:19px;margin:4px 0 14px;line-height:1.35}
.quiz-opts{display:grid;gap:9px}
.quiz-opt{border:2px solid var(--line);background:#fff;border-radius:14px;padding:13px 14px;font:inherit;font-size:16px;font-weight:800;text-align:left;cursor:pointer;color:var(--ink);transition:.15s}
.quiz-opt:not(:disabled):active{transform:scale(.98)}
.quiz-opt.right{border-color:var(--green);background:#e7f8f0;color:#0f6a46}.quiz-opt.right::after{content:' ✓'}
.quiz-opt.wrong{border-color:#e46a6a;background:#fdeeee;color:#a12a2a}.quiz-opt.wrong::after{content:' ✗'}
.quiz-next{margin-top:12px;display:flex;justify-content:flex-end}
.quiz-end{text-align:center;padding:10px 0}.quiz-big{font-size:56px}.quiz-end h4{font-size:21px;margin:6px 0}.quiz-end p{color:#5d6f88}
/* play */
.play-tabs{display:flex;gap:8px;margin-bottom:12px}
.play-tab{flex:1;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px;font:inherit;font-weight:900;color:var(--muted);cursor:pointer}
.play-tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.play-panel{display:none}.play-panel.active{display:block}
.board-card{padding:12px}
.board-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.board-tools.second{font-size:13px}
.pens{display:flex;gap:6px}.pen{width:28px;height:28px;border-radius:50%;border:3px solid #fff;background:var(--c);box-shadow:0 0 0 1px #d5deea;cursor:pointer}.pen.on{box-shadow:0 0 0 3px var(--c)}
#penSize{flex:1;min-width:80px;accent-color:var(--blue)}
.tool{height:36px;min-width:36px;border:1px solid var(--line);background:#fff;border-radius:10px;font:inherit;font-weight:900;cursor:pointer;color:var(--navy)}.tool.wide{padding:0 10px}.tool.on{background:#fff3c4;border-color:#f2c94c}
#traceChar{min-width:28px;text-align:center;font-size:18px;color:var(--blue)}
#traceSet{height:36px;border:1px solid var(--line);border-radius:10px;font:inherit;font-weight:800;padding:0 6px;background:#fff}
.board-wrap{position:relative;width:100%;aspect-ratio:4/3;max-height:65vh;border-radius:14px;overflow:hidden;border:2px solid #e7edf6;background:#fffdf5}
.board-wrap canvas{position:absolute;inset:0;width:100%;height:100%}#board{touch-action:none;cursor:crosshair}
/* progress */
.badge-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.badge.unlocked{border-style:solid;border-color:#ffd96a;background:#fffbea}.badge.locked>span{filter:grayscale(1);opacity:.5}
/* planner */
.week-list>div.today{background:#fff6cc;border:1px solid #ffe17a}
.plan-tick{margin-left:auto;width:32px;height:32px;border-radius:10px;border:2px solid #e9b82e;background:#fff;font-weight:900;color:#127a52;cursor:pointer}.plan-tick.on{background:#dff5ea;border-color:var(--green)}
/* settings */
.settings-list{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:14px}
.set-row{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:14px 16px;font:inherit;font-size:14px;color:var(--ink);text-decoration:none;cursor:pointer;text-align:left}
.set-row:last-child{border-bottom:0}.set-row>span{font-size:20px;width:26px;text-align:center}.set-row b{flex:1}.set-row>i{font-style:normal;color:var(--muted);font-weight:900;font-size:13px}
.set-row.danger b{color:#c0392b}
.set-head{font-size:12px;letter-spacing:.6px;color:var(--muted);margin:18px 4px 8px;text-transform:uppercase}
.switch{width:44px;height:26px;border-radius:99px;background:#d5deea;position:relative;flex:none}.switch::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px #0003}.switch.on{background:var(--green)}.switch.on::after{left:21px}
.promise-card{background:linear-gradient(135deg,#0a2f7a,#123f9e);color:#fff;border-radius:var(--radius);padding:18px;margin-top:18px;box-shadow:var(--shadow)}
.promise-head{display:flex;align-items:center;gap:12px}.promise-head img{width:54px;height:54px}.promise-head b{font-size:18px;display:block}.promise-head small{color:#ffe07a;font-weight:800}
.promise-card ul{margin:12px 0 6px;padding-left:20px;line-height:1.8;font-size:14px}.promise-card li::marker{content:'✓  ';color:#ffd23f}
.version-line{margin:10px 0 0;padding-top:10px;border-top:1px solid #ffffff25;font-size:12px;color:#c9d8ff;font-weight:800}
/* dialogs */
.gate-card{text-align:center}.gate-q{font-size:30px;font-weight:900;color:var(--navy);margin:8px 0}
#gateInput{width:120px;height:48px;text-align:center;font:inherit;font-size:22px;font-weight:900;border:2px solid var(--line);border-radius:12px}
.gate-err{color:#c0392b;font-weight:800;min-height:18px;font-size:13px}.gate-actions{display:flex;gap:10px;justify-content:center}
#infoBody{text-align:left;font-size:14px;line-height:1.6}#infoBody ul{padding-left:18px}
.dialog-card .primary-button{margin-top:10px}
.week-bars{display:flex;align-items:flex-end;gap:6px;height:110px}.week-bars span{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.week-bars em{width:100%;background:linear-gradient(#3989f4,#1452c9);border-radius:6px 6px 2px 2px;color:#fff;font-size:10px;font-style:normal;font-weight:900;text-align:center;min-height:4px}.week-bars i{font-size:9px;font-style:normal;color:var(--muted);margin-top:4px}
.recent-list{margin:0;padding:0;list-style:none;display:grid;gap:6px;font-size:13px}.recent-list li{background:#f6f9ff;border-radius:10px;padding:8px 10px}.recent-list small{color:var(--muted);margin-left:4px}.recent-list .muted{color:var(--muted)}
/* confetti */
.confetti{position:fixed;inset:0;pointer-events:none;z-index:150;overflow:hidden}.confetti i{position:absolute;top:-12px;width:9px;height:14px;border-radius:2px;opacity:0}.confetti.go i{animation:fall 1.8s ease-in forwards}
@keyframes fall{0%{opacity:1;transform:translateY(0) rotate(0)}100%{opacity:0;transform:translateY(100vh) rotate(540deg)}}
/* bottom nav (phones) */
.bottom-nav{display:none}
@media(max-width:720px){
 .topbar{height:64px}.brand-logo{width:40px;height:40px}.brand-copy small{display:none}
 .language-wrap select{max-width:78px}
 .sidebar{display:none!important}
 .main-content{padding:18px 16px calc(92px + env(safe-area-inset-bottom))}
 .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px #0a2f7a14}
 .bottom-nav button{flex:1;border:0;background:none;font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;color:var(--muted);cursor:pointer;border-radius:12px}
 .bottom-nav span{font-size:20px;filter:grayscale(.6);opacity:.75}.bottom-nav b{font-size:10px;font-weight:900}
 .bottom-nav button.active{color:var(--blue);background:var(--sky)}.bottom-nav button.active span{filter:none;opacity:1}
 .footer{display:none}
 .daily-grid{grid-template-columns:1fr}
 .badge-row{grid-template-columns:1fr 1fr!important}.badge{flex-direction:column!important;text-align:center!important}.badge small{margin-left:0!important}
 .lesson-hero{padding:16px}.lesson-hero h1{font-size:22px}.lesson-emoji{width:58px;height:58px;font-size:34px}
 .quiz-q{font-size:18px}
 .hero-illustration{min-height:200px}
 .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
}
/* print: only the lesson */
@media print{.topbar,.sidebar,.bottom-nav,.footer,.lesson-actions,#lessonQuiz,.lesson-card:last-child,.breadcrumbs,.toast,.splash{display:none!important}.view{display:none!important}#view-lesson{display:block!important}.lesson-hero{background:#fff!important;color:#000!important;border:2px solid #0a2f7a}.lesson-hero .eyebrow{color:#0a2f7a!important}body{background:#fff}.lesson-card{box-shadow:none}.main-content{padding:0}}
/* v1.0.0 scroll fix: only body clips sideways, so the page scrolls normally with one finger */
html{overflow:visible!important;overscroll-behavior:auto!important;height:auto!important}
body{overflow-x:hidden!important;overflow-y:visible!important;overscroll-behavior:auto!important;height:auto!important}
@supports (overflow:clip){body{overflow-x:clip!important}}
.app-shell,.app-layout,.main-content{overflow:visible!important;height:auto!important}
.ext{cursor:pointer;-webkit-tap-highlight-color:transparent}
/* ===== v1.0.0 structure: profile, 5-step chapter, tests, report ===== */
body.no-nav .bottom-nav,body.no-nav .sidebar,body.no-nav #parentOpen{display:none!important}
.setup-hero{display:flex;align-items:center;gap:14px;margin-bottom:14px}.setup-hero img{width:72px;height:72px}.setup-hero h1{margin:0;font-size:26px;color:var(--navy)}.setup-hero p{margin:4px 0 0;color:var(--muted);font-size:13px}
.field-label{display:block;font-size:11px;font-weight:900;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin:14px 0 6px}
.text-input{width:100%;border:2px solid var(--line);border-radius:12px;padding:11px 12px;font:inherit;font-size:15px;font-weight:700;color:var(--ink);background:#fff;outline:0}.text-input:focus{border-color:var(--blue2)}
textarea.text-input{resize:vertical;min-height:80px;font-weight:600}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:2px solid var(--line);background:#fff;border-radius:99px;padding:8px 13px;font:inherit;font-weight:800;font-size:13px;color:var(--ink);cursor:pointer}.chip.on{border-color:var(--blue);background:var(--sky);color:var(--blue)}
.chip.av{font-size:24px;padding:4px 8px}
.class-chips .chip{min-width:calc(50% - 4px)}
.hint{font-size:12px;color:var(--muted);margin:8px 0 0}.center{text-align:center;justify-content:center}
.danger-txt{color:#c0392b}
.profile-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:8px;scrollbar-width:none}.profile-row::-webkit-scrollbar{display:none}
.pchip{flex:none;display:flex;align-items:center;gap:6px;border:2px solid var(--line);background:#fff;border-radius:99px;padding:5px 12px 5px 6px;font:inherit;font-weight:900;font-size:13px;color:var(--ink);cursor:pointer}.pchip span{font-size:20px}.pchip.on{border-color:var(--blue);background:var(--sky)}.pchip.add{padding:7px 12px;color:var(--blue);border-style:dashed}
.how-card{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
.how-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.how-steps div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;background:#f6f9ff;border-radius:14px;padding:10px 4px}.how-steps span{font-size:22px}.how-steps b{font-size:12px;color:var(--navy)}.how-steps small{font-size:10px;color:var(--muted);line-height:1.3}
.practice-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;border-radius:var(--radius);padding:18px;background:linear-gradient(135deg,#fff6cc,#ffe58a);font:inherit;text-align:left;cursor:pointer;color:var(--ink);box-shadow:var(--shadow)}.practice-card span{font-size:30px}.practice-card b{font-size:17px;color:var(--navy)}.practice-card small{color:#6e5a1c}
.page-heading .ghost-button{align-self:center}
/* chapter list extras */
.demo-pill{font-style:normal;font-size:9px;font-weight:900;letter-spacing:.6px;background:#ffe9a8;color:#8a5a00;padding:2px 7px;border-radius:99px;vertical-align:middle}
.mini-steps{display:flex;gap:3px;margin:5px 0 3px}.mini-steps i{width:18px;height:5px;border-radius:9px;background:#e3eaf4}.mini-steps i.on{background:var(--green)}
.ch-copy small{color:var(--muted)!important}.ch-copy small.ok{color:#3c8a66!important}
/* stepper */
.stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:14px;position:sticky;top:64px;z-index:20;background:var(--bg);padding:6px 0}
.step{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;font:inherit;cursor:pointer;color:var(--muted);padding:2px 0}
.step span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:13px;background:#fff;border:2px solid var(--line)}
.step b{font-size:10px;font-weight:900}
.step.done span{background:var(--green);border-color:var(--green);color:#fff}.step.now span{background:var(--yellow);border-color:#e9b82e;color:var(--navy);transform:scale(1.1)}.step.now b{color:var(--navy)}.step.lock{opacity:.55}
.learn-list{margin:0;padding-left:0;list-style:none;display:grid;gap:8px}.learn-list li{background:#f6f9ff;border-radius:12px;padding:10px 12px;font-size:15px}.learn-list li::before{content:'🎯 '}
.meta-line{font-weight:800;color:var(--navy);font-size:13px;margin:14px 0 0}
.demo-note{background:#fff8e1;border:1px dashed #f2c94c;border-radius:12px;padding:10px 12px;font-size:12px;color:#6e5a1c;margin:12px 0 0}
.summary{font-size:16px;line-height:1.7;margin:0 0 12px}
.word-list{display:grid;gap:8px}.word-list div{display:flex;flex-direction:column;background:#f6f9ff;border-left:4px solid var(--yellow);border-radius:10px;padding:9px 12px}.word-list b{color:var(--navy);font-size:15px}.word-list span{font-size:13px;color:#5d6f88}
.point-head{display:flex;align-items:center;gap:12px;margin:6px 0 8px}.point-head span{font-size:38px;width:60px;height:60px;border-radius:18px;background:var(--sky);display:grid;place-items:center;flex:none}.point-head h3{margin:0;font-size:20px}
.point-text{font-size:16px;line-height:1.7;margin:0 0 12px}
.example-box{background:#ecfaf3;border:1px solid #c4ecd8;border-radius:14px;padding:12px 14px;margin-bottom:12px}.example-box b{color:#127a52;font-size:13px}.example-box p{margin:4px 0 0;font-size:14px;line-height:1.55}
.check-box{background:#f6f9ff;border:1px solid #dbe8fb;border-radius:14px;padding:12px 14px;margin-top:12px}.check-box b{font-size:13px;color:var(--blue)}.quiz-q.small{font-size:16px;margin:6px 0 10px}
.quiz-opts.tf{grid-template-columns:1fr 1fr}
.retry-note{background:#fff1e6;color:#b5541b;font-weight:800;font-size:13px;border-radius:10px;padding:8px 10px}
.lesson-actions.center{justify-content:center}
/* test paper */
.paper-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:2px dashed var(--line);padding-bottom:10px}.paper-head h3{margin:0}.paper-head p{margin:2px 0 0;color:var(--muted);font-size:13px}
.marks-pill{background:var(--navy);color:#fff;font-weight:900;font-size:12px;padding:6px 10px;border-radius:99px;white-space:nowrap}
.t-sec{margin-top:16px}.t-sec h4{margin:0 0 8px;font-size:15px;color:var(--navy);background:#f2f6fd;border-radius:10px;padding:8px 10px}.t-sec h4 small{color:var(--muted)}
.t-q{padding:10px 2px;border-bottom:1px solid #f0f3f8}.t-q p{margin:0 0 8px;font-size:15px;line-height:1.5}.qn{font-weight:900;color:var(--blue);margin-right:4px}.blank{font-weight:900;color:var(--blue);letter-spacing:1px}
.chip.pick.on{border-color:var(--green);background:#e7f8f0;color:#0f6a46}
.match-grid{display:grid;gap:9px}.m-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}.m-row b{font-size:14px}.m-sel{padding:9px 8px;font-size:14px}
.mic{margin-top:8px}.mic.on{background:#ffe9e9;border-color:#f3a6a6;color:#b42323}
/* result */
.result-top{display:flex;align-items:center;gap:16px}.result-top h3{margin:2px 0;font-size:22px}.result-top p{margin:2px 0;font-weight:800}
.ring{--c:var(--green);width:92px;height:92px;flex:none;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p)*1%),#e8eef6 0)}.ring b{width:72px;height:72px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:20px;color:var(--navy)}
.result-card.yellow .ring{--c:#f2a516}.result-card.red .ring{--c:#e04f4f}
.result-card h4{margin:16px 0 8px}.sec-list{display:grid;gap:6px}.sec-list div{display:flex;justify-content:space-between;gap:10px;background:#f6f9ff;border-radius:10px;padding:8px 10px;font-size:13px}
.star-line{color:#b48617}
.weak-list{display:grid;gap:8px}.weak-btn{display:flex;align-items:center;gap:8px;border:1px solid #f6c9c9;background:#fff5f5;border-radius:12px;padding:11px 12px;font:inherit;font-weight:800;font-size:14px;color:#8f2525;cursor:pointer;text-align:left}.weak-btn span{margin-left:auto}
.ans-box{background:#f6f9ff;border-radius:12px;padding:10px 12px;margin-bottom:10px;font-size:14px}.ans-box p{margin:4px 0}.ans-box .q{font-weight:800;display:flex;justify-content:space-between;gap:8px}.ans-box .model{color:#127a52}.ans-box small{color:var(--muted);font-weight:800}
/* tests & report */
.sem-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sem-card{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px dashed #cfd9e8;border-radius:16px;padding:14px}.sem-card span{font-size:24px}.sem-card b{color:var(--navy)}.sem-card small{color:var(--muted);font-size:11px}
.sbar{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr 44px;gap:10px;align-items:center;padding:7px 0;font-size:13px;font-weight:800}.sbar-track{height:10px;border-radius:99px;background:#edf2f9;overflow:hidden}.sbar-track i{display:block;height:100%;border-radius:99px;background:#cfd9e8}.sbar-track i.green{background:var(--green)}.sbar-track i.yellow{background:#f2a516}.sbar-track i.red{background:#e04f4f}.sbar b{text-align:right;color:var(--navy)}
/* more */
.child-row{cursor:default}.child-row.on{background:#f3f8ff}.child-row b{display:flex;flex-direction:column}.child-row b small{font-weight:700;color:var(--muted);font-size:11px}
.ghost-button.sm{padding:7px 11px;font-size:11px}
/* parent */
.seg{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.seg button{border:2px solid var(--line);background:#fff;border-radius:99px;padding:7px 12px;font:inherit;font-weight:900;font-size:12px;cursor:pointer;color:var(--ink)}.seg button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.help-text{margin:0;font-size:13px;line-height:1.6;color:#5b4b1b;background:#fffaf0;border-radius:10px;padding:10px}
.parent-dashboard .settings-list{margin-top:12px}
@media(max-width:720px){.stepper{top:64px}.how-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.how-steps small{display:none}.sem-grid{grid-template-columns:1fr}.m-row{grid-template-columns:1fr}.result-top h3{font-size:19px}.point-head h3{font-size:18px}.setup-hero h1{font-size:22px}}
.sec-list b,.ans-box .q b{white-space:nowrap}

/* v1.0.1: install button + home install card */
.install-top{height:40px;border-radius:12px;border:0;background:var(--yellow);color:var(--navy);font:inherit;font-weight:900;font-size:13px;padding:0 12px;box-shadow:0 3px 0 #e9b82e;cursor:pointer;white-space:nowrap}
.install-card{width:100%;display:flex;align-items:center;gap:12px;border:2px dashed #9cc0f5;background:#f2f7ff;border-radius:18px;padding:12px 14px;margin-bottom:14px;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.install-card>span{font-size:28px}.install-card b{display:block;color:var(--navy);font-size:15px}.install-card small{color:var(--muted);font-size:12px}.install-card i{margin-left:auto;font-style:normal;background:var(--navy);color:#fff;font-weight:900;font-size:12px;padding:8px 12px;border-radius:10px;white-space:nowrap}
.continue-card.done-card{background:linear-gradient(120deg,#e3f7ee,#c8efdc)}
@media(max-width:380px){.language-wrap select{max-width:64px}.install-top{padding:0 9px;font-size:12px}}
.install-card small{display:block;line-height:1.4}.install-card>span:nth-child(2){flex:1;min-width:0}
